Browse Source

affidavit can parse authors

master
Jonathan Spratte 1 year ago
parent
commit
c0a1b88aac
3 changed files with 7 additions and 5 deletions
  1. BIN
      Doc/doc_MRTbundle.pdf
  2. 1
    2
      Doc/tex/doc_MRTthesis.tex
  3. 6
    3
      MRTthesis/MRTthesis.cls

BIN
Doc/doc_MRTbundle.pdf View File


+ 1
- 2
Doc/tex/doc_MRTthesis.tex View File

@@ -435,8 +435,7 @@ The following macros are provided:
435 435
   Prints a chapter ``Eidesstattliche Erklärung'' (stored in \cs{affidavittitle},
436 436
   you might redefine it to change the title) and the affidavit text (as stored
437 437
   in \cs{affidavittext}) and the location and date, followed by a signature line
438
-  for each author. \cs{maketitle} has to be used prior to it, else the lines
439
-  won't be printed. This is a bug I might fix in the future.
438
+  for each author.
440 439
 \end{describemacro}
441 440
 \begin{describemacro}{mainpart,mainmatter}
442 441
   Switches the formatting from the one at the beginning to the one used in the

+ 6
- 3
MRTthesis/MRTthesis.cls View File

@@ -1,5 +1,5 @@
1
-\newcommand*\MRTthesis@version{0.0.24}
2
-\newcommand*\MRTthesis@date{2020-03-27}
1
+\newcommand*\MRTthesis@version{0.0.25}
2
+\newcommand*\MRTthesis@date{2020-05-09}
3 3
 
4 4
 \NeedsTeXFormat{LaTeX2e}
5 5
 
@@ -43,6 +43,7 @@
43 43
 \bool_new:N \l_MRTthesis_lot_front_bool
44 44
 \bool_new:N \l_MRTthesis_toc_front_bool
45 45
 \bool_new:N \l_MRTthesis_hyperref_code_executed_bool
46
+\bool_new:N \g_MRTthesis_authors_parsed_bool
46 47
 % =<<
47 48
 % box >>=
48 49
 \box_new:N \l_MRTthesis_tmpa_box
@@ -1010,6 +1011,7 @@
1010 1011
 \MRTutil@def[\protected]\affidavit% >>=
1011 1012
   {
1012 1013
     \cleardoubleoddpage
1014
+    \bool_if:NF \g_MRTthesis_authors_parsed_bool { \MRTthesis_parse_authors: }
1013 1015
     \chapter*{\affidavittitle}
1014 1016
     \sethead{\affidavittitle}
1015 1017
     \strut
@@ -1083,7 +1085,7 @@
1083 1085
   {%
1084 1086
     \thispagestyle{empty}
1085 1087
     \newgeometry{left=25mm,right=25mm,top=9mm,bottom=23.4mm}
1086
-    \MRTthesis_parse_authors:
1088
+    \bool_if:NF \g_MRTthesis_authors_parsed_bool { \MRTthesis_parse_authors: }
1087 1089
     \setbox\MRTthesis@TestBoxA\vbox
1088 1090
       {% >>=
1089 1091
         \setstretch{1}
@@ -1153,6 +1155,7 @@
1153 1155
   }% =<<
1154 1156
 \cs_new_protected_nopar:Npn \MRTthesis_parse_authors:% >>=
1155 1157
   {
1158
+    \bool_gset_true:N \g_MRTthesis_authors_parsed_bool
1156 1159
     \seq_gset_split:NnV \g_MRTthesis_authors_seq
1157 1160
       { \and } \l_MRTthesis_authors_tl
1158 1161
     \tl_if_empty:NTF \l_MRTthesis_s_author_tl

Loading…
Cancel
Save