hgbook

view en/99defs.tex @ 56:b8539d91c84d

Begining of concepts chapter
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Mon Jul 24 23:57:52 2006 -0400 (2006-07-24)
parents c0979ed1eabd
children fa8bafe467cb
line source
1 \newcommand{\bug}[1]{\index{Mercurial issue!no.~#1}\href{http://www.selenic.com/mercurial/bts/issue#1}{Mercurial issue no.~#1}}
2 \newcommand{\tildefile}[1]{\texttt{\~{}/#1}}
3 \newcommand{\filename}[1]{\texttt{#1}}
4 \newcommand{\dirname}[1]{\texttt{#1}}
5 \newcommand{\sfilename}[1]{\index{\texttt{#1} file}\texttt{#1}}
6 \newcommand{\sdirname}[1]{\index{\texttt{#1} directory}\texttt{#1}}
7 \newcommand{\hgext}[1]{\index{\texttt{#1} extension}\texttt{#1}}
8 \newcommand{\hgcmd}[1]{\index{\texttt{#1} command}``\texttt{hg #1}''}
9 \newcommand{\command}[1]{\index{\texttt{#1} command}\texttt{#1}}
10 \newcommand{\cmdargs}[2]{\index{\texttt{#1} command}``\texttt{#1 #2}''}
11 \newcommand{\hgcmdargs}[2]{\index{\texttt{#1} command}``\texttt{hg #1 #2}''}
12 \newcommand{\hgopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
13 \newcommand{\cmdopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
14 \newcommand{\option}[1]{\texttt{#1}}
15 \newcommand{\package}[1]{\index{\texttt{#1} package}\texttt{#1}}
16 \newcommand{\rcsection}[1]{\index{\texttt{hgrc} file!\texttt{#1} section}\texttt{[#1]}}
17 \newcommand{\rcitem}[2]{\index{\texttt{hgrc} file!\texttt{#1}
18 section!\texttt{#2} entry}\texttt{#1.#2}}
19 \newcommand{\hgrc}{\index{\texttt{hgrc} file}\texttt{hgrc}}
20 \newcommand{\hook}[1]{\index{\texttt{#1} hook}\index{hooks!\texttt{#1}}\texttt{#1}}
21 \newcommand{\envar}[1]{\index{\texttt{#1} environment
22 variable}\index{environment variables!\texttt{#1}}\texttt{#1}}
24 \newsavebox{\notebox}
25 \newenvironment{note}%
26 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}%
27 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
28 \newenvironment{caution}%
29 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Caution:}\space}%
30 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
32 \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}}
33 \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}}
35 \ifpdf
36 \newcommand{\grafix}[1]{\includegraphics[scale=0.2]{#1_pdf.png}}
37 \else
38 \newcommand{\grafix}[1]{\includegraphics{#1.png}}
39 \fi
41 %%% Local Variables:
42 %%% mode: latex
43 %%% TeX-master: "00book"
44 %%% End: