Skip to content

Commit

Permalink
Fixes #135: add support for Erasmus Mundus MSc on Geospacial Technolo…
Browse files Browse the repository at this point in the history
…gies enhancement. Fixes #136.  Fixes #137.
  • Loading branch information
joaomlourenco committed Jan 9, 2021
1 parent 91ceb3d commit 6ab2dd2
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 14 deletions.
3 changes: 2 additions & 1 deletion NOVAthesisFiles/options.tex
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
, docdegree/.new choice = {phd, phdprop, phdplan, msc, mscplan, bsc},
, school/.new choice = {{nova/fct}, {nova/fcsh}, {nova/ims}, {nova/ensp},
{ul/ist}, {ul/fc}, {ipl/isel}, {ips/ests}, {esep},
{iscte-iul/ista}}
{iscte-iul/ista}, {consortium/msc-gt}}
, docstatus/.new choice = {final, provisional, draft, working},
, docstatus = final,
, chapstyle/.new choice = {bianchi, bluebox, default, elegant,
Expand All @@ -96,6 +96,7 @@
, coverlang/.new choice = {en, pt, fr, it}
, copyrightlang/.new choice = {en, pt, fr, it}
, printcommittee/.new toggle = true
, printcopyright/.new toggle = true
, secondcover/.new toggle = false
, aftercover/.new toggle = false
, urlstyle/.new cmd = {%
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![NOVAthesis logo](NOVAthesisFiles/Images/novathesis-logo.jpg)

# novathesis LaTeX template
%% Version 2021-01-03 [5.1.12]
%% Version 2021-01-09 [5.2.1]

--------

Expand Down
40 changes: 32 additions & 8 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 2021-01-03 [5.1.12]
%% Version 2021-01-09 [5.2.1]
%% 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 @@ -616,7 +616,7 @@
% \typeout{NT thecovertitle [#1]}
\ifstrempty{#1}%
{\thedoccovertitle(\option{/novathesis/coverlang})}%
{\thedoccovertitlecaps[\option{/novathesis/coverlang}]}
{\thedoccovertitlecaps(\option{/novathesis/coverlang})}
}

\newcommand{\thetitle}[1][\option{/novathesis/coverlang}]{%
Expand All @@ -631,11 +631,14 @@

\newcommand{\nttitle}[2][\option{/novathesis/coverlang}]{%
% \typeout{NT nttitle [#1] [#2]}
\doccovertitle(#1):={#2}%
\doccovertitlecaps(#1):={\expandafter\MakeTextUppercase\expandafter{#2}}%
\saveexpandmode\noexpandarg% set \noexpandarg locally
\StrSubstitute[0]{#2}{\\}{ }[\@thetitle]%
\StrSubstitute[0]{#2}{\\}{\newline}[\@thetitleii]%
% \def\@thetitleiii{\expandafter\MakeUppercase\expandafter{\@thetitleii}}
% \StrSubstitute[0]{\@thetitleiii}{@}{\newline}[\@thetitleiv]%
\restoreexpandmode% restore the previous mode
\doccovertitle(#1):={#2}%
\doccovertitlecaps(#1):={\expandafter\MakeUppercase\expandafter{\@thetitleii}}%
\doctitle(#1):=\@thetitle%
\ifthenelse{\equal{#1}{\option{/novathesis/coverlang}}}{%
\AtBeginDocument{%
Expand Down Expand Up @@ -721,6 +724,27 @@
#1%
}

\newcommand{\ntprintadvisersgroup}[2][0.90]{%
% #1 = width
% %2 = {adviser,coadviser}
\ifoptiondefined{/@nt/#2//name}{%
\bgroup
\csuse{the#2strfont}(\option{/novathesis/coverlang})%
\csuse{the#2str}(\option{/novathesis/coverlang})\\[1ex]%
\egroup
\begin{minipage}[t]{#1\linewidth}%
\centering
\optionlistdo{/@nt/#2//name}{\@nt@printadvisersgroup##1,\@nil}%
\end{minipage}%
}%
{\ClassWarning{novathesis}{option[/@nt/#1//name] undefined}}%
}

\def\@nt@printadvisersgroup#1,#2\@nil{%
#1\\
\IfEq{#2}{}{\medskip}{\@nt@printadvisersgroup#2\@nil}%
}

\newcommand{\ntprintadvisers}[1][0.90]{%
\begin{minipage}{#1\textwidth}
% #1 = Percentage of \textwidth used by the advisers list
Expand Down Expand Up @@ -1081,10 +1105,10 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\ntprintcopyright}{%
\ifmaindoc{% THEN
\ntprintcopyrightpage%
}{% ELSE
% do nothing
}%
\iftoggle{/novathesis/printcopyright}%
{\ntprintcopyrightpage}%
{}%
}{}%
}

\newcommand{\ntprintcopyrightpage}{%
Expand Down
Binary file modified template.pdf
Binary file not shown.
10 changes: 6 additions & 4 deletions template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%% To view a copy of this license, visit
%% https://www.latex-project.org/lppl/lppl-1-3c/
%%
%% Version 2021-01-03 [5.1.12]
%% Version 2021-01-09 [5.2.1]
%% 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 @@ -68,13 +68,13 @@
%%------------------------------------------------------------
%% THE MOST IMPORTANT/POPULAR OPTIONS
%%------------------------------------------------------------
% \ntsetup{docdegree=msc} % The type od document
% \ntsetup{docdegree=msc} % The type of document
% % [ phd, phdplan, phdprop, msc, mscplan, bsc ]

% \ntsetup{school=iscte-iul/ista} % The school id
% \ntsetup{school=nova/fcsh} % The school id
% % [ nova/fct, nova/fcsh, nova/ims, nova/ensp,
% % ul/ist, ul/fc, ipl/isel, ips/ests, esep,
% % iscte-iul/ista ]
% % iscte-iul/ista, consortium/msc-gt ]

% \ntsetup{docstatus=working} % The status of the document
% % [ final, provisional, draft, working ]
Expand All @@ -99,6 +99,8 @@
% % under work/evaluation. Only final versions
% % should have the list of committee memebers.

% \ntsetup{printcopyright=fale} % Should the copyright message be printed??

% \ntsetup{secondcover=true} % Should a second cover page be printed?
% % if the contents for the second page are not
% % defined, the second cover will be a replica
Expand Down

0 comments on commit 6ab2dd2

Please sign in to comment.