Mercurial > hgbook
annotate en/99defs.tex @ 24:a752b0fd3c10
Merge.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Sun, 09 Jul 2006 21:47:15 -0700 |
parents | 187702df428b |
children | 1bc6c1f0192a |
rev | line source |
---|---|
4
33a2e7b9978d
Make it possible to include example input and output from real programs.
Bryan O'Sullivan <bos@serpentine.com>
parents:
3
diff
changeset
|
1 \newcommand{\tildefile}[1]{\texttt{\~{}/#1}} |
2 | 2 \newcommand{\filename}[1]{\texttt{#1}} |
16
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
3 \newcommand{\dirname}[1]{\texttt{#1}} |
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
4 \newcommand{\sfilename}[1]{\index{\texttt{#1} file}\texttt{#1}} |
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
5 \newcommand{\sdirname}[1]{\index{\texttt{#1} directory}\texttt{#1}} |
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
6 \newcommand{\hgext}[1]{\index{\texttt{#1} extension}\texttt{#1}} |
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
7 \newcommand{\hgcmd}[1]{\index{\texttt{#1} command}``\texttt{hg #1}''} |
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
8 \newcommand{\command}[1]{\index{\texttt{#1} command}\texttt{#1}} |
19
187702df428b
Piles of new content for MQ chapter - cookbook stuff.
Bryan O'Sullivan <bos@serpentine.com>
parents:
17
diff
changeset
|
9 \newcommand{\cmdargs}[2]{\index{\texttt{#1} command}\texttt{#1 #2}} |
16
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
10 \newcommand{\hgcmdargs}[2]{\index{\texttt{#1} command}``\texttt{hg #1 #2}''} |
17
2668e15c76e9
MQ: write up patch rebasing.
Bryan O'Sullivan <bos@serpentine.com>
parents:
16
diff
changeset
|
11 \newcommand{\hgopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}} |
19
187702df428b
Piles of new content for MQ chapter - cookbook stuff.
Bryan O'Sullivan <bos@serpentine.com>
parents:
17
diff
changeset
|
12 \newcommand{\cmdopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}} |
16
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
13 \newcommand{\package}[1]{\index{\texttt{#1} package}\texttt{#1}} |
0
76fba5835a1b
Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
14 |
7
339e75288632
More progress on MQ chapter and general support.
Bryan O'Sullivan <bos@serpentine.com>
parents:
4
diff
changeset
|
15 \newsavebox{\notebox} |
11 | 16 \newenvironment{note}% |
17 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}% | |
18 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}} | |
7
339e75288632
More progress on MQ chapter and general support.
Bryan O'Sullivan <bos@serpentine.com>
parents:
4
diff
changeset
|
19 |
4
33a2e7b9978d
Make it possible to include example input and output from real programs.
Bryan O'Sullivan <bos@serpentine.com>
parents:
3
diff
changeset
|
20 \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}} |
33a2e7b9978d
Make it possible to include example input and output from real programs.
Bryan O'Sullivan <bos@serpentine.com>
parents:
3
diff
changeset
|
21 \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}} |
3
906d9021f9e5
Making progress on autogenerated example output.
Bryan O'Sullivan <bos@serpentine.com>
parents:
2
diff
changeset
|
22 |
11 | 23 \ifpdf |
24 \newcommand{\grafix}[1]{\includegraphics[scale=0.2]{#1_pdf.png}} | |
25 \else | |
26 \newcommand{\grafix}[1]{\includegraphics{#1.png}} | |
27 \fi | |
28 | |
0
76fba5835a1b
Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
29 %%% Local Variables: |
76fba5835a1b
Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
30 %%% mode: latex |
76fba5835a1b
Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
31 %%% TeX-master: "00book" |
76fba5835a1b
Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
32 %%% End: |