hgbook

annotate en/99defs.tex @ 4:33a2e7b9978d

Make it possible to include example input and output from real programs.

Instead of having to cut and paste example text, the task is automated.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun Jun 25 22:04:50 2006 -0700 (2006-06-25)
parents 906d9021f9e5
children 339e75288632
rev   line source
bos@4 1 \newcommand{\tildefile}[1]{\texttt{\~{}/#1}}
bos@2 2 \newcommand{\filename}[1]{\texttt{#1}}
bos@0 3 \newcommand{\hgext}[1]{\texttt{#1}}
bos@0 4 \newcommand{\hgcmd}[1]{``\texttt{hg #1}''}
bos@0 5 \newcommand{\hgcmdargs}[2]{``\texttt{hg #1 #2}''}
bos@0 6
bos@4 7 \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}}
bos@4 8 \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}}
bos@3 9
bos@0 10 %%% Local Variables:
bos@0 11 %%% mode: latex
bos@0 12 %%% TeX-master: "00book"
bos@0 13 %%% End: