diff options
Diffstat (limited to 'Master/texmf-dist/doc/support/texcount/macros.tex')
-rw-r--r-- | Master/texmf-dist/doc/support/texcount/macros.tex | 56 |
1 files changed, 47 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/support/texcount/macros.tex b/Master/texmf-dist/doc/support/texcount/macros.tex index b7f853f39ad..a79e8f06144 100644 --- a/Master/texmf-dist/doc/support/texcount/macros.tex +++ b/Master/texmf-dist/doc/support/texcount/macros.tex @@ -1,10 +1,20 @@ %% LaTeX macros +\usepackage{relsize} +\usepackage[dvipsnames]{xcolor} + +% Define underscore to be a regular character in text mode +\begingroup + \catcode`\_=\active + \gdef_#1{\ensuremath{\sb{#1}}} +\endgroup +\mathcode`\_=\string"8000 +\catcode`\_=12 % Set version number -\newcommand\version{$2.3$} +\newcommand\version{$3.0$} \newcommand\copyrightfootnote{ -\footnotetext{Copyright (2008-2011) of Einar Andreas R{\o}dland, distributed +\footnotetext{Copyright (2008-2013) of Einar Andreas R{\o}dland, distributed under the \LaTeX{} Project Public License (LPPL).} } @@ -12,15 +22,43 @@ under the \LaTeX{} Project Public License (LPPL).} \newcommand\TeXcount{{\TeX}count} % Text formats -\newcommand\code[1]{\texttt{\small#1}} -\newcommand\bigcode[1]{\texttt{#1}} +\newcommand\codestyle[1]{\textsf{\color{Blue}#1}} +\newcommand\code[1]{{\smaller\codestyle{#1}}} +\newcommand\bigcode[1]{\codestyle{#1}} \newcommand\codeline[1]{\begin{quote}\code{#1}\end{quote}} \newcommand\bs[1]{\textbackslash#1} -\newcommand\URL[1]{\texttt{\small #1}} +\newcommand\URL[1]{\textsf{\small #1}} + +% Description items: options, parameters, optional parameters +% These are also interpreted by dos2html.pl +\def\option[#1]{\item[\bigcode{#1}]\hskip 0pt plus 10pt} +\def\parm#1{\textit{\color{OliveGreen}#1}} +\def\opt#1{\parm{[#1]}} +\def\alt#1{[#1]} +\def\optiontext#1{\textrm{\bfseries\color{black}#1}} + +% Mark off notification in contents for good visibility +\newcommand\ContentsNote[1]{\addtocontents{toc}{\string\marginpar{\textsf{\color{red}\tiny #1}}}} +% Notabene: margin note %TC:macro NB 1 -\newcommand\NB[1]{\marginpar{\textsf{\tiny#1}}} +\newcommand\NB[1]{\ContentsNote{NB}\marginpar{\textsf{\tiny#1}}} + +% Mark text as a notification +%TC:macro NOTE [text] +\newcommand\NOTE[1]{\textit{\color{red}#1}} + +% Mark text for update +%TC:macro UPDATE [text] +\newcommand\UPDATE[1]{\ContentsNote{UPDATE}\textit{\textbf{\color{red}This needs to be updated:} {\color{blue}#1}}} + +% Mark text as a notification +%TC:macro TODO [text] +\newcommand\TODO[1]{\ContentsNote{TODO}\textit{\textbf{\color{red}#1}}} +% BUG +%TC:macro BUG [text] +\newcommand\BUG[1]{{\color{red}#1}} \makeatletter @@ -34,13 +72,13 @@ under the \LaTeX{} Project Public License (LPPL).} \vskip 1.5em } -\renewcommand\abstractname{ABSTRACT} +\renewcommand\abstractname{Abstract} \renewenvironment{abstract}{% \begin{center}% - {\bfseries\large\abstractname\vspace{-.5em}\vspace{\z@}}% + {\slshape\bfseries\large\abstractname\vspace{-.5em}\vspace{\z@}}% \end{center}% \vskip 4pt - \bfseries + \slshape }{ \vskip 0.5em } |