Added math section (v 0.3.0)

This commit is contained in:
Kenneth John Odle 2023-12-16 10:06:53 -05:00
parent 2c9c9ffcee
commit 6daa64ace5

View File

@ -9,13 +9,13 @@
\usepackage{lmodern}
% Keyboard symbols
\usepackage[os=win]{menukeys}
% Using this, but see other solution below
% This option works better with small font sizes
\usepackage{ragged2e} % Make right margin look better
\raggedright
% Place a rule above our section titles
\usepackage{titlesec}
\titleformat{\section}[display]
{\large\scshape}{\thesection}{}{\hrule\vspace{3pt}}{}
@ -26,18 +26,22 @@
\usepackage{enumitem}
\setlist[description]{
style=nextline,
font={\bfseries\ttfamily},
font={\ttfamily},
itemsep=3pt,
parsep=0pt,
leftmargin=12mm
}
% Make labels in description list not bold
% See https://latex.org/forum/viewtopic.php?t=4204
\renewcommand*\descriptionlabel[1]{\hspace\labelsep\normalfont #1}
% Style our headers and footers
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\textbf{A Compose Key Cheat Sheet}}
\fancyhead[R]{\texttt{https://git.kjodle.net/kjodle/compose-key-cheat-sheet}}
\fancyfoot[L]{Version 0.2.0 • \today}
\fancyfoot[L]{Version 0.3.0 • \today}
\fancyfoot[R]{Page \thepage}
\renewcommand{\footrulewidth}{0.4pt}
@ -53,26 +57,15 @@
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shadows}
% Not currently used; using «menukeys» package instead
% See https://tex.stackexchange.com/questions/5226/keyboard-font-for-latex
\newcommand*\keystroke[1]{%
\tikz[baseline=(key.base)]
\node[%
draw,
fill=white,
drop shadow={shadow xshift=0.4ex,shadow yshift=-0.2ex,fill=black,opacity=0.35},
rectangle,
rounded corners=2pt,
inner xsep=3pt,
inner ysep=0.5pt,
line width=0.5pt,
font=\footnotesize\ttfamily
](key) {#1\strut}
;
}
% Place numbers in a circle
% See https://tex.stackexchange.com/questions/7032/good-way-to-make-textcircled-numbers
% Can also use «circledsteps» package
\usepackage{tikz}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=2pt] (char) {#1};}}
% Fonts for symbols
\usepackage{fourier}
@ -125,7 +118,19 @@ Some characters may render differently depending on the font used.
\section*{Math}
\begin{description}
\item[•]
\item[x x]Times \hfill $\times$
\item[- :]Divide \hfill $\div$
\item[- ,]Not sign \hfill \textlnot
\item[< =]Less than or equal to \hfill $\leq$
\item[> =]Greater than or equal to \hfill $\geq$
\item[+ -]Plus/minus \hfill $\pm$
\item[8 8]Infinity \hfill $\infty$
\item[1 2]One-half (similar with other numbers through 9) \hfill \textonehalf
\item[\^{} 2]Superscript 2 (also works for other numbers through 9, and some punctuation symbols) \hfill $\Box^2$
\item[\_{} 2]Subscript 2 (also works as superscript with other symbols) \hfill $\Box_2$
\item[( 2 )]Circled 2 (also works on numbers through 50) \hfill \circled{2}
\item[\% o]Per mille sign \hfill \textperthousand
\item[N o]Numero symbol \hfill \textnumero
\end{description}
\section*{Publishing}