Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomlourenco committed May 4, 2024
2 parents d7e96fb + e825a9c commit e3af74c
Show file tree
Hide file tree
Showing 9 changed files with 91 additions and 35 deletions.
59 changes: 44 additions & 15 deletions Chapters/chapter4.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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!<project_root>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=<SOMETHING>}!;
\item For each school supported (see the comment), replace \verb!<SOMETHING>! 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}
25 changes: 25 additions & 0 deletions Chapters/chapter5.tex
Original file line number Diff line number Diff line change
@@ -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]
2 changes: 1 addition & 1 deletion Config/4_files.tex
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
\ntaddfile{chapter}{chapter1}
\ntaddfile{chapter}{chapter2}
\ntaddfile{chapter}{chapter3}
% \ntaddfile{chapter}{chapter4}
\ntaddfile{chapter}{chapter4}
% \ntaddfile{chapter}{chapter-last}

%%------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions NOVAthesisFiles/Schools/ipl/isel/ipl-isel-meb-defaults.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
4 changes: 2 additions & 2 deletions NOVAthesisFiles/nt-version.sty
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
\newcommand*{\novathesisversion}{7.1.24}
\newcommand*{\novathesisdate}{2024-04-11}
\newcommand*{\novathesisversion}{7.1.25}
\newcommand*{\novathesisdate}{2024-05-04}
27 changes: 14 additions & 13 deletions NOVAthesisFiles/spine.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}{%
% If angle is 0 revere the order of the logos
\IfStrEqCase{\thespine(angle)}{%
{0}{\@reverelist{\expanded{\thespine(logo)}}\@logoorder%
Expand Down Expand Up @@ -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}{%
\ifoptionequal{/novathesis/spine/layout}{none}{}{%
\parindent=0pt%
\sffamily%
Expand Down
4 changes: 2 additions & 2 deletions novathesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -54,7 +54,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\ProvidesClass{novathesis}[2024-04-11 novathesis template]
\ProvidesClass{novathesis}[2024-05-04 novathesis template]
\NeedsTeXFormat{LaTeX2e}[2020-02-02]


Expand Down
2 changes: 1 addition & 1 deletion template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e3af74c

Please sign in to comment.