Advertisement
max2201111

Untitled

Oct 5th, 2023
1,965
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 14.44 KB | Software | 0 0
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. % kaobook
  3. % LaTeX Template
  4. % Version 1.3 (December 9, 2021)
  5. %
  6. % This template originates from:
  7. % https://www.LaTeXTemplates.com
  8. %
  9. % For the latest template development version and to make contributions:
  10. % https://github.com/fmarotta/kaobook
  11. %
  12. % Authors:
  13. % Federico Marotta (federicomarotta@mail.com)
  14. % Based on the doctoral thesis of Ken Arroyo Ohori (https://3d.bk.tudelft.nl/ken/en)
  15. % and on the Tufte-LaTeX class.
  16. % Modified for LaTeX Templates by Vel (vel@latextemplates.com)
  17. %
  18. % License:
  19. % CC0 1.0 Universal (see included MANIFEST.md file)
  20. %
  21. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  22.  
  23. %----------------------------------------------------------------------------------------
  24. %   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
  25. %----------------------------------------------------------------------------------------
  26.  
  27. \documentclass[
  28.     a4paper, % Page size
  29.     fontsize=10pt, % Base font size
  30.     twoside=true,
  31. verbose,hypertexnames=false, parskip=off, % Use different layouts for even and odd pages (in particular, if twoside=true, the margin column will be always on the outside)
  32.     %open=any, % If twoside=true, uncomment this to force new chapters to start on any page, not only on right (odd) pages
  33.     %chapterentrydots=true, % Uncomment to output dots from the chapter name to the page number in the table of contents
  34.     numbers=noenddot, % Comment to output dots after chapter numbers; the most common values for this option are: enddot, noenddot and auto (see the KOMAScript documentation for an in-depth explanation)
  35. ]{kaobook}
  36.  
  37.  
  38.  
  39.  
  40. \let\providelength\relax
  41. \usepackage{dialogue}
  42.  
  43. \usepackage{amsmath}
  44. \usepackage{amsfonts}
  45. \usepackage{amssymb}
  46. \usepackage{amsthm}
  47.  
  48. %\usepackage{amsrefs}
  49.  
  50.  
  51.  
  52. %\usepackage{biblatex}
  53.  
  54.  
  55. % Choose the language
  56. \ifxetexorluatex
  57.     \let\providelength\relax
  58.     \usepackage{polyglossia}
  59.     \setmainlanguage{english}
  60. \else
  61.    \let\providelength\relax
  62.     \usepackage[english]{babel} % Load characters and hyphenation
  63. \fi
  64. \usepackage[english=british]{csquotes}  % English quotes
  65.  
  66.  
  67.  
  68. %\documentclass{book}
  69.  
  70.  
  71.  
  72. \usepackage{amsmath,amssymb}
  73. \usepackage{mathrsfs}
  74.  
  75. \usepackage{imakeidx}
  76. \usepackage{hyperref,lipsum}
  77.  
  78. \makeindex
  79.  
  80.  
  81. %%\theoremstyle{plain}
  82. \newtheorem{thm}{Theorem}
  83. \newtheorem{coro}[thm]{Corollary}  %Corollaries are numbered with theorems
  84. \newtheorem{lemmaJ}[thm]{Lemma}
  85. \newtheorem{question}[thm]{Question}
  86. \newtheorem{conjecture}[thm]{Conjecture}
  87.  
  88. %%\theoremstyle{definition}
  89. \newtheorem*{defn}{Definition}      %Definitions are not numbered.
  90.  
  91. \newcommand{\nat}{\mathbb N}  %this defines \nat as an abbreviation for \mathbb N
  92. \newcommand{\rca}{{\mathsf {RCA}}_0}
  93. \newcommand{\aca}{{\mathsf {ACA}}_0}
  94. \newcommand{\wkl}{{\mathsf {WKL}}_0}
  95.  
  96.  
  97.  
  98.  
  99. \usepackage{enumitem}
  100. \usepackage{etoolbox}
  101. \usepackage{indentfirst}
  102.  
  103.  % include the chapter number
  104.  \setlist[enumerate]{label=\thechapter.\arabic{*},resume}
  105.  
  106.  % restart the enumerate list every chapter
  107.  \preto\chapter{%
  108.    \restartlist{enumerate}%
  109. }
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124. % Load packages for testing
  125. \usepackage{blindtext}
  126. %\usepackage{showframe} % Uncomment to show boxes around the text area, margin, header and footer
  127. %\usepackage{showlabels} % Uncomment to output the content of \label commands to the document where they are used
  128.  
  129. % Load the bibliography package
  130.  
  131. \usepackage{kaobiblio}
  132. %%%\addbibresource{main.bib} % Bibliography file
  133.  
  134. \addbibresource{References.bib}
  135.  
  136. % Load mathematical packages for theorems and related environments
  137. \usepackage[framed=true]{kaotheorems}
  138.  
  139. % Load the package for hyperreferences
  140.  
  141. \usepackage{kaorefs}
  142.  
  143. \graphicspath{{examples/documentation/images/}{images/}} % Paths in which to look for images
  144.  
  145. \makeindex[columns=3, title=Alphabetical Index, intoc] % Make LaTeX produce the files required to compile the index
  146.  
  147. \makeglossaries % Make LaTeX produce the files required to compile the glossary
  148. \input{glossary.tex} % Include the glossary definitions
  149.  
  150. \makenomenclature % Make LaTeX produce the files required to compile the nomenclature
  151.  
  152. % Reset sidenote counter at chapters
  153. %\counterwithin*{sidenote}{chapter}
  154.  
  155. %----------------------------------------------------------------------------------------
  156.  
  157. %%\usepackage{amsmath,amsfonts,amssymb,amsthm,amsrefs}
  158.  
  159.  
  160.  
  161. \usepackage{indentfirst}
  162.  
  163. \addtokomafont{date}{\includegraphics[width=6cm]{gfx/TFZsuperellipse_bw}\endgraf}
  164.  
  165.  
  166. \usepackage[Lenny]{fncychap}
  167.  
  168.  
  169. \begin{document}
  170.  
  171. %----------------------------------------------------------------------------------------
  172. %   BOOK INFORMATION
  173. %----------------------------------------------------------------------------------------
  174.  \setlist[enumerate]{label=\thechapter.\arabic{*},resume}
  175.  
  176. %\titlehead{The \texttt{proper} class}
  177. \subject{}
  178.  
  179. %\hyperref[here]{CLICK HERE} (go to anchor x)
  180.  
  181. \newcommand{\N}{$\mathbb{N}$}
  182.  
  183. \title[Example and documentation of the {\normalfont\texttt{kaobook}} class]{On subsystems of {\normalfont\texttt{Second Order Arithemtic}} }
  184. \subtitle{Reverse Mathematics of Irrational Numbers}
  185.  
  186. \author[Y]{Hynek Mlčoušek\thanks{A \LaTeX\ lover}}
  187.  
  188.  
  189.  
  190.  
  191. \date{\today}
  192.  
  193. \publishers{A thesis submitted in partial fulfillment for the
  194. degree of Doctor of Philosophy}
  195.  
  196. %----------------------------------------------------------------------------------------
  197.  
  198. \frontmatter % Denotes the start of the pre-document content, uses roman numerals
  199.  
  200. %----------------------------------------------------------------------------------------
  201. %   OPENING PAGE
  202. %----------------------------------------------------------------------------------------
  203.  
  204. %\makeatletter
  205. %\extratitle{
  206. %   % In the title page, the title is vspaced by 9.5\baselineskip
  207. %   \vspace*{9\baselineskip}
  208. %   \vspace*{\parskip}
  209. %   \begin{center}
  210. %       % In the title page, \huge is set after the komafont for title
  211. %       \usekomafont{title}\huge\@title
  212. %   \end{center}
  213. %}
  214. %\makeatother
  215.  
  216. %----------------------------------------------------------------------------------------
  217. %   COPYRIGHT PAGE
  218. %----------------------------------------------------------------------------------------
  219.  
  220. \makeatletter
  221. \uppertitleback{\@titlehead} % Header
  222.  
  223. \lowertitleback{
  224.     \textbf{Disclaimer}\\
  225. %   You can edit this page to suit your needs. For instance, here we have a no copyright statement, a colophon and some other information.
  226.  
  227. This page is based on the corresponding page of Ken Arroyo Ohori's thesis, with minimal changes.
  228.    
  229.     \medskip
  230.    
  231.     \textbf{No copyright}\\
  232.     \cczero\ This book is released into the public without any Copyright. To the extent possible under law, I waive all copyright and related or neighbouring rights to this work.
  233.    
  234. %   To view a copy of the CC0 code, visit: \\\url{http://creativecommons.org/publicdomain/zero/1.0/}
  235.    
  236. %   \medskip
  237.    
  238.     \textbf{Colophon} \\
  239.     This document was typeset with the help of \href{https://sourceforge.net/projects/koma-script/}{\KOMAScript} and \href{https://www.latex-project.org/}{\LaTeX} using the \href{https://github.com/fmarotta/kaobook/}{kaobook} class.
  240.    
  241.     The source code of this book is available at:\\\url{https://github.com/fmarotta/kaobook}
  242.    
  243. 1   \textbf{Publisher} \\
  244.     First printed in May 2023 by \@publishers
  245. }
  246. \makeatother
  247.  
  248. %----------------------------------------------------------------------------------------
  249. %   DEDICATION
  250. %----------------------------------------------------------------------------------------
  251.  
  252. \dedication{
  253. %   The harmony of the world is made manifest in Form and Number, and the heart and soul and all the poetry of Natural Philosophy are embodied in the concept of mathematical beauty.\\
  254. %   \flushright -- D'Arcy Wentworth Thompson\\
  255. %\medskip
  256. %\medskip
  257. A mathematician is a blind man in a dark room looking for a black cat which isn't there.\\
  258.     \flushright -- Charles Robert Darwin\\
  259. \medskip
  260. %\medskip
  261. %Biologists think they are biochemists,\\
  262. %Biochemists think they are Physical Chemists,\\
  263. %Physical Chemists think they are Physicists,\\
  264. %Physicists think they are Gods,\\
  265. %And God thinks he is a Mathematician. \\
  266. %\flushright --
  267.  
  268.  
  269.  
  270.  
  271. }
  272.  
  273. %----------------------------------------------------------------------------------------
  274. %   OUTPUT TITLE PAGE AND PREVIOUS
  275. %----------------------------------------------------------------------------------------
  276.  
  277. % Note that \maketitle outputs the pages before here
  278.  
  279. \maketitle
  280.  
  281. %----------------------------------------------------------------------------------------
  282. %   PREFACE
  283. %----------------------------------------------------------------------------------------
  284.  
  285. %%Someone have found a simple solution  \cite{Gill}.
  286. %%\printbibliography
  287.  
  288. %%\input{chapters/preface.tex}
  289. \index{preface}
  290.  
  291.  
  292.  
  293.  
  294. %----------------------------------------------------------------------------------------
  295. %   TABLE OF CONTENTS & LIST OF FIGURES/TABLES
  296. %----------------------------------------------------------------------------------------
  297.  
  298. \begingroup % Local scope for the following commands
  299.  
  300. % Define the style for the TOC, LOF, and LOT
  301. %\setstretch{1} % Uncomment to modify line spacing in the ToC
  302. %\hypersetup{linkcolor=blue} % Uncomment to set the colour of links in the ToC
  303. \setlength{\textheight}{230\hscale} % Manually adjust the height of the ToC pages
  304.  
  305. % Turn on compatibility mode for the etoc package
  306. \etocstandarddisplaystyle % "toc display" as if etoc was not loaded
  307. \etocstandardlines % "toc lines" as if etoc was not loaded
  308.  
  309. \tableofcontents % Output the table of contents
  310.  
  311. %%%\listoffigures % Output the list of figures
  312.  
  313. % Comment both of the following lines to have the LOF and the LOT on different pages
  314. \let\cleardoublepage\bigskip
  315. \let\clearpage\bigskip
  316.  
  317. %%%\listoftables % Output the list of tables
  318.  
  319. \endgroup
  320.  
  321. %----------------------------------------------------------------------------------------
  322. %   MAIN BODY
  323. %----------------------------------------------------------------------------------------
  324.  
  325. \mainmatter % Denotes the start of the main document content, resets page numbering and uses arabic numbers
  326.  
  327. %%\setchapterstyle{kao} % Choose the default chapter heading style
  328.  
  329. %\include{hirstA.tex}
  330. \include{selectors.tex}
  331.  
  332.  
  333. \iffalse
  334. \pagelayout{wide} % No margins
  335. \addpart{Design and Additional Features}
  336. \pagelayout{margin} % Restore margins
  337.  
  338. \fi
  339.  
  340. \appendix % From here onwards, chapters are numbered with letters, as is the appendix convention
  341.  
  342. \pagelayout{narrow} % No margins
  343. \addpart{Appendix}
  344. \pagelayout{margin} % Restore margins
  345.  
  346.  \include{appendix.tex}
  347.  
  348. % \include{lane.tex}
  349.  
  350. \cite{simpson2}
  351.  
  352. %----------------------------------------------------------------------------------------
  353.  
  354. \backmatter % Denotes the end of the main document content
  355. \setchapterstyle{plain} % Output plain chapters from this point onwards
  356.  
  357. %----------------------------------------------------------------------------------------
  358. %   BIBLIOGRAPHY
  359. %----------------------------------------------------------------------------------------
  360.  
  361. % The bibliography needs to be compiled with biber using your LaTeX editor, or on the command line with 'biber main' from the template directory
  362.  
  363. \defbibnote{bibnote}{Here are the references in citation order.\par\bigskip} % Prepend this text to the bibliography
  364. \printbibliography[heading=bibintoc, title=Bibliography, prenote=bibnote] % Add the bibliography heading to the ToC, set the title of the bibliography and output the bibliography note
  365.  
  366. %----------------------------------------------------------------------------------------
  367. %   NOMENCLATURE
  368. %----------------------------------------------------------------------------------------
  369.  
  370. % The nomenclature needs to be compiled on the command line with 'makeindex main.nlo -s nomencl.ist -o main.nls' from the template directory
  371.  
  372. \nomenclature{$c$}{Speed of light in a vacuum inertial frame}
  373. \nomenclature{$h$}{Planck constant}
  374.  
  375. \renewcommand{\nomname}{Notation} % Rename the default 'Nomenclature'
  376. \renewcommand{\nompreamble}{The next list describes several symbols that will be later used within the body of the document.} % Prepend this text to the nomenclature
  377.  
  378. \printnomenclature % Output the nomenclature
  379.  
  380. %----------------------------------------------------------------------------------------
  381. %   GREEK ALPHABET
  382. %   Originally from https://gitlab.com/jim.hefferon/linear-algebra
  383. %----------------------------------------------------------------------------------------
  384.  
  385. \vspace{1cm}
  386.  
  387.  
  388. %----------------------------------------------------------------------------------------
  389. %   GLOSSARY
  390. %----------------------------------------------------------------------------------------
  391.  
  392. % The glossary needs to be compiled on the command line with 'makeglossaries main' from the template directory
  393.  
  394. \setglossarystyle{listgroup} % Set the style of the glossary (see https://en.wikibooks.org/wiki/LaTeX/Glossary for a reference)
  395. \printglossary[title=Special Terms, toctitle=List of Terms] % Output the glossary, 'title' is the chapter heading for the glossary, toctitle is the table of contents heading
  396.  
  397. %----------------------------------------------------------------------------------------
  398. %   INDEX
  399. %----------------------------------------------------------------------------------------
  400.  
  401. % The index needs to be compiled on the command line with 'makeindex main' from the template directory
  402.  
  403.  
  404.  
  405.  
  406.  
  407. \printindex % Output the index
  408.  
  409. %----------------------------------------------------------------------------------------
  410. %   BACK COVER
  411. %----------------------------------------------------------------------------------------
  412.  
  413. % If you have a PDF/image file that you want to use as a back cover, uncomment the following lines
  414.  
  415. %\clearpage
  416. %\thispagestyle{empty}
  417. %\null%
  418. %\clearpage
  419. %\includepdf{cover-back.pdf}
  420.  
  421. %----------------------------------------------------------------------------------------
  422.  
  423. %%%%%%%%%%% Example 1%%%%%%%%%%%%%%%%%%%%%%%%%%
  424. %\begin{thebibliography}{100} % 100 is a random guess of the total number of
  425. %references
  426.  
  427. %%\bibliographystyle{plain}
  428. %\bibliography{mybib}
  429.  
  430.  
  431. %%\begin{thebibliography}{999}
  432.  
  433.  
  434. %\end{thebibliography}
  435. %%%%%%%%%%%%% end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  436.  
  437. %%Someone have found a simple solution  \parencite{Gill}.
  438.  
  439.  
  440. %\begin{bibsection}[Bibliography]
  441.  
  442. %%\begin{biblist}
  443.  
  444.  
  445.  
  446. %%\end{biblist}
  447. %\end{bibsection}
  448.  
  449.  
  450.  
  451. %%Use the styles exemplified by \cite{HB98}, \cite{CA}, \cite{MSW00} and
  452. %%\cite{Rei91} below.  Order bibliography items alphabetically as shown.  The
  453. %%two-page limit includes the bibliography.
  454.  
  455. %%%\footnotesize
  456.  
  457.  
  458. %Someone have found a simple solution  \citep[see page 47]{Gill}.
  459.  
  460.  
  461. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement