Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomlourenco committed Nov 8, 2021
2 parents 6d1ff67 + a6a3a63 commit c990942
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
8 changes: 5 additions & 3 deletions Config/5_cover.tex
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@
%%------------------------------------------------------------
% Advisers' gender and info (name, position, school, etc)
% syntax: \ntaddperson{adviser}[role,gender]{Name, Position, School}
% For [role] use: [a] for aaviser
% For [role] use: [a] for adviser
% [c] for co-adviser
% Use [f] for female and [m] for male
% For [gender] use: [f] for female
% [m] for male
% Use "\\" to force line breaks
% Advisers(s)
\ntaddperson{adviser}[a,f]{Mary Doe Adviser Name, Full Professor, NOVA University Lisbon}
Expand All @@ -92,7 +93,8 @@
% [a] for advisers
% [m] for remaining members
% [g] for guests
% Use [f] for female and [m] for male
% For [gender] use: [f] for female
% [m] for male
% Use "\\" to force line breaks
\ntaddperson{committee}[c,m]{Name of the committee chairperson, Full Professor, FCT-NOVA}
\ntaddperson{committee}[r,m]{Name of a rapporteur, Associate Professor, Another University}
Expand Down
12 changes: 8 additions & 4 deletions novathesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,13 @@
\def\ntaddperson#1[#2]{%
% syntax: \ntaddperson{class}[key]{name}
% See "\@ntaddperson@iv" below
\IfSubStr{#2}{,}%
{\@ntaddperson@iv{#1}[#2]}%
{\@ntaddperson@iv{#1}[,#2]}%
\StrCount{#2}{,}[\@nt@ncommas]%
\typeout{NT COMMAS \@nt@ncommas}%
\IfStrEq{\@nt@ncommas}{1}{}{%
\ClassError{novathesis}{Invalid role or gender in \string\ntaddperson{#2}}%
{Please see file “5_cover.tex” for the correct syntax.}%
}%
\@ntaddperson@iv{#1}[#2]%
}

\def\@ntaddperson@iv#1[#2,#3]#4{%
Expand Down Expand Up @@ -1337,7 +1341,7 @@
{0}{\@ntprintpersonsaslist{#3}{#4}}%
{1}{\@ntprintpersonsasonecolumn{#1}{#3}{#4}}%
{2}{\@ntprintpersonsastwocolumns{#1}{#3}{#4}}%
}[\ClassError{novathesis}{Ivalid argument [#2] to ntprintpersons[#1][#2][#3][#4]}{}]%
}[\ClassError{novathesis}{Ivalid argument [#2] to \string\ntprintpersons{#1}{#2}{#3}{#4}}{}]%
}

%============================================================
Expand Down
Binary file modified template.pdf
Binary file not shown.

0 comments on commit c990942

Please sign in to comment.