view en/99defs.tex @ 19:187702df428b

Piles of new content for MQ chapter - cookbook stuff.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 07 Jul 2006 19:56:53 -0700
parents 2668e15c76e9
children 1bc6c1f0192a
line wrap: on
line source

\newcommand{\tildefile}[1]{\texttt{\~{}/#1}}
\newcommand{\filename}[1]{\texttt{#1}}
\newcommand{\dirname}[1]{\texttt{#1}}
\newcommand{\sfilename}[1]{\index{\texttt{#1} file}\texttt{#1}}
\newcommand{\sdirname}[1]{\index{\texttt{#1} directory}\texttt{#1}}
\newcommand{\hgext}[1]{\index{\texttt{#1} extension}\texttt{#1}}
\newcommand{\hgcmd}[1]{\index{\texttt{#1} command}``\texttt{hg #1}''}
\newcommand{\command}[1]{\index{\texttt{#1} command}\texttt{#1}}
\newcommand{\cmdargs}[2]{\index{\texttt{#1} command}\texttt{#1 #2}}
\newcommand{\hgcmdargs}[2]{\index{\texttt{#1} command}``\texttt{hg #1 #2}''}
\newcommand{\hgopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
\newcommand{\cmdopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
\newcommand{\package}[1]{\index{\texttt{#1} package}\texttt{#1}}

\newsavebox{\notebox}
\newenvironment{note}%
  {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}%
  {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}

\DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}}
\newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}}

\ifpdf
  \newcommand{\grafix}[1]{\includegraphics[scale=0.2]{#1_pdf.png}}
\else
  \newcommand{\grafix}[1]{\includegraphics{#1.png}}
\fi

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "00book"
%%% End: