hgbook

annotate en/99defs.tex @ 16:81454425eee9

Progress on a few fronts, mainly indexing and MQ chapter content
author Bryan O'Sullivan <bos@serpentine.com>
date Mon Jul 03 22:43:52 2006 -0700 (2006-07-03)
parents e2aa527bafa0
children 2668e15c76e9
rev   line source
bos@4 1 \newcommand{\tildefile}[1]{\texttt{\~{}/#1}}
bos@2 2 \newcommand{\filename}[1]{\texttt{#1}}
bos@16 3 \newcommand{\dirname}[1]{\texttt{#1}}
bos@16 4 \newcommand{\sfilename}[1]{\index{\texttt{#1} file}\texttt{#1}}
bos@16 5 \newcommand{\sdirname}[1]{\index{\texttt{#1} directory}\texttt{#1}}
bos@16 6 \newcommand{\hgext}[1]{\index{\texttt{#1} extension}\texttt{#1}}
bos@16 7 \newcommand{\hgcmd}[1]{\index{\texttt{#1} command}``\texttt{hg #1}''}
bos@16 8 \newcommand{\command}[1]{\index{\texttt{#1} command}\texttt{#1}}
bos@16 9 \newcommand{\hgcmdargs}[2]{\index{\texttt{#1} command}``\texttt{hg #1 #2}''}
bos@16 10 \newcommand{\hgopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}``\texttt{#2}''}
bos@16 11 \newcommand{\package}[1]{\index{\texttt{#1} package}\texttt{#1}}
bos@0 12
bos@7 13 \newsavebox{\notebox}
bos@11 14 \newenvironment{note}%
bos@11 15 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}%
bos@11 16 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
bos@7 17
bos@4 18 \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}}
bos@4 19 \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}}
bos@3 20
bos@11 21 \ifpdf
bos@11 22 \newcommand{\grafix}[1]{\includegraphics[scale=0.2]{#1_pdf.png}}
bos@11 23 \else
bos@11 24 \newcommand{\grafix}[1]{\includegraphics{#1.png}}
bos@11 25 \fi
bos@11 26
bos@0 27 %%% Local Variables:
bos@0 28 %%% mode: latex
bos@0 29 %%% TeX-master: "00book"
bos@0 30 %%% End: