Skip to content

Commit

Permalink
add tcgnote and tcgexample environments
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfenner committed Dec 9, 2023
1 parent ef62bf6 commit 4b13e4e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
9 changes: 9 additions & 0 deletions sample1.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,15 @@ 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
13 changes: 12 additions & 1 deletion template/eisvogel.latex
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,23 @@ $highlighting-macros$
% pandoc includes fvextra in the default template.
\usepackage{fvextra}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,fontsize=$if(code-block-font-size)$$code-block-font-size$$else$\small$endif$,commandchars=\\\{\}}
$endif$

% Left-justify the document.
\usepackage[document]{ragged2e}
\RaggedRight{}
\sloppy
$endif$

% 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)$
Expand Down

0 comments on commit 4b13e4e

Please sign in to comment.