Skip to content

Commit

Permalink
move draft text up, widen toc numbers as needed, and delete tcgnote/e…
Browse files Browse the repository at this point in the history
…xample
  • Loading branch information
chrisfenner committed Dec 10, 2023
1 parent cd673f9 commit a440f5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 25 deletions.
9 changes: 0 additions & 9 deletions sample1.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,6 @@ int main() {
}
```

\begin{tcgnote}
some notes, bla bla bla bla bla bla, hello bla, hello bla. this is some words,
watch out for this thing. you have to know about it. thanks for reading this note! <
\end{tcgnote}

\begin{tcgexample}
do it this way
\end{tcgexample}

## Another Couple Tables

Uncaptioned table:
Expand Down
24 changes: 8 additions & 16 deletions template/eisvogel.latex
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,6 @@ $endif$
\RaggedRight{}
\sloppy

% Define some special environments for TPM spec style NOTE and EXAMPLE
\usepackage{changepage}
\newenvironment{tcgnote}
{\begin{adjustwidth}{6em}{}
\makebox[0pt][r]{\makebox[6em][l]{NOTE:}}\ignorespaces}
{\end{adjustwidth}}
\newenvironment{tcgexample}
{\begin{adjustwidth}{6em}{}
\makebox[0pt][r]{\makebox[6em][l]{EXAMPLE:}}\ignorespaces}
{\end{adjustwidth}}

% Customizations to the behavior of tables
$if(tables)$
\usepackage{longtable,booktabs,array}
Expand Down Expand Up @@ -588,7 +577,7 @@ $else$
{
\ifthenelse{\equal{\detokenize{$status$}}{\detokenize{DRAFT}}}
{
\begin{textblock*}{8.5in}(-0.3in,0.4in)
\begin{textblock*}{8.5in}(-0.3in,-0.4in)
\fontsize{300}{360}{
\begin{turn}{50}
\textsf{\textcolor{gray}{\transparent{0.1}{DRAFT}}}
Expand Down Expand Up @@ -728,10 +717,13 @@ $if(template)$
$endif$

% Clean up the TOC a bit by ensuring that long section numbers don't overlap.
% \usepackage[titles]{tocloft}
% \renewcommand*{\cftsecnumwidth}{10em}
% \renewcommand*{\cftsubsecnumwidth}{10em}
% \renewcommand*{\cftsubsubsecnumwidth}{10em}
% https://tex.stackexchange.com/questions/64115/table-of-contents-chapter-number-width
\usepackage{tocloft}
\makeatletter
\renewcommand{\numberline}[1]{
\@cftbsnum #1\@cftasnum~\@cftasnumb
}
\makeatother
\begin{document}

%%
Expand Down

0 comments on commit a440f5b

Please sign in to comment.