diff --git a/Chapters/chapter4.tex b/Chapters/chapter4.tex index 783df398..5ecad069 100644 --- a/Chapters/chapter4.tex +++ b/Chapters/chapter4.tex @@ -8,18 +8,47 @@ \typeout{NT FILE chapter4.tex}% -\chapter{Lorem Ipsum} -\label{cha:lorem_ipsum} - -\lipsum[1-100] -\lipsum[1-100] -\lipsum[1-100] -% \lipsum[1-100] -% \lipsum[1-700] -% \lipsum[1-700] -% \lipsum[1-700] -% \lipsum[1-700] -% \lipsum[1-700] -% \lipsum[1-700] -% \lipsum[1-700] -% \lipsum[1-700] +\chapter{Adding Support to a New School} +\label{cha:porting_novathesis} + +My advice to customize the \novathesis\ template to another School/University/Department/Degree is to browse the existing supported degrees to find one that is \emph{close enough}, and depart from there! + +The multitude of layouts supported by the \novathesis\ template is based in a three-tier naming scheme, separated by slashes: University / School / Department-or-Degree. This three-tier naming scheme is also reflected in a three-tier directory (folder) structure in: \verb!a/NOVAthesiFiles/Schools/…!. For example: + +\begin{verbatim} +… +| ++—— nova +| +—— Images +| +—— fct +| | \—— Images +| +—— ims +| | \—— Images +| … +| +\—— uminho + +—— Images + +—— ea + | \—— Images + +—— ec + | \—— Images + … +\end{verbatim} + +The directory \verb!uminho! contains the customization for all Schools of Universidade do Minho. This university is an example of the case where the regulations are defined at University level and all the schools apply the same thesis layout and organization. So, the all the customization is done in the file \verb!uminho/uminho-defaults.ldf!, except the definition of the name and logo of each individual school. + +As another example, the directory \verb!nova! contains the customization for all Schools from NOVA University Lisbon. This university grants a lot of freedom in the definition of the thesis layouts. In some cases, they are defined at the School level (e.g., NOVA FCT), while is some other cases they are defined separately for each degree (e.g., NOVA IMS). + + + + +\begin{enumerate} + \item Try all the already supported schools and check which one is closer to your needs; + \begin{enumerate} + \item Edit \verb!Config/1_novathesis.tex! and near line 28 uncomment the line with key \verb!\ntsetup{school=}!; + \item For each school supported (see the comment), replace \verb!! with the school name, e.g., make it \verb!\ntsetup{school=ulisboa/fmv}! + \item Recompile and check the document. Particularly, check the cover layout, the front-page (second cover) layout, the front-matter contents, the bibliography style; + \item Repeat for the next school, until you find one close enough. + \end{enumerate} + \item +\end{enumerate} \ No newline at end of file diff --git a/Chapters/chapter5.tex b/Chapters/chapter5.tex new file mode 100644 index 00000000..4fe8845a --- /dev/null +++ b/Chapters/chapter5.tex @@ -0,0 +1,25 @@ +%!TEX root = ../template.tex +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% chapter5.tex +%% NOVA thesis document file +%% +%% Chapter with lots of dummy text +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\typeout{NT FILE chapter5.tex}% + +\chapter{Lorem Ipsum} +\label{cha:lorem_ipsum} + +\lipsum[1-100] +\lipsum[1-100] +\lipsum[1-100] +% \lipsum[1-100] +% \lipsum[1-700] +% \lipsum[1-700] +% \lipsum[1-700] +% \lipsum[1-700] +% \lipsum[1-700] +% \lipsum[1-700] +% \lipsum[1-700] +% \lipsum[1-700] diff --git a/Config/4_files.tex b/Config/4_files.tex index 3ac0a2e0..575f38f5 100644 --- a/Config/4_files.tex +++ b/Config/4_files.tex @@ -71,7 +71,7 @@ \ntaddfile{chapter}{chapter1} \ntaddfile{chapter}{chapter2} \ntaddfile{chapter}{chapter3} -% \ntaddfile{chapter}{chapter4} +\ntaddfile{chapter}{chapter4} % \ntaddfile{chapter}{chapter-last} %%------------------------------------------------------------ diff --git a/Makefile b/Makefile index a52b6fcc..9f411b1c 100644 --- a/Makefile +++ b/Makefile @@ -179,7 +179,7 @@ define times declare PHASES="$(shell fgrep TIME *.log | cut -d ' ' -f 2-3 | cut -d '=' -f 1 | tr ' ' '_')";\ declare -a TM=($${TIMES});\ declare -a PH=($${PHASES});\ - for i in `seq 1 $$(($${#TM[@]}-1))`; do\ + for i in `seq 0 $$(($${#TM[@]}-1))`; do\ printf "%20s = %6.2f\n" "$${PH[$$i]}" "$${TM[$$i]}";\ done endef diff --git a/NOVAthesisFiles/Schools/ipl/isel/ipl-isel-meb-defaults.ldf b/NOVAthesisFiles/Schools/ipl/isel/ipl-isel-meb-defaults.ldf index cbe984ac..1aaedba0 100644 --- a/NOVAthesisFiles/Schools/ipl/isel/ipl-isel-meb-defaults.ldf +++ b/NOVAthesisFiles/Schools/ipl/isel/ipl-isel-meb-defaults.ldf @@ -26,6 +26,7 @@ \spine(box,date,angle)={-90} \spine(author)={\thedocauthor(name,short)} +\spine(order):=?{date,author,title,logo} \spine(box,logo,len):=?{4.1cm} \spine(box,date,len):=?{1.0cm} % \spine(box,author,len):=?{5.0cm} diff --git a/NOVAthesisFiles/nt-version.sty b/NOVAthesisFiles/nt-version.sty index 19dda1b9..4d924c0d 100644 --- a/NOVAthesisFiles/nt-version.sty +++ b/NOVAthesisFiles/nt-version.sty @@ -1,2 +1,2 @@ -\newcommand*{\novathesisversion}{7.1.24} -\newcommand*{\novathesisdate}{2024-04-11} +\newcommand*{\novathesisversion}{7.1.25} +\newcommand*{\novathesisdate}{2024-05-04} diff --git a/NOVAthesisFiles/spine.tex b/NOVAthesisFiles/spine.tex index c8b627a5..67cebe75 100644 --- a/NOVAthesisFiles/spine.tex +++ b/NOVAthesisFiles/spine.tex @@ -152,6 +152,20 @@ \strip@pt\dimexpr\number\numexpr\number\dimexpr#1\relax*65536/\number\dimexpr#2\relax\relax sp\relax } + +\newcommand{\@setlength}[2]{% + \defifundef{#1}{\newlength}% + \@tempdima=\dimexpr#2\relax% + \setlength{#1}{\the\@tempdima}% +} + +\newcommand{\ifnotnone}[2]{% + \IfStrEq{none}{#1}{}{#2}% +} + + + +\newcommand{\@ntprintspine}{%x§ % If angle is 0 revere the order of the logos \IfStrEqCase{\thespine(angle)}{% {0}{\@reverelist{\expanded{\thespine(logo)}}\@logoorder% @@ -236,19 +250,6 @@ % \DEBUG{TEXT[\myi,len]=\thespine(box,\myi,len)} % \DEBUG{TEXT[\myi,len2]=\thespine(box,\myi,len2)} } - -\newcommand{\@setlength}[2]{% - \defifundef{#1}{\newlength}% - \@tempdima=\dimexpr#2\relax% - \setlength{#1}{\the\@tempdima}% -} - -\newcommand{\ifnotnone}[2]{% - \IfStrEq{none}{#1}{}{#2}% -} - - -\newcommand{\@ntprintspine}{%x§ \ifoptionequal{/novathesis/spine/layout}{none}{}{% \parindent=0pt% \sffamily% diff --git a/novathesis.cls b/novathesis.cls index c818599c..f609b700 100644 --- a/novathesis.cls +++ b/novathesis.cls @@ -8,7 +8,7 @@ %% To view a copy of this license, visit %% https://www.latex-project.org/lppl/lppl-1-3c/ %% -%% Version 2024-04-11 [7.1.24] +%% Version 2024-05-04 [7.1.25] %% Departamento de Informática (www.di.fct.unl.pt) %% Faculdade de Ciências e Tecnologia (www.fct.unl.pt) %% Universidade NOVA de Lisboa (www.unl.pt) @@ -54,7 +54,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\ProvidesClass{novathesis}[2024-04-11 novathesis template] +\ProvidesClass{novathesis}[2024-05-04 novathesis template] \NeedsTeXFormat{LaTeX2e}[2020-02-02] diff --git a/template.tex b/template.tex index 821333a9..a47f81a4 100644 --- a/template.tex +++ b/template.tex @@ -8,7 +8,7 @@ %% To view a copy of this license, visit %% https://www.latex-project.org/lppl/lppl-1-3c/ %% -%% Version 2024-04-11 [7.1.24] +%% Version 2024-05-04 [7.1.25] %% Departamento de Informática (www.di.fct.unl.pt) %% Faculdade de Ciências e Tecnologia (www.fct.unl.pt) %% Universidade NOVA de Lisboa (www.unl.pt)