File: tt2.sty

package info (click to toggle)
libtemplate-plugin-latex-perl 3.12-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 204 kB
  • sloc: perl: 588; makefile: 3
file content (37 lines) | stat: -rw-r--r-- 1,002 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%\iffalse
\NeedsTeXFormat{LaTeX2e}[1994/12/01}
\ProvidesPackage{tt2}
%\fi
% \title{The \textsf{tt2} package}
% \author{\copyright\ 2007, Andrew Ford}
% \maketitle
%
% \section{Overview}
%
% This package defines a single command, |\TTCODE|, which can be used
% to identify Template Toolkit (TT2) code in a template LaTeX file.
%
% \section{|\TTCODE| command}
%
% The |\TTCODE| command is used to wrap Template Toolkit code.
%
% When run from the Template Toolkit LaTeX plugin the command
% |\TTLATEX| is defined; in this case we define |\TTCODE| as a no-op,
% taking no arguments -- the TT code will get evaluated by TT and we
% typset the resulting text.
%
% If |\TTLATEX| is not defined then we define |\TTCODE| as a macro
% taking one argument -- the TT code -- which we set in a small
% typewriter font.
%
%    \begin{macrocode}
\expandafter\ifx\csname TTLATEX\endcsname\relax
\newcommand{\TTCODE}[1]{\texttt{\small #1}}
\else
\newcommand{\TTCODE}{}
\fi
%    \end{macrocode}
%
% \Finale
%
\endinput