Initial commit (version 0.1.0)

This commit is contained in:
Kenneth John Odle 2023-12-16 09:17:00 -05:00
commit 3d5786566d
3 changed files with 166 additions and 0 deletions

16
.gitignore vendored Normal file
View File

@ -0,0 +1,16 @@
Covers
*bklt*
*.aux
*.log
*.out
*.synctex.gz
*.toc
*.dvi
*.odt
metric*
*.mx1
*.abc
*.bak
*wc*
*pdf*
*build*

1
README.md Normal file
View File

@ -0,0 +1 @@
A Linux cheat sheet in LaTeX.

149
compose-key-cheat-sheet.tex Normal file
View File

@ -0,0 +1,149 @@
\documentclass[9pt, letter, landscape]{extarticle}
\usepackage{extsizes}
\usepackage[
margin=0.5in,
top=2cm,
bottom=2cm
]{geometry}
\usepackage{lmodern}
\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
\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={\bfseries\ttfamily},
itemsep=3pt,
parsep=0pt,
leftmargin=12mm
}
\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.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}{1cm}
\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}
;
}
% 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*{Money}
\begin{description}
\item[e =]Euro \hfill \eurologo % fourier
\end{description}
\section*{Math}
\begin{description}
\item[•]
\end{description}
\section*{Publishing}
\begin{description}
\item[•]
\end{description}
\section*{Music}
\begin{description}
\item[•]
\end{description}
\section*{Accented Characters}
\begin{description}
\item[•]
\end{description}
\end{multicols*}
\end{document}