\documentclass[a6paper, fontsize=6pt, twosided]{scrreport}

\usepackage[T1]{fontenc}
\usepackage{booktabs}
\usepackage[svgnames]{xcolor}
\usepackage{siunitx}
\usepackage[french]{babel}

\newenvironment{fulltab}[1]{\begin{center}\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}} #1}}
{\end{tabular*}\end{center}}

\def\Vt{V_{\mathrm T}}
\def\kbT{k_BT}
\setlength\tabcolsep{0pt}
\setlength\parindent{0pt}

\newcounter{colw}
\newcommand{\mc}[1]{\multicolumn{\thecolw}{l}{#1}}
\title{Incomplete handbook of all things useful}
\author{Sélène Corbineau}
\begin{document}
\maketitle
\tableofcontents
\pagebreak

\chapter{Mechanics}
\section{Metric machine bolts}

\paragraph{Threads}
\begin{fulltab}{lccccc}
\toprule
Thread & Pitch & Tapping dia. & \multicolumn{3}{c}{Clearance dia.}\\
\cmidrule{4-6}
 & & & Close & Medium & Loose\\
\midrule
M1.6 & 0.35 & 1.25 & 1.7 & 1.8 & 2.0\\
M2 & 0.4 & 1.6 & 2.2 & 2.4 & 2.6\\
M2.5 & 0.45 & 2.05 & 2.7 & 2.9 & 3.1\\
M3 & 0.5 & 2.5 & 3.2 & 3.4 & 3.6\\
M4 & 0.7 & 3.3 & 4.3 & 4.5 & 4.8\\
M5 & 0.8 & 4.2 & 5.3 & 5.5 & 5.8\\
M6 & 1 & 5 & 6.4 & 6.6 & 7.0\\
M8 & 1.25 & 6.8 & 8.4 & 9.0 & 10.0\\
M10 & 1.5 & 8.5 & 10.5 & 11.0 & 12.0\\
\bottomrule
\end{fulltab}

\paragraph{Hex heads, nuts}
\begin{fulltab}{lccccc}
\toprule
	Thread & s   & e (min.)   & k (nom.) & m (max.) & m'\\
\midrule
M1.6   & 3.2 & 3.28       & 1.1 & 1.3\\
M2     & 4.0 & 4.18       & 1.4 & 1.6 & 0.95\\
M2.5   & 5.0 & 5.31       & 1.7 & 2 & 1.35\\
M3     & 5.5 & 5.88       & 2 & 2.4 & 1.55\\
M4     & 7   & 7.50       & 2.8 & 3.2 & 1.95\\
M5     & 8   & 8.63       & 3.5 & 4 & 2.45\\
M6     & 10  & 10.89      & 4 & 5 & 2.90\\
M8     & 13  & 14.20      & 5.3 & 6.5 & 3.70\\
M10    & 16  & 17.59      & 6.4 & 8 & 4.70\\
\bottomrule
\end{fulltab}

\chapter{Electronics}
\section{Labelling}
\paragraph{Color code}

\newcommand{\cbox}[1]{\colorbox{#1}{\phantom{Cor}}}

\begin{fulltab}{lcccccccccccc}
\toprule
& \cbox{black} & \cbox{brown} & \cbox{red} & \cbox{orange} & \cbox{yellow} & \cbox{green} & \cbox{blue}
	& \cbox{violet} & \cbox{gray} & \cbox{white} & \cbox{Gold} & \cbox{Silver}\\
\midrule
Digit& 0 & 1   & 2   & 3 & 4 & 5     & 6      & 7     & 8 & 9 & -1  & -2\\
Tol. &   & 1\% & 2\% &   &   & 0.5\% & 0.25\% & 0.1\% &   &   & 5\% & 10\%\\
\bottomrule
\end{fulltab}
\og Ne Mangez Rien Ou Je Vous Battrai Violemment, Grand Boa. \fg{} Gold and Silver cannot occur in the mantissa.

\paragraph{Marking schemes}
With color rings, read with outermost ring to the right
\begin{itemize}
\item 2 digits + exponent + tolerance
\item 3 digits + exponent + tolerance
\end{itemize}
With digits: 2 digits + exponent. The base units are \unit{\ohm}, \unit{\micro\henry} and \unit{\pico\farad}.

\paragraph{Preferred numbers}
\begin{fulltab}{lcccccccccccc}
\toprule
\setcounter{colw}{2}
E6 & \mc{1.0} & \mc{1.5} & \mc{2.2} & \mc{3.3} & \mc{4.7} & \mc{6.8}\\
\setcounter{colw}{1}
E12 & \mc{1.0} & \mc{1.2} \\
\bottomrule
\end{fulltab}
% Recall E6/E12/E24

\section{Common components}
\paragraph{Complementary BJT pairs}
\begin{fulltab}{lccccc}
\toprule
	Part n°  & $V_{\textrm{CEO}}$ (V) & $I_{C,\textrm{max}}$ (mA) & $\beta$@$I_C$  & $f_T$ (MHz) \\
\midrule
BC547C,'557 & 45 & 100 & 420..800 @ 10 & 300\\
2N3904,'06 & 40 & 200 & 100..300 @ 10 & 300\\
BC327,'337 & 45 & 500 & 100..600 @ 100 & 100\\
\bottomrule
\end{fulltab}

\paragraph{Power BJTs}
\begin{fulltab}{lccccc}
\toprule
	Part n° & $V_{\textrm{CEO}}$ (V) & $I_{C,\textrm{max}}$ (A) & $\beta$@$I_C$  & $f_T$ (MHz)\\
\midrule
D44H11,'45  & 80 & 10  & 60 @ 1 & 50\\
TIP41,'42 & 80 & 6  & 15..75 @ 3 & 3\\
\bottomrule
\end{fulltab}

\section{Topologies}

\paragraph{Differential gain of diff-pair} $U_d$ is the \emph{one-legged} bias drop.
\[H_{D\rightarrow D} = \frac{U_d}{\Vt}\]

\section{Noise models}

\paragraph{Johnson noise} Typical power density is $4\kbT$, therefore \(e_n = \sqrt{4\kbT R}\) and
\(i_n = \sqrt{\kbT / R}\).

\chapter{Telecommunications}
\section{Amateur radio}
\paragraph{HF frequency allocations (region I)}

\paragraph{Q-code}
\paragraph{Purity limits}

\section{Character encodings}
\paragraph{7-bit ASCII}
\paragraph{HD4480}
\end{document}
