update templates

This commit is contained in:
2025-11-12 17:13:43 +01:00
parent 63f66fbf02
commit 3202ab8096
114 changed files with 1178 additions and 2034 deletions

View File

@@ -1,4 +0,0 @@
\chapter*{Glossary}
\chaptermark{Glossary}
\markboth{GLOSSARY}{PUBLICATIONS}
\addcontentsline{toc}{chapter}{Glossary}

View File

@@ -1,17 +1,17 @@
\chapter{Chapter 1 title}
\chaptermark{Chapter 1 title in header}
\label{ch:chapter1}
%\adjustmtc
\graphicspath{{Figures/Ch1/}}
\minitoc
\section{First Section of first chapter}
\subsection{Let's talk about A}
I must quote \citet{FavoriteAuthor} because they did a great job.
I must quote \citet{FavoriteAuthor} because they did a great job looking at this type of \gls{GAL}.
\subsection{And now B}
...
We can even reuse the acronym to plural: \glspl{GAL}
\section{But what about this}

View File

@@ -1,7 +1,7 @@
\chapter{Chapter 2 title}
\chaptermark{Chapter 2 title in header}
\label{ch:chapter2}
%\adjustmtc
\graphicspath{{Figures/Ch2/}}
\minitoc

View File

@@ -1,7 +1,7 @@
\chapter{Chapter 3 title}
\chaptermark{Chapter 3 title in header}
\label{ch:chapter3}
%\adjustmtc
\graphicspath{{Figures/Ch3/}}
\minitoc
\section{Look at this Table}

View File

@@ -1,6 +0,0 @@
\chapter*{Abstract}
\chaptermark{Abstract}
\markboth{ABSTRACT}{ABSTRACT}
\addcontentsline{toc}{chapter}{Abstract}
...

View File

@@ -1,6 +0,0 @@
\chapter*{R\'esum\'e}
\chaptermark{R\'esum\'e}
\markboth{R\'ESUM\'E}{R\'ESUM\'E}
\addcontentsline{toc}{chapter}{R\'esum\'e}
...

View File

@@ -5,39 +5,39 @@
\setlength\evensidemargin{\oddsidemargin}
\makeatletter
\begin{changemargin}{-15mm}{-5mm}
\begin{changemargin}{-25mm}{-15mm}
\noindent%
\vspace*{-20mm}%
\begin{center}%
\includegraphics[keepaspectratio, height=8mm, trim={0 8mm 0 0}]{\@UniversityLogo}%
\includegraphics[keepaspectratio, height=14mm, valign=c]{\@UniversityLogo}%
\hfill%
{\Large\bf \@Firstname\, \MakeUppercase{\@Lastname}}%
{\LARGE\bf \@Firstname\, \MakeUppercase{\@Lastname}}%
\hfill%
\includegraphics[keepaspectratio, height=8mm, trim={0 8mm 0 0}]{\ifdefempty{\@LaboLogo}{\@DoctoralSchoolLogo}{\@LaboLogo}}%
\includegraphics[keepaspectratio, height=12mm, valign=c]{\ifdefempty{\@LaboLogo}{\@DoctoralSchoolLogo}{\@LaboLogo}}%
\end{center}%
\end{changemargin}\vspace*{1cm}%
\begin{changemargin}{-10mm}{0mm}
\begin{changemargin}{-23mm}{-13mm}
\begin{center}
{\LARGE\bf \@TitreThese}%
\end{center}
\begin{mybox}
{\Large\textbf{Résumé}}\vspace*{5mm}
\@resume
\@resume\PhDThesis@checkResume
\vspace*{5mm}
\textbf{Mots-clés}: \@motscles
\end{mybox}\vspace*{5mm}
\begin{center}
{\LARGE\bf \@ThesisTitle}%
\end{center}
\begin{mybox}
{\Large\textbf{Abstract}}\vspace*{5mm}
\@abstract
\@abstract\PhDThesis@checkAbstract
\vspace*{5mm}
\textbf{Keywords}: \@keywords
\end{mybox}
@@ -46,4 +46,4 @@
% go back to default geometry settings
\setlength\oddsidemargin{\defaultOddsidemargin}
\setlength\evensidemargin{\defaultEvensidemargin}
\setlength\evensidemargin{\defaultEvensidemargin}

View File

@@ -6,24 +6,24 @@
\setlength\evensidemargin{\oddsidemargin}
\makeatletter
\begin{changemargin}{-15mm}{-5mm}
\begin{changemargin}{-25mm}{-15mm}
\noindent
\vspace*{-25mm}%
\begin{center}%
\includegraphics[keepaspectratio, height=1.5cm]{\@UniversityLogo}%
\ifdefempty{\@LaboLogo}{}{\hfill\includegraphics[keepaspectratio, height=1.5cm]{\@LaboLogo}}%
\includegraphics[keepaspectratio, height=1.5cm,valign=c]{\@UniversityLogo}%
\ifdefempty{\@LaboLogo}{}{\hfill\includegraphics[keepaspectratio, height=1.5cm,valign=c]{\@LaboLogo}}%
\hfill%
\includegraphics[keepaspectratio, height=1.8cm, trim={0 3.0mm 0 0}]{\@DoctoralSchoolLogo}\\\vspace{5mm}
\includegraphics[keepaspectratio, height=1.75cm,valign=c]{\@DoctoralSchoolLogo}\\\vspace{5mm}
{\ifdefempty{\@LaboLogo}{\vspace{-15mm}}{}\Large\bf \MakeUppercase{\@UniversityName}}\\\vspace{10mm}
{\large\bf\textit{\MakeUppercase{\@DoctoralSchoolName}}}\\\vspace{5mm}
{\bf \@LaboName}
\end{center}
\end{changemargin}
\vfill%
\begin{changemargin}{-10mm}{0mm}
\begin{changemargin}{-15mm}{0mm}
\begin{center}
\huge \textbf{TH\`ESE} \large pr\'esent\'ee par\\\vspace{5mm}
{\LARGE\bf\@Firstname\, \MakeUppercase{\@Lastname}}\\\vspace{5mm}
{\LARGE\bf \@Firstname\, \MakeUppercase{\@Lastname}}\\\vspace{5mm}
{\large soutenue le: \bfseries \@ThesisDate}\vspace{5mm}
\begin{tabular}{rl}
@@ -40,7 +40,7 @@
\end{center}%
\end{changemargin}%
\vfill%
\begin{changemargin}{-15mm}{-5mm}
\begin{changemargin}{-25mm}{-15mm}
{\large\bfseries THÈSE dirigée par}:\vspace{2mm}
\begin{tabular}{p{7cm}p{10cm}}%
@@ -60,10 +60,10 @@
\begin{tabular}{p{7cm}p{10cm}}
\@jury
\end{tabular}\vspace{3mm}
\end{changemargin}
\makeatother
% go back to default geometry settings
\setlength\oddsidemargin{\defaultOddsidemargin}
\setlength\evensidemargin{\defaultEvensidemargin}
\setlength\evensidemargin{\defaultEvensidemargin}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Thesis/NAME_Thesis.pdf Normal file

Binary file not shown.

View File

@@ -1,22 +1,21 @@
%\documentclass{PhDThesisED182}
\documentclass[showNotes, showLineNumbers]{PhDThesisED182}
%! TeX Program = pdflatex
%! TeX Root = ./NAME_Thesis.tex
%\documentclass{PhDThesis}
\documentclass[showNotes,showLineNumbers]{PhDThesis}
%\modulolinenumbers[5] % Change line numbering every N lines
%\renewcommand{\familydefault}{\sfdefault} % Uncomment to default to sans serif font
%%%%%%%%%%%%%%%% Fill in for Front and Back Covers %%%%%%%%%%%%%%%%
% Author
\Firstname{Firstname}
\Lastname{Lastname}
\author{Firstname}{Lastname}
% University
\UniversityName{Universit\'e de Strasbourg}
\UniversityLogo{Images/Covers/Logo\_StrasbourgUni.pdf}
\University{Universit\'e de Strasbourg}{Figures/Covers/Logo\_Unistra.pdf}
% Labo
\LaboName{Observatoire Astronomique de Strasbourg (UMR 7550)}
\LaboLogo{Images/Covers/Logo\_ObAS.pdf}
\Labo{Observatoire Astronomique de Strasbourg (UMR 7550)}{Figures/Covers/Logo\_ObAS.pdf}
% Doctoral school
\DoctoralSchoolName{\'Ecole Doctorale de physique et chimie-physique}
\DoctoralSchoolLogo{Images/Covers/logo\_ED182.pdf}
\DoctoralSchool{\'Ecole Doctorale de physique et chimie-physique}{Figures/Covers/logo\_ED182.pdf}
% Thesis
\ThesisDate{XX mois 20XX}
\TitreThese{Le titre de la thèse en français.}
@@ -50,61 +49,54 @@
\firstauth{Name}
\addboldnames{{Name, Firstname},{Name, I.}}
\makeglossaries
%%%%%%%%%%%%%%%% Document begin %%%%%%%%%%%%%%%%
\begin{document}
\include{Covers/FrontCover}
\cleardoublepage
\clearemptydoublepage
\pagenumbering{roman}
\dominitoc % use a mini table of contents for each chapter
\ifshowLineNumbers\linenumbers\fi % show line numbers if switched on
\adjustmtc % to avoid minitoc position issue in the following chapters
\include{Chapters/ch-Abstract}
\include{Chapters/ch-Résumé}
\adjustmtc
\include{Chapters/ch-Acknowledgements}
\include{Chapters/ch-Remerciements}
\adjustmtc % to avoid minitoc position issue in the following chapters
\include{Preamble/Acknowledgements}
\include{Preamble/Remerciements}
\tableofcontents
\adjustmtc
\include{Appendices/app-Glossary}
\adjustmtc
\include{Appendices/app-Publications}
\newpage
\listoffigures \mtcaddchapter % do not forget "\mtcaddchapter" (ohterwise, conflict with minitoc)
\listoffigures
\newpage
\listoftables \mtcaddchapter
\cleardoublepage
\listoftables
% Define Glossary terms
\include{Preamble/Glossary}
\printglossaries
\adjustmtc
\include{Preamble/Publications}
\pagenumbering{arabic}
\adjustmtc
\include{Chapters/ch-Introduction}
\include{Chapters/ch-Chapter1}
\include{Chapters/ch-Chapter2}
\include{Chapters/ch-Chapter3}
\adjustmtc
\include{Chapters/ch-Conclusion}
\begin{appendices}
\include{Appendices/app-AppendixA}
\end{appendices}
\resetboldnames % Remove bold font on \firstauth for global bibliography
\include{Preamble/Abstract}
\include{Preamble/Resume}
\newpage
\include{Chapters/Chapter1}
\include{Chapters/Chapter2}
\include{Chapters/Chapter3}
\printbibliography
\addcontentsline{toc}{chapter}{Bibliography}
\cleardoublepage
\begin{appendices}
\include{Appendices/AppendixA}
\end{appendices}
\clearemptydoublepage
\include{Covers/BackCover}
\end{document}

View File

@@ -1,39 +1,85 @@
%%% File: PhDThesisED182.cls
%%% File: PhDThesis.cls
%%% Brief: Document class template for ED182 thesis manuscript
%%% Use: \documentclass[showNotes, showLineNumbers, showWatermark]{PhDThesisED182}
%%% Use: \documentclass[showNotes, showLineNumbers, showWatermark]{PhDThesis}
%%% Author: Alexandre BIGOT, alexandre.bigot@iphc.cnrs.fr
%%% Tweaks: Thibault BARNOUIN, thibault.barnouin@astro.unistra.fr
%% Identification
%% The class identifies itself and the LaTeX version needed
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{PhDThesisED182}[2024-02-28 Minimal class for PhD thesis manuscript in ED182]
\ProvidesClass{PhDThesis}[Minimal class for PhD thesis manuscript]
%% Load the article class file
\LoadClass[a4paper,twoside,12pt]{report}
%% Load packages
\RequirePackage{hyperref} % Extensive support for hypertext
\PassOptionsToPackage{a4paper,inner=30mm,outer=20mm,top=25mm,bottom=30mm}{geometry}\RequirePackage{geometry} % Flexible and complete interface to document dimensions
\PassOptionsToPackage{main=english,french}{babel}\RequirePackage{babel} % Multilingual support
\PassOptionsToPackage{T1}{fontenc}\RequirePackage{fontenc} % Standard package for selecting font encodings
\RequirePackage{pdfpages} % Insert pdf as pages
\RequirePackage{lmodern} % Make sure thesis is ready for printing
\RequirePackage{graphicx} % Enhanced support for graphics
\RequirePackage{xcolor} % Driver-independent color extensions
\RequirePackage{amsmath} % AMS mathematical facilities
\RequirePackage{amssymb} % AMS mathematical symbols
\RequirePackage{amsfonts} % TeX fonts from the American Mathematical Society
\RequirePackage{fancyhdr} % Extensive control of page headers and footers
\RequirePackage{caption} % Better captions for tables and figures
\RequirePackage{listings} % For code citing
\RequirePackage{xparse} % For better parameter handling
\PassOptionsToPackage{export}{adjustbox}\RequirePackage{adjustbox} % Framing
% \PassOptionsToPackage{lang-warn=false}{datatool-base}\RequirePackage{datatool-base} % Remove missing datatool warning for french
\PassOptionsToPackage{acronym,toc,nopostdot}{glossaries}\RequirePackage{glossaries} % Create acronym and glossary tables
\PassOptionsToPackage{most}{tcolorbox}\RequirePackage{tcolorbox} % Coloured boxes
\RequirePackage{colortbl} % Coloured row and columns in tables
\PassOptionsToPackage{nottoc}{tocbibind}\RequirePackage{tocbibind} % Add bibliography/index/contents to Table of Contents
\PassOptionsToPackage{nohints,tight}{minitoc}\RequirePackage{minitoc} % Produce a table of contents for each chapter, part or section
\PassOptionsToPackage{title}{appendix}\RequirePackage{appendix} % Extra control of appendices
\let\oldappendices=\appendices
\renewcommand\appendices{\oldappendices\adjustmtc}
\PassOptionsToPackage{modulo}{lineno}\RequirePackage{lineno} % Line numbers on paragraphs
\RequirePackage{macros} % Personal macros for bibliography
%% Switches
\newif\ifshowNotes
\newif\ifshowLineNumbers
%
%% Class options
\DeclareOption{showNotes}{\showNotestrue}
\DeclareOption{showLineNumbers}{\linenumbers} % show line numbers if switched on
\ProcessOptions\relax % to process options
%%%%%%%%%%%%%%%% Commands and default values for Covers %%%%%%%%%%%%%%%%
% Author name
\makeatletter
\newcommand{\Firstname}[1]{\gdef\@Firstname{#1}}
\Firstname{Firstname}
\newcommand{\Lastname}[1]{\gdef\@Lastname{#1}}
\Lastname{Lastname}
\renewcommand{\author}[2]{\Firstname{#1}\Lastname{#2}\hypersetup{pdfauthor={#1 #2},pdfcreator={#1 #2}}}
% University name and logo
\newcommand{\UniversityName}[1]{\gdef\@UniversityName{#1}}
\UniversityName{Universit\'e de Strasbourg}
\newcommand{\UniversityLogo}[1]{\gdef\@UniversityLogo{#1}}
\UniversityLogo{Images/Covers/Logo\_StrasbourgUni.pdf}
\UniversityLogo{Images/Covers/Logo\_Unistra.pdf}
\newcommand{\University}[2]{\UniversityName{#1}\UniversityLogo{#2}}
% Labo name and logo
\newcommand{\LaboName}[1]{\gdef\@LaboName{#1}}
\LaboName{My Laboratory}
\newcommand*{\LaboLogo}[1]{\gdef\@LaboLogo{#1}}
\LaboLogo{}
\newcommand{\Labo}[2]{\LaboName{#1}\LaboLogo{#2}}
% Doctoral school name and logo
\newcommand{\DoctoralSchoolName}[1]{\gdef\@DoctoralSchoolName{#1}}
\DoctoralSchoolName{\'Ecole Doctorale de physique et chimie-physique}
\newcommand{\DoctoralSchoolLogo}[1]{\gdef\@DoctoralSchoolLogo{#1}}
\DoctoralSchoolLogo{Images/Covers/logo\_ED182}
\newcommand{\DoctoralSchool}[2]{\DoctoralSchoolName{#1}\DoctoralSchoolLogo{#2}}
% Thesis title and subtitle in French and English
\newcommand{\ThesisDate}[1]{\gdef\@ThesisDate{#1}}
\ThesisDate{XX mois 20XX}
\newcommand{\TitreThese}[1]{\gdef\@TitreThese{#1}}
\TitreThese{Le titre de la thèse en français.}
\newcommand*{\SousTitreThese}[1]{\gdef\@SousTitreThese{#1}}
@@ -42,22 +88,22 @@
\resume{1000 caract\`eres maximum}
\newcommand{\motscles}[1]{\gdef\@motscles{#1}}
\motscles{...}
\newcommand{\ThesisTitle}[1]{\gdef\@ThesisTitle{#1}}
\newcommand{\ThesisTitle}[1]{\gdef\@ThesisTitle{#1}\hypersetup{pdftitle={#1}}}
\ThesisTitle{Title of the thesis in english.}
\newcommand*{\ThesisSubTitle}[1]{\gdef\@ThesisSubTitle{#1}}
\ThesisSubTitle{}
\renewcommand{\abstract}[1]{\gdef\@abstract{#1}}
\abstract{1000 letters max}
\newcommand{\keywords}[1]{\gdef\@keywords{#1}}
\newcommand{\keywords}[1]{\gdef\@keywords{#1}\hypersetup{pdfkeywords={#1}}}
\keywords{...}
\newcommand{\ThesisDate}[1]{\gdef\@ThesisDate{#1}}
\ThesisDate{XX mois 20XX}
\newcommand{\PhDThesis@Abstractmaxchars}[1]{\edef\PhDThesis@Abstractmaxchars{#1}}
\PhDThesis@Abstractmaxchars{1000}
% Discipline
\newcommand{\Discipline}[1]{\gdef\@Discipline{#1}}
\Discipline{Physique}
\newcommand*{\Speciality}[1]{\gdef\@Speciality{#1}}
\Speciality{}
%%% Members of the jury title, name, position and affiliation
%%% Jury members title, name, position and affiliation
\newcommand{\person}[5]{\hspace{2mm}\bfseries{#1\, \MakeUppercase{#2}\, #3} & {#4, #5}\\}
% Directeurs
\newcommand{\directeurs}[1]{\gdef\@directeurs{#1}}
@@ -78,29 +124,15 @@
\person{Civ.}{Lastname}{Firstname}{Pos.}{Affiliation}
\person{Civ.}{Lastname}{Firstname}{Pos.}{Affiliation}
}
%% Load packages
\PassOptionsToPackage{pdftitle={\@ThesisTitle}, pdfauthor={\@Firstname \@Lastname}, pdfcreator={PdfLaTeX}, pdfkeywords={\@keywords}, pdfsubject={Thesis Manuscript}}{hyperref}\RequirePackage{hyperref} % Extensive support for hypertext
\makeatother
\PassOptionsToPackage{a4paper,inner=25mm,outer=15mm,top=25mm,bottom=20mm}{geometry}\RequirePackage{geometry} % Flexible and complete interface to document dimensions
\PassOptionsToPackage{T1}{fontenc}\RequirePackage{fontenc} % Standard package for selecting font encodings
%\PassOptionsToPackage{comma,square,numbers,sort&compress}{natbib}\RequirePackage{natbib} % Flexible bibliography support
\PassOptionsToPackage{main=english,french}{babel}\RequirePackage{babel} % Multilingual support
\RequirePackage{lmodern} % Make sure thesis is ready for printing
\RequirePackage{graphicx} % Enhanced support for graphics
\RequirePackage{amsmath} % AMS mathematical facilities
\RequirePackage{amsfonts} % TeX fonts from the American Mathematical Society
\RequirePackage{xcolor} % Driver-independent color extensions
\RequirePackage{fancyhdr} % Extensive control of page headers and footers
\RequirePackage{etoolbox} % Extended conditional commands
\PassOptionsToPackage{most}{tcolorbox}\RequirePackage{tcolorbox} % Coloured boxes
\PassOptionsToPackage{nottoc}{tocbibind}\RequirePackage{tocbibind} % Add bibliography/index/contents to Table of Contents
\RequirePackage{minitoc} % Produce a table of contents for each chapter, part or section
\PassOptionsToPackage{title}{appendix}\RequirePackage{appendix} % Extra control of appendices
\PassOptionsToPackage{modulo}{lineno}\RequirePackage{lineno} % Line numbers on paragraphs
\RequirePackage{macros} % Personal macros for bibliography
\addbibresource[glob]{*.bib}
%% Commands to hide parts from TOC
\newcommand{\nocontentsline}[3]{}
\let\origcontentsline\addcontentsline
\newcommand\stoptoc{\let\addcontentsline\nocontentsline}
\newcommand\resumetoc{\let\addcontentsline\origcontentsline}
\NewDocumentEnvironment{notes}{+b}{\ifshowNotes\color{gray}#1\color{black}\fi}{}
%% Define my colours
\definecolor{DarkBlue}{rgb}{0.0, 0.0, 0.55}
@@ -113,6 +145,10 @@
\newcommand{\mycolor}[2]{\color{#1}#2\color{black}\xspace}
\newcommand{\red}[1]{\color{red}#1\color{black}\xspace}
%% Page formating
\newcommand{\clearemptydoublepage}{%
\newpage{\pagestyle{empty}\cleardoublepage}}
%% Change hyperlinks style
\hypersetup
{
@@ -124,6 +160,22 @@
citecolor=DodgerBlue,
}
\makeatother
\let\oldtoc=\tableofcontents
\renewcommand\tableofcontents{\subpdfbookmark{Table of Contents}{name}{\hypersetup{hidelinks}\oldtoc}}
%
\let\oldlof=\listoffigures
\renewcommand\listoffigures{{\hypersetup{hidelinks}\oldlof\mtcaddchapter}}
%
\let\oldlot=\listoftables
\renewcommand\listoftables{{\hypersetup{hidelinks}\oldlot\mtcaddchapter}}
%
\let\oldpgls=\printglossaries
\renewcommand\printglossaries{
\printglossary[type=\glsdefaulttype,style=altlist,nonumberlist=true]\adjustmtc%
\printglossary[type=\acronymtype]\adjustmtc%
}
%% Fonts substitutions for non existing bold small caps in lmodern
\rmfamily
\DeclareFontShape{T1}{lmr}{b}{sc}{<->ssub*cmr/b/sc}{}
@@ -147,6 +199,26 @@
% \renewcommand{\thesubsection}{\Roman{section}.\arabic{subsection})}
% \renewcommand{\thesubsubsection}{\Roman{section}.\arabic{subsection}.\alph{subsubsection})}
%% Command to create a glossary entry with correspondent acronym.
%Syntax: \newdualentry[acronym options]{label}{abbrv}{long}{description}
\DeclareDocumentCommand{\newdualentry}{ O{} m m m m } {
\newglossaryentry{#2_gls}{name={#3},
type={\glsdefaulttype},
long={#4},
description={#5},
#1
}
\newacronym[description={#4, \textit{Glossary:} \glslink{#2_gls}{#3} ;},#1]{#2}{#3}{#4\glsadd{#2_gls}}
% \newglossaryentry{#2}{name={#3},
% type={\acronymtype},
% short={#3},
% long={#4},
% description={#4, \textit{Glossary:} \glslink{#2_gls}{#3}},
% first={#3 (\capitalisewords{#4})\glsadd{#2_gls}},
% #1
% }
}
%% A simple box
\newenvironment{mybox}[0]{%
\tcolorbox[opacityback=0., standard jigsaw,breakable]}%
@@ -172,13 +244,39 @@
\newlength{\defaultEvensidemargin}
\setlength{\defaultEvensidemargin}{\evensidemargin}
%% Switches
\newif\ifshowNotes
\newenvironment{notes}[1]{\ifshowNotes #1\fi}
% Warning on character count in resume/abstract
\makeatletter
\def\gobblechar{\let\char= }
\newcount\charcount
\def\countunlessnil{%
\ifx\char\nil \let\next=\relax%
\else%
\let\next=\auxcountchar%
\advance\charcount by 1%
\fi\next
}%
\newif\ifshowLineNumbers
%
%% Class options
\DeclareOption{showNotes}{\showNotestrue}
\DeclareOption{showLineNumbers}{\showLineNumberstrue}
\ProcessOptions\relax % to process options
\def\auxcountchar{%
\afterassignment\countunlessnil\gobblechar%
}
\def\countchar#1{\edef\xx{#1}\charcount=0 \expandafter\auxcountchar\xx\nil}
\def\shownumchar#1{%
\countchar{#1}%
There are \the\charcount\ characters in [#1].%
}
\newcommand{\PhDThesis@checkResume}{%
\countchar{\@resume}%
\ifnum\charcount>\PhDThesis@Abstractmaxchars
\PhDThesis@warningAbstract{resume}{\PhDThesis@Abstractmaxchars}%
\fi
}
\newcommand{\PhDThesis@checkAbstract}{%
\countchar{\@abstract}%
\ifnum\charcount>\PhDThesis@Abstractmaxchars
\PhDThesis@warningAbstract{abstract}{\PhDThesis@Abstractmaxchars}%
\fi
}
\newcommand{\PhDThesis@warningAbstract}[2]{%
\@latex@warning@no@line{your #1 is longer than #2 characters}%
}

View File

@@ -0,0 +1,15 @@
\chapter*{Abstract}
\chaptermark{Abstract}
\markboth{ABSTRACT}{ABSTRACT}
\addcontentsline{toc}{chapter}{Abstract}
\stoptoc
\renewcommand\thesection{\arabic{section}}
\setcounter{section}{0}
\renewcommand*{\theHsection}{Abs.\the\value{section}}
...
\renewcommand*{\theHsection}{\theHchapter.\the\value{section}}
\renewcommand\thesection{\thechapter.\arabic{section}}
\resumetoc

View File

@@ -0,0 +1,4 @@
% Glossary
%Syntax: \newdualentry[acronym options]{label}{abbrv}{long}{description}
\newdualentry[longplural="galaxies"]{GAL}{GAL}{galaxy}{I don't know just an entry to test}

View File

@@ -1,17 +1,18 @@
\chapter*{List of Publications}
\chaptermark{List of Publications}
\markboth{LIST OF PUBLICATIONS}{LIST OF PUBLICATIONS}
\addcontentsline{toc}{chapter}{List of Publications}
%%% Add all relevant publications to ./papers.bib
%%% Define \firstauth{Name} and \addboldnames{{Name, I.},{Name, First-Name}} in PhDThesisED182.cls
%%% Will go through all references, add categories based on First Author, Second Author or Contributor
%%% Can also add conference talks and posters as non-articles
\chapter*{List of Publications}
\chaptermark{Publications}
\markboth{PUBLICATIONS}{PUBLICATIONS}
\addcontentsline{toc}{chapter}{List of Publications}
\begin{refsection}
\nocite{*}%
\newrefcontext[sorting=ynt]
\printbibliography[keyword={first},check=JoPR,type=article,heading=subbibliography,title={First Author}]%
\printbibliography[keyword={main},check=JoPR,type=article,heading=subbibliography,title={Main contribution}]%
\printbibliography[keyword={collab},check=JoPR,type=article,heading=subbibliography,title={Collaborator}]%
\printbibliography[nottype=article,heading=subbibliography,title={Conferences}]%
\printbibliography[keyword={collab},check=JoPR,type=article,heading=subbibliography,title={Analysis team}]%
\printbibliography[keyword={self},nottype=article,heading=subbibliography,title={Conferences}]%
\end{refsection}
\resetboldnames

View File

@@ -0,0 +1,15 @@
\chapter*{R\'esum\'e}
\chaptermark{R\'esum\'e}
\markboth{R\'ESUM\'E}{R\'ESUM\'E}
\addcontentsline{toc}{chapter}{R\'esum\'e}
\stoptoc
\renewcommand\thesection{\arabic{section}}
\setcounter{section}{0}
\renewcommand*{\theHsection}{Res.\the\value{section}}
...
\renewcommand*{\theHsection}{\theHchapter.\the\value{section}}
\renewcommand\thesection{\thechapter.\arabic{section}}
\resumetoc

8
Thesis/latexmkrc Normal file
View File

@@ -0,0 +1,8 @@
add_cus_dep('glo', 'gls', 0, 'makeglo2gls');
sub makeglo2gls {
system("makeindex -s '$_[0]'.ist -t '$_[0]'.glg -o '$_[0]'.gls '$_[0]'.glo");
}
add_cus_dep('acn', 'acr', 0, 'makeacn2acr');
sub makeacn2acr {
system("makeindex -s '$_[0]'.ist -t '$_[0]'.alg -o '$_[0]'.acr '$_[0]'.acn");
}

View File

@@ -1,9 +1,15 @@
\ProvidesPackage{macros}
%----------------------------------------------------------------------------------------
% DEFINE BIBLIOGRAPHY STYLE
%----------------------------------------------------------------------------------------
\usepackage{csquotes}
\usepackage[backend=biber,natbib=true,style=authoryear,uniquename=init,giveninits=true,isbn=false,url=false,doi=false,maxcitenames=3,minbibnames=6,maxbibnames=50,sorting=ynt]{biblatex}
\usepackage{microtype}
\usepackage[backend=biber,natbib=true,style=authoryear,uniquelist=false,uniquename=false,giveninits=true,isbn=false,url=false,doi=false,mincitenames=1,maxcitenames=2,minbibnames=6,maxbibnames=150,sorting=nyvt]{biblatex}
\addbibresource[glob]{papers.bib}
\addbibresource[glob]{biblio.bib}
\BiblatexSplitbibDefernumbersWarningOff
\emergencystretch=1em
\makeatletter
\def\nhblx@bibfile@name{papers-sort.bib}
\newwrite\nhblx@bibfile
@@ -52,17 +58,22 @@
\map{
\perdatasource{papers.bib}
\step[fieldsource=author, match=\regexp{^{#1}}, final]
\step[fieldset=keywords, fieldvalue={, first},append]
\step[fieldset=keywords, fieldvalue={,first},append]
}
\map{
\perdatasource{papers.bib}
\step[fieldsource=author, match=\regexp{^(?>\{[^\}]+\}\,\s[\w\-\.]+\sand\s){1}\{#1\}}, final]
\step[fieldset=keywords, fieldvalue={, main},append]
\step[fieldset=keywords, fieldvalue={,main},append]
}
\map{
\perdatasource{papers.bib}
\step[fieldsource=author, match=\regexp{^(?:.+?\sand\s){2}.*?\{#1\}}, final]
\step[fieldset=keywords, fieldvalue={, collab},append]
\step[fieldset=keywords, fieldvalue={,collab},append]
}
\map{
\perdatasource{papers.bib}
\step[fieldsource=author, match=\regexp{{#1}}, final]
\step[fieldset=keywords, fieldvalue={,self},append]
}
}
}