-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExample-Publication.tex
371 lines (331 loc) · 13.6 KB
/
Example-Publication.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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor}
%
\documentclass[
11pt,
letterpaper,
]{book}
\usepackage{amsmath,amssymb}
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
\usepackage{lmodern}
\ifPDFTeX\else
% xetex/luatex font selection
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
\KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\setcounter{secnumdepth}{5}
% Make \paragraph and \subparagraph free-standing
\ifx\paragraph\undefined\else
\let\oldparagraph\paragraph
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
\fi
\ifx\subparagraph\undefined\else
\let\oldsubparagraph\subparagraph
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
\fi
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}\usepackage{longtable,booktabs,array}
\usepackage{calc} % for calculating minipage widths
% Correct order of tables after \paragraph or \subparagraph
\usepackage{etoolbox}
\makeatletter
\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
\makeatother
% Allow footnotes in longtable head/foot
\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
\makesavenoteenv{longtable}
\usepackage{graphicx}
\makeatletter
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
\makeatother
% Scale images if necessary, so that they will not overflow the page
% margins by default, and it is still possible to overwrite the defaults
% using explicit options in \includegraphics[width, height, ...]{}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
% Set default figure placement to htbp
\makeatletter
\def\fps@figure{htbp}
\makeatother
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newlength{\csllabelwidth}
\setlength{\csllabelwidth}{3em}
\newlength{\cslentryspacingunit} % times entry-spacing
\setlength{\cslentryspacingunit}{\parskip}
\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
{% don't indent paragraphs
\setlength{\parindent}{0pt}
% turn on hanging indent if param 1 is 1
\ifodd #1
\let\oldpar\par
\def\par{\hangindent=\cslhangindent\oldpar}
\fi
% set entry spacing
\setlength{\parskip}{#2\cslentryspacingunit}
}%
{}
\usepackage{calc}
\newcommand{\CSLBlock}[1]{#1\hfill\break}
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
\usepackage{makeidx}
\makeindex
\makeatletter
\@ifpackageloaded{tcolorbox}{}{\usepackage[skins,breakable]{tcolorbox}}
\@ifpackageloaded{fontawesome5}{}{\usepackage{fontawesome5}}
\definecolor{quarto-callout-color}{HTML}{909090}
\definecolor{quarto-callout-note-color}{HTML}{0758E5}
\definecolor{quarto-callout-important-color}{HTML}{CC1914}
\definecolor{quarto-callout-warning-color}{HTML}{EB9113}
\definecolor{quarto-callout-tip-color}{HTML}{00A047}
\definecolor{quarto-callout-caution-color}{HTML}{FC5300}
\definecolor{quarto-callout-color-frame}{HTML}{acacac}
\definecolor{quarto-callout-note-color-frame}{HTML}{4582ec}
\definecolor{quarto-callout-important-color-frame}{HTML}{d9534f}
\definecolor{quarto-callout-warning-color-frame}{HTML}{f0ad4e}
\definecolor{quarto-callout-tip-color-frame}{HTML}{02b875}
\definecolor{quarto-callout-caution-color-frame}{HTML}{fd7e14}
\makeatother
\makeatletter
\makeatother
\makeatletter
\@ifpackageloaded{bookmark}{}{\usepackage{bookmark}}
\makeatother
\makeatletter
\@ifpackageloaded{caption}{}{\usepackage{caption}}
\AtBeginDocument{%
\ifdefined\contentsname
\renewcommand*\contentsname{Table of contents}
\else
\newcommand\contentsname{Table of contents}
\fi
\ifdefined\listfigurename
\renewcommand*\listfigurename{List of Figures}
\else
\newcommand\listfigurename{List of Figures}
\fi
\ifdefined\listtablename
\renewcommand*\listtablename{List of Tables}
\else
\newcommand\listtablename{List of Tables}
\fi
\ifdefined\figurename
\renewcommand*\figurename{Figure}
\else
\newcommand\figurename{Figure}
\fi
\ifdefined\tablename
\renewcommand*\tablename{Table}
\else
\newcommand\tablename{Table}
\fi
}
\@ifpackageloaded{float}{}{\usepackage{float}}
\floatstyle{ruled}
\@ifundefined{c@chapter}{\newfloat{codelisting}{h}{lop}}{\newfloat{codelisting}{h}{lop}[chapter]}
\floatname{codelisting}{Listing}
\newcommand*\listoflistings{\listof{codelisting}{List of Listings}}
\makeatother
\makeatletter
\@ifpackageloaded{caption}{}{\usepackage{caption}}
\@ifpackageloaded{subcaption}{}{\usepackage{subcaption}}
\makeatother
\makeatletter
\@ifpackageloaded{tcolorbox}{}{\usepackage[skins,breakable]{tcolorbox}}
\makeatother
\makeatletter
\@ifundefined{shadecolor}{\definecolor{shadecolor}{rgb}{.97, .97, .97}}
\makeatother
\makeatletter
\makeatother
\makeatletter
\makeatother
\ifLuaTeX
\usepackage{selnolig} % disable illegal ligatures
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
\hypersetup{
pdftitle={Example Publication},
pdfauthor={Adam Mazel},
colorlinks=true,
linkcolor={cyan},
filecolor={Maroon},
citecolor={Blue},
urlcolor={Blue},
pdfcreator={LaTeX via pandoc}}
\title{Example Publication}
\usepackage{etoolbox}
\makeatletter
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
\apptocmd{\@title}{\par {\large #1 \par}}{}{}
}
\makeatother
\subtitle{of the IUB Libraries Scholarly Communication Department
Publishing Service}
\author{Adam Mazel}
\date{2023-April-21}
\begin{document}
\frontmatter
\maketitle
\ifdefined\Shaded\renewenvironment{Shaded}{\begin{tcolorbox}[boxrule=0pt, interior hidden, frame hidden, borderline west={3pt}{0pt}{shadecolor}, enhanced, breakable, sharp corners]}{\end{tcolorbox}}\fi
\renewcommand*\contentsname{Contents}
{
\hypersetup{linkcolor=}
\setcounter{tocdepth}{2}
\tableofcontents
}
\listoffigures
\listoftables
\mainmatter
\bookmarksetup{startatroot}
\hypertarget{welcome}{%
\chapter*{Welcome}\label{welcome}}
\addcontentsline{toc}{chapter}{Welcome}
\markboth{Welcome}{Welcome}
This HTML book is an example of publications by the IU Libraries'
Scholarly Communications Department Non-Traditional Literature
Publishing Service.
If you want to pubish non-traditional literature via our service, please
contact \href{https://libraries.indiana.edu/adam-mazel}{Adam Mazel,
Digital Publishing Librarian} at
\href{mailto:amazel@iu.edu}{\nolinkurl{amazel@iu.edu}}.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Maecenas pharetra
convallis posuere morbi leo. Sed lectus vestibulum mattis ullamcorper
velit sed ullamcorper. Commodo sed egestas egestas fringilla phasellus
faucibus scelerisque eleifend. Nunc id cursus metus aliquam. Laoreet non
curabitur gravida arcu ac tortor. Id donec ultrices tincidunt arcu non
sodales. Sollicitudin aliquam ultrices sagittis orci. Amet luctus
venenatis lectus magna fringilla urna porttitor. Aenean sed adipiscing
diam donec. Eget mauris pharetra et ultrices neque ornare aenean. Sapien
nec sagittis aliquam malesuada bibendum arcu vitae elementum.
Lectus quam id leo in vitae. Ipsum a arcu cursus vitae congue mauris.
Dolor sed viverra ipsum nunc aliquet bibendum enim facilisis. Aliquam ut
porttitor leo a diam sollicitudin. Egestas dui id ornare arcu odio ut
sem nulla. Cursus in hac habitasse platea. Nulla aliquet enim tortor at
auctor urna nunc id cursus. Feugiat pretium nibh ipsum consequat nisl
vel. Faucibus vitae aliquet nec ullamcorper sit amet risus nullam eget.
Viverra tellus in hac habitasse. Tristique senectus et netus et. Vel
pretium lectus quam id leo. Luctus accumsan tortor posuere ac ut
consequat. Habitant morbi tristique senectus et netus et. Volutpat
blandit aliquam etiam erat velit scelerisque in. Enim ut sem viverra
aliquet eget sit amet tellus cras.
\bookmarksetup{startatroot}
\hypertarget{sec-intro}{%
\chapter{Introduction}\label{sec-intro}}
\hypertarget{part-i}{%
\section{Part I}\label{part-i}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Lectus quam id leo
in vitae turpis massa. Aliquet nec ullamcorper sit amet risus nullam
eget felis eget. Integer enim neque volutpat ac tincidunt vitae semper.
Gravida arcu ac tortor dignissim convallis aenean et tortor. Sed
vulputate odio ut enim blandit volutpat maecenas volutpat blandit. Nec
feugiat nisl pretium fusce id velit ut tortor pretium. Nibh tellus
molestie nunc non blandit massa. Faucibus vitae aliquet nec ullamcorper.
Massa sapien faucibus et molestie ac feugiat sed. Dictum varius duis at
consectetur lorem. Quisque id diam vel quam elementum pulvinar. Velit
aliquet sagittis id consectetur purus. Orci eu lobortis elementum nibh
tellus molestie nunc non. Nisi scelerisque eu ultrices vitae. Vitae
ultricies leo integer malesuada nunc vel risus. In ante metus dictum at
tempor. Duis ut diam quam nulla porttitor massa id.
Nisl vel pretium lectus quam id leo. Elit eget gravida cum sociis
natoque penatibus. Fringilla est ullamcorper eget nulla facilisi etiam
dignissim. Dolor magna eget est lorem ipsum dolor sit. Etiam erat velit
scelerisque in dictum. Risus feugiat in ante metus. Eget arcu dictum
varius duis at consectetur lorem donec massa. Nisl nunc mi ipsum
faucibus vitae aliquet nec. Urna et pharetra pharetra massa massa
ultricies mi quis. Placerat duis ultricies lacus sed. Id interdum velit
laoreet id donec ultrices tincidunt arcu. Platea dictumst vestibulum
rhoncus est pellentesque elit. Vitae sapien pellentesque habitant morbi
tristique. Venenatis cras sed felis eget velit aliquet sagittis id
consectetur. Aliquet sagittis id consectetur purus ut faucibus pulvinar.
Aliquam eleifend mi in nulla. Nec nam aliquam sem et. Posuere ac ut
consequat semper.
\begin{figure}
{\centering \includegraphics{images/night-sky.jpg}
}
\caption{\label{fig-example-1}Example Figure Caption (see
Chapter~\ref{sec-intro} for more detail).}
\end{figure}
\begin{tcolorbox}[enhanced jigsaw, opacitybacktitle=0.6, titlerule=0mm, coltitle=black, colframe=quarto-callout-note-color-frame, colbacktitle=quarto-callout-note-color!10!white, colback=white, bottomrule=.15mm, toptitle=1mm, opacityback=0, breakable, left=2mm, toprule=.15mm, bottomtitle=1mm, leftrule=.75mm, rightrule=.15mm, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Box 1: Lorem Ipsum}, arc=.35mm]
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Lectus quam id leo
in vitae turpis massa. Aliquet nec ullamcorper sit amet risus nullam
eget felis eget. Integer enim neque volutpat ac tincidunt vitae semper.
Gravida arcu ac tortor dignissim convallis aenean et tortor. Sed
vulputate odio ut enim blandit volutpat maecenas volutpat blandit. Nec
feugiat nisl pretium fusce id velit ut tortor pretium. Nibh tellus
molestie nunc non blandit massa. Faucibus vitae aliquet nec ullamcorper.
Massa sapien faucibus et molestie ac feugiat sed. Dictum varius duis at
consectetur lorem. Quisque id diam vel quam elementum pulvinar. Velit
aliquet sagittis id consectetur purus. Orci eu lobortis elementum nibh
tellus molestie nunc non. Nisi scelerisque eu ultrices vitae. Vitae
ultricies leo integer malesuada nunc vel risus. In ante metus dictum at
tempor. Duis ut diam quam nulla porttitor massa id.
Nisl vel pretium lectus quam id leo. Elit eget gravida cum sociis
natoque penatibus. Fringilla est ullamcorper eget nulla facilisi etiam
dignissim. Dolor magna eget est lorem ipsum dolor sit. Etiam erat velit
scelerisque in dictum. Risus feugiat in ante metus. Eget arcu dictum
varius duis at consectetur lorem donec massa. Nisl nunc mi ipsum
faucibus vitae aliquet nec. Urna et pharetra pharetra massa massa
ultricies mi quis. Placerat duis ultricies lacus sed. Id interdum velit
laoreet id donec ultrices tincidunt arcu. Platea dictumst vestibulum
rhoncus est pellentesque elit. Vitae sapien pellentesque habitant morbi
tristique. Venenatis cras sed felis eget velit aliquet sagittis id
consectetur. Aliquet sagittis id consectetur purus ut faucibus pulvinar.
Aliquam eleifend mi in nulla. Nec nam aliquam sem et. Posuere ac ut
consequat semper.
\end{tcolorbox}
\bookmarksetup{startatroot}
\hypertarget{summary}{%
\chapter{Summary}\label{summary}}
In summary, this book has no content whatsoever.
\bookmarksetup{startatroot}
\hypertarget{references}{%
\chapter*{References}\label{references}}
\addcontentsline{toc}{chapter}{References}
\markboth{References}{References}
\hypertarget{refs}{}
\begin{CSLReferences}{0}{0}
\end{CSLReferences}
\cleardoublepage
\phantomsection
\addcontentsline{toc}{part}{Appendices}
\appendix
\hypertarget{appendix}{%
\chapter{Appendix}\label{appendix}}
\backmatter
\printindex
\end{document}