hgbook

view 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
line source
1 \newcommand{\tildefile}[1]{\texttt{\~{}/#1}}
2 \newcommand{\filename}[1]{\texttt{#1}}
3 \newcommand{\dirname}[1]{\texttt{#1}}
4 \newcommand{\sfilename}[1]{\index{\texttt{#1} file}\texttt{#1}}
5 \newcommand{\sdirname}[1]{\index{\texttt{#1} directory}\texttt{#1}}
6 \newcommand{\hgext}[1]{\index{\texttt{#1} extension}\texttt{#1}}
7 \newcommand{\hgcmd}[1]{\index{\texttt{#1} command}``\texttt{hg #1}''}
8 \newcommand{\command}[1]{\index{\texttt{#1} command}\texttt{#1}}
9 \newcommand{\hgcmdargs}[2]{\index{\texttt{#1} command}``\texttt{hg #1 #2}''}
10 \newcommand{\hgopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}``\texttt{#2}''}
11 \newcommand{\package}[1]{\index{\texttt{#1} package}\texttt{#1}}
13 \newsavebox{\notebox}
14 \newenvironment{note}%
15 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}%
16 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
18 \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}}
19 \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}}
21 \ifpdf
22 \newcommand{\grafix}[1]{\includegraphics[scale=0.2]{#1_pdf.png}}
23 \else
24 \newcommand{\grafix}[1]{\includegraphics{#1.png}}
25 \fi
27 %%% Local Variables:
28 %%% mode: latex
29 %%% TeX-master: "00book"
30 %%% End: