From ae39a016224f6b929b4f009549a313e55f4cba46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Louren=C3=A7o?= Date: Mon, 23 Oct 2023 14:53:21 +0100 Subject: [PATCH 1/2] Fixed bug in valid creative commons copyrightoptions. Added option in "Config/9_uminho.tex" to disable printing the sginatureline in the UMinho statement --- Config/9_uminho.tex | 6 ++++-- NOVAthesisFiles/Schools/uminho/statement.tex | 9 ++++++--- novathesis.cls | 7 +++++-- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Config/9_uminho.tex b/Config/9_uminho.tex index 3c7f13b2..5a5235b6 100644 --- a/Config/9_uminho.tex +++ b/Config/9_uminho.tex @@ -14,11 +14,13 @@ % Please uncomment and select the copyright modifier of your preference %------------------------------------------------------------ -% \ntsetup{copyrightmodifier=by-sa-nc} % Modifier for the Creative Commons license. +% \ntsetup{copyrightmodifier=by-nc-sa} % Modifier for the Creative Commons license. % % [ ] -% % DEFAULT: CC by-sa-nc license +% % DEFAULT: CC by-nc-sa license % \ntsetup{skipblankcovers=true} % Skip the “other side” of the covers. % % [true, false] % % DEFAULT: false for main document types, and % % true for other document types + +% \ntsetup{signatureline=false} % Do not print the signature line in the statement of integrity \ No newline at end of file diff --git a/NOVAthesisFiles/Schools/uminho/statement.tex b/NOVAthesisFiles/Schools/uminho/statement.tex index bef5b721..39ca62d0 100644 --- a/NOVAthesisFiles/Schools/uminho/statement.tex +++ b/NOVAthesisFiles/Schools/uminho/statement.tex @@ -35,7 +35,7 @@ \newdata{signatureline} -\signatureline(pt):={% +\signatureline(pt):=?{% \begin{tabular}{c@{~}c}% \rule{10em}{0.5pt}, & \rule{16em}{0.5pt}\\[-1ex]% (\theplacestr(\@LANG@MAIN)) & (\thedatestr(\@LANG@MAIN))% @@ -47,11 +47,14 @@ \end{center}% } -\signatureline(en):={\thesignatureline(pt)} +\signatureline(en):=?{\thesignatureline(pt)} \thispagestyle{plain}% \null% \vfill% \thestatementofintegritytextstr(\@LANG@MAIN)\\[1.5cm] -\thesignatureline(\@LANG@MAIN) +\ontoggle{/novathesis/uminho/signatureline}{% + \thesignatureline(\@LANG@MAIN)% +}% \vfill% +\clearforchapter diff --git a/novathesis.cls b/novathesis.cls index dcc1b6a6..79c4b7ae 100644 --- a/novathesis.cls +++ b/novathesis.cls @@ -270,6 +270,7 @@ % UMINHO uminho/copyrightmodifier/.new choice = {by-nc-sa, by-sa, by, by-nc, by-nd, by-nc-nd}, uminho/skipblankcovers/.new toggle = false, + uminho/signatureline/.new toggle = true, % ULISBOA/FMV % examdate/year/.new value = {yearX}, % examdate/month/.new value = {monthX}, @@ -665,7 +666,7 @@ % -------------------------------------------------------- % NTSETUP2 \newcommand*{\ntsetup}[2][]{% - % \typeout{NTSETUP [/novathesis/\option{/novathesis/school}/#1/\@ntopt]}\NTSETUP% + % \typeout{NTSETUP [/novathesis/\@UNIV/\@SCHL/#1/#2]}\NTSETUP% \ntfor\arg:={#2}\do{% \StrCut{\arg}{=}{\@ntopt}{\@ntval}% % \typeout{NTSETUP2 [\@ntopt] = [\@ntval]}% @@ -675,9 +676,11 @@ {\options{/novathesis/#1/#2}}{% \ifoptiondefined{/novathesis/\@UNIV/\@SCHL/\@ntopt}% {\options{/novathesis/\@UNIV/\@SCHL/#2}}{% + \ifoptiondefined{/novathesis/\@UNIV/\@ntopt}% + {\options{/novathesis/\@UNIV/#2}}{% \ifoptiondefined{/novathesis/\@ntopt}% {\options{/novathesis/#2}}{% - \ClassError{novathesis}{Invalid class option: \@ntopt}{}{}}}}}}% + \ClassError{novathesis}{Invalid class option: \@ntopt}{}{}}}}}}}% } \newcommand*{\ntbibsetup}[1]{% From 554f4d4d802a6513793f09fec7f80cfdaf9da5ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Louren=C3=A7o?= Date: Mon, 23 Oct 2023 14:54:26 +0100 Subject: [PATCH 2/2] Fixed bug in valid creative commons copyrightoptions. Added option in "Config/9_uminho.tex" to disable printing the sginatureline in the UMinho statement --- NOVAthesisFiles/nt-version.sty | 4 ++-- novathesis.cls | 4 ++-- template.tex | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NOVAthesisFiles/nt-version.sty b/NOVAthesisFiles/nt-version.sty index facd8dc5..514d3226 100644 --- a/NOVAthesisFiles/nt-version.sty +++ b/NOVAthesisFiles/nt-version.sty @@ -1,2 +1,2 @@ -\newcommand*{\novathesisversion}{7.1.8} -\newcommand*{\novathesisdate}{2023-10-17} +\newcommand*{\novathesisversion}{7.1.9} +\newcommand*{\novathesisdate}{2023-10-23} diff --git a/novathesis.cls b/novathesis.cls index 79c4b7ae..15e85f45 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 2023-10-17 [7.1.8] +%% Version 2023-10-23 [7.1.9] %% 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) @@ -61,7 +61,7 @@ %%% WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\ProvidesClass{novathesis}[2023-10-17 novathesis template] +\ProvidesClass{novathesis}[2023-10-23 novathesis template] \NeedsTeXFormat{LaTeX2e}[2020-02-02] diff --git a/template.tex b/template.tex index 3545b9d7..62a57bfa 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 2023-10-17 [7.1.8] +%% Version 2023-10-23 [7.1.9] %% 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)