From 3d5786566d35f08b8062742e31ef9e96bc58cbe9 Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Sat, 16 Dec 2023 09:17:00 -0500 Subject: [PATCH] Initial commit (version 0.1.0) --- .gitignore | 16 ++++ README.md | 1 + compose-key-cheat-sheet.tex | 149 ++++++++++++++++++++++++++++++++++++ 3 files changed, 166 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 compose-key-cheat-sheet.tex diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f7822a1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +Covers +*bklt* +*.aux +*.log +*.out +*.synctex.gz +*.toc +*.dvi +*.odt +metric* +*.mx1 +*.abc +*.bak +*wc* +*pdf* +*build* diff --git a/README.md b/README.md new file mode 100644 index 0000000..d6225a0 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +A Linux cheat sheet in LaTeX. diff --git a/compose-key-cheat-sheet.tex b/compose-key-cheat-sheet.tex new file mode 100644 index 0000000..cb768dd --- /dev/null +++ b/compose-key-cheat-sheet.tex @@ -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} \ No newline at end of file