Skip to content

Commit

Permalink
Replaced the options system with a command \ntsetup{...}
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomlourenco committed Nov 2, 2020
2 parents ca7722e + 52425e1 commit 43704b3
Show file tree
Hide file tree
Showing 21 changed files with 1,832 additions and 673 deletions.
2 changes: 2 additions & 0 deletions Chapters/chapter1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
\chapter{Introduction}
\label{cha:introduction}

\maplang{pt}

\epigraph{
This work is licensed under the Creative Commons Attribution-NonCommercial~4.0 International License.
To view a copy of this license, visit \url{http://creativecommons.org/licenses/by-nc/4.0/}.
Expand Down
34 changes: 17 additions & 17 deletions novathesis-files/Schools/ipl/isel/defaults.clo
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,20 @@
\margin[plain,right]={2.5cm}

\dissertationstr[bsc,pt]={Relatório para obtenção do Grau de %
\thedegreestr[\novathesis@opt@docdegree,\theauthorgender,\novathesis@opt@coverlang]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\novathesis@opt@coverlang]}}
\thedegreestr[\option{/novathesis/docdegree},\theauthorgender,\option{/novathesis/coverlang}]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\option{/novathesis/coverlang}]}}
\dissertationstr[mscplan,pt]={Relatório intermédio para obtenção do Grau de %
\thedegreestr[\novathesis@opt@docdegree,\theauthorgender,\novathesis@opt@coverlang]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\novathesis@opt@coverlang]}}
\thedegreestr[\option{/novathesis/docdegree},\theauthorgender,\option{/novathesis/coverlang}]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\option{/novathesis/coverlang}]}}
\dissertationstr[msc,pt]={Dissertação de natureza científica para obtenção do grau de %
\thedegreestr[\novathesis@opt@docdegree,\theauthorgender,\novathesis@opt@coverlang]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\novathesis@opt@coverlang]}}
\thedegreestr[\option{/novathesis/docdegree},\theauthorgender,\option{/novathesis/coverlang}]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\option{/novathesis/coverlang}]}}
\dissertationstr[phdplan,pt]={Relatório intermédio para obtenção do Grau de %
\thedegreestr[\novathesis@opt@docdegree,\theauthorgender,\novathesis@opt@coverlang]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\novathesis@opt@coverlang]}}
\thedegreestr[\option{/novathesis/docdegree},\theauthorgender,\option{/novathesis/coverlang}]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\option{/novathesis/coverlang}]}}
\dissertationstr[phdprop,pt]={Proposta de dissertação para obtenção do Grau de %
\thedegreestr[\novathesis@opt@docdegree,\theauthorgender,\novathesis@opt@coverlang]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\novathesis@opt@coverlang]}}
\thedegreestr[\option{/novathesis/docdegree},\theauthorgender,\option{/novathesis/coverlang}]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\option{/novathesis/coverlang}]}}
\dissertationstr[phd,pt]={Dissertação para obtenção do Grau de %
\thedegreestr[\novathesis@opt@docdegree,\theauthorgender,\novathesis@opt@coverlang]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\novathesis@opt@coverlang]}}
\copyrighttextstr[pt]={O \thefaculty[\novathesis@opt@coverlang]\ e o \theuniversity[\novathesis@opt@coverlang]\ têm o direito, perpétuo e sem limites geográficos, de arquivar e publicar esta dissertação através de exemplares impressos reproduzidos em papel ou de forma digital, ou por qualquer outro meio conhecido ou que venha a ser inventado, e de a divulgar através de repositórios científicos e de admitir a sua cópia e distribuição com objetivos educacionais ou de investigação, não comerciais, desde que seja dado crédito ao autor e editor.}
\thedegreestr[\option{/novathesis/docdegree},\theauthorgender,\option{/novathesis/coverlang}]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\option{/novathesis/coverlang}]}}
\copyrighttextstr[pt]={O \thefaculty[\option{/novathesis/coverlang}]\ e o \theuniversity[\option{/novathesis/coverlang}]\ têm o direito, perpétuo e sem limites geográficos, de arquivar e publicar esta dissertação através de exemplares impressos reproduzidos em papel ou de forma digital, ou por qualquer outro meio conhecido ou que venha a ser inventado, e de a divulgar através de repositórios científicos e de admitir a sua cópia e distribuição com objetivos educacionais ou de investigação, não comerciais, desde que seja dado crédito ao autor e editor.}

\copyrighttextstr[en]={The \thefaculty[\novathesis@opt@coverlang]\ and the \theuniversity[\novathesis@opt@coverlang]\ have the right, perpetual and without geographical boundaries, to file and publish this dissertation through printed copies reproduced on paper or on digital form, or by any other means known or that may be invented, and to disseminate through scientific repositories and admit its copying and distribution for non-commercial, educational or research purposes, as long as credit is given to the author and editor.}
\copyrighttextstr[en]={The \thefaculty[\option{/novathesis/coverlang}]\ and the \theuniversity[\option{/novathesis/coverlang}]\ have the right, perpetual and without geographical boundaries, to file and publish this dissertation through printed copies reproduced on paper or on digital form, or by any other means known or that may be invented, and to disseminate through scientific repositories and admit its copying and distribution for non-commercial, educational or research purposes, as long as credit is given to the author and editor.}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -174,9 +174,9 @@
% School
\coveritem[c]{0.5cm}{%
\fontsize{13}{13}\selectfont%
\textbf{\MakeUppercase{\thefaculty[\novathesis@opt@coverlang]}}\\%
\textbf{\MakeUppercase{\thefaculty[\option{/novathesis/coverlang}]}}\\%
\fontsize{10}{10}\selectfont%
\textbf{\MakeUppercase{\thedepartment[\novathesis@opt@coverlang]}}%
\textbf{\MakeUppercase{\thedepartment[\option{/novathesis/coverlang}]}}%
}

\coveritem[c]{0.5cm}{
Expand Down Expand Up @@ -205,8 +205,8 @@

% Advisers
\coveritem[c]{2}{%
\adviserstrfont[\novathesis@opt@coverlang]={\bfseries}%
\coadviserstrfont[\novathesis@opt@coverlang]={\bfseries}%
\adviserstrfont[\option{/novathesis/coverlang}]={\bfseries}%
\coadviserstrfont[\option{/novathesis/coverlang}]={\bfseries}%
\fontsize{11}{11}\selectfont%
\printadvisers%
}
Expand All @@ -215,11 +215,11 @@
% Committee — only print the committee for the main classes
\coveritem[c]{1}{%
\ifthenelse{%
\equal{\novathesis@opt@docdegree}{bsc}%
\OR\equal{\novathesis@opt@docdegree}{msc}%
\OR\equal{\novathesis@opt@docdegree}{phd}}%
{\committeetitlestrfont[\novathesis@opt@coverlang]={\fontsize{14}{14}\selectfont\bfseries}%
\commiteememberstrfont[\novathesis@opt@coverlang]={\bfseries}%
\equal{\option{/novathesis/docdegree}}{bsc}%
\OR\equal{\option{/novathesis/docdegree}}{msc}%
\OR\equal{\option{/novathesis/docdegree}}{phd}}%
{\committeetitlestrfont[\option{/novathesis/coverlang}]={\fontsize{14}{14}\selectfont\bfseries}%
\commiteememberstrfont[\option{/novathesis/coverlang}]={\bfseries}%
\fontsize{11}{11}\selectfont\printcommittee%
}%
{}%
Expand Down
34 changes: 17 additions & 17 deletions novathesis-files/Schools/ips/ests/defaults.clo
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,20 @@
\margin[plain,right]={2.0cm}

\dissertationstr[bsc,pt]={Relatório para obtenção do Grau de %
\thedegreestr[\novathesis@opt@docdegree,\theauthorgender,\novathesis@opt@coverlang]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\novathesis@opt@coverlang]}}
\thedegreestr[\option{/novathesis/docdegree},\theauthorgender,\option{/novathesis/coverlang}]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\option{/novathesis/coverlang}]}}
\dissertationstr[mscplan,pt]={Relatório intermédio para obtenção do Grau de %
\thedegreestr[\novathesis@opt@docdegree,\theauthorgender,\novathesis@opt@coverlang]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\novathesis@opt@coverlang]}}
\thedegreestr[\option{/novathesis/docdegree},\theauthorgender,\option{/novathesis/coverlang}]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\option{/novathesis/coverlang}]}}
\dissertationstr[msc,pt]={Dissertação de natureza científica para obtenção do grau de %
\thedegreestr[\novathesis@opt@docdegree,\theauthorgender,\novathesis@opt@coverlang]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\novathesis@opt@coverlang]}}
\thedegreestr[\option{/novathesis/docdegree},\theauthorgender,\option{/novathesis/coverlang}]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\option{/novathesis/coverlang}]}}
\dissertationstr[phdplan,pt]={Relatório intermédio para obtenção do Grau de %
\thedegreestr[\novathesis@opt@docdegree,\theauthorgender,\novathesis@opt@coverlang]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\novathesis@opt@coverlang]}}
\thedegreestr[\option{/novathesis/docdegree},\theauthorgender,\option{/novathesis/coverlang}]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\option{/novathesis/coverlang}]}}
\dissertationstr[phdprop,pt]={Proposta de dissertação para obtenção do Grau de %
\thedegreestr[\novathesis@opt@docdegree,\theauthorgender,\novathesis@opt@coverlang]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\novathesis@opt@coverlang]}}
\thedegreestr[\option{/novathesis/docdegree},\theauthorgender,\option{/novathesis/coverlang}]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\option{/novathesis/coverlang}]}}
\dissertationstr[phd,pt]={Dissertação para obtenção do Grau de %
\thedegreestr[\novathesis@opt@docdegree,\theauthorgender,\novathesis@opt@coverlang]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\novathesis@opt@coverlang]}}
\copyrighttextstr[pt]={A \thefaculty[\novathesis@opt@coverlang]\ e o \theuniversity[\novathesis@opt@coverlang]\ têm o direito, perpétuo e sem limites geográficos, de arquivar e publicar esta dissertação através de exemplares impressos reproduzidos em papel ou de forma digital, ou por qualquer outro meio conhecido ou que venha a ser inventado, e de a divulgar através de repositórios científicos e de admitir a sua cópia e distribuição com objetivos educacionais ou de investigação, não comerciais, desde que seja dado crédito ao autor e editor.}
\thedegreestr[\option{/novathesis/docdegree},\theauthorgender,\option{/novathesis/coverlang}]\ em\\[1ex] \textbf{\fontsize{12}{12}\selectfont\themajorfield[\option{/novathesis/coverlang}]}}
\copyrighttextstr[pt]={A \thefaculty[\option{/novathesis/coverlang}]\ e o \theuniversity[\option{/novathesis/coverlang}]\ têm o direito, perpétuo e sem limites geográficos, de arquivar e publicar esta dissertação através de exemplares impressos reproduzidos em papel ou de forma digital, ou por qualquer outro meio conhecido ou que venha a ser inventado, e de a divulgar através de repositórios científicos e de admitir a sua cópia e distribuição com objetivos educacionais ou de investigação, não comerciais, desde que seja dado crédito ao autor e editor.}

\copyrighttextstr[en]={The \thefaculty[\novathesis@opt@coverlang]\ and the \theuniversity[\novathesis@opt@coverlang]\ have the right, perpetual and without geographical boundaries, to file and publish this dissertation through printed copies reproduced on paper or on digital form, or by any other means known or that may be invented, and to disseminate through scientific repositories and admit its copying and distribution for non-commercial, educational or research purposes, as long as credit is given to the author and editor.}
\copyrighttextstr[en]={The \thefaculty[\option{/novathesis/coverlang}]\ and the \theuniversity[\option{/novathesis/coverlang}]\ have the right, perpetual and without geographical boundaries, to file and publish this dissertation through printed copies reproduced on paper or on digital form, or by any other means known or that may be invented, and to disseminate through scientific repositories and admit its copying and distribution for non-commercial, educational or research purposes, as long as credit is given to the author and editor.}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -175,9 +175,9 @@
% % School
% \coveritem[c]{0.5cm}{%
% \fontsize{13}{13}\selectfont%
% \textbf{\MakeUppercase{\thefaculty[\novathesis@opt@coverlang]}}\\%
% \textbf{\MakeUppercase{\thefaculty[\option{/novathesis/coverlang}]}}\\%
% \fontsize{10}{10}\selectfont%
% \textbf{\MakeUppercase{\thedepartment[\novathesis@opt@coverlang]}}%
% \textbf{\MakeUppercase{\thedepartment[\option{/novathesis/coverlang}]}}%
% }


Expand Down Expand Up @@ -230,8 +230,8 @@
\end{minipage}
\hspace{0.65cm}
\begin{minipage}[t]{0.55\textwidth}
\adviserstrfont[\novathesis@opt@coverlang]={\bfseries}%
\coadviserstrfont[\novathesis@opt@coverlang]={\bfseries}%
\adviserstrfont[\option{/novathesis/coverlang}]={\bfseries}%
\coadviserstrfont[\option{/novathesis/coverlang}]={\bfseries}%
\fontsize{11}{11}\selectfont%
\printadvisers%
\end{minipage}
Expand Down Expand Up @@ -280,11 +280,11 @@
% \hspace{0.65cm}
\begin{minipage}[t]{0.75\textwidth}
\ifthenelse{%
\equal{\novathesis@opt@docdegree}{bsc}%
\OR\equal{\novathesis@opt@docdegree}{msc}%
\OR\equal{\novathesis@opt@docdegree}{phd}}%
{\committeetitlestrfont[\novathesis@opt@coverlang]={\fontsize{14}{14}\selectfont\bfseries}%
\commiteememberstrfont[\novathesis@opt@coverlang]={\bfseries}%
\equal{\option{/novathesis/docdegree}}{bsc}%
\OR\equal{\option{/novathesis/docdegree}}{msc}%
\OR\equal{\option{/novathesis/docdegree}}{phd}}%
{\committeetitlestrfont[\option{/novathesis/coverlang}]={\fontsize{14}{14}\selectfont\bfseries}%
\commiteememberstrfont[\option{/novathesis/coverlang}]={\bfseries}%
\fontsize{12}{12}\selectfont\printcommittee[1]%
}%
{}%
Expand Down
10 changes: 5 additions & 5 deletions novathesis-files/Schools/nova/ensp/defaults.clo
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
% % Title of Dissertation
\coveritem[c]{1cm}{%
\fontfamily{phv}\fontsize{14}{14}\selectfont
\thedegreename[\novathesis@opt@coverlang]
\thedegreename[\option{/novathesis/coverlang}]
}

% Author name
Expand Down Expand Up @@ -178,7 +178,7 @@
% % Title of Dissertation
\secondcoveritem[c]{1cm}{%
\fontfamily{phv}\fontsize{14}{14}\selectfont
\themajorfield[\novathesis@opt@coverlang]
\themajorfield[\option{/novathesis/coverlang}]
}

% Author name
Expand Down Expand Up @@ -229,9 +229,9 @@
% \coveritem[r]{2}{%
% \if@printcommitteeaux
% \ifthenelse{%
% \equal{\novathesis@opt@docdegree}{bsc}%
% \OR\equal{\novathesis@opt@docdegree}{msc}%
% \OR\equal{\novathesis@opt@docdegree}{phd}}%
% \equal{\option{/novathesis/docdegree}}{bsc}%
% \OR\equal{\option{/novathesis/docdegree}}{msc}%
% \OR\equal{\option{/novathesis/docdegree}}{phd}}%
% {\fontfamily{phv}\fontsize{10}{10}\selectfont\printcommittee}%
% {}%
% \fi
Expand Down
10 changes: 5 additions & 5 deletions novathesis-files/Schools/nova/fcsh/defaults.clo
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@
% School
% \coveritem[c]{2.5cm}{%
% \fontsize{16}{16}\selectfont
% \textbf{\MakeUppercase{\theuniversity[\novathesis@opt@coverlang]}}\\
% \textbf{\MakeUppercase{\theuniversity[\option{/novathesis/coverlang}]}}\\
% \vspace{2mm}
% \textbf{\MakeUppercase{\thefaculty[\novathesis@opt@coverlang]}}
% \textbf{\MakeUppercase{\thefaculty[\option{/novathesis/coverlang}]}}
% }

