aboutsummaryrefslogtreecommitdiff
path: root/cheatsheet.cls
blob: abdaa4302733c6c0a094e864dca57b1b00f27b9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{cheatsheet}%
    [2018/11/07 v1.0 Clean RTS Cheat Sheets]

\LoadClass{article}

\RequirePackage[a6paper,margin=8mm,top=5mm,bottom=5mm]{geometry}
\RequirePackage{xcolor}
\RequirePackage[hidelinks]{hyperref}

\pagestyle{empty}

\setlength\fboxrule{.5pt}
\setlength\fboxsep{0pt}
\renewcommand{\arraystretch}{1.2}
\setlength{\tabcolsep}{.5em}
\parindent0pt
\centering

\newcommand{\cheatsheettitle}[2][]{%
	\begin{center}
		\textbf{Clean RTS Cheat Sheet, \ifx#1\empty\else#1 \fi#2}
	\end{center}}

\AtEndDocument{%
	\par\bigskip
	\scriptsize
	\url{https://gitlab.science.ru.nl/cstaps/clean-rts-cheat-sheet}}

\def\CallingConventionHeader{Calling Convention}
\newif\iftabularwrapping
\tabularwrappingtrue

\long\def\cheatsheetbox#1{\fcolorbox{black}{white}{#1}}