Browse Source

changed foldmarks

master
Jonathan Spratte 2 years ago
parent
commit
9342f8a1c7

+ 104
- 102
Doc/preamble/doc_macros.tex View File

@@ -9,14 +9,14 @@
9 9
 \newcommand*\file[1]{\texttt{\detokenize{#1}}}
10 10
 \long\def\eatspace#1 #2{#1#2}
11 11
 \newcommand*\cs{\texorpdfstring{\cs@TeXString}{\cs@PDFString}}
12
-\protected\def\cs@TeXString#1%>>>
12
+\protected\def\cs@TeXString#1%>>=
13 13
   {%
14 14
     \texttt{\cs@PDFString{#1}}%
15
-  }%<<<
15
+  }%=<<
16 16
 \edef\cs@PDFString#1{\expandafter\eatspace\string\ \noexpand\detokenize{#1}}
17 17
 \protected\def\meta#1{\texttt{$\langle${\itshape\meta@a{#1}}\kern.05em$\rangle$}}
18 18
 \ExplSyntaxOn
19
-\newcommand\meta@a[1]%>>>
19
+\newcommand\meta@a[1]%>>=
20 20
   {
21 21
     \group_begin:
22 22
     \tl_set:Nn \l_docMRTbundle_tmp_tl { #1 }
@@ -24,7 +24,7 @@
24 24
       \l_docMRTbundle_tmp_tl
25 25
     \l_docMRTbundle_tmp_tl
26 26
     \group_end:
27
-  }%<<<
27
+  }%=<<
28 28
 \ExplSyntaxOff
29 29
 \newcommand*\metaEnclosed[3]{\texttt{#1}\meta{#2}\texttt{#3}}
30 30
 \newcommand*\marg[1]{\metaEnclosed\{{#1}\}}
@@ -33,20 +33,20 @@
33 33
 \newcommand*\sarg[1]{\metaEnclosed<{#1}>}
34 34
 \newcommand*\carg[2]{\texttt{(}\meta{#1},\meta{#2}\texttt{)}}
35 35
 \newcommand*\tfarg{\texttt{\textit{TF}}}
36
-\newcommand*\luaxetex%>>>
36
+\newcommand*\luaxetex%>>=
37 37
   {%
38 38
     \luaxe{}%
39
-  }%<<<
40
-\newcommand*\luaxelatex%>>>
39
+  }%=<<
40
+\newcommand*\luaxelatex%>>=
41 41
   {%
42 42
     \luaxe{La}%
43
-  }%<<<
44
-\newcommand*\luaxe[1]%>>>
43
+  }%=<<
44
+\newcommand*\luaxe[1]%>>=
45 45
   {%
46 46
     \@ifstar
47 47
       {\hologo{Lua#1TeX} and \hologo{Xe#1TeX}}
48 48
       {\hologo{Lua#1TeX} or  \hologo{Xe#1TeX}}%
49
-  }%<<<
49
+  }%=<<
50 50
 \ExplSyntaxOn
51 51
 \int_new:N \g_docMRTbundle_dsctable_lines_int
52 52
 \int_new:N \l_docMRTbundle_fakeit_level_int
@@ -56,34 +56,34 @@
56 56
 \dim_new:N \l_docMRTbundle_fakeit_indent_dim
57 57
 \tl_new:N  \l_docMRTbundle_tmp_tl
58 58
 \clist_new:N \l_docMRTbundle_fakeit_symbols_clist
59
-\clist_set:Nn \l_docMRTbundle_fakeit_symbols_clist% >>>
59
+\clist_set:Nn \l_docMRTbundle_fakeit_symbols_clist% >>=
60 60
   {
61 61
     \textbullet
62 62
     ,\normalfont\bfseries\textendash
63 63
     ,\textasteriskcentered
64 64
     ,\textperiodcentered
65
-  }% <<<
65
+  }% =<<
66 66
 \clist_new:N \l_docMRTbundle_bverb_both_points_clist
67 67
 \clist_new:N \l_docMRTbundle_bverb_pre_points_clist
68 68
 \clist_new:N \l_docMRTbundle_bverb_post_points_clist
69
-\clist_set:Nx \l_docMRTbundle_bverb_both_points_clist%>>>
69
+\clist_set:Nx \l_docMRTbundle_bverb_both_points_clist%>>=
70 70
   {
71 71
     =
72
-  }%<<<
73
-\clist_set:Nx \l_docMRTbundle_bverb_pre_points_clist%>>>
72
+  }%=<<
73
+\clist_set:Nx \l_docMRTbundle_bverb_pre_points_clist%>>=
74 74
   {
75 75
     [
76 76
     ,(
77 77
     ,\char_generate:nn { `\{ } { 12 }
78 78
     ,\char_generate:nn { `\\ } { 12 }
79
-  }%<<<
80
-\clist_set:Nx \l_docMRTbundle_bverb_post_points_clist%>>>
79
+  }%=<<
80
+\clist_set:Nx \l_docMRTbundle_bverb_post_points_clist%>>=
81 81
   {
82 82
     \char_generate:nn { `\} } { 12 }
83 83
     ,)
84 84
     ,]
85
-  }%<<<
86
-\cs_new:Nn \__docMRTbundle_dscmac_end:%>>>
85
+  }%=<<
86
+\cs_new:Nn \__docMRTbundle_dscmac_end:%>>=
87 87
   {
88 88
     \par
89 89
     \int_compare:nNnT { \prevgraf } < { \g_docMRTbundle_dsctable_lines_int }
@@ -95,19 +95,19 @@
95 95
             \relax
96 96
           }
97 97
       }
98
-  }%<<<
99
-\MRTafterhyperref%>>>
98
+  }%=<<
99
+\MRTafterhyperref%>>=
100 100
   {
101 101
     \hbox_set:Nn \l_tmpa_box { \cs{PrependSubsectionsfalse} }
102 102
     \dim_set:Nn \l_docMRTbundle_dscmac_widest_dim { \box_wd:N \l_tmpa_box }
103 103
     \dim_set:Nn \l_docMRTbundle_dscmac_indent_dim
104 104
       { \l_docMRTbundle_dscmac_widest_dim - \marginparwidth }
105
-  }%<<<
106
-\cs_new:Nn \docMRTbundle_dscmacTF_table_element:n% >>>
105
+  }%=<<
106
+\cs_new:Nn \docMRTbundle_dscmacTF_table_element:n% >>=
107 107
   {
108 108
     \exp_args:Nx \cs{\l_docMRTbundle_macro_name_tl #1}\tfarg\\
109
-  }% <<<
110
-\cs_new_protected:Nn \docMRTbundle_dscmacTF_widest:n% >>>
109
+  }% =<<
110
+\cs_new_protected:Nn \docMRTbundle_dscmacTF_widest:n% >>=
111 111
   {
112 112
     \hbox_set:Nn \l_tmpa_box
113 113
       { \exp_args:Nx \cs{\l_docMRTbundle_macro_name_tl #1}\tfarg }
@@ -117,8 +117,8 @@
117 117
         \dim_set:Nn \l_docMRTbundle_dscmac_widest_dim
118 118
           { \box_wd:N \l_tmpa_box } 
119 119
       }
120
-  }% <<<
121
-\NewDocumentEnvironment { describemacroTF } { o m O{} }% >>>
120
+  }% =<<
121
+\NewDocumentEnvironment { describemacroTF } { o m O{} }% >>=
122 122
   {
123 123
     \par\noindent
124 124
     \int_gzero:N \g_docMRTbundle_dsctable_lines_int
@@ -155,18 +155,18 @@
155 155
     \noindent
156 156
     \ignorespaces
157 157
   }
158
-  {\__docMRTbundle_dscmac_end:}% <<<
159
-\cs_new:Nn \docMRTbundle_dscmac_table_element:n% >>>
158
+  {\__docMRTbundle_dscmac_end:}% =<<
159
+\cs_new:Nn \docMRTbundle_dscmac_table_element:n% >>=
160 160
   {
161 161
     \int_gincr:N \g_docMRTbundle_dsctable_lines_int
162 162
     \exp_args:Nx \cs{\l_docMRTbundle_macro_name_tl #1}\\
163
-  }% <<<
164
-\cs_new:Nn \docMRTbunndle_dscmac_multiple_mac:n% >>>
163
+  }% =<<
164
+\cs_new:Nn \docMRTbunndle_dscmac_multiple_mac:n% >>=
165 165
   {
166 166
     \int_gincr:N \g_docMRTbundle_dsctable_lines_int
167 167
     \cs { #1 } \\
168
-  }% <<<
169
-\cs_new_protected:Nn \docMRTbundle_dscmac_widest:n% >>>
168
+  }% =<<
169
+\cs_new_protected:Nn \docMRTbundle_dscmac_widest:n% >>=
170 170
   {
171 171
     \hbox_set:Nn \l_tmpa_box
172 172
       { \exp_args:Nx \cs{\l_docMRTbundle_macro_name_tl #1} }
@@ -176,8 +176,8 @@
176 176
         \dim_set:Nn \l_docMRTbundle_dscmac_widest_dim
177 177
           { \box_wd:N \l_tmpa_box } 
178 178
       }
179
-  }% <<<
180
-\NewDocumentEnvironment { describemacro } { o m O{} }% >>>
179
+  }% =<<
180
+\NewDocumentEnvironment { describemacro } { o m O{} }% >>=
181 181
   {
182 182
     \par\noindent
183 183
     \int_gzero:N \g_docMRTbundle_dsctable_lines_int
@@ -230,13 +230,13 @@
230 230
     \noindent
231 231
     \ignorespaces
232 232
   }
233
-  {\__docMRTbundle_dscmac_end:}% <<<
234
-\cs_new:Nn \docMRTbundle_dscenv_table_element:n% >>>
233
+  {\__docMRTbundle_dscmac_end:}% =<<
234
+\cs_new:Nn \docMRTbundle_dscenv_table_element:n% >>=
235 235
   {
236 236
     \int_gincr:N \g_docMRTbundle_dsctable_lines_int
237 237
     \exp_args:Nx \env{\l_docMRTbundle_macro_name_tl #1}\\
238
-  }% <<<
239
-\cs_new_protected:Nn \docMRTbundle_dscenv_widest:n% >>>
238
+  }% =<<
239
+\cs_new_protected:Nn \docMRTbundle_dscenv_widest:n% >>=
240 240
   {
241 241
     \hbox_set:Nn \l_tmpa_box
242 242
       { \exp_args:Nx \env{\l_docMRTbundle_macro_name_tl #1} }
@@ -246,8 +246,8 @@
246 246
         \dim_set:Nn \l_docMRTbundle_dscmac_widest_dim
247 247
           { \box_wd:N \l_tmpa_box } 
248 248
       }
249
-  }% <<<
250
-\NewDocumentEnvironment { describeenv } { o m O{} }% >>>
249
+  }% =<<
250
+\NewDocumentEnvironment { describeenv } { o m O{} }% >>=
251 251
   {
252 252
     \par\noindent
253 253
     \int_gzero:N \g_docMRTbundle_dsctable_lines_int
@@ -285,18 +285,18 @@
285 285
     \noindent
286 286
     \ignorespaces
287 287
   }
288
-  {\__docMRTbundle_dscmac_end:}% <<<
289
-\cs_new:Nn \docMRTbundle_dscopt_table_element:n% >>>
288
+  {\__docMRTbundle_dscmac_end:}% =<<
289
+\cs_new:Nn \docMRTbundle_dscopt_table_element:n% >>=
290 290
   {
291 291
     \int_gincr:N \g_docMRTbundle_dsctable_lines_int
292 292
     \exp_args:Nx \opt{\l_docMRTbundle_macro_name_tl #1}\\
293
-  }% <<<
294
-\cs_new:Nn \docMRTbunndle_dscopt_multiple_mac:n% >>>
293
+  }% =<<
294
+\cs_new:Nn \docMRTbunndle_dscopt_multiple_mac:n% >>=
295 295
   {
296 296
     \int_gincr:N \g_docMRTbundle_dsctable_lines_int
297 297
     \opt { #1 } \\
298
-  }% <<<
299
-\cs_new_protected:Nn \docMRTbundle_dscopt_widest:n% >>>
298
+  }% =<<
299
+\cs_new_protected:Nn \docMRTbundle_dscopt_widest:n% >>=
300 300
   {
301 301
     \hbox_set:Nn \l_tmpa_box
302 302
       { \exp_args:Nx \opt{\l_docMRTbundle_macro_name_tl #1} }
@@ -306,8 +306,8 @@
306 306
         \dim_set:Nn \l_docMRTbundle_dscmac_widest_dim
307 307
           { \box_wd:N \l_tmpa_box } 
308 308
       }
309
-  }% <<<
310
-\NewDocumentEnvironment { describeopt } { o m o }%>>>
309
+  }% =<<
310
+\NewDocumentEnvironment { describeopt } { o m o }%>>=
311 311
   {
312 312
     \par\noindent
313 313
     \int_gzero:N \g_docMRTbundle_dsctable_lines_int
@@ -361,15 +361,15 @@
361 361
   }
362 362
   {
363 363
     \__docMRTbundle_dscmac_end:
364
-  }% <<<
365
-\NewDocumentCommand \dscremaininglines { m }%>>>
364
+  }% =<<
365
+\NewDocumentCommand \dscremaininglines { m }%>>=
366 366
   {
367 367
     \vskip
368 368
       \dimexpr
369 369
         #1\baselineskip - 1.5\baselineskip + 1.2ex
370 370
       \relax
371
-  }%<<<
372
-\NewDocumentCommand \docIndividualVersions {}%>>>
371
+  }%=<<
372
+\NewDocumentCommand \docIndividualVersions {}%>>=
373 373
   {
374 374
     \makeatletter
375 375
     % If one of the packages is not loaded, the version and date of it are not
@@ -409,8 +409,8 @@
409 409
       \versionline{lmscale}
410 410
       \versionline{util}
411 411
     \end{MRTtable}
412
-  }%<<<
413
-\NewDocumentCommand \bverb { v }%>>>
412
+  }%=<<
413
+\NewDocumentCommand \bverb { v }%>>=
414 414
   {
415 415
     \group_begin:
416 416
     \tl_set:Nn \l_docMRTbundle_tmp_tl { #1 }
@@ -428,9 +428,9 @@
428 428
     \frenchspacing
429 429
     \l_docMRTbundle_tmp_tl
430 430
     \group_end:
431
-  }%<<<
432
-\NewDocumentEnvironment { fakeitemize } {}%>>>
433
-  {% begin >>>
431
+  }%=<<
432
+\NewDocumentEnvironment { fakeitemize } {}%>>=
433
+  {% begin >>=
434 434
     \dim_set:Nn \l_docMRTbundle_fakeit_indent_dim { 2em }
435 435
     \int_incr:N \l_docMRTbundle_fakeit_level_int
436 436
     \int_compare:nNnT { \l_docMRTbundle_fakeit_level_int } = { \c_zero }
@@ -446,14 +446,14 @@
446 446
               { \l_docMRTbundle_fakeit_level_int + \c_one }
447 447
           }
448 448
       }
449
-  }%<<<
450
-  {% end >>>
449
+  }%=<<
450
+  {% end >>=
451 451
     \int_compare:nNnTF { \l_docMRTbundle_fakeit_level_int } = { \c_zero }
452 452
       { \null\\[1ex] }
453 453
       { \null\\[\dimexpr.1ex-\baselineskip\relax] }
454
-  }%<<<
455
-%<<<
456
-\NewDocumentCommand \dangerzone { O{1} }%>>>
454
+  }%=<<
455
+%=<<
456
+\NewDocumentCommand \dangerzone { O{1} }%>>=
457 457
   {
458 458
     \scalebox{#1}
459 459
       {
@@ -463,8 +463,8 @@
463 463
             \makebox[0pt][c]{\color{red}$\bigtriangleup$}
464 464
           }
465 465
       }
466
-  }%<<<
467
-\NewDocumentCommand \dangerzoneAlt { O{1} }%>>>
466
+  }%=<<
467
+\NewDocumentCommand \dangerzoneAlt { O{1} }%>>=
468 468
   { % requires installed fourier package
469 469
     \group_begin:
470 470
     \scalebox{#1}
@@ -475,8 +475,8 @@
475 475
         \char 66
476 476
       }
477 477
     \group_end:
478
-  }%<<<
479
-\NewDocumentCommand \dangermargin { s O{\Huge} D(){1} }%>>>
478
+  }%=<<
479
+\NewDocumentCommand \dangermargin { s O{\Huge} D(){1} }%>>=
480 480
   {
481 481
     \group_begin:
482 482
     \IfBooleanT { #1 } { \reversemarginpar }
@@ -486,18 +486,18 @@
486 486
         \dangerzone[#3]
487 487
       }
488 488
     \group_end:
489
-  }%<<<
490
-\NewExpandableDocumentCommand \easysout {}%>>>
489
+  }%=<<
490
+\NewExpandableDocumentCommand \easysout {}%>>=
491 491
   {
492 492
     \texorpdfstring{\easysout@}{\@firstofone}
493
-  }%<<<
494
-\NewDocumentCommand \easysout@ {}%>>>
493
+  }%=<<
494
+\NewDocumentCommand \easysout@ {}%>>=
495 495
   {
496 496
     \bgroup
497 497
     \markoverwith { \rule [.4ex ] { .1ex } { .15ex } }
498 498
     \ULon
499
-  }%<<<
500
-\NewDocumentCommand \plannedsection { O{} o m }%>>>
499
+  }%=<<
500
+\NewDocumentCommand \plannedsection { O{} o m }%>>=
501 501
   {
502 502
     \use:c { #1section }
503 503
       [ \easysout { \IfValueTF { #2 } { #2 } { #3 } } \PlannedSecLabel ]
@@ -505,14 +505,14 @@
505 505
     \leavevmode
506 506
     \dangermargin*
507 507
     \NotImplementedMessage{#1}
508
-  }%<<<
509
-\NewExpandableDocumentCommand \PlannedSecLabel {}%>>>
508
+  }%=<<
509
+\NewExpandableDocumentCommand \PlannedSecLabel {}%>>=
510 510
   {
511 511
     \texorpdfstring
512 512
       { \ \ \textsc { [Planned] } }
513 513
       { ~[Planned] }
514
-  }%<<<
515
-\NewDocumentCommand \Seq {}%>>>
514
+  }%=<<
515
+\NewDocumentCommand \Seq {}%>>=
516 516
   {
517 517
     \mbox{}
518 518
     \spacefactor100\relax
@@ -520,9 +520,9 @@
520 520
     =
521 521
     \spacefactor100\relax
522 522
     \space
523
-  }%<<<
524
-\NewDocumentEnvironment { incompatibilities } { m }%>>>
525
-  {%>>>
523
+  }%=<<
524
+\NewDocumentEnvironment { incompatibilities } { m }%>>=
525
+  {%>>=
526 526
     \hbox_set:Nn \l_tmpa_box { v00.00.00 }
527 527
     \hbox_set:Nn \l_tmpb_box { Version }
528 528
     \dim_compare:nNnT { \box_wd:N \l_tmpa_box } > { \box_wd:N \l_tmpb_box }
@@ -558,24 +558,24 @@
558 558
     \endhead
559 559
     \hline
560 560
     \endfoot
561
-  }%<<<
562
-  { \end { longtable } }%<<<
563
-\cs_new_protected:Npx \__docMRTbundle_replace_verb_newline:Nn #1 #2%>>>
561
+  }%=<<
562
+  { \end { longtable } }%=<<
563
+\cs_new_protected:Npx \__docMRTbundle_replace_verb_newline:Nn #1 #2%>>=
564 564
   {
565 565
     \tl_replace_all:Nnn #1
566 566
       { \char_generate:nn { 13 } { 12 } }
567 567
       { #2 }
568
-  }%<<<
569
-\cs_new_protected:Npx \__docMRTbundle_replace_verb_newline_newline:Nn #1 #2%>>>
568
+  }%=<<
569
+\cs_new_protected:Npx \__docMRTbundle_replace_verb_newline_newline:Nn #1 #2%>>=
570 570
   {
571 571
     \tl_replace_all:Nnn #1
572 572
       { \char_generate:nn { 13 } { 12 } \char_generate:nn { 13 } { 12 } }
573 573
       { #2 }
574
-  }%<<<
574
+  }%=<<
575 575
 \tl_new:N \l__docMRTbundle_doandprint_tl
576 576
 \cs_set_eq:NN \__docMRTbundle_everyeof:w \tex_everyeof:D
577 577
 \cs_set_eq:NN \__docMRTbundle_scantokens:w \tex_scantokens:D
578
-\NewDocumentCommand \DoAndPrint { +v }%>>>
578
+\NewDocumentCommand \DoAndPrint { +v }%>>=
579 579
   {
580 580
     \tl_set:Nn \l__docMRTbundle_doandprint_tl { #1 }
581 581
     \__docMRTbundle_replace_verb_newline_newline:Nn
@@ -605,23 +605,23 @@
605 605
       \l__docMRTbundle_doandprint_tl
606 606
       \endtrivlist
607 607
     \group_end:
608
-  }%<<<
608
+  }%=<<
609 609
 \ExplSyntaxOff
610 610
 
611
-\NewDocumentCommand \NotImplementedMessage { m +O{} }%>>>
611
+\NewDocumentCommand \NotImplementedMessage { m +O{} }%>>=
612 612
   {%
613 613
     \emph{Not Implemented yet!}
614 614
     Everything in this #1section is mostly inside of the documentation to remind
615 615
     me that I still have to code this and to give me a specification what has to
616 616
     be inside the final version. #2\par
617
-  }%<<<
617
+  }%=<<
618 618
 
619 619
 %Shamelessly copied from doc.sty
620
-\def\MakeShortVerb{%>>>
620
+\def\MakeShortVerb{%>>=
621 621
   \@ifstar
622 622
     {\def\@shortvrbdef{\verb*}\@MakeShortVerb}%
623
-    {\def\@shortvrbdef{\bverb}\@MakeShortVerb}}%<<<
624
-\def\@MakeShortVerb#1{%>>>
623
+    {\def\@shortvrbdef{\bverb}\@MakeShortVerb}}%=<<
624
+\def\@MakeShortVerb#1{%>>=
625 625
   \expandafter\ifx\csname cc\string#1\endcsname\relax
626 626
     \@shortvrbinfo{Made }{#1}\@shortvrbdef
627 627
     \add@special{#1}%
@@ -637,8 +637,8 @@
637 637
     \global\catcode`#1\active
638 638
   \else
639 639
     \@shortvrbinfo\@empty{#1 already}{\@empty\verb(*)}%
640
-  \fi}%<<<
641
-\def\DeleteShortVerb#1{%>>>
640
+  \fi}%=<<
641
+\def\DeleteShortVerb#1{%>>=
642 642
   \expandafter\ifx\csname cc\string#1\endcsname\relax
643 643
     \@shortvrbinfo\@empty{#1 not}{\@empty\verb(*)}%
644 644
   \else
@@ -652,18 +652,18 @@
652 652
         \lowercase{%
653 653
           \global\expandafter\let\expandafter~%
654 654
           \csname ac\string#1\endcsname}%
655
-      \endgroup \fi \fi}%<<<
656
-\def\@shortvrbinfo#1#2#3{%>>>
655
+      \endgroup \fi \fi}%=<<
656
+\def\@shortvrbinfo#1#2#3{%>>=
657 657
   \PackageInfo{doc}{%
658 658
      #1\expandafter\@gobble\string#2 a short reference
659
-                                          for \expandafter\string#3}}%<<<
660
-\def\add@special#1{%>>>
659
+                                          for \expandafter\string#3}}%=<<
660
+\def\add@special#1{%>>=
661 661
   \rem@special{#1}%
662 662
   \expandafter\gdef\expandafter\dospecials\expandafter
663 663
     {\dospecials \do #1}%
664 664
   \expandafter\gdef\expandafter\@sanitize\expandafter
665
-    {\@sanitize \@makeother #1}}%<<<
666
-\def\rem@special#1{%>>>
665
+    {\@sanitize \@makeother #1}}%=<<
666
+\def\rem@special#1{%>>=
667 667
   \def\do##1{%
668 668
     \ifnum`#1=`##1 \else \noexpand\do\noexpand##1\fi}%
669 669
   \xdef\dospecials{\dospecials}%
@@ -671,7 +671,9 @@
671 671
     \def\@makeother##1{%
672 672
       \ifnum`#1=`##1 \else \noexpand\@makeother\noexpand##1\fi}%
673 673
     \xdef\@sanitize{\@sanitize}%
674
-  \endgroup}%<<<
674
+  \endgroup}%=<<
675 675
 \AtBeginDocument{\MakeShortVerb \|}
676 676
 \AtEndDocument{\DeleteShortVerb \|}
677 677
 \makeatother
678
+
679
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 20
- 18
Doc/tex/doc_MRTalone.tex View File

@@ -2,7 +2,7 @@
2 2
 The \cls{standalone} version of \cls{MRTthesis}. The aim is to provide a class
3 3
 to produce simple \LaTeX\ based images which match the look of \cls{MRTthesis}.
4 4
 
5
-\section{Options and Setup Files}\label{sec:alone:files}%>>>
5
+\section{Options and Setup Files}\label{sec:alone:files}%>>=
6 6
 \cls{MRTalone} allows you to use a shared options file and a shared setup file
7 7
 for your project. The files get sourced if they are available.
8 8
 
@@ -16,10 +16,10 @@ at the end of the class and might contain any valid \LaTeX\ code, of course
16 16
 including some \cs{MRTaloneSetup} instructions. See \autoref{sec:alone:macros}
17 17
 for \cs{MRTaloneSetup} and \autoref{sec:alone:setup} for the available setup
18 18
 options.
19
-%<<<
19
+%=<<
20 20
 
21
-\section{Options}%>>>
22
-\subsection{Load time options}\label{sec:alone:options}%>>>
21
+\section{Options}%>>=
22
+\subsection{Load time options}\label{sec:alone:options}%>>=
23 23
 The class features a few load time options.
24 24
 \begin{describeopt}{longtable}
25 25
   Is forwarded to \pkg{MRTtab} see its description in \autoref{sec:tab:options}.
@@ -52,8 +52,8 @@ The class features a few load time options.
52 52
 
53 53
 \noindent
54 54
 Every other given option will be passed on to \cls{standalone}.
55
-%<<<
56
-\subsection{Setup options}\label{sec:alone:setup}%>>>
55
+%=<<
56
+\subsection{Setup options}\label{sec:alone:setup}%>>=
57 57
 The following options are accessible with \cs{MRTaloneSetup}.
58 58
 \begin{describeopt}{caption above}
59 59
   Is forwarded to \pkg{MRTtab} and its \cs{MRTtabSetup}. See its description in
@@ -77,24 +77,24 @@ The following options are accessible with \cs{MRTaloneSetup}.
77 77
   Sets \opt{stretch cap}, \opt{stretch tab}, and \opt{stretch text} in one go.
78 78
   Initially set to \texttt{1.408}.
79 79
 \end{describeopt}
80
-%<<<
81
-%<<<
80
+%=<<
81
+%=<<
82 82
 
83
-\section{Macros}\label{sec:alone:macros}%>>>
84
-\begin{describemacro}{MRTaloneSetup}[\marg{options}]%>>>
83
+\section{Macros}\label{sec:alone:macros}%>>=
84
+\begin{describemacro}{MRTaloneSetup}[\marg{options}]%>>=
85 85
   You can use this macro to set the options listed in \autoref{sec:alone:setup}.
86
-\end{describemacro}%<<<
87
-\begin{describemacro}{MRTaloneOptions}[\marg{options}]%>>>
86
+\end{describemacro}%=<<
87
+\begin{describemacro}{MRTaloneOptions}[\marg{options}]%>>=
88 88
   You can use this macro to set the options listed in
89 89
   \autoref{sec:alone:options}. It is only available inside of the
90 90
   \file{./MRTalone.option.tex} file (see \autoref{sec:alone:files}).
91
-\end{describemacro}%<<<
92
-%<<<
91
+\end{describemacro}%=<<
92
+%=<<
93 93
 
94
-\section{Dependencies}\label{sec:alone:dep}%>>>
94
+\section{Dependencies}\label{sec:alone:dep}%>>=
95 95
 The class is based on \cls{standalone}, therefore it naturally depends on that
96 96
 and all its dependencies. Additional dependencies are:
97
-\begin{multicols}{2}%>>>
97
+\begin{multicols}{2}%>>=
98 98
   \begin{itemize}[leftmargin=10pt]
99 99
     \item \pkg{expl3}
100 100
     \item \pkg{xparse}
@@ -124,5 +124,7 @@ and all its dependencies. Additional dependencies are:
124 124
           set to either \texttt{to} or \texttt{bis} with spaces around it.
125 125
       \end{itemize}
126 126
   \end{itemize}
127
-\end{multicols}%<<<
128
-%<<<
127
+\end{multicols}%=<<
128
+%=<<
129
+
130
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 4
- 2
Doc/tex/doc_MRTfonts.tex View File

@@ -68,7 +68,7 @@ giving a uniform look to the documents.
68 68
 \end{describemacro}
69 69
 
70 70
 \section{Dependencies}
71
-\begin{multicols}{2}%>>>
71
+\begin{multicols}{2}%>>=
72 72
   \begin{itemize}[leftmargin=10pt]
73 73
     \item \pkg{expl3}
74 74
     \item \pkg{MRTif}
@@ -95,4 +95,6 @@ giving a uniform look to the documents.
95 95
           \end{itemize}
96 96
       \end{itemize}
97 97
   \end{itemize}
98
-\end{multicols}%<<<
98
+\end{multicols}%=<<
99
+
100
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 6
- 4
Doc/tex/doc_MRTlmscale.tex View File

@@ -11,7 +11,7 @@ this option is a valid float with \cs{MRTifFloatTF}.
11 11
 
12 12
 Here are the results of this scale:
13 13
 
14
-\begin{figure}[htb]% >>>
14
+\begin{figure}[htb]% >>=
15 15
   \centering
16 16
   \includegraphics[scale=5]{img/lmscale_not_scaled-alone.pdf}%
17 17
   \hfil
@@ -23,9 +23,11 @@ Here are the results of this scale:
23 23
       right with the default scale applied.%
24 24
       \label{fig:lmscale}%
25 25
     }%
26
-\end{figure}% <<<
26
+\end{figure}% =<<
27 27
 
28
-\section{Dependencies}\label{sec:lmscale:dep}%>>>
28
+\section{Dependencies}\label{sec:lmscale:dep}%>>=
29 29
 The package uses the \pkg{MRTutil} package and \cs{MRTifFloatTF} from the
30 30
 \pkg{MRTif} package.
31
-%<<<
31
+%=<<
32
+
33
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 30
- 28
Doc/tex/doc_MRTsfacc.tex View File

@@ -25,7 +25,7 @@ exact match of the approach's criterion or does only contain two tokens or
25 25
 groups (so in above example the \cs{bar} and the |{a}|) with the first one being
26 26
 a \cs{mathaccentV} using macro.
27 27
 
28
-\section{Options}%>>>
28
+\section{Options}%>>=
29 29
 The package has the following options:
30 30
 \begin{describeopt}{height}
31 31
   If this option is used the offset is dependent on the height of the accented
@@ -47,9 +47,9 @@ The package has the following options:
47 47
 Every other option is passed on to \cs{MRTsfaccSet}, its description is included
48 48
 in \autoref{sec:sfacc:height:macros}. This will have no effect if the \opt{list}
49 49
 option is used.
50
-%<<<
50
+%=<<
51 51
 
52
-\section{\opt{height} Variant}\label{sec:sfacc:height}%>>>
52
+\section{\opt{height} Variant}\label{sec:sfacc:height}%>>=
53 53
 This variant checks whether the argument is a single character with category
54 54
 code 11. If this test does not return true, the shift isn't applied.
55 55
 
@@ -58,7 +58,7 @@ approach is easier to adapt to other fonts -- one has to change only one
58 58
 parameter -- it is always a compromise trying to match every character as good
59 59
 as possible.
60 60
 
61
-\begin{MRTtable}% >>>
61
+\begin{MRTtable}% >>=
62 62
   [
63 63
     ,env={}
64 64
     ,label=tab:sfacc:height
@@ -69,27 +69,27 @@ as possible.
69 69
       }
70 70
   ]
71 71
   \includegraphics{img/sfacc_height_table-alone.pdf}
72
-\end{MRTtable}% <<<
72
+\end{MRTtable}% =<<
73 73
 
74
-\subsection{Macros}\label{sec:sfacc:height:macros}%>>>
75
-\begin{describemacro}{<accent>}[\meta{*/!}\marg{arg}]%>>>
74
+\subsection{Macros}\label{sec:sfacc:height:macros}%>>=
75
+\begin{describemacro}{<accent>}[\meta{*/!}\marg{arg}]%>>=
76 76
   \cs{<accent>} can be any of the maths accent macros using \cs{mathaccentV}
77 77
   internally (e.g. \cs{bar}, \cs{dot}, etc.).\\
78 78
   The \meta{*/!} can either be \texttt{*} or \texttt{!}\@ or omitted entirely.
79 79
   If the starred version is used, the shift is enforced regardless of the
80 80
   argument, if the exclamation mark is given it is prohibited.
81
-\end{describemacro}%<<<
81
+\end{describemacro}%=<<
82 82
 
83
-\begin{describemacro}{MRTsfaccSet}[\marg{float}]%>>>
83
+\begin{describemacro}{MRTsfaccSet}[\marg{float}]%>>=
84 84
   The shift width depends on a multiple of the box's height. The multiple can be
85 85
   set with this macro and should be a valid float. This is tested using
86 86
   \cs{MRTifFloatTF}. The package default for this share is
87 87
   \makeatletter\texttt{\MRTsfacc@share}\makeatother.
88
-\end{describemacro}%<<<
89
-%<<<
90
-%<<<
88
+\end{describemacro}%=<<
89
+%=<<
90
+%=<<
91 91
 
92
-\section{\opt{list} Variant}\label{sec:sfacc:list}%>>>
92
+\section{\opt{list} Variant}\label{sec:sfacc:list}%>>=
93 93
 This variant checks whether the argument is a known element from a list in which
94 94
 the offset is defined in the unit of \texttt{mu}.
95 95
 
@@ -99,7 +99,7 @@ stuff. The drawback is that everything has to be added that you want to be
99 99
 recognized.
100 100
 \autoref{tab:sfacc:list} shows the results of this approach.
101 101
 
102
-\begin{MRTtable}% >>>
102
+\begin{MRTtable}% >>=
103 103
   [
104 104
     ,env={}
105 105
     ,label=tab:sfacc:list
@@ -110,10 +110,10 @@ recognized.
110 110
       }%
111 111
   ]
112 112
   \includegraphics{img/sfacc_list_table-alone.pdf}
113
-\end{MRTtable}% <<<
113
+\end{MRTtable}% =<<
114 114
 
115 115
 \subsection{Macros}
116
-\begin{describemacro}{<accent>}[\oarg{opt}\marg{arg}]%>>>
116
+\begin{describemacro}{<accent>}[\oarg{opt}\marg{arg}]%>>=
117 117
   \cs{<accent>} can be any of the maths accent macros using \cs{mathaccentV}
118 118
   internally (e.g. \cs{bar}, \cs{dot}, etc.).\\
119 119
   \meta{opt} can either be a defined element from the list or a length in the
@@ -124,20 +124,20 @@ recognized.
124 124
   offset. If the optional argument isn't used at all, it'll be tested whether
125 125
   \meta{arg} is a known element and if so the appropriate offset will be used.
126 126
   Else no offset will be applied.
127
-\end{describemacro}%<<<
127
+\end{describemacro}%=<<
128 128
 
129
-\begin{describemacro}{MRTsfaccShift}[\marg{element}\marg{shift}]%>>>
129
+\begin{describemacro}{MRTsfaccShift}[\marg{element}\marg{shift}]%>>=
130 130
   Adds \meta{element} to the list of known arguments and saves \meta{shift} for
131 131
   it. If \meta{element} is already known it'll get redefined. \meta{shift} has
132 132
   to be given in \texttt{mu}.
133
-\end{describemacro}%<<<
133
+\end{describemacro}%=<<
134 134
 
135
-\begin{describemacro}{MRTsfaccShiftLet}%>>>
135
+\begin{describemacro}{MRTsfaccShiftLet}%>>=
136 136
   [\marg{element1}\marg{element2}]
137 137
   Adds \meta{element1} to the list of known arguments and defines the
138 138
   offset to be the one currently used by \meta{element2}.
139 139
   \meta{element2} has to be known, if it isn't an error will be thrown.
140
-\end{describemacro}%<<<
140
+\end{describemacro}%=<<
141 141
 
142 142
 \begin{describemacro}{MRTsfaccLoadShiftList}[\marg{list}]
143 143
   The package comes with definitions for some fonts (see
@@ -146,9 +146,9 @@ recognized.
146 146
   might contact me as described in \autoref{sec:bugs} and I'll gladly add it
147 147
   to the package.
148 148
 \end{describemacro}
149
-%<<<
149
+%=<<
150 150
 
151
-\begin{MRTtable}%>>>
151
+\begin{MRTtable}%>>=
152 152
   [
153 153
     ,col={>{\ttfamily}l >{\raggedright\arraybackslash}p{.55\linewidth}}
154 154
     ,cap={Available shift definition lists}
@@ -157,7 +157,7 @@ recognized.
157 157
     \normalfont List & To be used with\\
158 158
     helvet & \pkg{helvet} and \pkgWopt{mathastext}{italic,defaultmathsizes}
159 159
     \\
160
-\end{MRTtable}%<<<
160
+\end{MRTtable}%=<<
161 161
 
162 162
 \section{Additional macros}
163 163
 The package provides macros to use the accents used in text mode additionally in
@@ -166,7 +166,7 @@ the bundle's author's insufficient knowledge -- there is no really automated way
166 166
 to do so with a few macros. Instead you can define macros which will produce a
167 167
 symbol which is accented by one of the text accents.
168 168
 
169
-\begin{describemacro}%>>>
169
+\begin{describemacro}%>>=
170 170
   {%
171 171
     newsfhatmacro,defsfhatmacro,%
172 172
     newsfcheckmacro,defsfcheckmacro,%
@@ -202,9 +202,9 @@ symbol which is accented by one of the text accents.
202 202
   You could use \cs{mathord}, \cs{mathop}, \cs{mathbin}, \cs{mathrel},
203 203
   \cs{mathopen}, \cs{mathclose}, \cs{mathpunct}, \cs{mathinner}, or any other
204 204
   macro taking one argument.
205
-\end{describemacro}%<<<
205
+\end{describemacro}%=<<
206 206
 
207
-\begin{describemacro}{newsfaccmacro,defsfaccmacro}%>>>
207
+\begin{describemacro}{newsfaccmacro,defsfaccmacro}%>>=
208 208
   [%
209 209
     \sarg{horizontal}\oarg{vertical}\marg{cs}\oarg{type}\hspace{0pt}%
210 210
     \marg{accent}\marg{symbol}%
@@ -213,7 +213,7 @@ symbol which is accented by one of the text accents.
213 213
   macro you can specify the macro responsible for typesetting the accent using
214 214
   the \meta{accent} argument. The specified \meta{accent} should take at most
215 215
   one argument and this one will be empty.
216
-\end{describemacro}%<<<
216
+\end{describemacro}%=<<
217 217
 
218 218
 The results of these macros heavily depend on the used font. For
219 219
 \cls{MRTthesis}, using \hologo{pdfLaTeX}, the results don't look too bad. For
@@ -245,3 +245,5 @@ approach you use is up to you.
245 245
 \cs{MRTifTwoTokenTF}. It also depends on \pkg{amsmath} being loaded.
246 246
 Additionally it uses the \pkg{MRTutil} package for some of its macros'
247 247
 definitions.
248
+
249
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 108
- 106
Doc/tex/doc_MRTtab.tex View File

@@ -13,7 +13,7 @@ The package provides an environment similar to \env{tabular}
13 13
 (\autoref{sec:tab:cline}), and an environment to typeset displayed tables with
14 14
 many options available (\autoref{sec:tab:table}).
15 15
 
16
-\section{The \env{MRTtabular} environment}\label{sec:tab:tabular}%>>>
16
+\section{The \env{MRTtabular} environment}\label{sec:tab:tabular}%>>=
17 17
 The \env{MRTtabular} environment calls a patched \env{tabular} environment. The
18 18
 following differences exist:
19 19
 \begin{itemize}
@@ -30,7 +30,7 @@ Any \env{tabular} environments inside of an \env{MRTtabular} are ordinary
30 30
 by an outer \cs{rowcolor} or similar, though.
31 31
 
32 32
 An ordinary description as done with other environments in this documentation:
33
-\begin{describeenv}{MRTtabular}%>>>
33
+\begin{describeenv}{MRTtabular}%>>=
34 34
   [\oarg{valign}\marg{preamble}\oarg{head rows}]
35 35
   The first optional argument as well as the mandatory argument match the ones
36 36
   of a regular \env{tabular} environment. \meta{head rows} specifies how many
@@ -39,17 +39,17 @@ An ordinary description as done with other environments in this documentation:
39 39
   further markup is required for this formatting to take place. You should end
40 40
   your rows only with \texttt{\string\\} to make the hook mechanism work (on
41 41
   which the head row markup relies).
42
-\end{describeenv}%<<<
42
+\end{describeenv}%=<<
43 43
 
44
-\begin{describemacro}{head}[\marg{num}]%>>>
44
+\begin{describemacro}{head}[\marg{num}]%>>=
45 45
   Additionally to the optional argument of \env{MRTtabular} to set the first $n$
46 46
   rows as head rows, you can use \cs{head} to set the next \meta{num} rows as
47 47
   head rows. This does not only work at the beginning of the environment but
48 48
   anywhere you want. Alternatively you can use the macros described in
49 49
   \autoref{sec:tab:explicit}.
50
-\end{describemacro}%<<<
50
+\end{describemacro}%=<<
51 51
 
52
-\begin{describemacro}{MRTtabAddtoBoLHook}[\marg{content}]%>>>
52
+\begin{describemacro}{MRTtabAddtoBoLHook}[\marg{content}]%>>=
53 53
   You can add \meta{content} to the Begin-of-Line hook with this macro. Bear in
54 54
   mind that the \meta{content} should be fully expandable and not produce any
55 55
   text, if you want to use stuff like \cs{multicolumn}, \cs{rowcolor}, or
@@ -57,36 +57,36 @@ An ordinary description as done with other environments in this documentation:
57 57
   to that and \cs{noalign} and \cs{omit} won't work in that case. If you need
58 58
   something unexpandable you can enclose it in \cs{noalign}. The addition is
59 59
   made locally.
60
-\end{describemacro}%<<<
60
+\end{describemacro}%=<<
61 61
 
62
-\begin{describemacro}{MRTtabClearBoLHook}%>>>
62
+\begin{describemacro}{MRTtabClearBoLHook}%>>=
63 63
   Clears the Begin-of-Line hook locally.
64
-\end{describemacro}%<<<
64
+\end{describemacro}%=<<
65 65
 
66
-\begin{describemacro}{MRTtabAddtoEoLHook}[\marg{content}]%>>>
66
+\begin{describemacro}{MRTtabAddtoEoLHook}[\marg{content}]%>>=
67 67
   You can also add \meta{content} to the End-of-Line hook. Here it should not
68 68
   matter whether the contents are expandable or not, as it is impossible that
69 69
   something follows in the same row which can't follow something unexpandable.
70 70
   The addition is made locally.
71
-\end{describemacro}%<<<
71
+\end{describemacro}%=<<
72 72
 
73
-\begin{describemacro}{MRTtabClearEoLHook}%>>>
73
+\begin{describemacro}{MRTtabClearEoLHook}%>>=
74 74
   Clears the End-of-Line hook locally.
75
-\end{describemacro}%<<<
75
+\end{describemacro}%=<<
76 76
 
77
-\begin{describemacro}{MRTtabCurrentRow}%>>>
77
+\begin{describemacro}{MRTtabCurrentRow}%>>=
78 78
   Returns the current row number in an \env{MRTtabular} expandably.
79
-\end{describemacro}%<<<
79
+\end{describemacro}%=<<
80 80
 
81 81
 \subsection{Known Bugs}
82 82
 Currently only one bug is known: If after the last head row there is only one
83 83
 additional row the bottom \cs{hline} will only be drawn if you end that last row
84 84
 with \texttt{\string\\}. If you have more rows following the last head row,
85 85
 it won't matter whether you end the last row with \texttt{\string\\} or not.
86
-%<<<
86
+%=<<
87 87
 
88
-\section{The \cs{MRTcline} macro}\label{sec:tab:cline}%>>>
89
-\begin{describemacro}{MRTcline}%>>>
88
+\section{The \cs{MRTcline} macro}\label{sec:tab:cline}%>>=
89
+\begin{describemacro}{MRTcline}%>>=
90 90
   [\meta{!}\oarg{color}\{\meta{*}\oarg{color}%
91 91
   \meta{<\oarg{left skip}}\meta{>\oarg{right skip}}\meta{cols}\}]
92 92
   Sets something like a \cs{cline} in the specified \meta{cols}.
@@ -122,7 +122,7 @@ it won't matter whether you end the last row with \texttt{\string\\} or not.
122 122
   else something like a \cs{hline} using \meta{color} will be used to cover the
123 123
   full width of the tabular. This way you don't have to specify every column you
124 124
   want to color with \meta{color} using the \meta{*} type argument.
125
-\end{describemacro}%<<<
125
+\end{describemacro}%=<<
126 126
 
127 127
 I hope you got that rather cryptic description (if you can supply a better
128 128
 description, message me as noted in \autoref{sec:bugs}).
@@ -130,7 +130,7 @@ description, message me as noted in \autoref{sec:bugs}).
130 130
 Here are a few examples of usage with comparison to a correct \cs{cline} usage.
131 131
 The source of each table is printed below it. The last example of \cs{MRTcline}
132 132
 is not possible with the standard \cs{cline} as far as I know.
133
-\begin{multicols}{2}%>>>
133
+\begin{multicols}{2}%>>=
134 134
   \MRTthesisSetup{stretch tab=1}
135 135
   \noindent
136 136
 \vbox{\DoAndPrint{\begin{MRTtabular}{lll}
@@ -148,8 +148,8 @@ is not possible with the standard \cs{cline} as far as I know.
148 148
   g & h & i\\
149 149
   j & k & l\\
150 150
 \end{MRTtabular}}}
151
-\end{multicols}%<<<
152
-\begin{multicols}{2}%>>>
151
+\end{multicols}%=<<
152
+\begin{multicols}{2}%>>=
153 153
   \MRTthesisSetup{stretch tab=1}
154 154
   \noindent
155 155
 \vbox{\DoAndPrint{\begin{MRTtabular}{lll}[2]
@@ -179,10 +179,10 @@ is not possible with the standard \cs{cline} as far as I know.
179 179
   g & h & i\\
180 180
   j & k & l\\
181 181
 \end{MRTtabular}}}
182
-\end{multicols}%<<<
183
-%<<<
182
+\end{multicols}%=<<
183
+%=<<
184 184
 
185
-\section{The \env{MRTtable} environment}\label{sec:tab:table}%>>>
185
+\section{The \env{MRTtable} environment}\label{sec:tab:table}%>>=
186 186
 The \env{MRTtable} environment is a wrapper around an \env{MRTtabular} inside of
187 187
 a \env{table} environment. There might be a severe difference in the
188 188
 implementation of the \texttt{long} version, but as of now it is \emph{not
@@ -194,36 +194,36 @@ implemented}.
194 194
   \\[\parskip]
195 195
   All available \meta{key}s are listed in \autoref{sec:tab:options:setup}.
196 196
 \end{describeenv}
197
-%<<<
197
+%=<<
198 198
 
199
-\section{Explicit head rows}\label{sec:tab:explicit}%>>>
199
+\section{Explicit head rows}\label{sec:tab:explicit}%>>=
200 200
 It is possible to mark head rows explicitly. For this the following macros are
201 201
 provided:
202 202
 
203
-\begin{describemacro}{headS}%>>>
203
+\begin{describemacro}{headS}%>>=
204 204
   Start of the head rows. Sets a \cs{hline} above the current row except if the
205 205
   current row is the first row in a \env{MRTtabular} environment. Additionally
206 206
   the current row is coloured with \cs{rowcolor{tablegray}}.
207
-\end{describemacro}%<<<
207
+\end{describemacro}%=<<
208 208
 
209
-\begin{describemacro}{headR}%>>>
209
+\begin{describemacro}{headR}%>>=
210 210
   An additional head row should be started with this macro. It sets the current
211 211
   row's colour to \texttt{tablegray}.
212
-\end{describemacro}%<<<
212
+\end{describemacro}%=<<
213 213
 
214
-\begin{describemacro}{headE}%>>>
214
+\begin{describemacro}{headE}%>>=
215 215
   The end of the head rows. Should be used after the last row of the table's
216 216
   head but prior to the next row (immediately after \texttt{\string\\}).
217
-\end{describemacro}%<<<
217
+\end{describemacro}%=<<
218 218
 
219
-\begin{describemacro}{MRTtabDeclareHeadMacros}%>>>
219
+\begin{describemacro}{MRTtabDeclareHeadMacros}%>>=
220 220
   By default the above macros are only available inside of \env{MRTtabular} and
221 221
   in the body of \env{MRTtable}. \cs{MRTtabDeclareHeadMacros} will make them
222 222
   locally available.
223
-\end{describemacro}%<<<
224
-%<<<
223
+\end{describemacro}%=<<
224
+%=<<
225 225
 
226
-\section{Other package macros}%>>>
226
+\section{Other package macros}%>>=
227 227
 \begin{describemacro}{MRTtabSetup}[\marg{key=value}]
228 228
   This is the interface to set the options listed in
229 229
   \autoref{sec:tab:options:setup} outside of \env{MRTtable}.
@@ -249,9 +249,9 @@ provided:
249 249
   set the first column left aligned and every following column centred. It has
250 250
   to be preceded by at least one valid column definition.
251 251
 \end{describemacro}
252
-%<<<
252
+%=<<
253 253
 
254
-\section{Options}\label{sec:tab:options}%>>>
254
+\section{Options}\label{sec:tab:options}%>>=
255 255
 The package only features one load time option, which is \texttt{longtable}. If
256 256
 it is specified the \pkg{longtable} package is loaded and some more options of
257 257
 \env{MRTtable} become available which are focused around the usage of
@@ -261,158 +261,158 @@ version of \env{MRTtable} is not yet implemented.
261 261
 \subsection{Setup Options}\label{sec:tab:options:setup}
262 262
 The following options are available for \cs{MRTtabSetup} and \env{MRTtable}.
263 263
 
264
-\begin{describeopt}{align}[\meta{align}]%>>>
264
+\begin{describeopt}{align}[\meta{align}]%>>=
265 265
   If \opt{no float} has been used, a \env{minipage} is used around the
266 266
   \env{MRTtable}. With the \opt{align} option you can specify the vertical
267 267
   alignment of that \env{minipage}.
268
-\end{describeopt}%<<<
269
-\begin{describeopt}{caption above,above}%>>>
268
+\end{describeopt}%=<<
269
+\begin{describeopt}{caption above,above}%>>=
270 270
   If specified the caption will be put above the \env{MRTtabular} in
271 271
   \env{MRTtable}. If \cs{KOMAoptions} is available the KOMA option
272 272
   \opt{captions=tableheading} is used.
273
-\end{describeopt}%<<<
274
-\begin{describeopt}{caption below,below}%>>>
273
+\end{describeopt}%=<<
274
+\begin{describeopt}{caption below,below}%>>=
275 275
   If specified the caption will be put below the \env{MRTtabular} in
276 276
   \env{MRTtable}. If \cs{KOMAoptions} is available the KOMA option
277 277
   \opt{captions=tablesignature} is used.
278
-\end{describeopt}%<<<
279
-\begin{describeopt}{bare}[\meta{bool}]%>>>
278
+\end{describeopt}%=<<
279
+\begin{describeopt}{bare}[\meta{bool}]%>>=
280 280
   If set to true the potential caption and the tabular like environment in
281 281
   \env{MRTtable} are neither surrounded by a \env{minipage} nor a \env{figure}.
282 282
   Only a \cs{centering} is issued.
283
-\end{describeopt}%<<<
284
-\begin{describeopt}{BoL}[\meta{content}]%>>>
283
+\end{describeopt}%=<<
284
+\begin{describeopt}{BoL}[\meta{content}]%>>=
285 285
   Sets the \env{MRTtabular} Begin-of-Line hook using \cs{MRTtabAddtoBoLHook}
286
-\end{describeopt}%<<<
287
-\begin{describeopt}{EoL}[\meta{content}]%>>>
286
+\end{describeopt}%=<<
287
+\begin{describeopt}{EoL}[\meta{content}]%>>=
288 288
   Sets the \env{MRTtabular} End-of-Line hook using \cs{MRTtabAddtoEoLHook}
289
-\end{describeopt}%<<<
290
-\begin{describeopt}{caption, cap}[\meta{caption}]%>>>
289
+\end{describeopt}%=<<
290
+\begin{describeopt}{caption, cap}[\meta{caption}]%>>=
291 291
   Specifies the content of the caption in an \env{MRTtable}. If it is blank, no
292 292
   caption will be used.
293
-\end{describeopt}%<<<
294
-\begin{describeopt}{cline version}[\meta{choice}]%>>>
293
+\end{describeopt}%=<<
294
+\begin{describeopt}{cline version}[\meta{choice}]%>>=
295 295
   set the behaviour of \cs{MRTcline}. Choices are |1| and |2|. |2| is the
296 296
   behaviour currently described in \autoref{sec:tab:cline}. If you specify |1|
297 297
   the behaviour of the optional \meta{!} of \cs{MRTcline} is reversed.
298
-\end{describeopt}%<<<
299
-\begin{describeopt}{columns, col}[\meta{preamble}]%>>>
298
+\end{describeopt}%=<<
299
+\begin{describeopt}{columns, col}[\meta{preamble}]%>>=
300 300
   Specifies the \env{MRTtabular} preamble (the column specifications). Defaults
301 301
   to first column \texttt{l}, others \texttt{c}.
302
-\end{describeopt}%<<<
303
-\begin{describeopt}{env}[\meta{name}]%>>>
302
+\end{describeopt}%=<<
303
+\begin{describeopt}{env}[\meta{name}]%>>=
304 304
   Uses the tabular like environment \meta{name} instead of \env{MRTtabular}. If
305 305
   an empty argument is provided, no inner environment will be used. This is
306 306
   useful if you want to use an environment that grabs its contents and has to be
307 307
   explicitly used, e.g. \env{tabularx} can only be used like this.
308
-\end{describeopt}%<<<
309
-\begin{describeopt}{env begin}[\meta{begin}]%>>>
308
+\end{describeopt}%=<<
309
+\begin{describeopt}{env begin}[\meta{begin}]%>>=
310 310
   Uses \meta{begin} as the start of the tabular like environment. This way you
311 311
   can specify some options. Note that any outer braces are stripped. If you want
312 312
   to use an environment you have to include \cs{begin} in the argument. Note
313 313
   that if the argument you provide is not empty, the column specification as
314 314
   defined with \opt{columns} is inserted in braces after \meta{begin}.
315
-\end{describeopt}%<<<
316
-\begin{describeopt}{env end}[\meta{end}]%>>>
315
+\end{describeopt}%=<<
316
+\begin{describeopt}{env end}[\meta{end}]%>>=
317 317
   Uses \meta{end} as the end of the tabular like environment. This way you can
318 318
   specify some options. Note that any outer braces are stripped. If you want to
319 319
   use an environment you have to include \cs{end} in the argument.
320
-\end{describeopt}%<<<
321
-\begin{describeopt}{float}[\meta{bool}]%>>>
320
+\end{describeopt}%=<<
321
+\begin{describeopt}{float}[\meta{bool}]%>>=
322 322
   If set true (the default and initial value) the \env{MRTtable} floats.
323
-\end{describeopt}%<<<
324
-\begin{describeopt}{head rows, head}[\meta{num}]%>>>
323
+\end{describeopt}%=<<
324
+\begin{describeopt}{head rows, head}[\meta{num}]%>>=
325 325
   The number of rows which should be formatted as head rows as in
326 326
   \env{MRTtabular}. In each \env{MRTtable} it is initially \texttt{1} -- this
327 327
   differs from the behaviour of a stand alone \env{MRTtabular} which defaults to
328 328
   \texttt{0} rows.
329
-\end{describeopt}%<<<
330
-\begin{describeopt}{in text sep}[\meta{skip}]%>>>
329
+\end{describeopt}%=<<
330
+\begin{describeopt}{in text sep}[\meta{skip}]%>>=
331 331
   This controls the vertical space around a non-floating \env{MRTtable}. It is
332 332
   initially set to \cs{intextsep}. If it is equal to 0pt the \cs{vskip} is not
333 333
   issued.
334
-\end{describeopt}%<<<
335
-\begin{describeopt}{label}[\meta{label}]%>>>
334
+\end{describeopt}%=<<
335
+\begin{describeopt}{label}[\meta{label}]%>>=
336 336
   If \opt{caption} is used the \env{MRTtable} will get the specified
337 337
   \meta{label}.
338
-\end{describeopt}%<<<
339
-\begin{describeopt}{no float}[\meta{bool}]%>>>
338
+\end{describeopt}%=<<
339
+\begin{describeopt}{no float}[\meta{bool}]%>>=
340 340
   The opposite of \opt{float}. If set true the \env{MRTtable} will not float
341 341
   which is the default (but not initial) value.
342
-\end{describeopt}%<<<
343
-\begin{describeopt}{no inner env}%>>>
342
+\end{describeopt}%=<<
343
+\begin{describeopt}{no inner env}%>>=
344 344
   Same result as \opt{env~begin=\{\},env~end=\{\}}, so no tabular like
345 345
   environment is used at all.
346
-\end{describeopt}%<<<
347
-\begin{describeopt}{pos}[\meta{pos}]%>>>
346
+\end{describeopt}%=<<
347
+\begin{describeopt}{pos}[\meta{pos}]%>>=
348 348
   The placement of a floating \env{MRTtable}. Initially \texttt{tbp}.
349
-\end{describeopt}%<<<
350
-\begin{describeopt}{post tab, post}[\meta{content}]%>>>
349
+\end{describeopt}%=<<
350
+\begin{describeopt}{post tab, post}[\meta{content}]%>>=
351 351
   A hook which is executed right after the \cs{end} of the inner
352 352
   \env{MRTtabular}.
353
-\end{describeopt}%<<<
354
-\begin{describeopt}{pre tab, pre}[\meta{content}]%>>>
353
+\end{describeopt}%=<<
354
+\begin{describeopt}{pre tab, pre}[\meta{content}]%>>=
355 355
   A hook which is executed right before the \cs{begin} of the inner
356 356
   \env{MRTtabular}.
357
-\end{describeopt}%<<<
358
-\begin{describeopt}{short caption, short cap, scap}%>>>
357
+\end{describeopt}%=<<
358
+\begin{describeopt}{short caption, short cap, scap}%>>=
359 359
   If caption and this option are used the list of tables will get this short
360 360
   caption instead of the caption.
361
-\end{describeopt}%<<<
362
-\begin{describeopt}{stretch tabular, stretch tab, stretch}[\meta{float}]%>>>
361
+\end{describeopt}%=<<
362
+\begin{describeopt}{stretch tabular, stretch tab, stretch}[\meta{float}]%>>=
363 363
   Sets the stretch in \env{MRTtabular} to the specified \meta{float} using
364 364
   \cs{setstretch}.
365
-\end{describeopt}%<<<
366
-\begin{describeopt}{stretch caption, stretch cap, cstretch}[\meta{float}]%>>>
365
+\end{describeopt}%=<<
366
+\begin{describeopt}{stretch caption, stretch cap, cstretch}[\meta{float}]%>>=
367 367
   Sets the stretch in the caption using \cs{setkomafont} and \cs{setstretch}.
368 368
   Doesn't work if KOMA script is not used but issues a warning in that case.
369
-\end{describeopt}%<<<
370
-\begin{describeopt}{striped}[\meta{bool}]%>>>
369
+\end{describeopt}%=<<
370
+\begin{describeopt}{striped}[\meta{bool}]%>>=
371 371
   If set to true the inner \env{MRTtabular} will be striped with \opt{stripe
372 372
   color 1} and \opt{stripe color 2}, beginning in line \opt{stripe start}. It
373 373
   uses \cs{rowcolors} internally.
374
-\end{describeopt}%<<<
375
-\begin{describeopt}{stripe color 1, stripe 1, scolor 1, scolor1}%>>>
374
+\end{describeopt}%=<<
375
+\begin{describeopt}{stripe color 1, stripe 1, scolor 1, scolor1}%>>=
376 376
   [\meta{color}]
377 377
   Defines the \meta{color} of the first color argument of \cs{rowcolors} if
378 378
   \opt{striped} is true. Initially set to \texttt{tablegray!50}.
379
-\end{describeopt}%<<<
380
-\begin{describeopt}{stripe color 2, stripe 2, scolor 2, scolor2}%>>>
379
+\end{describeopt}%=<<
380
+\begin{describeopt}{stripe color 2, stripe 2, scolor 2, scolor2}%>>=
381 381
   [\meta{color}]
382 382
   Defines the \meta{color} of the second color argument of \cs{rowcolors} if
383 383
   \opt{striped} is true. Initially set to \texttt{white}.
384
-\end{describeopt}%<<<
385
-\begin{describeopt}{stripe invert, sinvert}%>>>
384
+\end{describeopt}%=<<
385
+\begin{describeopt}{stripe invert, sinvert}%>>=
386 386
   Exchanges the current values of \opt{stripe color 1} and \opt{stripe color 2}.
387
-\end{describeopt}%<<<
388
-\begin{describeopt}{stripe start, sstart}[\meta{row}]%>>>
387
+\end{describeopt}%=<<
388
+\begin{describeopt}{stripe start, sstart}[\meta{row}]%>>=
389 389
   Defines the starting row of a potentially striped \env{MRTtabular}. Initially
390 390
   set to \texttt{2}.
391
-\end{describeopt}%<<<
391
+\end{describeopt}%=<<
392 392
 
393 393
 \plannedsection[subsub]{\pkg{longtable} related options}
394 394
 The following options are only available if the \opt{longtable} option was used
395 395
 during package load time.
396 396
 
397
-\begin{describeopt}{long}[\meta{bool}]%>>>
397
+\begin{describeopt}{long}[\meta{bool}]%>>=
398 398
   If set true the \env{MRTtable} uses \env{longtable} internally. It doesn't
399 399
   float and gets page breakable. You should specify the \opt{columns} of
400 400
   \env{MRTtable} manually as the automatic detection might fail terribly in
401 401
   conjunction with \env{longtable}.
402
-\end{describeopt}%<<<
403
-\begin{describeopt}{continue caption, cont cap}[\meta{caption}]%>>>
402
+\end{describeopt}%=<<
403
+\begin{describeopt}{continue caption, cont cap}[\meta{caption}]%>>=
404 404
   If specified following pages use this \meta{caption} instead of the \opt{short
405 405
   caption} or the normal \opt{caption}.
406
-\end{describeopt}%<<<
407
-\begin{describeopt}{continue with caption, cont with cap, cont w cap}%>>>
406
+\end{describeopt}%=<<
407
+\begin{describeopt}{continue with caption, cont with cap, cont w cap}%>>=
408 408
   [\meta{bool}]
409 409
   If set true, the following pages use the \opt{caption} and not the \opt{short
410 410
   caption} or \opt{continue caption}. Defaults to true and initially is set to
411 411
   false.
412
-\end{describeopt}%<<<
413
-%<<<
412
+\end{describeopt}%=<<
413
+%=<<
414 414
 
415
-\section{Dependencies}%>>>
415
+\section{Dependencies}%>>=
416 416
 The package requires the following packages and their dependencies:
417 417
 \vspace*{-\multicolsep}%
418 418
 \begin{multicols}{3}
@@ -426,4 +426,6 @@ The package requires the following packages and their dependencies:
426 426
   \end{itemize}
427 427
 \end{multicols}
428 428
 \vspace*{-\multicolsep}%
429
-%<<<
429
+%=<<
430
+
431
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 20
- 18
Doc/tex/doc_MRTthesis.tex View File

@@ -6,8 +6,8 @@ of TeX should create better line breaking than Word's but if one doesn't know on
6 6
 what to pay attention or for an untrained eye the distinction won't be possible
7 7
 (at least I hope so, as that was the goal in the first place).
8 8
 
9
-\section{Options}%>>>
10
-\subsection{Load time options}\label{sec:thesis:opt}%>>>
9
+\section{Options}%>>=
10
+\subsection{Load time options}\label{sec:thesis:opt}%>>=
11 11
 The class features a few load time options.
12 12
 \begin{describeopt}{longtable}
13 13
   Is forwarded to \pkg{MRTtab} see its description in \autoref{sec:tab:options}.
@@ -51,8 +51,8 @@ The class features a few load time options.
51 51
 
52 52
 \noindent
53 53
 Every other given option will be passed on to \cls{scrreprt}.
54
-%<<<
55
-\subsection{Setup options}\label{sec:thesis:setup}%>>>
54
+%=<<
55
+\subsection{Setup options}\label{sec:thesis:setup}%>>=
56 56
 The following options are accessible with \cs{MRTthesisSetup}.
57 57
 \begin{describeopt}{advisor}[\meta{name}]
58 58
   Sets the name of the advisor of this thesis. One typical value could be
@@ -249,7 +249,7 @@ The following options are accessible with \cs{MRTthesisSetup}.
249 249
   is false.
250 250
 \end{describeopt}
251 251
 
252
-\subsubsection{Options concerning automatically added contents}%>>>
252
+\subsubsection{Options concerning automatically added contents}%>>=
253 253
 \label{sec:autoopt}
254 254
 The following additional options can be set with \cs{MRTthesisSetup}. They all
255 255
 resolve around automatically added contents.
@@ -329,11 +329,11 @@ resolve around automatically added contents.
329 329
   \meta{choice}s are |front| and |off|. If |off| is used it doesn't get added
330 330
   automatically. Default value is |front|.
331 331
 \end{describeopt}
332
-%<<<
333
-%<<<
334
-%<<<
332
+%=<<
333
+%=<<
334
+%=<<
335 335
 
336
-\section{Macros}\label{sec:thesis:mac}%>>>
336
+\section{Macros}\label{sec:thesis:mac}%>>=
337 337
 The following macros are provided:
338 338
 \begin{describemacroTF}{ifNoWidth}[\marg{arg}]
339 339
   Typesets the argument in a box (so the code is actually executed). If the
@@ -383,8 +383,8 @@ The following macros are provided:
383 383
   afterwards (comma separated). \autoref{tab:thesis:tocindents} shows an
384 384
   overview of the class's default indentations.
385 385
 \end{describemacro}
386
-\begin{MRTtable}%>>>
387
-  [%>>>
386
+\begin{MRTtable}%>>=
387
+  [%>>=
388 388
     ,label=tab:thesis:tocindents
389 389
     ,cap=
390 390
       {
@@ -395,7 +395,7 @@ The following macros are provided:
395 395
     ,scap=
396 396
       {Indents of different ToC entry types and the macro they are stored in}
397 397
     ,col=llc
398
-  ]%<<<
398
+  ]%=<<
399 399
   entry-layer & macro name & default length \\
400 400
 
401 401
   chapter       & \cs{l_MRTthesis_toc_chapter_indent_tl}       & 0.01em\\
@@ -404,7 +404,7 @@ The following macros are provided:
404 404
   subsubsection & \cs{l_MRTthesis_toc_subsubsection_indent_tl} & 6.38em\\
405 405
   table         & \cs{l_MRTthesis_toc_section_indent_tl}       & 1.32em\\
406 406
   figure        & \cs{l_MRTthesis_toc_section_indent_tl}       & 1.32em\\
407
-\end{MRTtable}%<<<
407
+\end{MRTtable}%=<<
408 408
 \begin{describemacro}{MRTthesisSetup}[\marg{options}]
409 409
   You can use this macro to set the options listed in
410 410
   \autoref{sec:thesis:setup}.
@@ -435,9 +435,9 @@ The following macros are provided:
435 435
 Additionally the macros \cs{author}, \cs{title}, and \cs{subtitle} have been
436 436
 redefined to internally use \cs{MRTthesisSetup} to set the corresponding
437 437
 options.
438
-%<<<
438
+%=<<
439 439
 
440
-\section{Dependencies}\label{sec:thesis:dep}%>>>
440
+\section{Dependencies}\label{sec:thesis:dep}%>>=
441 441
 As this class is based on \cls{scrreprt}, it depends on that class and all of
442 442
 its dependencies, of course. Additionally the following packages are loaded
443 443
 (used options given in brackets). Those are quite some but unfortunately most of
@@ -451,7 +451,7 @@ formatting.%
451 451
 \footnote
452 452
   {Don't remove it though, the current code for section headings relies on it.}
453 453
 
454
-\begin{multicols}{2}%>>>
454
+\begin{multicols}{2}%>>=
455 455
   \begin{itemize}[leftmargin=10pt]
456 456
     \item \pkg{expl3}
457 457
     \item \pkg{xparse}
@@ -493,5 +493,7 @@ formatting.%
493 493
         \item \pkg{csquotes}
494 494
       \end{itemize}
495 495
   \end{itemize}
496
-\end{multicols}%<<<
497
-%<<<
496
+\end{multicols}%=<<
497
+%=<<
498
+
499
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 8
- 6
Doc/tex/doc_MRTutil.tex View File

@@ -6,7 +6,7 @@ facing macros. As a general rule of thumb the user level is therefore moved one
6 6
 layer down, user facing macros have a single \texttt{@} in their names, while
7 7
 internal macros have at least two.
8 8
 
9
-\section{Defining Macros}%>>>
9
+\section{Defining Macros}%>>=
10 10
 Since the author of this bundle often finds the possibilities of the \LaTeXe\
11 11
 macro family of \cs{newcommand} too restricting, the package provides some
12 12
 macros which use the syntax of \TeX's \cs{def} but still check whether the macro
@@ -22,9 +22,9 @@ is already defined.
22 22
   and \cs{def} in that they only define a new command but keep the versatility
23 23
   of \cs{def}. There is a usage example in \autoref{sec:util:example}.
24 24
 \end{describemacro}
25
-%<<<
25
+%=<<
26 26
 
27
-\section{Optional Argument Parsing}%>>>
27
+\section{Optional Argument Parsing}%>>=
28 28
 Since the author really likes what \pkg{xparse} allows in defining macros with
29 29
 many optional arguments but doesn't want to force the complete \pkg{expl3} onto
30 30
 the user (since it's huge), if a user is only interested in one or two of the
@@ -106,9 +106,9 @@ same behaviour encountered in \LaTeXe's optional arguments).
106 106
   defined that does the argument grabbing. \meta{cs} should include the leading
107 107
   backslash. There is a usage example in \autoref{sec:util:example}.
108 108
 \end{describemacro}
109
-%<<<
109
+%=<<
110 110
 
111
-\subsection{Example}\label{sec:util:example}%>>>
111
+\subsection{Example}\label{sec:util:example}%>>=
112 112
 In the following example we'll define a macro that takes two optional arguments
113 113
 -- one delimited by |[]| and one delimited by |<>| -- and a mandatory one. We'll
114 114
 need one auxiliary macro per optional argument.
@@ -189,4 +189,6 @@ arguments. A few usage examples are shown in \autoref{tab:util:ourmacro}.
189 189
   |[foo]<bar>{baz}| & [foo]<bar>{baz} \\
190 190
 \end{MRTtable}
191 191
 \endgroup
192
-%<<<
192
+%=<<
193
+
194
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 13
- 11
Doc/tex/doc_MRTwuline.tex View File

@@ -2,16 +2,16 @@
2 2
 The package provides a MS Word like looking line breakable underlining. It does
3 3
 so by using \pkg{ulem} or \pkg{stackengine}.
4 4
 
5
-\section{Options}\label{sec:wuline:options}%>>>
5
+\section{Options}\label{sec:wuline:options}%>>=
6 6
 \begin{describeopt}{tUline,tikzunderline}
7 7
   If this option is passed \TikZ\ will be added as a required package and an
8 8
   alternative underlining macro defined called \cs{tUline}, see its description
9 9
   in \autoref{sec:wuline:mac}.
10 10
 \end{describeopt}
11
-%<<<
11
+%=<<
12 12
 
13
-\section{Macros}\label{sec:wuline:mac}%>>>
14
-\begin{describemacro}{WUline}[\oarg{height}\marg{text}]%>>>
13
+\section{Macros}\label{sec:wuline:mac}%>>=
14
+\begin{describemacro}{WUline}[\oarg{height}\marg{text}]%>>=
15 15
   This sets \meta{text} and underlines it in a way that looks like MS Word
16 16
   underlining -- at least in the headings. It is usable both in math mode and in
17 17
   text mode. Though in math mode you should use \cs{underline}.\\[\parskip]
@@ -21,8 +21,8 @@ so by using \pkg{ulem} or \pkg{stackengine}.
21 21
   needed \meta{height} to achieve the same height of the line differs quite a
22 22
   lot. By default in math mode \texttt{\csuse{MRTwuline@mathheight}} is
23 23
   used, in text mode \texttt{\csuse{MRTwuline@textheight}}.
24
-\end{describemacro}%<<<
25
-\begin{describemacro}{tUline}%>>>
24
+\end{describemacro}%=<<
25
+\begin{describemacro}{tUline}%>>=
26 26
   [\oarg{height}\oarg{overhang}\oarg{thickness}\marg{text}]
27 27
   This macro can be used to underline bigger portions of text. You should never
28 28
   need it, I guess. Just use \cs{WUline} instead. If you need it, you'll have to
@@ -35,11 +35,11 @@ so by using \pkg{ulem} or \pkg{stackengine}.
35 35
   assumed that the lines are equally separated with \cs{baselineskip} -- so if
36 36
   your material does stretch the baseline skip, you can't use \cs{tUline}. It
37 37
   needs at least two runs to be displayed correctly.
38
-\end{describemacro}%<<<
39
-%<<<
38
+\end{describemacro}%=<<
39
+%=<<
40 40
 
41
-\section{Dependencies}%>>>
42
-\begin{multicols}{2}%>>>
41
+\section{Dependencies}%>>=
42
+\begin{multicols}{2}
43 43
   \begin{itemize}[leftmargin=10pt]
44 44
     \item \pkg{expl3}
45 45
     \item \pkg{xparse}
@@ -56,4 +56,6 @@ so by using \pkg{ulem} or \pkg{stackengine}.
56 56
       \end{itemize}
57 57
   \end{itemize}
58 58
 \end{multicols}
59
-%<<<
59
+%=<<
60
+
61
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 8
- 6
Example_Documents/MRTbeam/example_MRTbeam.tex View File

@@ -15,14 +15,14 @@
15 15
 \begin{document}
16 16
 \begingroup
17 17
 \OnlyOneTopRuletrue
18
-\begin{frame}%>>>
18
+\begin{frame}%>>=
19 19
 \maketitle
20
-\end{frame}%<<<
20
+\end{frame}%=<<
21 21
 \endgroup
22 22
 
23
-\begin{frame}{Contents}{}%>>>
23
+\begin{frame}{Contents}{}%>>=
24 24
 \tableofcontents
25
-\end{frame}%<<<
25
+\end{frame}%=<<
26 26
 
27 27
 \StartOfProgress
28 28
 \include{tex/introduction}
@@ -32,9 +32,9 @@
32 32
 
33 33
 \begin{whiteframes}
34 34
   \ShowGrid
35
-  \begin{frame}{\relax}{\relax}%>>>
35
+  \begin{frame}{\relax}{\relax}%>>=
36 36
     \PlaceAt(.5,.5){\Huge Thank you. Here is a grid for you.}
37
-  \end{frame}%<<<
37
+  \end{frame}%=<<
38 38
 \end{whiteframes}
39 39
 
40 40
 %% Put bibliography here
@@ -42,3 +42,5 @@
42 42
 
43 43
 
44 44
 \end{document}
45
+
46
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 3
- 2
Example_Documents/MRTbeam/tex/conclusion.tex View File

@@ -1,9 +1,10 @@
1 1
 \section{Conclusion}
2
-\begin{frame}{}{}%>>>
2
+\begin{frame}{}{}%>>=
3 3
   \begin{itemize}
4 4
     \item showed you the main differences
5 5
     \item just note how frame titles are build without me specifying those (argh
6 6
       that's a long point, bad style)
7 7
   \end{itemize}
8
-\end{frame}%<<<
8
+\end{frame}%=<<
9 9
 
10
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 8
- 6
Example_Documents/MRTbeam/tex/introduction.tex View File

@@ -1,11 +1,11 @@
1 1
 \section{Introduction}
2
-\begin{frame}{}{A frame}%>>>
2
+\begin{frame}{}{A frame}%>>=
3 3
   This is a frame. It doesn't show much.
4 4
 
5 5
   Take a look at the sources of this document.
6
-\end{frame}%<<<
6
+\end{frame}%=<<
7 7
 \subsection{An itemization}
8
-\begin{frame}{}{}%>>>
8
+\begin{frame}{}{}%>>=
9 9
   \begin{itemize}
10 10
     \item First
11 11
     \item Second
@@ -16,12 +16,14 @@
16 16
       \end{itemize}
17 17
     \item Third
18 18
   \end{itemize}
19
-\end{frame}%<<<
19
+\end{frame}%=<<
20 20
 \subsection{An enumeration}
21
-\begin{frame}{}{revealing step wise}%>>>
21
+\begin{frame}{}{revealing step wise}%>>=
22 22
   \begin{enumerate}[<+->]
23 23
     \item Bla
24 24
     \item Bli
25 25
     \item Blubb
26 26
   \end{enumerate}
27
-\end{frame}%<<<
27
+\end{frame}%=<<
28
+
29
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 3
- 2
Example_Documents/MRTbeam/tex/mainpart.tex View File

@@ -1,10 +1,11 @@
1 1
 \section{Mainpart}
2
-\begin{frame}{}{Just look at beamer's guide}%>>>
2
+\begin{frame}{}{Just look at beamer's guide}%>>=
3 3
   \PlaceAt(.8,.6){\includegraphics[page=15]{example-image-duck}}
4 4
   \PlaceAt(.8,.4){A duck to make you happy}
5 5
   \begin{itemize}
6 6
     \item want to see how beamer works?
7 7
     \item[$\rightarrow$] take a look at its manual
8 8
   \end{itemize}
9
-\end{frame}%<<<
9
+\end{frame}%=<<
10 10
 
11
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 6
- 4
Example_Documents/MRTthesis/tex/anhang.tex View File

@@ -2,7 +2,7 @@
2 2
 \color{blue}
3 3
 \addchap{Anhang}
4 4
 \section{Lange Rechnung}
5
-\begin{align}%>>>
5
+\begin{align}%>>=
6 6
     1+1&=2\\
7 7
     1+2&=3\\
8 8
     1+3&=4\\
@@ -23,7 +23,7 @@
23 23
     1+18&=19\\
24 24
     1+19&=20\\
25 25
     1+20&=21
26
-\end{align}%<<<
26
+\end{align}%=<<
27 27
 
28 28
 \section{Lange Tabelle}
29 29
 \begin{MRTtable}
@@ -70,7 +70,7 @@ Für die Einbindung von Code würde ich das Paket \textrm{listings} mit der
70 70
 angewandt.
71 71
 % slightly reduced spacing (looks better here, IMHO)
72 72
 \bgroup\MRTthesisSetup{stretch text=1.2}
73
-%\begin{verbatim}>>>
73
+%\begin{verbatim}>>=
74 74
 \begin{verbatim}
75 75
 from mpl_pgfpre import *
76 76
 from random import seed,random
@@ -91,7 +91,7 @@ for i in range(3):
91 91
         plt.plot(points[i][j][0],points[i][j][1],"ko")
92 92
 
93 93
 savefig("img/2b")
94
-\end{verbatim}%<<<
94
+\end{verbatim}%=<<
95 95
 \egroup
96 96
 
97 97
 \section{Bilder}
@@ -105,3 +105,5 @@ savefig("img/2b")
105 105
   \captionof{figure}{Großes Bild einer Ente im Anhang}
106 106
 \end{minipage}
107 107
 \endgroup
108
+
109
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 54
- 52
MRTalone/MRTalone.cls View File

@@ -10,44 +10,44 @@
10 10
 
11 11
 \prop_gput:Nnn \g_msg_module_type_prop { MRTalone } { Class }
12 12
 
13
-%% variants of external macros >>>
13
+%% variants of external macros >>=
14 14
 %%=============================================================================
15 15
 \cs_generate_variant:Nn \keys_set:nn { nV }
16
-%%==========================================================================<<<
16
+%%===========================================================================<<
17 17
 
18
-%% variables >>>
18
+%% variables >>=
19 19
 %%=============================================================================
20
-% l3 variables >>>
21
-% bool >>>
20
+% l3 variables >>=
21
+% bool >>=
22 22
 \bool_new:N \l_MRTalone_minimal_bool
23 23
 \bool_new:N \l_MRTalone_british_bool
24
-% <<<
25
-% tl >>>
24
+% =<<
25
+% tl >>=
26 26
 \tl_const:Nn \c_MRTalone_setup_file_name_tl { ./MRTalone.setup.tex }
27 27
 \tl_const:Nn \c_MRTalone_options_file_name_tl { ./MRTalone.option.tex }
28
-% <<<
29
-% <<<
30
-%%==========================================================================<<<
28
+% =<<
29
+% =<<
30
+%%===========================================================================<<
31 31
 
32
-%% constants >>>
32
+%% constants >>=
33 33
 %%=============================================================================
34 34
 \bool_const:Nn \c_MRTalone_xetex_or_luatex_bool
35 35
   { \sys_if_engine_luatex_p: || \sys_if_engine_xetex_p: }
36
-%%==========================================================================<<<
36
+%%===========================================================================<<
37 37
 
38
-%% messages >>>
38
+%% messages >>=
39 39
 %%=============================================================================
40
-\msg_new:nnn { MRTalone } { wrong~engine }%>>>
40
+\msg_new:nnn { MRTalone } { wrong~engine }%>>=
41 41
   {
42 42
     The ~ used ~ #1 ~ is ~ not ~ available ~ under ~ \c_sys_engine_str. ~ You ~
43 43
     have ~ to ~ use ~ #2.
44
-  }%<<<
45
-\msg_new:nnn { MRTalone } { options~too~late }%>>>
44
+  }%=<<
45
+\msg_new:nnn { MRTalone } { options~too~late }%>>=
46 46
   {
47 47
     \token_to_str:N \MRTaloneOptions \c_space_tl may ~ only ~ be ~ used ~ in ~
48 48
     the ~ file ~ '\c_MRTalone_options_file_name_tl'.
49
-  }%<<<
50
-\msg_new:nnn { MRTalone } { no~float }%>>>
49
+  }%=<<
50
+\msg_new:nnn { MRTalone } { no~float }%>>=
51 51
   {
52 52
     Parsing~says~you~didn't~provide~a~valid~float.~Please~provide~a
53 53
     valid~float.\\
@@ -55,15 +55,15 @@
55 55
     to~the\\
56 56
     package~maintainer.\\
57 57
     Error~occured~while~parsing~#1.%
58
-  }%<<<
59
-%%==========================================================================<<<
58
+  }%=<<
59
+%%===========================================================================<<
60 60
 
61
-\NewDocumentCommand \MRTaloneSetup { +m }%>>>
61
+\NewDocumentCommand \MRTaloneSetup { +m }%>>=
62 62
   {
63 63
     \keys_set:nn { MRTalone/setup } { #1 }
64
-  }%<<<
64
+  }%=<<
65 65
 
66
-%% Class options and loading standalone >>>
66
+%% Class options and loading standalone >>=
67 67
 %%=============================================================================
68 68
 \input{MRTfonts.forward.keys.tex}
69 69
 \MRTfonts_setup_forwarded_from:n { MRTalone }
@@ -78,10 +78,10 @@
78 78
 \DeclareOption{english}{\ExecuteOptions{british}}
79 79
 \DeclareOption{tikz}
80 80
   {\PassOptionsToPackage{table}{xcolor}\PassOptionsToClass{tikz}{standalone}}
81
-\keys_define:nn { MRTalone / loadtime }%>>>
81
+\keys_define:nn { MRTalone / loadtime }%>>=
82 82
   {
83 83
     unknown .code:n = { \PassOptionsToClass { \CurrentOption } { standalone } }
84
-  }%<<<
84
+  }%=<<
85 85
 \DeclareOption* { \keys_set:nV { MRTalone / loadtime } \CurrentOption }
86 86
 \PassOptionsToClass{11pt}{standalone}
87 87
 \file_if_exist:nT { \c_MRTalone_options_file_name_tl }
@@ -100,23 +100,23 @@
100 100
   }
101 101
 \ProcessOptions\relax
102 102
 \LoadClass{standalone}
103
-%%==========================================================================<<<
103
+%%===========================================================================<<
104 104
 
105
-%% additional packages to achieve template formatting >>>
105
+%% additional packages to achieve template formatting >>=
106 106
 %%=============================================================================
107 107
 \RequirePackage{MRTtab,MRTwuline}
108 108
 \bool_if:NTF \l_MRTalone_british_bool
109
-  {% true >>>
109
+  {% true >>=
110 110
     \RequirePackage[main=british,ngerman]{babel}
111
-  }% <<<
112
-  {% false >>>
111
+  }% =<<
112
+  {% false >>=
113 113
     \RequirePackage[ngerman]{babel}
114
-  }% <<<
114
+  }% =<<
115 115
 \RequirePackage{setspace}
116 116
 \RequirePackage{enumitem}
117 117
 \RequirePackage[fleqn]{mathtools}
118 118
 \RequirePackage{MRTfonts}
119
-\bool_if:NF \l_MRTalone_minimal_bool%>>>
119
+\bool_if:NF \l_MRTalone_minimal_bool%>>=
120 120
   {
121 121
     \cs_new:Npn \MRTalone_range_phrase:n #1
122 122
       {
@@ -131,22 +131,22 @@
131 131
       { \sisetup{ locale=DE, range-phrase=\MRTalone_range_phrase:n { bis } } }
132 132
     \addto\extrasbritish
133 133
       { \sisetup{ locale=UK, range-phrase=\MRTalone_range_phrase:n { to } } }
134
-  }%<<<
135
-%%==========================================================================<<<
134
+  }%=<<
135
+%%===========================================================================<<
136 136
 
137
-%% setup options >>>
137
+%% setup options >>=
138 138
 %%=============================================================================
139
-\keys_define:nn { MRTalone/setup }% >>>
139
+\keys_define:nn { MRTalone/setup }% >>=
140 140
   {
141 141
     ,caption~above   .code:n     = { \MRTtabSetup { caption~above } }
142 142
     ,caption~above   .value_forbidden:n = true
143 143
     ,caption~below   .code:n     = { \MRTtabSetup { caption~below } }
144 144
     ,caption~below   .value_forbidden:n = true
145 145
     ,stretch~caption .code:n     = {}
146
-      %{% >>>
146
+      %{% >>=
147 147
         %\setkomafont { caption }      { \setstretch { #1 } \normalfont }
148 148
         %\setkomafont { captionlabel } { \setstretch { #1 } \normalfont }
149
-      %}% <<<
149
+      %}% =<<
150 150
     ,stretch~cap     .meta:n     = { stretch~caption={#1} }
151 151
     ,stretch~tabular .code:n     = { \MRTtabSetup { stretch~tab={#1} } }
152 152
     ,stretch~tab     .meta:n     = { stretch~tabular={#1} }
@@ -157,18 +157,18 @@
157 157
     ,table~spacing   .default:n  = { true }
158 158
     ,tab~spacing     .meta:n     = { table~spacing={#1} }
159 159
     ,tab~spacing     .default:n  = { true }
160
-  }% <<<
161
-% defaults >>>
162
-\keys_set:nn { MRTalone/setup }% >>>
160
+  }% =<<
161
+% defaults >>=
162
+\keys_set:nn { MRTalone/setup }% >>=
163 163
   {
164 164
     ,caption~below
165 165
     ,stretches = 1.408
166 166
     ,tab~spacing
167
-  }% <<<
168
-% <<<
169
-%%==========================================================================<<<
167
+  }% =<<
168
+% =<<
169
+%%===========================================================================<<
170 170
 
171
-%% lengths >>>
171
+%% lengths >>=
172 172
 %%=============================================================================
173 173
 \setlength{\arrayrulewidth}{0.6pt}
174 174
 \setlength{\parindent}{13pt} % default 15pt
@@ -183,9 +183,9 @@
183 183
   }
184 184
 \setlist[itemize]{itemsep=-0pt, parsep=2pt plus .2pt minus .1pt}
185 185
 \setlist[enumerate]{itemsep=-0pt, parsep=2pt plus .2pt minus .1pt}
186
-%%==========================================================================<<<
186
+%%===========================================================================<<
187 187
 
188
-%% set page dimensions >>>
188
+%% set page dimensions >>=
189 189
 %% equal to the ones in MRTthesis 
190 190
 %%=============================================================================
191 191
 %% Using geometry doesn't lead to the exact same dimensions, so we do it by hand
@@ -194,14 +194,14 @@
194 194
 \paperwidth=597.50793pt
195 195
 \textwidth=455.24417pt
196 196
 \textheight=682.285pt
197
-%%==========================================================================<<<
197
+%%===========================================================================<<
198 198
 
199
-%% Setting up MRTtab to work in standalone by default >>>
199
+%% Setting up MRTtab to work in standalone by default >>=
200 200
 %%=============================================================================
201 201
 \MRTtabSetup{in~text~sep=\c_zero_skip,no~float}
202
-%%==========================================================================<<<
202
+%%===========================================================================<<
203 203
 
204
-%% look for a setup file >>>
204
+%% look for a setup file >>=
205 205
 %%=============================================================================
206 206
 \file_if_exist:nT { \c_MRTalone_setup_file_name_tl }
207 207
   {
@@ -209,4 +209,6 @@
209 209
     \file_input:n { \c_MRTalone_setup_file_name_tl }
210 210
     \ExplSyntaxOn
211 211
   }
212
-%%==========================================================================<<<
212
+%%===========================================================================<<
213
+
214
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 8
- 7
MRTbeam/MRTbeam.cls View File

@@ -5,22 +5,22 @@
5 5
 
6 6
 \RequirePackage{expl3,xparse}
7 7
 
8
-%% options and class loading >>>
8
+%% options and class loading >>=
9 9
 %%=============================================================================
10 10
 \newif\if@MRTbeam@sfacc@height@
11 11
 \ExplSyntaxOn
12 12
 \input{MRTfonts.forward.keys.tex}
13 13
 \MRTfonts_setup_forwarded_from:n { MRTbeam }
14
-\keys_define:nn { MRTbeam / loadtime }%>>>
14
+\keys_define:nn { MRTbeam / loadtime }%>>=
15 15
   {
16 16
     unknown .code:n = { \PassOptionsToClass { \CurrentOption } { beamer } }
17
-  }%<<<
17
+  }%=<<
18 18
 \DeclareOption* { \keys_set:nV { MRTbeam / loadtime } \CurrentOption }
19 19
 \ProcessOptions\relax
20 20
 \ExplSyntaxOff
21 21
 \LoadClass{beamer}
22 22
 \usefonttheme{professionalfonts} % so that MRTfonts can do its stuff
23
-%%==========================================================================<<<
23
+%%===========================================================================<<
24 24
 
25 25
 \ProvidesExplClass
26 26
   {MRTbeam}          {\MRTbeam@date}
@@ -32,7 +32,7 @@
32 32
 
33 33
 \usetheme{MRTbeam}
34 34
 
35
-\NewDocumentCommand \ProgressBarStyle { s m }% >>>
35
+\NewDocumentCommand \ProgressBarStyle { s m }% >>=
36 36
   {%
37 37
     \IfBooleanT { #1 } { \ProgressBartrue }
38 38
     \str_case:nnF { #2 }
@@ -44,9 +44,10 @@
44 44
       {
45 45
         \ClassError{MRTbeam}{The~style~'\exp_not:n { #1 }'~is~unknown.}{}
46 46
       }
47
-  }% <<<
47
+  }% =<<
48 48
 
49 49
 \ExplSyntaxOff
50 50
 
51 51
 \endinput
52
-% vim: ft=tex fdm=marker foldmarker=>>>,<<<
52
+
53
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 4
- 0
MRTbeam/beamercolorthemeMRTbeam.sty View File

@@ -11,3 +11,7 @@
11 11
 
12 12
 \mode
13 13
 <all>
14
+
15
+\endinput
16
+
17
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 4
- 0
MRTbeam/beamerfontthemeMRTbeam.sty View File

@@ -7,3 +7,7 @@
7 7
 
8 8
 \mode
9 9
 <all>
10
+
11
+\endinput
12
+
13
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 20
- 16
MRTbeam/beamerinnerthemeMRTbeam.sty View File

@@ -1,39 +1,39 @@
1 1
 \mode<presentation>
2 2
 
3
-% itemize symbols >>>
3
+% itemize symbols >>=
4 4
 \defbeamertemplate{itemize item}{small circle}{%
5 5
   \scalebox{0.69}{$\bullet$}}
6 6
 \setbeamertemplate{itemize items}[circle]
7 7
 %\setbeamertemplate{itemize item}[small circle]
8 8
 %\setbeamertemplate{itemize subitem}[circle]
9 9
 %\setbeamertemplate{itemize subsubitem}[circle]
10
-%<<<
10
+%=<<
11 11
 
12
-% ToC >>>
12
+% ToC >>=
13 13
 \setbeamertemplate{section in toc}[sections numbered]
14 14
 \setbeamertemplate{subsection in toc}[subsections numbered]
15
-%<<<
15
+%=<<
16 16
 
17 17
 \setbeamertemplate{navigation symbols}{}
18 18
 \setbeamertemplate{blocks}[rounded][shadow=true]  
19 19
 
20
-\setbeamertemplate{bibliography item}{%>>>
20
+\setbeamertemplate{bibliography item}{%>>=
21 21
   \insertbiblabel%
22 22
 }
23
-%<<<
23
+%=<<
24 24
 
25
-\setbeamertemplate{footnote}{%>>>
25
+\setbeamertemplate{footnote}{%>>=
26 26
   \llap{%
27 27
     \parindent 1em%
28 28
     \noindent\raggedleft\insertfootnotemark%
29 29
     \insertfootnotetext}%
30 30
   \par%
31 31
 }
32
-%<<<
32
+%=<<
33 33
 
34
-% footnote placement >>>
34
+% footnote placement >>=
35 35
 % based on https://tex.stackexchange.com/a/388811/117050
36
-\def\MRT@place@ftn{%>>>
36
+\def\MRT@place@ftn{%>>=
37 37
   \makebox[0pt][l]{%
38 38
     \hspace*{0.82109\paperwidth}%
39 39
     \begin{minipage}[b][0pt][l]{0pt}%
@@ -78,8 +78,8 @@
78 78
     \end{minipage}%
79 79
   }%
80 80
 }
81
-%<<<
82
-\def\beamer@autobreakframebox{%>>>
81
+%=<<
82
+\def\beamer@autobreakframebox{%>>=
83 83
   \global\setbox\beamer@splitbox=\box\voidb@x%
84 84
   \ifbeamer@autobreak%
85 85
     % Ok, frame was overful -> split it!
@@ -111,10 +111,10 @@
111 111
     \global\setbox\beamer@footins=\box\voidb@x%
112 112
   \fi%
113 113
   }
114
-%<<<
115
-%<<<
114
+%=<<
115
+%=<<
116 116
 
117
-% Title page >>>
117
+% Title page >>=
118 118
 \defbeamertemplate*{title page}{MRTbeam}[1][]
119 119
 {% 
120 120
   \LARGE%
@@ -136,7 +136,11 @@
136 136
   \small\insertdate
137 137
   \par%
138 138
 }
139
-%<<<
139
+%=<<
140 140
 
141 141
 \mode
142 142
 <all>
143
+
144
+\endinput
145
+
146
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 18
- 14
MRTbeam/beamerouterthemeMRTbeam.sty View File

@@ -1,11 +1,11 @@
1 1
 \mode<presentation>
2 2
 
3
-\setbeamertemplate{background}{%>>>
3
+\setbeamertemplate{background}{%>>=
4 4
   \begin{tikzpicture}
5 5
     \useasboundingbox (0,0) rectangle(\paperwidth,\paperheight);
6 6
     \ifwhiteframes
7 7
       %\fill[white,opacity=1] (0,0) rectangle(\paperwidth,\paperheight);
8
-    \else%>>>
8
+    \else%>>=
9 9
       %% logos
10 10
       \ifx\MRTbeam@llogo\@empty\else
11 11
         \node at (0.085\paperwidth,0.878\paperheight) {%
@@ -34,7 +34,7 @@
34 34
           (0.085\paperwidth,0.731\paperheight) --
35 35
             (0.915\paperwidth,0.731\paperheight);
36 36
       \fi%
37
-    \fi%<<< whiteframes
37
+    \fi%=<< whiteframes
38 38
     \if@MRTbeam@Grid@
39 39
       \draw[MRTbeam@Grid@options] (0,0) grid (\paperwidth,\paperheight);
40 40
     \fi
@@ -43,24 +43,24 @@
43 43
     \end{scope}
44 44
   \end{tikzpicture}\MRT@PlacedStuff@clear%
45 45
 }
46
-%<<<
46
+%=<<
47 47
 
48
-\setbeamertemplate{headline}{%>>>
48
+\setbeamertemplate{headline}{%>>=
49 49
   \vskip0.215\paperheight
50 50
 }
51
-%<<<
51
+%=<<
52 52
 
53
-\defbeamertemplate*{frametitle}{MRTbeam}[1][]{%>>>
53
+\defbeamertemplate*{frametitle}{MRTbeam}[1][]{%>>=
54 54
   \MRTbeam@frametitle{\insertframetitle}%
55 55
 }
56
-%<<<
56
+%=<<
57 57
 
58
-\setbeamertemplate{noframetitle}{%>>>
58
+\setbeamertemplate{noframetitle}{%>>=
59 59
   \MRTbeam@frametitle{\cursec}%
60 60
 }
61
-%<<<
61
+%=<<
62 62
 
63
-%% Invoke `noframetitle` if no frametitle was given >>>
63
+%% Invoke `noframetitle` if no frametitle was given >>=
64 64
 %% Code based on https://tex.stackexchange.com/a/389258/117050
65 65
 \renewenvironment{beamer@frameslide}{%
66 66
   \ifbeamer@autobreak\else%
@@ -173,9 +173,9 @@
173 173
   \beamer@undolabels%
174 174
   \beamer@framenotesend%
175 175
   \box\beamer@framebox}
176
-%<<<
176
+%=<<
177 177
 
178
-\setbeamertemplate{footline}{%>>>
178
+\setbeamertemplate{footline}{%>>=
179 179
   \begin{tikzpicture}%
180 180
     \useasboundingbox (0,0) rectangle(\paperwidth,.13\paperheight);%
181 181
     \ifwhiteframes%
@@ -191,6 +191,10 @@
191 191
   \end{tikzpicture}%
192 192
   %\vskip0.115\paperheight%
193 193
 }
194
-%<<<
194
+%=<<
195 195
 
196 196
 \mode<all>
197
+
198
+\endinput
199
+
200
+% vim: ft=tex fdm=marker fmr=>>=,=<< sw=2 ts=2 tw=80

+ 114
- 110
MRTbeam/beamerthemeMRTbeam.sty View File

@@ -1,16 +1,16 @@
1 1
 \mode<presentation>
2 2
 
3
-%% Notes>>>
3
+%% Notes>>=
4 4
 % condensed/narrow helvet: \fontseries{mc}
5 5
 % condensed/narrow bold helvet: \fontseries{bc}
6
-%<<<
6
+%=<<
7 7
 
8
-% Requirement >>>
8
+% Requirement >>=
9 9
 \RequirePackage{tikz}
10 10
 \usetikzlibrary{math}
11 11
 \RequirePackage{xparse}
12 12
 \RequirePackage{MRTutil}
13
-\RequirePackage[%>>> biblatex
13
+\RequirePackage[%>>= biblatex
14 14
   ,sorting=none%
15 15
   ,backend=biber%
16 16
   ,style=numeric%
@@ -18,14 +18,14 @@
18 18
   ,citetracker=true%
19 19
   ,sortcites=true%
20 20
   ,giveninits=true%
21
-]{biblatex}%<<<
21
+]{biblatex}%=<<
22 22
 \setcounter{biburlnumpenalty}{9900}
23 23
 \setcounter{biburllcpenalty}{9900}
24 24
 \setcounter{biburlucpenalty}{9000}
25
-%<<<
25
+%=<<
26 26
 
27
-% Settings/Inner Macros >>>
28
-% Conditionals >>>
27
+% Settings/Inner Macros >>=
28
+% Conditionals >>=
29 29
 \newif\ifwhiteframes
30 30
 \newif\ifTabularNotes
31 31
 \newif\ifPrependSubsections
@@ -41,9 +41,9 @@
41 41
 \newif\if@MRTbeam@bibliography@
42 42
 \newif\if@MRTbeam@StarredSection@
43 43
 \newif\if@MRTbeam@StarredSubsection@
44
-%<<<
44
+%=<<
45 45
 \newbox\MRTbeam@box
46
-% Footnotes related >>>
46
+% Footnotes related >>=
47 47
 \NewDocumentCommand{\MRT@process@visibility}{+m}{%
48 48
   \if\relax\detokenize{#1}\relax%
49 49
     \def\ProcessedArgument{}%
@@ -54,8 +54,8 @@
54 54
 \MRTutil@def\MRT@ftn{}% ordinary MRT-footnotes
55 55
 \MRTutil@def\MRT@ftn@p{}% persistent MRT-footnotes
56 56
 \MRTutil@def\MRT@ftn@c{}% citation MRT-footnotes
57
-%<<<
58
-\MRTutil@def\@leftfooter{%>>>
57
+%=<<
58
+\MRTutil@def\@leftfooter{%>>=
59 59
   \footnotesize%
60 60
   \ifx\@occasion\@empty\else\@occasion\newline\fi
61 61
   \ifx\beamer@shorttitle\@empty
@@ -76,50 +76,50 @@
76 76
       \beamer@shortauthor
77 77
     \fi
78 78
   \fi
79
-}%<<<
80
-\MRTutil@def\@centerfooter{%>>>
79
+}%=<<
80
+\MRTutil@def\@centerfooter{%>>=
81 81
   \normalsize\ifProgressBar\ProgressBar\fi%
82
-  \makebox[0pt][c]{\insertframenumber}}%<<<
83
-\MRTutil@def\@rightfooter{%>>>
82
+  \makebox[0pt][c]{\insertframenumber}}%=<<
83
+\MRTutil@def\@rightfooter{%>>=
84 84
   \csuse{MRT@ftn@p}%
85 85
   \csuse{MRT@ftn}%
86 86
   \csuse{MRT@ftn@c}%
87
-}%<<<
88
-\MRTutil@def\MRTbeam@putlogo#1%>>>
87
+}%=<<
88
+\MRTutil@def\MRTbeam@putlogo#1%>>=
89 89
   {%
90 90
     \expandafter\MRTbeam@putlogo@a\expandafter
91 91
       {\csname MRTbeam@#1logo@options\endcsname}
92 92
       {\csname MRTbeam@#1logo\endcsname}%
93
-  }%<<<
94
-\MRTutil@def\MRTbeam@putlogo@a#1#2%>>>
93
+  }%=<<
94
+\MRTutil@def\MRTbeam@putlogo@a#1#2%>>=
95 95
   {%
96 96
     % #1 options (macro)
97 97
     % #2 file (csname)
98 98
     \expandafter\MRTbeam@putlogo@b\expandafter{#2}{#1}%
99
-  }%<<<
100
-\MRTutil@def\MRTbeam@putlogo@b#1#2%>>>
99
+  }%=<<
100
+\MRTutil@def\MRTbeam@putlogo@b#1#2%>>=
101 101
   {%
102 102
     % #1 file (macro)
103 103
     % #2 options (macro)
104 104
     \expandafter\MRTbeam@putlogo@c\expandafter{#1}{#2}%
105
-  }%<<<
106
-\MRTutil@def\MRTbeam@putlogo@c#1#2%>>>
105
+  }%=<<
106
+\MRTutil@def\MRTbeam@putlogo@c#1#2%>>=
107 107
   {%
108 108
     % #1 file (string)
109 109
     % #2 options (macro)
110 110
     \smash{\expandafter\includegraphics\expandafter[#2]{#1}}%
111
-  }%<<<
111
+  }%=<<
112 112
 \MRTutil@def\MRT@tabularT{\begin{tabular}[t]}
113 113
 \let\footnoterule\relax
114 114
 \gdef\MRTbeam@Grid@defaults{xstep={0.05\paperwidth},ystep=0.1\paperheight,help lines}
115 115
 \tikzset{MRTbeam@Grid@options/.style={xstep={0.05\paperwidth},ystep={0.1\paperheight},help lines}}
116 116
 \ExplSyntaxOn
117
-\NewDocumentCommand \MRT@expandonce { +m }% >>>
117
+\NewDocumentCommand \MRT@expandonce { +m }% >>=
118 118
   {
119 119
     \tl_set:No \ProcessedArgument { #1 }
120
-  }% <<<
120
+  }% =<<
121 121
 \ExplSyntaxOff
122
-\MRTutil@def\MRTbeam@frametitle#1{%>>>
122
+\MRTutil@def\MRTbeam@frametitle#1{%>>=
123 123
   \ifOnlyOneTopRule% no title if only one top rule
124 124
     \vskip-.101\paperheight
125 125
   \else
@@ -138,22 +138,22 @@
138 138
     }%
139 139
   \fi
140 140
 }
141
-%<<<
142
-\AtBeginSection[%>>>
141
+%=<<
142
+\AtBeginSection[%>>=
143 143
   \global\@MRTbeam@StarredSection@true%
144 144
 ]{%
145 145
   \global\@MRTbeam@StarredSection@false%
146
-}%<<<
147
-\AtBeginSubsection[%>>>
146
+}%=<<
147
+\AtBeginSubsection[%>>=
148 148
   \global\@MRTbeam@StarredSubsection@true%
149 149
 ]{%
150 150
   \global\@MRTbeam@StarredSubsection@false%
151
-}%<<<
152
-%<<<
151
+}%=<<
152
+%=<<
153 153
 
154
-%% Macros >>>
154
+%% Macros >>=
155 155
 %\RenewDocumentCommand{\footnote}{o m}{%
156
-\NewDocumentCommand{\UseAndIfEmptyTF}{O{} m}{%>>>
156
+\NewDocumentCommand{\UseAndIfEmptyTF}{O{} m}{%>>=
157 157
   \setbox\MRTbeam@box\hbox{#2}%
158 158
   \ifdim\wd\MRTbeam@box=0pt\relax
159 159
     \expandafter\@firstoftwo
@@ -161,8 +161,8 @@
161 161
     #1\usebox\MRTbeam@box
162 162
     \expandafter\@secondoftwo
163 163
   \fi}%
164
-%<<<
165
-\NewDocumentCommand{\cursec}{s}{%>>>
164
+%=<<
165
+\NewDocumentCommand{\cursec}{s}{%>>=
166 166
   \IfBooleanF{#1}%
167 167
     {%
168 168
       \if@MRTbeam@StarredSection@%
@@ -171,8 +171,8 @@
171 171
       \fi%
172 172
     }%
173 173
   \insertsection}
174
-%<<<
175
-\NewDocumentCommand{\curssec}{s}{%>>>
174
+%=<<
175
+\NewDocumentCommand{\curssec}{s}{%>>=
176 176
   \IfBooleanF{#1}%
177 177
     {%
178 178
       \if@MRTbeam@StarredSubsection@%
@@ -183,10 +183,10 @@
183 183
       \fi%
184 184
     }%
185 185
   \insertsubsection}
186
-%<<<
186
+%=<<
187 187
 \MRTutil@def\ColumnsTabularNotes#1{\gdef\MRT@ColTabNotes{#1}}
188 188
 \newenvironment*{whiteframes}{\whiteframestrue}{\whiteframesfalse}
189
-\NewDocumentCommand{\advisor}{s o m}{%>>>
189
+\NewDocumentCommand{\advisor}{s o m}{%>>=
190 190
   \IfNoValueTF{#2}%
191 191
     {%
192 192
       \def\@advisor{Betreuer}%
@@ -197,11 +197,11 @@
197 197
       \def\@advisor{#2}%
198 198
     }%
199 199
   \xdef\@advisor{\UseAndIfEmptyTF{\@advisor}{}{ }#3}%
200
-  \gdef\advisor{#3}}%<<<
200
+  \gdef\advisor{#3}}%=<<
201 201
 \NewDocumentCommand{\occasion}{m}{\gdef\@occasion{#1}}
202 202
 \gdef\@occasion{}
203
-% Footnotes related >>>
204
-\NewDocumentCommand{\AddToRightFoot}{s t+ >{\MRT@process@visibility}D<>{} o m}{%>>>
203
+% Footnotes related >>=
204
+\NewDocumentCommand{\AddToRightFoot}{s t+ >{\MRT@process@visibility}D<>{} o m}{%>>=
205 205
   \bgroup
206 206
   \ifTabularNotes
207 207
     \IfNoValueTF{#4}%
@@ -228,14 +228,14 @@
228 228
       }%
229 229
   \fi
230 230
   \egroup
231
-}%<<<
232
-\NewDocumentCommand{\ClearRightFoot}{s}{%>>>
231
+}%=<<
232
+\NewDocumentCommand{\ClearRightFoot}{s}{%>>=
233 233
   \IfBooleanF{#1}{\gdef\MRT@ftn@p{}}%
234 234
   \gdef\MRT@ftn{}%
235 235
   \gdef\MRT@ftn@c{}}
236
-%<<<
237
-%<<<
238
-\NewDocumentCommand{\uselogo}{m O{height=0.056\paperwidth} m}%>>>
236
+%=<<
237
+%=<<
238
+\NewDocumentCommand{\uselogo}{m O{height=0.056\paperwidth} m}%>>=
239 239
   {%
240 240
     \def\MRTbeam@tempa{#1}%
241 241
     \def\MRTbeam@tempb{l}%
@@ -259,24 +259,24 @@
259 259
               argument.%
260 260
             }%
261 261
     \fi\fi\fi
262
-  }%<<<
262
+  }%=<<
263 263
 \uselogo{l}{MRTbeam_logo_UBT2.pdf}
264 264
 \uselogo{c}{}
265 265
 \uselogo{r}{MRTbeam_logo_MRT2.pdf}
266
-\NewDocumentCommand{\ShowGrid}{>{\MRT@expandonce}O{\MRTbeam@Grid@defaults}}{%>>>
266
+\NewDocumentCommand{\ShowGrid}{>{\MRT@expandonce}O{\MRTbeam@Grid@defaults}}{%>>=
267 267
   \global\@MRTbeam@Grid@true%
268 268
   \tikzset{MRTbeam@Grid@options/.style={#1}}
269 269
 }
270
-%<<<
271
-\NewDocumentCommand{\HideGrid}{s}{%>>>
270
+%=<<
271
+\NewDocumentCommand{\HideGrid}{s}{%>>=
272 272
   \IfBooleanF{#1}{\ShowGrid}% restores defaults
273 273
   \global\@MRTbeam@Grid@false%
274 274
 }
275
-%<<<
276
-% Progressbar >>>
275
+%=<<
276
+% Progressbar >>=
277 277
 \definecolor{noprogress}{gray}{0.85}
278 278
 \definecolor{progressed}{gray}{0.65}
279
-\NewDocumentCommand{\ProgressBar}%>>>
279
+\NewDocumentCommand{\ProgressBar}%>>=
280 280
   { O{\MRT@pbar@o} D<>{\MRT@pbar@l} O{\MRT@pbar@h} O{\MRT@pbar@k} }{%
281 281
   \bgroup%
282 282
   \makebox[0pt][#1]{\parbox[t][0pt][t]{#2}{%
@@ -296,8 +296,8 @@
296 296
     \fi
297 297
   }}%
298 298
   \egroup%
299
-}%<<<
300
-\NewDocumentCommand{\SetProgressBar}{ s m m m m }{%>>>
299
+}%=<<
300
+\NewDocumentCommand{\SetProgressBar}{ s m m m m }{%>>=
301 301
   \IfBooleanTF{#1}{\let\MRT@temp\def}{\let\MRT@temp\gdef}%
302 302
   \def\MRT@tempb{*}%
303 303
   \def\MRT@tempa{#2}%
@@ -320,53 +320,53 @@
320 320
   \else%
321 321
     \MRT@temp\MRT@pbar@k{#5}%
322 322
   \fi%
323
-}%<<<
323
+}%=<<
324 324
 \def\MRT@pbar@start{0}
325
-\MRTutil@def\StartOfProgress{%>>>
325
+\MRTutil@def\StartOfProgress{%>>=
326 326
   \xdef\MRT@pbar@start{\insertframenumber}%
327 327
   \immediate\write\@auxout{%
328 328
     \gdef\noexpand\MRT@pbar@start{\insertframenumber}%
329 329
   }%
330
-}%<<<
330
+}%=<<
331 331
 \def\MRT@pbar@end{\inserttotalframenumber}
332
-\MRTutil@def\EndOfProgress{%>>>
332
+\MRTutil@def\EndOfProgress{%>>=
333 333
   \xdef\MRT@pbar@end{\insertframenumber}%
334 334
   \immediate\write\@auxout{%
335 335
     \gdef\noexpand\MRT@pbar@end{\insertframenumber}%
336 336
   }%
337
-}%<<<
337
+}%=<<
338 338
 \SetProgressBar{c}{30pt}{\f@size pt}{-1.65ex}% default
339
-%<<<
340
-\NewDocumentCommand{\PlaceAt}{ s r() O{} +m }{%>>>
339
+%=<<
340
+\NewDocumentCommand{\PlaceAt}{ s r() O{} +m }{%>>=
341 341
   \IfBooleanTF{#1}%
342 342
     {\MRTbeam@PlaceAt@s{#2}{#3}{#4}}%
343 343
     {\MRTbeam@PlaceAt{#2}{#3}{#4}}%
344
-}%<<<
345
-\NewDocumentCommand{\MRTbeam@PlaceAt@s}{ >{\SplitArgument{1}{,}}m m +m }%>>>
344
+}%=<<
345
+\NewDocumentCommand{\MRTbeam@PlaceAt@s}{ >{\SplitArgument{1}{,}}m m +m }%>>=
346 346
   {%
347 347
     \MRTbeam@PlaceAt@s@b#1{#2}{#3}%
348
-  }%<<<
349
-\NewDocumentCommand{\MRTbeam@PlaceAt@s@b}{ m m m +m }%>>>
348
+  }%=<<
349
+\NewDocumentCommand{\MRTbeam@PlaceAt@s@b}{ m m m +m }%>>=
350 350
   {%
351 351
     \smash{\makebox[0pt]{%
352 352
       \begin{tikzpicture}[overlay,remember picture]%
353 353
         \node [xshift=#1\paperwidth,yshift=#2\paperheight,#3]
354 354
           at (current page.south west) {#4};%
355 355
       \end{tikzpicture}}}%
356
-  }%<<<
357
-\NewDocumentCommand{\MRTbeam@PlaceAt}{ m m +m }%>>>
356
+  }%=<<
357
+\NewDocumentCommand{\MRTbeam@PlaceAt}{ m m +m }%>>=
358 358
   {%
359 359
     \AddToPlaced{\node[#2] at (#1) {#3};}%
360
-  }%<<<
361
-\NewDocumentCommand{\AddToPlaced}{ +m }%>>>
360
+  }%=<<
361
+\NewDocumentCommand{\AddToPlaced}{ +m }%>>=
362 362
   {%
363 363
     \xdef\MRT@PlacedStuff{\unexpanded\expandafter{\MRT@PlacedStuff #1}}%
364
-  }%<<<
364
+  }%=<<
365 365
 \def\MRT@PlacedStuff{}
366 366
 \def\MRT@PlacedStuff@clear{\gdef\MRT@PlacedStuff{}}
367
-%<<<
367
+%=<<
368 368
 
369
-% Sizes >>>
369
+% Sizes >>=
370 370
 \newdimen\MRTbeam@paperwidth
371 371
 \newdimen\MRTbeam@paperheight
372 372
 \newdimen\contentwidth
@@ -385,20 +385,20 @@
385 385
 \setlength{\textheight}{0.58\paperheight}
386 386
 \contentwidth=\textwidth\relax
387 387
 \contentheight=0.58\paperheight\relax
388
-%<<<
388
+%=<<
389 389
 
390
-% Other themes >>>
390
+% Other themes >>=
391 391
 \useinnertheme{MRTbeam}
392 392
 \useoutertheme{MRTbeam}
393 393
 \usecolortheme{MRTbeam}
394 394
 \usefonttheme{MRTbeam}
395
-%<<<
395
+%=<<
396 396
 
397
-% Bibliography >>>
397
+% Bibliography >>=
398 398