hgbook

annotate en/99defs.tex @ 14:e2aa527bafa0

Describe unified diffs
author Bryan O'Sullivan <bos@serpentine.com>
date Mon Jul 03 17:12:11 2006 -0700 (2006-07-03)
parents e9d5b4c3d16b
children 81454425eee9
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@14 5 \newcommand{\command}[1]{\texttt{#1}}
bos@0 6 \newcommand{\hgcmdargs}[2]{``\texttt{hg #1 #2}''}
bos@0 7
bos@7 8 \newsavebox{\notebox}
bos@11 9 \newenvironment{note}%
bos@11 10 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}%
bos@11 11 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
bos@7 12
bos@4 13 \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}}
bos@4 14 \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}}
bos@3 15
bos@11 16 \ifpdf
bos@11 17 \newcommand{\grafix}[1]{\includegraphics[scale=0.2]{#1_pdf.png}}
bos@11 18 \else
bos@11 19 \newcommand{\grafix}[1]{\includegraphics{#1.png}}
bos@11 20 \fi
bos@11 21
bos@0 22 %%% Local Variables:
bos@0 23 %%% mode: latex
bos@0 24 %%% TeX-master: "00book"
bos@0 25 %%% End: