compose-key-cheat-sheet/compose-key-cheat-sheet.tex

161 lines
4.4 KiB
TeX

\documentclass[9pt, letter, landscape]{extarticle}
\usepackage{extsizes}
\usepackage[
margin=0.5in,
top=2cm,
bottom=2cm
]{geometry}
\usepackage{lmodern}
% Keyboard symbols
\usepackage[os=win]{menukeys}
\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}}{}
% Define a date the way we like it
\usepackage[en-AU]{datetime2}
\usepackage{enumitem}
\setlist[description]{
style=nextline,
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.4.0 • \today}
\fancyfoot[R]{Page \thepage}
\renewcommand{\footrulewidth}{0.4pt}
% Redefining headrule
% See https://tex.stackexchange.com/a/584638/245702
\makeatletter
\renewcommand{\headrule}{\hrule height 1pt \vspace{1pt}\hrule height 0.25pt}
\usepackage{multicol}
\setlength{\columnseprule}{0.3pt}
\setlength{\columnsep}{1cm}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
% 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}
\usepackage{txfonts}
\usepackage{wasysym}
% See https://semver.org/ for versioning meaning
\begin{document}
\begin{multicols*}{4}
Some characters may render differently depending on the font used.
\section*{Punctuation}
\begin{description}
\item[" ,]Czech opening quotes \hfill \quotedblbase
\item[" <]Czech closing quotes\\also English closing quotes \hfill ``
\item[" >]English closing quotes \hfill ''
\item[\keys{space + space}]Non-breaking space
\item[- - \keys{space}]Soft hyphen (in-word break) \hfill -
\item[- - -]em dash \hfill
\item[- - .]en dash \hfill --
\item[< -]Left arrow \hfill $\leftarrow$
\item[- >]Right arrow \hfill $\rightarrow$
\item[< <]Left guillemet \hfill \guillemotleft
\item[> >]Right guillemet \hfill \guillemotright
\item[. <]Left single guillemet \hfill \guilsinglleft
\item[. >]Right single guillemet \hfill \guilsinglright
\item[o o]Degree sign \hfill \textdegree
\item[P !]Pilcrow \hfill \textparagraph
\item[< 3]Solid heart \hfill $\varheartsuit$ % txfonts
\item[: )]Smiling face \hfill \smiley % wasysym
\item[: (]Frowning face \hfill \frownie % wasysym
\item[\^{} .]Middle dot \hfill $\cdot$
\item[. =]Bullet \hfill \textbullet
\end{description}
\section*{Currency}
\begin{description}
\item[e =]Euro \hfill \eurologo % fourier
\item[l -]Pound sterling \hfill \pounds
\item[L -]Pound sterling \hfill \pounds
\item[c /]Cent \hfill \textcent
\end{description}
\section*{Math}
\begin{description}
\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}
\begin{description}
\item[( c]Copyright \hfill \copyright
\item[( r]Registered \hfill \textregistered
\item[t m]Trademark \hfill \texttrademark
\end{description}
\section*{Music}
\begin{description}
\item[\# b]Flat sign \hfill $\flat$
\item[\# f]Natural sign \hfill $\natural$
\item[\# \#]Sharp sign \hfill $\sharp$
\end{description}
\section*{Accented Characters}
\begin{description}
\item[•]
\end{description}
\end{multicols*}
\end{document}