Added math section (v 0.3.0)
This commit is contained in:
parent
2c9c9ffcee
commit
6daa64ace5
@ -9,13 +9,13 @@
|
|||||||
\usepackage{lmodern}
|
\usepackage{lmodern}
|
||||||
|
|
||||||
|
|
||||||
|
% Keyboard symbols
|
||||||
\usepackage[os=win]{menukeys}
|
\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
|
\usepackage{ragged2e} % Make right margin look better
|
||||||
\raggedright
|
\raggedright
|
||||||
|
|
||||||
|
% Place a rule above our section titles
|
||||||
\usepackage{titlesec}
|
\usepackage{titlesec}
|
||||||
\titleformat{\section}[display]
|
\titleformat{\section}[display]
|
||||||
{\large\scshape}{\thesection}{}{\hrule\vspace{3pt}}{}
|
{\large\scshape}{\thesection}{}{\hrule\vspace{3pt}}{}
|
||||||
@ -26,18 +26,22 @@
|
|||||||
\usepackage{enumitem}
|
\usepackage{enumitem}
|
||||||
\setlist[description]{
|
\setlist[description]{
|
||||||
style=nextline,
|
style=nextline,
|
||||||
font={\bfseries\ttfamily},
|
font={\ttfamily},
|
||||||
itemsep=3pt,
|
itemsep=3pt,
|
||||||
parsep=0pt,
|
parsep=0pt,
|
||||||
leftmargin=12mm
|
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}
|
\usepackage{fancyhdr}
|
||||||
\pagestyle{fancy}
|
\pagestyle{fancy}
|
||||||
\fancyhf{}
|
\fancyhf{}
|
||||||
\fancyhead[L]{\textbf{A Compose Key Cheat Sheet}}
|
\fancyhead[L]{\textbf{A Compose Key Cheat Sheet}}
|
||||||
\fancyhead[R]{\texttt{https://git.kjodle.net/kjodle/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}
|
\fancyfoot[R]{Page \thepage}
|
||||||
\renewcommand{\footrulewidth}{0.4pt}
|
\renewcommand{\footrulewidth}{0.4pt}
|
||||||
|
|
||||||
@ -53,26 +57,15 @@
|
|||||||
|
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
\usepackage[utf8]{inputenc}
|
\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
|
% Place numbers in a circle
|
||||||
\newcommand*\keystroke[1]{%
|
% See https://tex.stackexchange.com/questions/7032/good-way-to-make-textcircled-numbers
|
||||||
\tikz[baseline=(key.base)]
|
% Can also use «circledsteps» package
|
||||||
\node[%
|
\usepackage{tikz}
|
||||||
draw,
|
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
|
||||||
fill=white,
|
\node[shape=circle,draw,inner sep=2pt] (char) {#1};}}
|
||||||
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}
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
% Fonts for symbols
|
% Fonts for symbols
|
||||||
\usepackage{fourier}
|
\usepackage{fourier}
|
||||||
@ -125,7 +118,19 @@ Some characters may render differently depending on the font used.
|
|||||||
\section*{Math}
|
\section*{Math}
|
||||||
|
|
||||||
\begin{description}
|
\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}
|
\end{description}
|
||||||
|
|
||||||
\section*{Publishing}
|
\section*{Publishing}
|
||||||
|
Loading…
Reference in New Issue
Block a user