|
34 | 34 | %%
|
35 | 35 |
|
36 | 36 | %% Enable useful error output.
|
37 |
| -\errorcontextlines=10000 |
| 37 | +\errorcontextlines 10000 |
38 | 38 |
|
39 | 39 | %%
|
40 | 40 | % This template has been heavily customized for Trusted Computing Group.
|
@@ -124,6 +124,15 @@ $endif$
|
124 | 124 |
|
125 | 125 | \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
|
126 | 126 |
|
| 127 | +% Clean up the TOC a bit by ensuring that long section numbers don't overlap. |
| 128 | +% https://tex.stackexchange.com/questions/64115/table-of-contents-chapter-number-width |
| 129 | +\usepackage{tocloft} |
| 130 | +\makeatletter |
| 131 | +\renewcommand{\numberline}[1]{ |
| 132 | + \@cftbsnum #1\@cftasnum~\@cftasnumb |
| 133 | +} |
| 134 | +\makeatother |
| 135 | + |
127 | 136 | % PDF metadata
|
128 | 137 | \hypersetup{
|
129 | 138 | $if(title-meta)$
|
@@ -192,17 +201,6 @@ $endif$
|
192 | 201 | \RaggedRight{}
|
193 | 202 | \sloppy
|
194 | 203 |
|
195 |
| -% Define some special environments for TPM spec style NOTE and EXAMPLE |
196 |
| -\usepackage{changepage} |
197 |
| -\newenvironment{tcgnote} |
198 |
| -{\begin{adjustwidth}{6em}{} |
199 |
| - \makebox[0pt][r]{\makebox[6em][l]{NOTE:}}\ignorespaces} |
200 |
| -{\end{adjustwidth}} |
201 |
| -\newenvironment{tcgexample} |
202 |
| -{\begin{adjustwidth}{6em}{} |
203 |
| - \makebox[0pt][r]{\makebox[6em][l]{EXAMPLE:}}\ignorespaces} |
204 |
| -{\end{adjustwidth}} |
205 |
| - |
206 | 204 | % Customizations to the behavior of tables
|
207 | 205 | $if(tables)$
|
208 | 206 | \usepackage{longtable,booktabs,array}
|
@@ -584,20 +582,8 @@ $else$
|
584 | 582 |
|
585 | 583 | \fancypagestyle{eisvogel-header-footer}{
|
586 | 584 | \fancyhead{}
|
587 |
| - \fancyhead[C] |
588 |
| - { |
589 |
| - \ifthenelse{\equal{\detokenize{$status$}}{\detokenize{DRAFT}}} |
590 |
| - { |
591 |
| - \begin{textblock*}{8.5in}(-0.3in,0.4in) |
592 |
| - \fontsize{300}{360}{ |
593 |
| - \begin{turn}{50} |
594 |
| - \textsf{\textcolor{gray}{\transparent{0.1}{DRAFT}}} |
595 |
| - \end{turn} |
596 |
| - } |
597 |
| - \end{textblock*} |
598 |
| - } |
599 |
| - {} |
600 |
| - } \fancyfoot{} |
| 585 | + \fancyhead[C]{} |
| 586 | + \fancyfoot{} |
601 | 587 | \fancyfoot[C]
|
602 | 588 | {
|
603 | 589 | \begin{textblock*}{8.5in}(0in,10.7in)
|
@@ -727,11 +713,12 @@ $if(template)$
|
727 | 713 | {}
|
728 | 714 | $endif$
|
729 | 715 |
|
730 |
| -% Clean up the TOC a bit by ensuring that long section numbers don't overlap. |
731 |
| -% \usepackage[titles]{tocloft} |
732 |
| -% \renewcommand*{\cftsecnumwidth}{10em} |
733 |
| -% \renewcommand*{\cftsubsecnumwidth}{10em} |
734 |
| -% \renewcommand*{\cftsubsubsecnumwidth}{10em} |
| 716 | +\ifthenelse{\equal{\detokenize{$status$}}{\detokenize{DRAFT}}} |
| 717 | +{ |
| 718 | + \usepackage[scale=2, colorspec=0.95]{draftwatermark} |
| 719 | +} |
| 720 | +{} |
| 721 | + |
735 | 722 | \begin{document}
|
736 | 723 |
|
737 | 724 | %%
|
|
0 commit comments