-
Notifications
You must be signed in to change notification settings - Fork 0
/
picnic-tables.tex
178 lines (139 loc) · 4.8 KB
/
picnic-tables.tex
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
\documentclass[oneside,11pt]{memoir}
% Fonts
\usepackage[T1]{fontenc} % better output encoding
\usepackage{textcomp} % For ASCII diacritics
\usepackage{lmodern} % Latin Modern instad of CM
%\usepackage{inconsolata} % better monospaced font
\usepackage[defaultsans]{droidsans} % straight quotes
\usepackage{microtype} % fix the little things % comes after any fonts
\usepackage{multicol}
% basics
\usepackage[textwidth=0.75\paperwidth]{geometry} % Adjust margins
\usepackage{url} % makes urls look nicer
\usepackage[usenames,dvipsnames]{color} % adds colored text
\usepackage[font=footnotesize]{caption} % more control over figure captions
\usepackage{underscore} % better text underscores
\usepackage{tabularx} % more flexible tables
\usepackage[table,dvipsnames]{xcolor} % alternating table colors
\usepackage{todonotes} % backend organization. Also for some reason necessary for tikz
\usepackage{booktabs}
\usepackage{ltxtable}
\usepackage{array}
\usepackage{upquote}
\usepackage{tabu}
\usepackage[level]{datetime}
\usepackage{listings}
\usepackage{enumitem} % better description environment
%\shortdate
%\newdateformat{mydate}{%
% \monthname[\THEMONTH] \THEDAY, \THEYEAR}
% Lists
\usepackage[ampersand]{easylist} % Nicer syntax for creating lists
\usepackage{paralist} % Allows inline lists %
% For citations using Bibtex
\usepackage{natbib}
% Hyperref
% allows hyperlinking % NEEDS TO BE LOADED LAST
\usepackage[linkcolor=magenta,colorlinks=true,
% draft,
breaklinks=true]{hyperref}
\newcommand{\sdmf}{\textsc{sdmf}}
\renewcommand{\thesection}{\arabic{section}}
%\renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}}
\setsecnumdepth{subsection}
\title{Makefile Documentation}
\date{\today}
\author{}
\usepackage{titletoc}
\titlecontents*{section} % Section
[0em] % Left
{\space} % Above code
{\thecontentslabel~} % Numbered format
{} % Numberless format
{} % Filler
[\hspace{1em}] % Separator
\makeatletter
\renewcommand*{\@tocmaketitle}{\noindent \textbf{\large Contents}}
\makeatother
\definecolor{lemon}{HTML}{F5ECCE}
\newcommand{\Today}{\usdate\today}
% \rewnewcommand{\arraystretch}{1.5}
\newcommand{\ExternalLink}{%
\tikz[x=1.2ex, y=1.2ex, baseline=-0.05ex]{%
\begin{scope}[x=1ex, y=1ex]
\clip (-0.1,-0.1)
--++ (-0, 1.2)
--++ (0.6, 0)
--++ (0, -0.6)
--++ (0.6, 0)
--++ (0, -1);
\path[draw,
line width = 0.5,
rounded corners=0.5]
(0,0) rectangle (1,1);
\end{scope}
\path[draw, line width = 0.5] (0.5, 0.5)
-- (1, 1);
\path[draw, line width = 0.5] (0.6, 1)
-- (1, 1) -- (1, 0.6);
}
}
\begin{document}
\input{descriptions.tex}
\begin{center}
\fbox{Note that the items are sorted uppercase, then lowercase:
[A-Za-z]}
\end{center}
\section{Targets}
\label{targets}
% \LTXtable{\textwidth}{targets.tex}
\tabulinesep=1.2mm
\rowcolors{2}{gray!25}{white}
\begin{longtabu} to \linewidth {>{\ttfamily}p{5.4cm} X }
\rowcolor{gray!50}
\textbf{Target} & \textbf{Description} \\
\input{targets.txt}
\end{longtabu}
\section{Variables}
\label{variables}
\textbf{Note}: Variables with an asterisk (``\texttt{*}'') are global
variables initialized with ``\texttt{export}.''
Read more about exporting variables in the GNU Make manual:
5.7.2 Communicating Variables to a Sub-\texttt{make}
\href{https://www.gnu.org/software/make/manual/html_node/%
Variables_002fRecursion.html}{\ExternalLink}.
% Symbol: https://tex.stackexchange.com/q/99316
\rowcolors{2}{gray!25}{white}
\begin{longtabu} to \linewidth {>{\ttfamily}p{5.4cm} X}
\rowcolor{gray!50}
\textbf{Variable} & \textbf{Definition \& Description} \\
\input{variables.txt}
\bottomrule
\end{longtabu}
\section{Intermediate Files}
\label{intermediates}
\begin{description}
\input{intermediates.txt}
\end{description}
\section{Functions}
\label{functions}
\begin{longtabu} to \linewidth {>{\ttfamily}p{5.4cm} X}
\rowcolor{gray!50}
\textbf{Variable} & \textbf{Description} \\
\input{functions.txt}
\bottomrule
\end{longtabu}
\newpage
\newgeometry{scale=0.85, centering}
\section{Makefiles}
\label{makefiles}
\lstset{language=make,
backgroundcolor=\color{lemon},
showstringspaces=false,
gobble=8,
basicstyle=\small\ttfamily,
breaklines=true,
escapeinside={\%*}{*},
upquote=true}
\input{makefiles.tex}
\end{document}