You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

184 lines
5.4 KiB

\documentclass[10pt, letter, landscape]{article}
\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{6pt}}{}
% Define a date the way we like it
\usepackage[en-AU]{datetime2}
\usepackage{enumitem}
\setlist[description]{
style=nextline,
font={\ttfamily},
itemsep=8pt,
parsep=2pt,
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 1.1.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}{12mm}
\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{fdsymbol} % automatically loads amsmath
\usepackage[nointegrals]{wasysym}
\usepackage{upgreek}
% See https://semver.org/ for versioning meaning
\begin{document}
\begin{multicols*}{4}
Some characters may render differently depending on the font used. On occasion, a box ($\Box$) may be used to indicate the position of the character. Most compose key combinations consist of two characters, but a few consist of three characters.
\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$ % fdsymbol
\item[: )]Smiling face \hfill \smiley % wasysym
\item[: (]Frowning face \hfill \frownie % wasysym
\item[\^{} .]Middle dot \hfill $\Box\cdot\Box$
\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*{Other Characters from Non-English Languages}
\begin{description}
\item[s s]Eszett/digraph s \hfill {\ss}
\item[o e]Ligatures (works with other combinations such as AE, oe, etc)\\ \hfill \oe
\item[m u]Greek \textit{mu} or `micro' symbol \\ \hfill $\upmu$ %upgreek
\end{description}
\section*{Accented Characters}
The following keys will work with all characters that can have that particular accent mark. The letter `a' is used as an example.
\begin{description}
\item[' a]Acute accent \hfill á
\item[` a]Grave accent \hfill à
\item[, c]Cedilla \hfill ç
\item[" a]Umlaut/diaersis \hfill ä
\item[\^{} a]Circumflex \hfill â
\item[$\tilde{}$ a]Tilde \hfill ã
\item[* a](ring above) \hfill å
\item[. a](dot above) \hfill $\dot{\mathrm{a}}$
\item[/ o](stroke/bar) \hfill ø
\item[c a]Caron \hfill ǎ
\item[< c]Caron \hfill č
\item[\_ a]Macron \hfill ā
\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}
\end{multicols*}
\end{document}