-
Notifications
You must be signed in to change notification settings - Fork 0
/
examplepages.tex
274 lines (231 loc) · 8.04 KB
/
examplepages.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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
\usepackage{filecontents}
\newcommand{\compit}[1]{\immediate\write18{pdflatex -synctex=1 -interaction=nonstopmode #1.tex; rm #1.aux #1.log #1.synctex.gz #1.tex; mv #1.pdf ./images/}}
\begin{filecontents*}{hiddenlayout.tex}
\documentclass[preview,border=12pt,12pt]{standalone}
\usepackage[a6paper,margin=1cm,showframe]{geometry}
\usepackage{lipsum}
\begin{document}
\section*{Minipage}
\noindent
\fbox{%
\begin{minipage}{.45\linewidth}
hats
\end{minipage}}
\hfill
\fbox{
\begin{minipage}{.45\linewidth}
Right Minipage
\end{minipage}}
\section*{Hello World}
{\tiny\lipsum[1]}
\end{document}
\end{filecontents*}
\compit{hiddenlayout}
\begin{filecontents*}{hiddensimplestdoc.tex}
\documentclass{article}
\usepackage{lipsum}
\title{The simplest}
\author{Wes Honeycutt}
\begin{document}
\maketitle
\lipsum[1]
\end{document}
\end{filecontents*}
\compit{hiddensimplestdoc}
\begin{filecontents*}{hiddentitlearticle.tex}
\documentclass{article}
\usepackage{lipsum}
\title{The Pitfalls of LaTeX}
\author{
Wesley T. Honeycutt
\thanks{University of Oklahoma Department of Biology}
\and Leon the Cat}
\subtitle{Stack Exchange was down and other horror stories}
\subject{A Joke Paper}
\begin{document}
\maketitle
\lipsum[1]
\end{document}
\end{filecontents*}
\compit{hiddentitlearticle}
\begin{filecontents*}{hiddentitlescrbook.tex}
\documentclass{scrbook}
\usepackage{lipsum}
\title{The Pitfalls of LaTeX}
\author{
Wesley T. Honeycutt
\thanks{University of Oklahoma Department of Biology}
\and Leon the Cat}
\subtitle{Stack Exchange was down and other horror stories}
\subject{A Joke Paper}
\begin{document}
\maketitle
\lipsum[1]
\end{document}
\end{filecontents*}
\compit{hiddentitlescrbook}
\begin{filecontents*}{hiddentitlereport.tex}
\documentclass{report}
\usepackage{lipsum}
\title{The Pitfalls of LaTeX}
\author{
Wesley T. Honeycutt
\thanks{University of Oklahoma Department of Biology}
\and Leon the Cat}
\subtitle{Stack Exchange was down and other horror stories}
\subject{A Joke Paper}
\begin{document}
\maketitle
\lipsum[1]
\end{document}
\end{filecontents*}
\compit{hiddentitlereport}
\begin{filecontents*}{hiddentitleelsarticle.tex}
\documentclass{elsarticle}
\usepackage{lipsum}
\title{The Pitfalls of LaTeX}
\author{
Wesley T. Honeycutt
\thanks{University of Oklahoma Department of Biology}
\and Leon the Cat}
\subtitle{Stack Exchange was down and other horror stories}
\subject{A Joke Paper}
\begin{document}
\maketitle
\lipsum[1]
\end{document}
\end{filecontents*}
\compit{hiddentitleelsarticle}
\begin{filecontents*}{hiddeninvoice.tex}
\documentclass{invoice}
\usepackage{draftwatermark}
\SetWatermarkText{DRAFT}
\SetWatermarkScale{5}
\usepackage[super]{nth}
\usepackage{setspace}
\usepackage{microtype}
\newcommand{\angstrom}{\textup{ \AA}}
\newcommand{\degree}{$^{\circ}$}
\def \tab {\hspace*{3ex}} % Define \tab to create some horizontal white space
\begin{document}
%----------------------------------------------------------------------------------------
% HEADING SECTION
%----------------------------------------------------------------------------------------
\hfil{\Huge\bf Wesley Honeycutt}\hfil % Company providing the invoice
\bigskip\break % Whitespace
\hrule % Horizontal line
111 Chesapeake St. \hfill (405) 555-5555 \\ % Your address and contact information
Norman, OK 73019
\hfill [email protected]
\\ \\
{\bf Invoice To:}
\begin{singlespace}
\tab Jimmy Gallogly \\ % Invoice recipient
\tab University of Oklahoma \\ % Recipient's company
\tab 660 Paddington Oval\\
\tab Norman, OK 73019
\end{singlespace}
{\bf Invoice Date:} \hfill {\bf Invoice Terms}\\
\tab \today \hfill Due on Receipt\\ % Invoice date
%----------------------------------------------------------------------------------------
% TABLE OF EXPENSES
%----------------------------------------------------------------------------------------
\begin{invoiceTable}
\feetype{Purchased Materials}
\feerow{Beard Growth Oil}{337.39}
\feetype{Consulting Services}
\hourrow{July \nth{9}, 2018}{1}{12}
\hourrow{July \nth{10}, 2018}{8}{34}
\hourrow{July \nth{11}, 2018}{3}{12}
\hourrow{July \nth{14}, 2018}{3}{34}
\hourrow{July \nth{15}, 2018}{3}{12}
\hourrow{July \nth{20}, 2018}{1}{34}
\hourrow{July \nth{21}, 2018}{2}{12}
\hourrow{July \nth{31}, 2018}{4}{34}
\end{invoiceTable}
%----------------------------------------------------------------------------------------
\end{document}
\end{filecontents*}
\compit{hiddeninvoice}
\begin{filecontents*}{hiddengeometry.tex}
\documentclass{article}
\usepackage{lipsum}
\usepackage[paperheight=5in,paperwidth=4in,margin=0.5in,heightrounded,showframe]{geometry}
\begin{document}
\lipsum[1]
\end{document}
\end{filecontents*}
\compit{hiddengeometry}
\begin{filecontents*}{hiddenleonitemize.tex}
\documentclass{article}
\usepackage[paperheight=2in,paperwidth=2in,margin=0in]{geometry}
\usepackage{graphicx}
\graphicspath{{images/}}
\newcommand*{\meow}{\includegraphics[width=1em]{leon.png}}
\begin{document}
\begin{itemize}
\item[\meow] My cat's name is Leon
\item[\meow] He is a handsome little man
\item[\meow] Also a jerk
\end{itemize}
\end{document}
\end{filecontents*}
\compit{hiddenleonitemize}
\begin{filecontents*}{hiddenmicrotype.tex}
\documentclass{article}
\usepackage{lipsum}
\usepackage{microtype}
\usepackage[paperheight=5in,paperwidth=4in,margin=0.5in,heightrounded,showframe]{geometry}
\begin{document}
\lipsum[1]
\end{document}
\end{filecontents*}
\compit{hiddenmicrotype}
\begin{filecontents*}{hiddentable.tex}
\documentclass{article}
\usepackage[table]{xcolor}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{graphicx}
\newcolumntype{C}{>{\centering\arraybackslash}p{1cm}}
\begin{document}
\rowcolors{2}{gray!40}{gray!40}
\renewcommand{\arraystretch}{1.1}
\setlength{\arrayrulewidth}{0.6pt}
\begin{tabular}{|C|>{\columncolor{gray!40}}C|*{5}{C|}}\hhline{*{7}{-}}
\multicolumn{2}{|c|}{\cellcolor{gray!40}}& \multicolumn{5}{c|}{\cellcolor{white}Group III} \\\hhline{~~*{5}{-}}
\multicolumn{2}{|c|}{III--V} & 5 & 13 & 31 & 69 & 81 \\
\multicolumn{2}{|c|}{Compounds} & B & Al & Ga & In & Tl \\\hhline{*{7}{-}}
\hiderowcolors
& 7 & BN & AlN & GaN & InN & TlN \\
& N & & & (3.4) & & \\\hhline{~*{6}{-}}
& 15 & BP & AlP & GaP & InP & TlP \\
& P & & (2.55) & (2.24) & (1.27) & \\\hhline{~*{6}{-}}
& 33 & BAs & AlAs & GaAs & InAs & TlAs \\
& As & & & (1.35) & & \\\hhline{~*{6}{-}}
& 51 & BSb & AlSb & GaSb & InSb & TlSb \\
& Sb & & & (9.67) & & \\\hhline{~*{6}{-}}
& 84 & BBi & AlBi & GaBi & InBi & TlBi \\
\multirow{-10}{*}{\rotatebox{90}{Group V}}
& Bi & & & & & \\\hhline{*{7}{-}}
\multicolumn{4}{|p{\dimexpr4cm+6\tabcolsep+3\arrayrulewidth\relax}|}{\cellcolor{gray!40} Atomic number in black above element} &
\multicolumn{3}{p{\dimexpr3cm+4\tabcolsep+2\arrayrulewidth\relax}|}{\cellcolor{gray!40} Energy band gap (eV) of some of the selected elements within bracket}\\\hhline{*{7}{-}}
\end{tabular}
\end{document}
\end{filecontents*}
\compit{hiddentable}
\begin{filecontents*}{hiddencitations.tex}
\documentclass{article}
\usepackage[paperheight=3in,paperwidth=3in,margin=0in]{geometry}
\begin{document}
Not only does the illustrious Dr. Honeycutt have a PhD in chemistry~\cite{dissertation}, but he likes to give technical talks~\cite{talk2014, talk2015}. Other people even like giving presentations on his work~\cite{jacob2016}!
\pagebreak
\bibliographystyle{unsrt}
\bibliography{bib}
\end{document}
\end{filecontents*}
\immediate\write18{pdflatex hiddencitations.tex}
\immediate\write18{bibtex hiddencitations.aux}
\immediate\write18{pdflatex hiddencitations.tex}
\immediate\write18{pdflatex hiddencitations.tex}
\immediate\write18{rm hiddencitations.aux hiddencitations.log hiddencitations.tex; cp hiddencitations.pdf ./images/hiddencitations.pdf}