init
commit
9fe70b4438
|
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
// for the documentation about the tasks.json format
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Compile",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "cd SOURCE && ./compile.sh ../${workspaceFolderBasename}.pdf",
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Compile Verbose",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "cd SOURCE && ./compile_verbose.sh ../${workspaceFolderBasename}.pdf",
|
||||||
|
"problemMatcher": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
|
|
@ -0,0 +1,4 @@
|
||||||
|
delim_0 "\\dotfill\ "
|
||||||
|
delim_1 "\\dotfill\ "
|
||||||
|
headings_flag 1
|
||||||
|
heading_prefix "\\nopagebreak\n\\tikz\\node at (0pt,0pt) [draw=none,fill=ocre!50,line width=1pt,inner sep=5pt]{\\parbox{\\linewidth-2\\fboxsep-2\\fboxrule-2pt}{\\centering\\large\\sffamily\\bfseries\\textcolor{white}{" heading_suffix "}}};\\vspace*{0.2cm}\\nopagebreak\n"
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
@book{book_key,
|
||||||
|
address = {City},
|
||||||
|
publisher = {Publisher},
|
||||||
|
author = {Smith, John},
|
||||||
|
title = {Book title},
|
||||||
|
year = {2012},
|
||||||
|
volume = {3},
|
||||||
|
series = {2},
|
||||||
|
edition = {1},
|
||||||
|
pages = {123--200},
|
||||||
|
month = {January}
|
||||||
|
}
|
||||||
|
|
||||||
|
@article{article_key,
|
||||||
|
address = {City},
|
||||||
|
publisher = {Publisher},
|
||||||
|
author = {Smith, James},
|
||||||
|
title = {Article title},
|
||||||
|
year = {2013},
|
||||||
|
volume = {14},
|
||||||
|
number = {6},
|
||||||
|
pages = {1--8},
|
||||||
|
month = {March}
|
||||||
|
}
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
latexmk -silent -pdf ./main.tex && latexmk -silent -pdf -c && mv main.pdf $1
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
latexmk -pdf ./main.tex && latexmk -pdf -c && mv main.pdf $1
|
||||||
|
|
@ -0,0 +1,92 @@
|
||||||
|
% $ biblatex auxiliary file $
|
||||||
|
% $ biblatex bbl format version 3.1 $
|
||||||
|
% Do not modify the above lines!
|
||||||
|
%
|
||||||
|
% This is an auxiliary file used by the 'biblatex' package.
|
||||||
|
% This file may safely be deleted. It will be recreated by
|
||||||
|
% biber as required.
|
||||||
|
%
|
||||||
|
\begingroup
|
||||||
|
\makeatletter
|
||||||
|
\@ifundefined{ver@biblatex.sty}
|
||||||
|
{\@latex@error
|
||||||
|
{Missing 'biblatex' package}
|
||||||
|
{The bibliography requires the 'biblatex' package.}
|
||||||
|
\aftergroup\endinput}
|
||||||
|
{}
|
||||||
|
\endgroup
|
||||||
|
|
||||||
|
|
||||||
|
\refsection{0}
|
||||||
|
\datalist[entry]{nyt/global//global/global}
|
||||||
|
\entry{article_key}{article}{}
|
||||||
|
\name{author}{1}{}{%
|
||||||
|
{{hash=26a8b4a95216218b2dfc1460f6d4c494}{%
|
||||||
|
family={Smith},
|
||||||
|
familyi={S\bibinitperiod},
|
||||||
|
given={James},
|
||||||
|
giveni={J\bibinitperiod}}}%
|
||||||
|
}
|
||||||
|
\list{location}{1}{%
|
||||||
|
{City}%
|
||||||
|
}
|
||||||
|
\list{publisher}{1}{%
|
||||||
|
{Publisher}%
|
||||||
|
}
|
||||||
|
\strng{namehash}{26a8b4a95216218b2dfc1460f6d4c494}
|
||||||
|
\strng{fullhash}{26a8b4a95216218b2dfc1460f6d4c494}
|
||||||
|
\strng{bibnamehash}{26a8b4a95216218b2dfc1460f6d4c494}
|
||||||
|
\strng{authorbibnamehash}{26a8b4a95216218b2dfc1460f6d4c494}
|
||||||
|
\strng{authornamehash}{26a8b4a95216218b2dfc1460f6d4c494}
|
||||||
|
\strng{authorfullhash}{26a8b4a95216218b2dfc1460f6d4c494}
|
||||||
|
\field{extraname}{1}
|
||||||
|
\field{sortinit}{S}
|
||||||
|
\field{sortinithash}{b164b07b29984b41daf1e85279fbc5ab}
|
||||||
|
\field{labelnamesource}{author}
|
||||||
|
\field{labeltitlesource}{title}
|
||||||
|
\field{month}{3}
|
||||||
|
\field{number}{6}
|
||||||
|
\field{title}{Article title}
|
||||||
|
\field{volume}{14}
|
||||||
|
\field{year}{2013}
|
||||||
|
\field{pages}{1\bibrangedash 8}
|
||||||
|
\range{pages}{8}
|
||||||
|
\endentry
|
||||||
|
\entry{book_key}{book}{}
|
||||||
|
\name{author}{1}{}{%
|
||||||
|
{{hash=5d0ddda3a367ceb26fbaeca02e391c22}{%
|
||||||
|
family={Smith},
|
||||||
|
familyi={S\bibinitperiod},
|
||||||
|
given={John},
|
||||||
|
giveni={J\bibinitperiod}}}%
|
||||||
|
}
|
||||||
|
\list{location}{1}{%
|
||||||
|
{City}%
|
||||||
|
}
|
||||||
|
\list{publisher}{1}{%
|
||||||
|
{Publisher}%
|
||||||
|
}
|
||||||
|
\strng{namehash}{5d0ddda3a367ceb26fbaeca02e391c22}
|
||||||
|
\strng{fullhash}{5d0ddda3a367ceb26fbaeca02e391c22}
|
||||||
|
\strng{bibnamehash}{5d0ddda3a367ceb26fbaeca02e391c22}
|
||||||
|
\strng{authorbibnamehash}{5d0ddda3a367ceb26fbaeca02e391c22}
|
||||||
|
\strng{authornamehash}{5d0ddda3a367ceb26fbaeca02e391c22}
|
||||||
|
\strng{authorfullhash}{5d0ddda3a367ceb26fbaeca02e391c22}
|
||||||
|
\field{extraname}{2}
|
||||||
|
\field{sortinit}{S}
|
||||||
|
\field{sortinithash}{b164b07b29984b41daf1e85279fbc5ab}
|
||||||
|
\field{labelnamesource}{author}
|
||||||
|
\field{labeltitlesource}{title}
|
||||||
|
\field{edition}{1}
|
||||||
|
\field{month}{1}
|
||||||
|
\field{series}{2}
|
||||||
|
\field{title}{Book title}
|
||||||
|
\field{volume}{3}
|
||||||
|
\field{year}{2012}
|
||||||
|
\field{pages}{123\bibrangedash 200}
|
||||||
|
\range{pages}{78}
|
||||||
|
\endentry
|
||||||
|
\enddatalist
|
||||||
|
\endrefsection
|
||||||
|
\endinput
|
||||||
|
|
||||||
|
|
@ -0,0 +1,72 @@
|
||||||
|
\boolfalse {citerequest}\boolfalse {citetracker}\boolfalse {pagetracker}\boolfalse {backtracker}\relax
|
||||||
|
\babel@toc {english}{}
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {part}{\@mypartnumtocformat {I}{Part One}}{5}{part.1}%
|
||||||
|
\ttl@starttoc {default@1}
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {chapter}{\numberline {1}Text Chapter}{7}{chapter.1}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {1.1}Paragraphs of Text}{7}{section.1.1}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {1.2}Citation}{8}{section.1.2}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {1.3}Lists}{8}{section.1.3}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {subsection}{\numberline {1.3.1}Numbered List}{8}{subsection.1.3.1}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {subsection}{\numberline {1.3.2}Bullet Points}{8}{subsection.1.3.2}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {subsection}{\numberline {1.3.3}Descriptions and Definitions}{8}{subsection.1.3.3}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {chapter}{\numberline {2}In-text Elements}{9}{chapter.2}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {2.1}Theorems}{9}{section.2.1}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {subsection}{\numberline {2.1.1}Several equations}{9}{subsection.2.1.1}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {subsection}{\numberline {2.1.2}Single Line}{9}{subsection.2.1.2}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {2.2}Definitions}{9}{section.2.2}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {2.3}Notations}{10}{section.2.3}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {2.4}Remarks}{10}{section.2.4}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {2.5}Corollaries}{10}{section.2.5}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {2.6}Propositions}{10}{section.2.6}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {subsection}{\numberline {2.6.1}Several equations}{10}{subsection.2.6.1}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {subsection}{\numberline {2.6.2}Single Line}{10}{subsection.2.6.2}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {2.7}Examples}{10}{section.2.7}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {subsection}{\numberline {2.7.1}Equation and Text}{10}{subsection.2.7.1}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {subsection}{\numberline {2.7.2}Paragraph of Text}{11}{subsection.2.7.2}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {2.8}Exercises}{11}{section.2.8}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {2.9}Problems}{11}{section.2.9}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {2.10}Vocabulary}{11}{section.2.10}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {part}{\@mypartnumtocformat {II}{Part Two}}{13}{part.2}%
|
||||||
|
\ttl@stoptoc {default@1}
|
||||||
|
\ttl@starttoc {default@2}
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {chapter}{\numberline {3}Presenting Information}{15}{chapter.3}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {3.1}Table}{15}{section.3.1}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{\numberline {3.2}Figure}{15}{section.3.2}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {chapter}{\leavevmode {\color {ocre}Bibliography}}{17}{chapter*.2}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{Articles}{17}{section*.3}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {section}{Books}{17}{section*.4}%
|
||||||
|
\defcounter {refsection}{0}\relax
|
||||||
|
\contentsline {chapter}{\leavevmode {\color {ocre}Index}}{19}{section*.5}%
|
||||||
|
\contentsfinish
|
||||||
|
|
@ -0,0 +1,85 @@
|
||||||
|
<?xml version="1.0" standalone="yes"?>
|
||||||
|
<!-- logreq request file -->
|
||||||
|
<!-- logreq version 1.0 / dtd version 1.0 -->
|
||||||
|
<!-- Do not edit this file! -->
|
||||||
|
<!DOCTYPE requests [
|
||||||
|
<!ELEMENT requests (internal | external)*>
|
||||||
|
<!ELEMENT internal (generic, (provides | requires)*)>
|
||||||
|
<!ELEMENT external (generic, cmdline?, input?, output?, (provides | requires)*)>
|
||||||
|
<!ELEMENT cmdline (binary, (option | infile | outfile)*)>
|
||||||
|
<!ELEMENT input (file)+>
|
||||||
|
<!ELEMENT output (file)+>
|
||||||
|
<!ELEMENT provides (file)+>
|
||||||
|
<!ELEMENT requires (file)+>
|
||||||
|
<!ELEMENT generic (#PCDATA)>
|
||||||
|
<!ELEMENT binary (#PCDATA)>
|
||||||
|
<!ELEMENT option (#PCDATA)>
|
||||||
|
<!ELEMENT infile (#PCDATA)>
|
||||||
|
<!ELEMENT outfile (#PCDATA)>
|
||||||
|
<!ELEMENT file (#PCDATA)>
|
||||||
|
<!ATTLIST requests
|
||||||
|
version CDATA #REQUIRED
|
||||||
|
>
|
||||||
|
<!ATTLIST internal
|
||||||
|
package CDATA #REQUIRED
|
||||||
|
priority (9) #REQUIRED
|
||||||
|
active (0 | 1) #REQUIRED
|
||||||
|
>
|
||||||
|
<!ATTLIST external
|
||||||
|
package CDATA #REQUIRED
|
||||||
|
priority (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8) #REQUIRED
|
||||||
|
active (0 | 1) #REQUIRED
|
||||||
|
>
|
||||||
|
<!ATTLIST provides
|
||||||
|
type (static | dynamic | editable) #REQUIRED
|
||||||
|
>
|
||||||
|
<!ATTLIST requires
|
||||||
|
type (static | dynamic | editable) #REQUIRED
|
||||||
|
>
|
||||||
|
<!ATTLIST file
|
||||||
|
type CDATA #IMPLIED
|
||||||
|
>
|
||||||
|
]>
|
||||||
|
<requests version="1.0">
|
||||||
|
<internal package="biblatex" priority="9" active="0">
|
||||||
|
<generic>latex</generic>
|
||||||
|
<provides type="dynamic">
|
||||||
|
<file>main.bcf</file>
|
||||||
|
</provides>
|
||||||
|
<requires type="dynamic">
|
||||||
|
<file>main.bbl</file>
|
||||||
|
</requires>
|
||||||
|
<requires type="static">
|
||||||
|
<file>blx-dm.def</file>
|
||||||
|
<file>blx-compat.def</file>
|
||||||
|
<file>biblatex.def</file>
|
||||||
|
<file>standard.bbx</file>
|
||||||
|
<file>numeric.bbx</file>
|
||||||
|
<file>numeric.cbx</file>
|
||||||
|
<file>biblatex.cfg</file>
|
||||||
|
<file>english.lbx</file>
|
||||||
|
</requires>
|
||||||
|
</internal>
|
||||||
|
<external package="biblatex" priority="5" active="0">
|
||||||
|
<generic>biber</generic>
|
||||||
|
<cmdline>
|
||||||
|
<binary>biber</binary>
|
||||||
|
<infile>main</infile>
|
||||||
|
</cmdline>
|
||||||
|
<input>
|
||||||
|
<file>main.bcf</file>
|
||||||
|
</input>
|
||||||
|
<output>
|
||||||
|
<file>main.bbl</file>
|
||||||
|
</output>
|
||||||
|
<provides type="dynamic">
|
||||||
|
<file>main.bbl</file>
|
||||||
|
</provides>
|
||||||
|
<requires type="dynamic">
|
||||||
|
<file>main.bcf</file>
|
||||||
|
</requires>
|
||||||
|
<requires type="editable">
|
||||||
|
<file>bibliography.bib</file>
|
||||||
|
</requires>
|
||||||
|
</external>
|
||||||
|
</requests>
|
||||||
|
|
@ -0,0 +1,385 @@
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% The Legrand Orange Book
|
||||||
|
% LaTeX Template
|
||||||
|
% Version 2.4 (26/09/2018)
|
||||||
|
%
|
||||||
|
% This template was downloaded from:
|
||||||
|
% http://www.LaTeXTemplates.com
|
||||||
|
%
|
||||||
|
% Original author:
|
||||||
|
% Mathias Legrand (legrand.mathias@gmail.com) with modifications by:
|
||||||
|
% Vel (vel@latextemplates.com)
|
||||||
|
%
|
||||||
|
% License:
|
||||||
|
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
|
||||||
|
%
|
||||||
|
% Compiling this template:
|
||||||
|
% This template uses biber for its bibliography and makeindex for its index.
|
||||||
|
% When you first open the template, compile it from the command line with the
|
||||||
|
% commands below to make sure your LaTeX distribution is configured correctly:
|
||||||
|
%
|
||||||
|
% 1) pdflatex main
|
||||||
|
% 2) makeindex main.idx -s StyleInd.ist
|
||||||
|
% 3) biber main
|
||||||
|
% 4) pdflatex main x 2
|
||||||
|
%
|
||||||
|
% After this, when you wish to update the bibliography/index use the appropriate
|
||||||
|
% command above and make sure to compile with pdflatex several times
|
||||||
|
% afterwards to propagate your changes to the document.
|
||||||
|
%
|
||||||
|
% This template also uses a number of packages which may need to be
|
||||||
|
% updated to the newest versions for the template to compile. It is strongly
|
||||||
|
% recommended you update your LaTeX distribution if you have any
|
||||||
|
% compilation errors.
|
||||||
|
%
|
||||||
|
% Important note:
|
||||||
|
% Chapter heading images should have a 2:1 width:height ratio,
|
||||||
|
% e.g. 920px width and 460px height.
|
||||||
|
%
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\documentclass[11pt,fleqn]{book} % Default font size and left-justified equations
|
||||||
|
|
||||||
|
\input{structure.tex} % Insert the commands.tex file which contains the majority of the structure behind the template
|
||||||
|
|
||||||
|
%\hypersetup{pdftitle={Title},pdfauthor={Author}} % Uncomment and fill out to include PDF metadata for the author and title of the book
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% TITLE PAGE
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\begingroup
|
||||||
|
\thispagestyle{empty} % Suppress headers and footers on the title page
|
||||||
|
\begin{tikzpicture}[remember picture,overlay]
|
||||||
|
\node[inner sep=0pt] (background) at (current page.center) {\includegraphics[width=\paperwidth]{background.pdf}};
|
||||||
|
\draw (current page.center) node [fill=ocre!30!white,fill opacity=0.6,text opacity=1,inner sep=1cm]{\Huge\centering\bfseries\sffamily\parbox[c][][t]{\paperwidth}{\centering The Search for a Title\\[15pt] % Book title
|
||||||
|
{\Large A Profound Subtitle}\\[20pt] % Subtitle
|
||||||
|
{\huge Dr. John Smith}}}; % Author name
|
||||||
|
\end{tikzpicture}
|
||||||
|
\vfill
|
||||||
|
\endgroup
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% COPYRIGHT PAGE
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\newpage
|
||||||
|
~\vfill
|
||||||
|
\thispagestyle{empty}
|
||||||
|
|
||||||
|
\noindent Copyright \copyright\ 2019 John Smith\\ % Copyright notice
|
||||||
|
|
||||||
|
\noindent \textsc{Published by Publisher}\\ % Publisher
|
||||||
|
|
||||||
|
\noindent \textsc{book-website.com}\\ % URL
|
||||||
|
|
||||||
|
\noindent Licensed under the Creative Commons Attribution-NonCommercial 3.0 Unported License (the ``License''). You may not use this file except in compliance with the License. You may obtain a copy of the License at \url{http://creativecommons.org/licenses/by-nc/3.0}. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \textsc{``as is'' basis, without warranties or conditions of any kind}, either express or implied. See the License for the specific language governing permissions and limitations under the License.\\ % License information, replace this with your own license (if any)
|
||||||
|
|
||||||
|
\noindent \textit{First printing, March 2019} % Printing/edition date
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% TABLE OF CONTENTS
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
%\usechapterimagefalse % If you don't want to include a chapter image, use this to toggle images off - it can be enabled later with \usechapterimagetrue
|
||||||
|
|
||||||
|
\chapterimage{chapter_head_1.pdf} % Table of contents heading image
|
||||||
|
|
||||||
|
\pagestyle{empty} % Disable headers and footers for the following pages
|
||||||
|
|
||||||
|
\tableofcontents % Print the table of contents itself
|
||||||
|
|
||||||
|
\cleardoublepage % Forces the first chapter to start on an odd page so it's on the right side of the book
|
||||||
|
|
||||||
|
\pagestyle{fancy} % Enable headers and footers again
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% PART
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\part{Part One}
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% CHAPTER 1
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\chapterimage{chapter_head_2.pdf} % Chapter heading image
|
||||||
|
|
||||||
|
\chapter{Text Chapter}
|
||||||
|
|
||||||
|
\section{Paragraphs of Text}\index{Paragraphs of Text}
|
||||||
|
|
||||||
|
\lipsum[1-7] % Dummy text
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section{Citation}\index{Citation}
|
||||||
|
|
||||||
|
This statement requires citation \cite{article_key}; this one is more specific \cite[162]{book_key}.
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section{Lists}\index{Lists}
|
||||||
|
|
||||||
|
Lists are useful to present information in a concise and/or ordered way\footnote{Footnote example...}.
|
||||||
|
|
||||||
|
\subsection{Numbered List}\index{Lists!Numbered List}
|
||||||
|
|
||||||
|
\begin{enumerate}
|
||||||
|
\item The first item
|
||||||
|
\item The second item
|
||||||
|
\item The third item
|
||||||
|
\end{enumerate}
|
||||||
|
|
||||||
|
\subsection{Bullet Points}\index{Lists!Bullet Points}
|
||||||
|
|
||||||
|
\begin{itemize}
|
||||||
|
\item The first item
|
||||||
|
\item The second item
|
||||||
|
\item The third item
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
|
\subsection{Descriptions and Definitions}\index{Lists!Descriptions and Definitions}
|
||||||
|
|
||||||
|
\begin{description}
|
||||||
|
\item[Name] Description
|
||||||
|
\item[Word] Definition
|
||||||
|
\item[Comment] Elaboration
|
||||||
|
\end{description}
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% CHAPTER 2
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\chapter{In-text Elements}
|
||||||
|
|
||||||
|
\section{Theorems}\index{Theorems}
|
||||||
|
|
||||||
|
This is an example of theorems.
|
||||||
|
|
||||||
|
\subsection{Several equations}\index{Theorems!Several Equations}
|
||||||
|
This is a theorem consisting of several equations.
|
||||||
|
|
||||||
|
\begin{theorem}[Name of the theorem]
|
||||||
|
In $E=\mathbb{R}^n$ all norms are equivalent. It has the properties:
|
||||||
|
\begin{align}
|
||||||
|
& \big| ||\mathbf{x}|| - ||\mathbf{y}|| \big|\leq || \mathbf{x}- \mathbf{y}||\\
|
||||||
|
& ||\sum_{i=1}^n\mathbf{x}_i||\leq \sum_{i=1}^n||\mathbf{x}_i||\quad\text{where $n$ is a finite integer}
|
||||||
|
\end{align}
|
||||||
|
\end{theorem}
|
||||||
|
|
||||||
|
\subsection{Single Line}\index{Theorems!Single Line}
|
||||||
|
This is a theorem consisting of just one line.
|
||||||
|
|
||||||
|
\begin{theorem}
|
||||||
|
A set $\mathcal{D}(G)$ in dense in $L^2(G)$, $|\cdot|_0$.
|
||||||
|
\end{theorem}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section{Definitions}\index{Definitions}
|
||||||
|
|
||||||
|
This is an example of a definition. A definition could be mathematical or it could define a concept.
|
||||||
|
|
||||||
|
\begin{definition}[Definition name]
|
||||||
|
Given a vector space $E$, a norm on $E$ is an application, denoted $||\cdot||$, $E$ in $\mathbb{R}^+=[0,+\infty[$ such that:
|
||||||
|
\begin{align}
|
||||||
|
& ||\mathbf{x}||=0\ \Rightarrow\ \mathbf{x}=\mathbf{0}\\
|
||||||
|
& ||\lambda \mathbf{x}||=|\lambda|\cdot ||\mathbf{x}||\\
|
||||||
|
& ||\mathbf{x}+\mathbf{y}||\leq ||\mathbf{x}||+||\mathbf{y}||
|
||||||
|
\end{align}
|
||||||
|
\end{definition}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section{Notations}\index{Notations}
|
||||||
|
|
||||||
|
\begin{notation}
|
||||||
|
Given an open subset $G$ of $\mathbb{R}^n$, the set of functions $\varphi$ are:
|
||||||
|
\begin{enumerate}
|
||||||
|
\item Bounded support $G$;
|
||||||
|
\item Infinitely differentiable;
|
||||||
|
\end{enumerate}
|
||||||
|
a vector space is denoted by $\mathcal{D}(G)$.
|
||||||
|
\end{notation}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section{Remarks}\index{Remarks}
|
||||||
|
|
||||||
|
This is an example of a remark.
|
||||||
|
|
||||||
|
\begin{remark}
|
||||||
|
The concepts presented here are now in conventional employment in mathematics. Vector spaces are taken over the field $\mathbb{K}=\mathbb{R}$, however, established properties are easily extended to $\mathbb{K}=\mathbb{C}$.
|
||||||
|
\end{remark}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section{Corollaries}\index{Corollaries}
|
||||||
|
|
||||||
|
This is an example of a corollary.
|
||||||
|
|
||||||
|
\begin{corollary}[Corollary name]
|
||||||
|
The concepts presented here are now in conventional employment in mathematics. Vector spaces are taken over the field $\mathbb{K}=\mathbb{R}$, however, established properties are easily extended to $\mathbb{K}=\mathbb{C}$.
|
||||||
|
\end{corollary}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section{Propositions}\index{Propositions}
|
||||||
|
|
||||||
|
This is an example of propositions.
|
||||||
|
|
||||||
|
\subsection{Several equations}\index{Propositions!Several Equations}
|
||||||
|
|
||||||
|
\begin{proposition}[Proposition name]
|
||||||
|
It has the properties:
|
||||||
|
\begin{align}
|
||||||
|
& \big| ||\mathbf{x}|| - ||\mathbf{y}|| \big|\leq || \mathbf{x}- \mathbf{y}||\\
|
||||||
|
& ||\sum_{i=1}^n\mathbf{x}_i||\leq \sum_{i=1}^n||\mathbf{x}_i||\quad\text{where $n$ is a finite integer}
|
||||||
|
\end{align}
|
||||||
|
\end{proposition}
|
||||||
|
|
||||||
|
\subsection{Single Line}\index{Propositions!Single Line}
|
||||||
|
|
||||||
|
\begin{proposition}
|
||||||
|
Let $f,g\in L^2(G)$; if $\forall \varphi\in\mathcal{D}(G)$, $(f,\varphi)_0=(g,\varphi)_0$ then $f = g$.
|
||||||
|
\end{proposition}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section{Examples}\index{Examples}
|
||||||
|
|
||||||
|
This is an example of examples.
|
||||||
|
|
||||||
|
\subsection{Equation and Text}\index{Examples!Equation and Text}
|
||||||
|
|
||||||
|
\begin{example}
|
||||||
|
Let $G=\{x\in\mathbb{R}^2:|x|<3\}$ and denoted by: $x^0=(1,1)$; consider the function:
|
||||||
|
\begin{equation}
|
||||||
|
f(x)=\left\{\begin{aligned} & \mathrm{e}^{|x|} & & \text{si $|x-x^0|\leq 1/2$}\\
|
||||||
|
& 0 & & \text{si $|x-x^0|> 1/2$}\end{aligned}\right.
|
||||||
|
\end{equation}
|
||||||
|
The function $f$ has bounded support, we can take $A=\{x\in\mathbb{R}^2:|x-x^0|\leq 1/2+\epsilon\}$ for all $\epsilon\in\intoo{0}{5/2-\sqrt{2}}$.
|
||||||
|
\end{example}
|
||||||
|
|
||||||
|
\subsection{Paragraph of Text}\index{Examples!Paragraph of Text}
|
||||||
|
|
||||||
|
\begin{example}[Example name]
|
||||||
|
\lipsum[2]
|
||||||
|
\end{example}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section{Exercises}\index{Exercises}
|
||||||
|
|
||||||
|
This is an example of an exercise.
|
||||||
|
|
||||||
|
\begin{exercise}
|
||||||
|
This is a good place to ask a question to test learning progress or further cement ideas into students' minds.
|
||||||
|
\end{exercise}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section{Problems}\index{Problems}
|
||||||
|
|
||||||
|
\begin{problem}
|
||||||
|
What is the average airspeed velocity of an unladen swallow?
|
||||||
|
\end{problem}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section{Vocabulary}\index{Vocabulary}
|
||||||
|
|
||||||
|
Define a word to improve a students' vocabulary.
|
||||||
|
|
||||||
|
\begin{vocabulary}[Word]
|
||||||
|
Definition of word.
|
||||||
|
\end{vocabulary}
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% PART
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\part{Part Two}
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% CHAPTER 3
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\chapterimage{chapter_head_1.pdf} % Chapter heading image
|
||||||
|
|
||||||
|
\chapter{Presenting Information}
|
||||||
|
|
||||||
|
\section{Table}\index{Table}
|
||||||
|
|
||||||
|
\begin{table}[h]
|
||||||
|
\centering
|
||||||
|
\begin{tabular}{l l l}
|
||||||
|
\toprule
|
||||||
|
\textbf{Treatments} & \textbf{Response 1} & \textbf{Response 2}\\
|
||||||
|
\midrule
|
||||||
|
Treatment 1 & 0.0003262 & 0.562 \\
|
||||||
|
Treatment 2 & 0.0015681 & 0.910 \\
|
||||||
|
Treatment 3 & 0.0009271 & 0.296 \\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabular}
|
||||||
|
\caption{Table caption}
|
||||||
|
\label{tab:example} % Unique label used for referencing the table in-text
|
||||||
|
%\addcontentsline{toc}{table}{Table \ref{tab:example}} % Uncomment to add the table to the table of contents
|
||||||
|
\end{table}
|
||||||
|
|
||||||
|
Referencing Table \ref{tab:example} in-text automatically.
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section{Figure}\index{Figure}
|
||||||
|
|
||||||
|
\begin{figure}[h]
|
||||||
|
\centering\includegraphics[scale=0.5]{placeholder.jpg}
|
||||||
|
\caption{Figure caption}
|
||||||
|
\label{fig:placeholder} % Unique label used for referencing the figure in-text
|
||||||
|
%\addcontentsline{toc}{figure}{Figure \ref{fig:placeholder}} % Uncomment to add the figure to the table of contents
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
Referencing Figure \ref{fig:placeholder} in-text automatically.
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% BIBLIOGRAPHY
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\chapter*{Bibliography}
|
||||||
|
\addcontentsline{toc}{chapter}{\textcolor{ocre}{Bibliography}} % Add a Bibliography heading to the table of contents
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section*{Articles}
|
||||||
|
\addcontentsline{toc}{section}{Articles}
|
||||||
|
\printbibliography[heading=bibempty,type=article]
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\section*{Books}
|
||||||
|
\addcontentsline{toc}{section}{Books}
|
||||||
|
\printbibliography[heading=bibempty,type=book]
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% INDEX
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\cleardoublepage % Make sure the index starts on an odd (right side) page
|
||||||
|
\phantomsection
|
||||||
|
\setlength{\columnsep}{0.75cm} % Space between the 2 columns of the index
|
||||||
|
\addcontentsline{toc}{chapter}{\textcolor{ocre}{Index}} % Add an Index heading to the table of contents
|
||||||
|
\printindex % Output the index
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\end{document}
|
||||||
|
|
@ -0,0 +1,518 @@
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% The Legrand Orange Book
|
||||||
|
% Structural Definitions File
|
||||||
|
% Version 2.1 (26/09/2018)
|
||||||
|
%
|
||||||
|
% Original author:
|
||||||
|
% Mathias Legrand (legrand.mathias@gmail.com) with modifications by:
|
||||||
|
% Vel (vel@latextemplates.com)
|
||||||
|
%
|
||||||
|
% This file was downloaded from:
|
||||||
|
% http://www.LaTeXTemplates.com
|
||||||
|
%
|
||||||
|
% License:
|
||||||
|
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
|
||||||
|
%
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% VARIOUS REQUIRED PACKAGES AND CONFIGURATIONS
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\usepackage{graphicx} % Required for including pictures
|
||||||
|
\graphicspath{{Pictures/}} % Specifies the directory where pictures are stored
|
||||||
|
|
||||||
|
\usepackage{lipsum} % Inserts dummy text
|
||||||
|
|
||||||
|
\usepackage{tikz} % Required for drawing custom shapes
|
||||||
|
|
||||||
|
\usepackage[english]{babel} % English language/hyphenation
|
||||||
|
|
||||||
|
\usepackage{enumitem} % Customize lists
|
||||||
|
\setlist{nolistsep} % Reduce spacing between bullet points and numbered lists
|
||||||
|
|
||||||
|
\usepackage{booktabs} % Required for nicer horizontal rules in tables
|
||||||
|
|
||||||
|
\usepackage{xcolor} % Required for specifying colors by name
|
||||||
|
\definecolor{ocre}{RGB}{243,102,25} % Define the orange color used for highlighting throughout the book
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% MARGINS
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\usepackage{geometry} % Required for adjusting page dimensions and margins
|
||||||
|
|
||||||
|
\geometry{
|
||||||
|
paper=a4paper, % Paper size, change to letterpaper for US letter size
|
||||||
|
top=3cm, % Top margin
|
||||||
|
bottom=3cm, % Bottom margin
|
||||||
|
left=3cm, % Left margin
|
||||||
|
right=3cm, % Right margin
|
||||||
|
headheight=14pt, % Header height
|
||||||
|
footskip=1.4cm, % Space from the bottom margin to the baseline of the footer
|
||||||
|
headsep=10pt, % Space from the top margin to the baseline of the header
|
||||||
|
%showframe, % Uncomment to show how the type block is set on the page
|
||||||
|
}
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% FONTS
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\usepackage{avant} % Use the Avantgarde font for headings
|
||||||
|
%\usepackage{times} % Use the Times font for headings
|
||||||
|
\usepackage{mathptmx} % Use the Adobe Times Roman as the default text font together with math symbols from the Symbol, Chancery and Computer Modern fonts
|
||||||
|
|
||||||
|
\usepackage{microtype} % Slightly tweak font spacing for aesthetics
|
||||||
|
\usepackage[utf8]{inputenc} % Required for including letters with accents
|
||||||
|
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% BIBLIOGRAPHY AND INDEX
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\usepackage[style=numeric,citestyle=numeric,sorting=nyt,sortcites=true,autopunct=true,babel=hyphen,hyperref=true,abbreviate=false,backref=true,backend=biber]{biblatex}
|
||||||
|
\addbibresource{bibliography.bib} % BibTeX bibliography file
|
||||||
|
\defbibheading{bibempty}{}
|
||||||
|
|
||||||
|
\usepackage{calc} % For simpler calculation - used for spacing the index letter headings correctly
|
||||||
|
\usepackage{makeidx} % Required to make an index
|
||||||
|
\makeindex % Tells LaTeX to create the files required for indexing
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% MAIN TABLE OF CONTENTS
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\usepackage{titletoc} % Required for manipulating the table of contents
|
||||||
|
|
||||||
|
\contentsmargin{0cm} % Removes the default margin
|
||||||
|
|
||||||
|
% Part text styling (this is mostly taken care of in the PART HEADINGS section of this file)
|
||||||
|
\titlecontents{part}
|
||||||
|
[0cm] % Left indentation
|
||||||
|
{\addvspace{20pt}\bfseries} % Spacing and font options for parts
|
||||||
|
{}
|
||||||
|
{}
|
||||||
|
{}
|
||||||
|
|
||||||
|
% Chapter text styling
|
||||||
|
\titlecontents{chapter}
|
||||||
|
[1.25cm] % Left indentation
|
||||||
|
{\addvspace{12pt}\large\sffamily\bfseries} % Spacing and font options for chapters
|
||||||
|
{\color{ocre!60}\contentslabel[\Large\thecontentslabel]{1.25cm}\color{ocre}} % Formatting of numbered sections of this type
|
||||||
|
{\color{ocre}} % Formatting of numberless sections of this type
|
||||||
|
{\color{ocre!60}\normalsize\;\titlerule*[.5pc]{.}\;\thecontentspage} % Formatting of the filler to the right of the heading and the page number
|
||||||
|
|
||||||
|
% Section text styling
|
||||||
|
\titlecontents{section}
|
||||||
|
[1.25cm] % Left indentation
|
||||||
|
{\addvspace{3pt}\sffamily\bfseries} % Spacing and font options for sections
|
||||||
|
{\contentslabel[\thecontentslabel]{1.25cm}} % Formatting of numbered sections of this type
|
||||||
|
{} % Formatting of numberless sections of this type
|
||||||
|
{\hfill\color{black}\thecontentspage} % Formatting of the filler to the right of the heading and the page number
|
||||||
|
|
||||||
|
% Subsection text styling
|
||||||
|
\titlecontents{subsection}
|
||||||
|
[1.25cm] % Left indentation
|
||||||
|
{\addvspace{1pt}\sffamily\small} % Spacing and font options for subsections
|
||||||
|
{\contentslabel[\thecontentslabel]{1.25cm}} % Formatting of numbered sections of this type
|
||||||
|
{} % Formatting of numberless sections of this type
|
||||||
|
{\ \titlerule*[.5pc]{.}\;\thecontentspage} % Formatting of the filler to the right of the heading and the page number
|
||||||
|
|
||||||
|
% Figure text styling
|
||||||
|
\titlecontents{figure}
|
||||||
|
[1.25cm] % Left indentation
|
||||||
|
{\addvspace{1pt}\sffamily\small} % Spacing and font options for figures
|
||||||
|
{\thecontentslabel\hspace*{1em}} % Formatting of numbered sections of this type
|
||||||
|
{} % Formatting of numberless sections of this type
|
||||||
|
{\ \titlerule*[.5pc]{.}\;\thecontentspage} % Formatting of the filler to the right of the heading and the page number
|
||||||
|
|
||||||
|
% Table text styling
|
||||||
|
\titlecontents{table}
|
||||||
|
[1.25cm] % Left indentation
|
||||||
|
{\addvspace{1pt}\sffamily\small} % Spacing and font options for tables
|
||||||
|
{\thecontentslabel\hspace*{1em}} % Formatting of numbered sections of this type
|
||||||
|
{} % Formatting of numberless sections of this type
|
||||||
|
{\ \titlerule*[.5pc]{.}\;\thecontentspage} % Formatting of the filler to the right of the heading and the page number
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% MINI TABLE OF CONTENTS IN PART HEADS
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
% Chapter text styling
|
||||||
|
\titlecontents{lchapter}
|
||||||
|
[0em] % Left indentation
|
||||||
|
{\addvspace{15pt}\large\sffamily\bfseries} % Spacing and font options for chapters
|
||||||
|
{\color{ocre}\contentslabel[\Large\thecontentslabel]{1.25cm}\color{ocre}} % Chapter number
|
||||||
|
{}
|
||||||
|
{\color{ocre}\normalsize\sffamily\bfseries\;\titlerule*[.5pc]{.}\;\thecontentspage} % Page number
|
||||||
|
|
||||||
|
% Section text styling
|
||||||
|
\titlecontents{lsection}
|
||||||
|
[0em] % Left indentation
|
||||||
|
{\sffamily\small} % Spacing and font options for sections
|
||||||
|
{\contentslabel[\thecontentslabel]{1.25cm}} % Section number
|
||||||
|
{}
|
||||||
|
{}
|
||||||
|
|
||||||
|
% Subsection text styling (note these aren't shown by default, display them by searchings this file for tocdepth and reading the commented text)
|
||||||
|
\titlecontents{lsubsection}
|
||||||
|
[.5em] % Left indentation
|
||||||
|
{\sffamily\footnotesize} % Spacing and font options for subsections
|
||||||
|
{\contentslabel[\thecontentslabel]{1.25cm}}
|
||||||
|
{}
|
||||||
|
{}
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% HEADERS AND FOOTERS
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\usepackage{fancyhdr} % Required for header and footer configuration
|
||||||
|
|
||||||
|
\pagestyle{fancy} % Enable the custom headers and footers
|
||||||
|
|
||||||
|
\renewcommand{\chaptermark}[1]{\markboth{\sffamily\normalsize\bfseries\chaptername\ \thechapter.\ #1}{}} % Styling for the current chapter in the header
|
||||||
|
\renewcommand{\sectionmark}[1]{\markright{\sffamily\normalsize\thesection\hspace{5pt}#1}{}} % Styling for the current section in the header
|
||||||
|
|
||||||
|
\fancyhf{} % Clear default headers and footers
|
||||||
|
\fancyhead[LE,RO]{\sffamily\normalsize\thepage} % Styling for the page number in the header
|
||||||
|
\fancyhead[LO]{\rightmark} % Print the nearest section name on the left side of odd pages
|
||||||
|
\fancyhead[RE]{\leftmark} % Print the current chapter name on the right side of even pages
|
||||||
|
%\fancyfoot[C]{\thepage} % Uncomment to include a footer
|
||||||
|
|
||||||
|
\renewcommand{\headrulewidth}{0.5pt} % Thickness of the rule under the header
|
||||||
|
|
||||||
|
\fancypagestyle{plain}{% Style for when a plain pagestyle is specified
|
||||||
|
\fancyhead{}\renewcommand{\headrulewidth}{0pt}%
|
||||||
|
}
|
||||||
|
|
||||||
|
% Removes the header from odd empty pages at the end of chapters
|
||||||
|
\makeatletter
|
||||||
|
\renewcommand{\cleardoublepage}{
|
||||||
|
\clearpage\ifodd\c@page\else
|
||||||
|
\hbox{}
|
||||||
|
\vspace*{\fill}
|
||||||
|
\thispagestyle{empty}
|
||||||
|
\newpage
|
||||||
|
\fi}
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% THEOREM STYLES
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\usepackage{amsmath,amsfonts,amssymb,amsthm} % For math equations, theorems, symbols, etc
|
||||||
|
|
||||||
|
\newcommand{\intoo}[2]{\mathopen{]}#1\,;#2\mathclose{[}}
|
||||||
|
\newcommand{\ud}{\mathop{\mathrm{{}d}}\mathopen{}}
|
||||||
|
\newcommand{\intff}[2]{\mathopen{[}#1\,;#2\mathclose{]}}
|
||||||
|
\renewcommand{\qedsymbol}{$\blacksquare$}
|
||||||
|
\newtheorem{notation}{Notation}[chapter]
|
||||||
|
|
||||||
|
% Boxed/framed environments
|
||||||
|
\newtheoremstyle{ocrenumbox}% Theorem style name
|
||||||
|
{0pt}% Space above
|
||||||
|
{0pt}% Space below
|
||||||
|
{\normalfont}% Body font
|
||||||
|
{}% Indent amount
|
||||||
|
{\small\bf\sffamily\color{ocre}}% Theorem head font
|
||||||
|
{\;}% Punctuation after theorem head
|
||||||
|
{0.25em}% Space after theorem head
|
||||||
|
{\small\sffamily\color{ocre}\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1)
|
||||||
|
\thmnote{\nobreakspace\the\thm@notefont\sffamily\bfseries\color{black}---\nobreakspace#3.}} % Optional theorem note
|
||||||
|
|
||||||
|
\newtheoremstyle{blacknumex}% Theorem style name
|
||||||
|
{5pt}% Space above
|
||||||
|
{5pt}% Space below
|
||||||
|
{\normalfont}% Body font
|
||||||
|
{} % Indent amount
|
||||||
|
{\small\bf\sffamily}% Theorem head font
|
||||||
|
{\;}% Punctuation after theorem head
|
||||||
|
{0.25em}% Space after theorem head
|
||||||
|
{\small\sffamily{\tiny\ensuremath{\blacksquare}}\nobreakspace\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1)
|
||||||
|
\thmnote{\nobreakspace\the\thm@notefont\sffamily\bfseries---\nobreakspace#3.}}% Optional theorem note
|
||||||
|
|
||||||
|
\newtheoremstyle{blacknumbox} % Theorem style name
|
||||||
|
{0pt}% Space above
|
||||||
|
{0pt}% Space below
|
||||||
|
{\normalfont}% Body font
|
||||||
|
{}% Indent amount
|
||||||
|
{\small\bf\sffamily}% Theorem head font
|
||||||
|
{\;}% Punctuation after theorem head
|
||||||
|
{0.25em}% Space after theorem head
|
||||||
|
{\small\sffamily\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1)
|
||||||
|
\thmnote{\nobreakspace\the\thm@notefont\sffamily\bfseries---\nobreakspace#3.}}% Optional theorem note
|
||||||
|
|
||||||
|
% Non-boxed/non-framed environments
|
||||||
|
\newtheoremstyle{ocrenum}% Theorem style name
|
||||||
|
{5pt}% Space above
|
||||||
|
{5pt}% Space below
|
||||||
|
{\normalfont}% Body font
|
||||||
|
{}% Indent amount
|
||||||
|
{\small\bf\sffamily\color{ocre}}% Theorem head font
|
||||||
|
{\;}% Punctuation after theorem head
|
||||||
|
{0.25em}% Space after theorem head
|
||||||
|
{\small\sffamily\color{ocre}\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1)
|
||||||
|
\thmnote{\nobreakspace\the\thm@notefont\sffamily\bfseries\color{black}---\nobreakspace#3.}} % Optional theorem note
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
% Defines the theorem text style for each type of theorem to one of the three styles above
|
||||||
|
\newcounter{dummy}
|
||||||
|
\numberwithin{dummy}{section}
|
||||||
|
\theoremstyle{ocrenumbox}
|
||||||
|
\newtheorem{theoremeT}[dummy]{Theorem}
|
||||||
|
\newtheorem{problem}{Problem}[chapter]
|
||||||
|
\newtheorem{exerciseT}{Exercise}[chapter]
|
||||||
|
\theoremstyle{blacknumex}
|
||||||
|
\newtheorem{exampleT}{Example}[chapter]
|
||||||
|
\theoremstyle{blacknumbox}
|
||||||
|
\newtheorem{vocabulary}{Vocabulary}[chapter]
|
||||||
|
\newtheorem{definitionT}{Definition}[section]
|
||||||
|
\newtheorem{corollaryT}[dummy]{Corollary}
|
||||||
|
\theoremstyle{ocrenum}
|
||||||
|
\newtheorem{proposition}[dummy]{Proposition}
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% DEFINITION OF COLORED BOXES
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\RequirePackage[framemethod=default]{mdframed} % Required for creating the theorem, definition, exercise and corollary boxes
|
||||||
|
|
||||||
|
% Theorem box
|
||||||
|
\newmdenv[skipabove=7pt,
|
||||||
|
skipbelow=7pt,
|
||||||
|
backgroundcolor=black!5,
|
||||||
|
linecolor=ocre,
|
||||||
|
innerleftmargin=5pt,
|
||||||
|
innerrightmargin=5pt,
|
||||||
|
innertopmargin=5pt,
|
||||||
|
leftmargin=0cm,
|
||||||
|
rightmargin=0cm,
|
||||||
|
innerbottommargin=5pt]{tBox}
|
||||||
|
|
||||||
|
% Exercise box
|
||||||
|
\newmdenv[skipabove=7pt,
|
||||||
|
skipbelow=7pt,
|
||||||
|
rightline=false,
|
||||||
|
leftline=true,
|
||||||
|
topline=false,
|
||||||
|
bottomline=false,
|
||||||
|
backgroundcolor=ocre!10,
|
||||||
|
linecolor=ocre,
|
||||||
|
innerleftmargin=5pt,
|
||||||
|
innerrightmargin=5pt,
|
||||||
|
innertopmargin=5pt,
|
||||||
|
innerbottommargin=5pt,
|
||||||
|
leftmargin=0cm,
|
||||||
|
rightmargin=0cm,
|
||||||
|
linewidth=4pt]{eBox}
|
||||||
|
|
||||||
|
% Definition box
|
||||||
|
\newmdenv[skipabove=7pt,
|
||||||
|
skipbelow=7pt,
|
||||||
|
rightline=false,
|
||||||
|
leftline=true,
|
||||||
|
topline=false,
|
||||||
|
bottomline=false,
|
||||||
|
linecolor=ocre,
|
||||||
|
innerleftmargin=5pt,
|
||||||
|
innerrightmargin=5pt,
|
||||||
|
innertopmargin=0pt,
|
||||||
|
leftmargin=0cm,
|
||||||
|
rightmargin=0cm,
|
||||||
|
linewidth=4pt,
|
||||||
|
innerbottommargin=0pt]{dBox}
|
||||||
|
|
||||||
|
% Corollary box
|
||||||
|
\newmdenv[skipabove=7pt,
|
||||||
|
skipbelow=7pt,
|
||||||
|
rightline=false,
|
||||||
|
leftline=true,
|
||||||
|
topline=false,
|
||||||
|
bottomline=false,
|
||||||
|
linecolor=gray,
|
||||||
|
backgroundcolor=black!5,
|
||||||
|
innerleftmargin=5pt,
|
||||||
|
innerrightmargin=5pt,
|
||||||
|
innertopmargin=5pt,
|
||||||
|
leftmargin=0cm,
|
||||||
|
rightmargin=0cm,
|
||||||
|
linewidth=4pt,
|
||||||
|
innerbottommargin=5pt]{cBox}
|
||||||
|
|
||||||
|
% Creates an environment for each type of theorem and assigns it a theorem text style from the "Theorem Styles" section above and a colored box from above
|
||||||
|
\newenvironment{theorem}{\begin{tBox}\begin{theoremeT}}{\end{theoremeT}\end{tBox}}
|
||||||
|
\newenvironment{exercise}{\begin{eBox}\begin{exerciseT}}{\hfill{\color{ocre}\tiny\ensuremath{\blacksquare}}\end{exerciseT}\end{eBox}}
|
||||||
|
\newenvironment{definition}{\begin{dBox}\begin{definitionT}}{\end{definitionT}\end{dBox}}
|
||||||
|
\newenvironment{example}{\begin{exampleT}}{\hfill{\tiny\ensuremath{\blacksquare}}\end{exampleT}}
|
||||||
|
\newenvironment{corollary}{\begin{cBox}\begin{corollaryT}}{\end{corollaryT}\end{cBox}}
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% REMARK ENVIRONMENT
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\newenvironment{remark}{\par\vspace{10pt}\small % Vertical white space above the remark and smaller font size
|
||||||
|
\begin{list}{}{
|
||||||
|
\leftmargin=35pt % Indentation on the left
|
||||||
|
\rightmargin=25pt}\item\ignorespaces % Indentation on the right
|
||||||
|
\makebox[-2.5pt]{\begin{tikzpicture}[overlay]
|
||||||
|
\node[draw=ocre!60,line width=1pt,circle,fill=ocre!25,font=\sffamily\bfseries,inner sep=2pt,outer sep=0pt] at (-15pt,0pt){\textcolor{ocre}{R}};\end{tikzpicture}} % Orange R in a circle
|
||||||
|
\advance\baselineskip -1pt}{\end{list}\vskip5pt} % Tighter line spacing and white space after remark
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% SECTION NUMBERING IN THE MARGIN
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
\renewcommand{\@seccntformat}[1]{\llap{\textcolor{ocre}{\csname the#1\endcsname}\hspace{1em}}}
|
||||||
|
\renewcommand{\section}{\@startsection{section}{1}{\z@}
|
||||||
|
{-4ex \@plus -1ex \@minus -.4ex}
|
||||||
|
{1ex \@plus.2ex }
|
||||||
|
{\normalfont\large\sffamily\bfseries}}
|
||||||
|
\renewcommand{\subsection}{\@startsection {subsection}{2}{\z@}
|
||||||
|
{-3ex \@plus -0.1ex \@minus -.4ex}
|
||||||
|
{0.5ex \@plus.2ex }
|
||||||
|
{\normalfont\sffamily\bfseries}}
|
||||||
|
\renewcommand{\subsubsection}{\@startsection {subsubsection}{3}{\z@}
|
||||||
|
{-2ex \@plus -0.1ex \@minus -.2ex}
|
||||||
|
{.2ex \@plus.2ex }
|
||||||
|
{\normalfont\small\sffamily\bfseries}}
|
||||||
|
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}
|
||||||
|
{-2ex \@plus-.2ex \@minus .2ex}
|
||||||
|
{.1ex}
|
||||||
|
{\normalfont\small\sffamily\bfseries}}
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% PART HEADINGS
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
% Numbered part in the table of contents
|
||||||
|
\newcommand{\@mypartnumtocformat}[2]{%
|
||||||
|
\setlength\fboxsep{0pt}%
|
||||||
|
\noindent\colorbox{ocre!20}{\strut\parbox[c][.7cm]{\ecart}{\color{ocre!70}\Large\sffamily\bfseries\centering#1}}\hskip\esp\colorbox{ocre!40}{\strut\parbox[c][.7cm]{\linewidth-\ecart-\esp}{\Large\sffamily\centering#2}}%
|
||||||
|
}
|
||||||
|
|
||||||
|
% Unnumbered part in the table of contents
|
||||||
|
\newcommand{\@myparttocformat}[1]{%
|
||||||
|
\setlength\fboxsep{0pt}%
|
||||||
|
\noindent\colorbox{ocre!40}{\strut\parbox[c][.7cm]{\linewidth}{\Large\sffamily\centering#1}}%
|
||||||
|
}
|
||||||
|
|
||||||
|
\newlength\esp
|
||||||
|
\setlength\esp{4pt}
|
||||||
|
\newlength\ecart
|
||||||
|
\setlength\ecart{1.2cm-\esp}
|
||||||
|
\newcommand{\thepartimage}{}%
|
||||||
|
\newcommand{\partimage}[1]{\renewcommand{\thepartimage}{#1}}%
|
||||||
|
\def\@part[#1]#2{%
|
||||||
|
\ifnum \c@secnumdepth >-2\relax%
|
||||||
|
\refstepcounter{part}%
|
||||||
|
\addcontentsline{toc}{part}{\texorpdfstring{\protect\@mypartnumtocformat{\thepart}{#1}}{\partname~\thepart\ ---\ #1}}
|
||||||
|
\else%
|
||||||
|
\addcontentsline{toc}{part}{\texorpdfstring{\protect\@myparttocformat{#1}}{#1}}%
|
||||||
|
\fi%
|
||||||
|
\startcontents%
|
||||||
|
\markboth{}{}%
|
||||||
|
{\thispagestyle{empty}%
|
||||||
|
\begin{tikzpicture}[remember picture,overlay]%
|
||||||
|
\node at (current page.north west){\begin{tikzpicture}[remember picture,overlay]%
|
||||||
|
\fill[ocre!20](0cm,0cm) rectangle (\paperwidth,-\paperheight);
|
||||||
|
\node[anchor=north] at (4cm,-3.25cm){\color{ocre!40}\fontsize{220}{100}\sffamily\bfseries\thepart};
|
||||||
|
\node[anchor=south east] at (\paperwidth-1cm,-\paperheight+1cm){\parbox[t][][t]{8.5cm}{
|
||||||
|
\printcontents{l}{0}{\setcounter{tocdepth}{1}}% The depth to which the Part mini table of contents displays headings; 0 for chapters only, 1 for chapters and sections and 2 for chapters, sections and subsections
|
||||||
|
}};
|
||||||
|
\node[anchor=north east] at (\paperwidth-1.5cm,-3.25cm){\parbox[t][][t]{15cm}{\strut\raggedleft\color{white}\fontsize{30}{30}\sffamily\bfseries#2}};
|
||||||
|
\end{tikzpicture}};
|
||||||
|
\end{tikzpicture}}%
|
||||||
|
\@endpart}
|
||||||
|
\def\@spart#1{%
|
||||||
|
\startcontents%
|
||||||
|
\phantomsection
|
||||||
|
{\thispagestyle{empty}%
|
||||||
|
\begin{tikzpicture}[remember picture,overlay]%
|
||||||
|
\node at (current page.north west){\begin{tikzpicture}[remember picture,overlay]%
|
||||||
|
\fill[ocre!20](0cm,0cm) rectangle (\paperwidth,-\paperheight);
|
||||||
|
\node[anchor=north east] at (\paperwidth-1.5cm,-3.25cm){\parbox[t][][t]{15cm}{\strut\raggedleft\color{white}\fontsize{30}{30}\sffamily\bfseries#1}};
|
||||||
|
\end{tikzpicture}};
|
||||||
|
\end{tikzpicture}}
|
||||||
|
\addcontentsline{toc}{part}{\texorpdfstring{%
|
||||||
|
\setlength\fboxsep{0pt}%
|
||||||
|
\noindent\protect\colorbox{ocre!40}{\strut\protect\parbox[c][.7cm]{\linewidth}{\Large\sffamily\protect\centering #1\quad\mbox{}}}}{#1}}%
|
||||||
|
\@endpart}
|
||||||
|
\def\@endpart{\vfil\newpage
|
||||||
|
\if@twoside
|
||||||
|
\if@openright
|
||||||
|
\null
|
||||||
|
\thispagestyle{empty}%
|
||||||
|
\newpage
|
||||||
|
\fi
|
||||||
|
\fi
|
||||||
|
\if@tempswa
|
||||||
|
\twocolumn
|
||||||
|
\fi}
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% CHAPTER HEADINGS
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
% A switch to conditionally include a picture, implemented by Christian Hupfer
|
||||||
|
\newif\ifusechapterimage
|
||||||
|
\usechapterimagetrue
|
||||||
|
\newcommand{\thechapterimage}{}%
|
||||||
|
\newcommand{\chapterimage}[1]{\ifusechapterimage\renewcommand{\thechapterimage}{#1}\fi}%
|
||||||
|
\newcommand{\autodot}{.}
|
||||||
|
\def\@makechapterhead#1{%
|
||||||
|
{\parindent \z@ \raggedright \normalfont
|
||||||
|
\ifnum \c@secnumdepth >\m@ne
|
||||||
|
\if@mainmatter
|
||||||
|
\begin{tikzpicture}[remember picture,overlay]
|
||||||
|
\node at (current page.north west)
|
||||||
|
{\begin{tikzpicture}[remember picture,overlay]
|
||||||
|
\node[anchor=north west,inner sep=0pt] at (0,0) {\ifusechapterimage\includegraphics[width=\paperwidth]{\thechapterimage}\fi};
|
||||||
|
\draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]{\strut\makebox[22cm]{}};
|
||||||
|
\draw[anchor=west] (\Gm@lmargin+.3cm,-9cm) node {\huge\sffamily\bfseries\color{black}\thechapter\autodot~#1\strut};
|
||||||
|
\end{tikzpicture}};
|
||||||
|
\end{tikzpicture}
|
||||||
|
\else
|
||||||
|
\begin{tikzpicture}[remember picture,overlay]
|
||||||
|
\node at (current page.north west)
|
||||||
|
{\begin{tikzpicture}[remember picture,overlay]
|
||||||
|
\node[anchor=north west,inner sep=0pt] at (0,0) {\ifusechapterimage\includegraphics[width=\paperwidth]{\thechapterimage}\fi};
|
||||||
|
\draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]{\strut\makebox[22cm]{}};
|
||||||
|
\draw[anchor=west] (\Gm@lmargin+.3cm,-9cm) node {\huge\sffamily\bfseries\color{black}#1\strut};
|
||||||
|
\end{tikzpicture}};
|
||||||
|
\end{tikzpicture}
|
||||||
|
\fi\fi\par\vspace*{270\p@}}}
|
||||||
|
|
||||||
|
%-------------------------------------------
|
||||||
|
|
||||||
|
\def\@makeschapterhead#1{%
|
||||||
|
\begin{tikzpicture}[remember picture,overlay]
|
||||||
|
\node at (current page.north west)
|
||||||
|
{\begin{tikzpicture}[remember picture,overlay]
|
||||||
|
\node[anchor=north west,inner sep=0pt] at (0,0) {\ifusechapterimage\includegraphics[width=\paperwidth]{\thechapterimage}\fi};
|
||||||
|
\draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]{\strut\makebox[22cm]{}};
|
||||||
|
\draw[anchor=west] (\Gm@lmargin+.3cm,-9cm) node {\huge\sffamily\bfseries\color{black}#1\strut};
|
||||||
|
\end{tikzpicture}};
|
||||||
|
\end{tikzpicture}
|
||||||
|
\par\vspace*{270\p@}}
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
% LINKS
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\usepackage{hyperref}
|
||||||
|
\hypersetup{hidelinks,backref=true,pagebackref=true,hyperindex=true,colorlinks=false,breaklinks=true,urlcolor=ocre,bookmarks=true,bookmarksopen=false}
|
||||||
|
|
||||||
|
\usepackage{bookmark}
|
||||||
|
\bookmarksetup{
|
||||||
|
open,
|
||||||
|
numbered,
|
||||||
|
addtohook={%
|
||||||
|
\ifnum\bookmarkget{level}=0 % chapter
|
||||||
|
\bookmarksetup{bold}%
|
||||||
|
\fi
|
||||||
|
\ifnum\bookmarkget{level}=-1 % part
|
||||||
|
\bookmarksetup{color=ocre,bold}%
|
||||||
|
\fi
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Loading…
Reference in New Issue