% % Title of Dissertation
Expand Down Expand Up @@ -180,9 +180,9 @@
% Committee — only print the committee for the main classes
% \coveritem[c]{1}{%
% \ifthenelse{%
% \equal{\novathesis@opt@docdegree}{bsc}%
% \OR\equal{\novathesis@opt@docdegree}{msc}%
% \OR\equal{\novathesis@opt@docdegree}{phd}}
% \equal{\option{/novathesis/docdegree}}{bsc}%
% \OR\equal{\option{/novathesis/docdegree}}{msc}%
% \OR\equal{\option{/novathesis/docdegree}}{phd}}
% {\committeetitlestrfont[]={\fontsize{14}{14}\selectfont\bfseries}
% \commiteememberstrfont[]={\bfseries}
% \fontsize{12}{12}\selectfont\printcommittee
Expand Down
20 changes: 10 additions & 10 deletions novathesis-files/Schools/nova/fct/cdcover.clo
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
\setmarginnotes{0mm}{0mm}{0mm}
\checkandfixthelayout[fixed]

% \ifthenelse{\equal{\novathesis@opt@docdegree}{phd}%
% \OR\equal{\novathesis@opt@docdegree}{phdprop}%
% \OR\equal{\novathesis@opt@docdegree}{phdplan}%
% \ifthenelse{\equal{\option{/novathesis/docdegree}}{phd}%
% \OR\equal{\option{/novathesis/docdegree}}{phdprop}%
% \OR\equal{\option{/novathesis/docdegree}}{phdplan}%
% }%
% {\AddToShipoutPictureBG*{\includegraphics[width=120mm]{cd-cover-phd}}}
% {\AddToShipoutPictureBG*{\includegraphics[width=120mm]{cd-cover-msc}}}
\AddToShipoutPictureBG*{\includegraphics[width=120mm]{\@nameuse{thesiscover\novathesis@opt@docdegree,cdfront}}}
\AddToShipoutPictureBG*{\includegraphics[width=120mm]{\@nameuse{thesiscover\option{/novathesis/docdegree},cdfront}}}

\savebox{\cdcover@savebox}{%
\begin{minipage}[t][7.0cm]{9cm}
Expand Down Expand Up @@ -87,7 +87,7 @@
\end{minipage}
}

\ifthenelse{\equal{\novathesis@opt@docdegree}{phd}}%
\ifthenelse{\equal{\option{/novathesis/docdegree}}{phd}}%
{~\\[1.75cm]~\hspace*{2.3cm}}
{~\\[1.75cm]~\hspace*{1.7cm}}
\usebox{\cdcover@savebox}
Expand All @@ -113,13 +113,13 @@
\setmarginnotes{0mm}{0mm}{0mm}
\checkandfixthelayout[fixed]

% \ifthenelse{\equal{\novathesis@opt@docdegree}{phd}%
% \OR\equal{\novathesis@opt@docdegree}{phdprop}%
% \OR\equal{\novathesis@opt@docdegree}{phdplan}%
% \ifthenelse{\equal{\option{/novathesis/docdegree}}{phd}%
% \OR\equal{\option{/novathesis/docdegree}}{phdprop}%
% \OR\equal{\option{/novathesis/docdegree}}{phdplan}%
% }%
% {\AddToShipoutPictureBG*{\includegraphics[width=150mm]{cd-inlay-phd}}}
% {\AddToShipoutPictureBG*{\includegraphics[width=150mm]{cd-inlay-msc}}}
\AddToShipoutPictureBG*{\includegraphics[width=150mm]{\@nameuse{thesiscover\novathesis@opt@docdegree,cdinlay}}}
\AddToShipoutPictureBG*{\includegraphics[width=150mm]{\@nameuse{thesiscover\option{/novathesis/docdegree},cdinlay}}}

\savebox{\cdcover@savebox}{%
\begin{minipage}[t][8cm]{11cm}
Expand Down Expand Up @@ -165,7 +165,7 @@

\setlength{\fboxsep}{0pt}
% ~\hspace*{1.8cm}
\ifthenelse{\equal{\novathesis@opt@docdegree}{phd}}%
\ifthenelse{\equal{\option{/novathesis/docdegree}}{phd}}%
{~\\[0.75cm]~\hspace*{2.5cm}}
{~\\[0.75cm]~\hspace*{1.8cm}}
\usebox{\cdcover@savebox}
Expand Down
8 changes: 4 additions & 4 deletions novathesis-files/Schools/nova/fct/defaults.clo
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
\faculty[it]={NOVA School of Science and Technology}

% Scientific filed
\IfSubStr{\novathesis@opt@docdegree}{phd}{%
\IfSubStr{\option{/novathesis/docdegree}}{phd}{%
\majorfield[pt]={Informática}
\majorfield[en]={Computer Science}
}{%
Expand Down Expand Up @@ -160,9 +160,9 @@
\coveritem[r]{2}{%
\if@printcommitteeaux
\ifthenelse{%
\equal{\novathesis@opt@docdegree}{bsc}%
\OR\equal{\novathesis@opt@docdegree}{msc}%
\OR\equal{\novathesis@opt@docdegree}{phd}}%
\equal{\option{/novathesis/docdegree}}{bsc}%
\OR\equal{\option{/novathesis/docdegree}}{msc}%
\OR\equal{\option{/novathesis/docdegree}}{phd}}%
{\fontfamily{phv}\fontsize{10}{10}\selectfont\printcommittee}%
{}%
\fi
Expand Down
Loading

0 comments on commit 43704b3

Please sign in to comment.