Mercurial > hgbook
comparison en/99defs.tex @ 11:e9d5b4c3d16b
First SVG image!
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu, 29 Jun 2006 00:32:35 -0700 |
parents | 76fc489c0e0b |
children | e2aa527bafa0 |
comparison
equal
deleted
inserted
replaced
10:d450d67ecc82 | 11:e9d5b4c3d16b |
---|---|
3 \newcommand{\hgext}[1]{\texttt{#1}} | 3 \newcommand{\hgext}[1]{\texttt{#1}} |
4 \newcommand{\hgcmd}[1]{``\texttt{hg #1}''} | 4 \newcommand{\hgcmd}[1]{``\texttt{hg #1}''} |
5 \newcommand{\hgcmdargs}[2]{``\texttt{hg #1 #2}''} | 5 \newcommand{\hgcmdargs}[2]{``\texttt{hg #1 #2}''} |
6 | 6 |
7 \newsavebox{\notebox} | 7 \newsavebox{\notebox} |
8 \newenvironment{note}{\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}{\end{minipage}\end{lrbox}\begin{center}\fbox{\usebox{\notebox}}\end{center}} | 8 \newenvironment{note}% |
9 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}% | |
10 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}} | |
9 | 11 |
10 \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}} | 12 \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}} |
11 \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}} | 13 \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}} |
14 | |
15 \ifpdf | |
16 \newcommand{\grafix}[1]{\includegraphics[scale=0.2]{#1_pdf.png}} | |
17 \else | |
18 \newcommand{\grafix}[1]{\includegraphics{#1.png}} | |
19 \fi | |
12 | 20 |
13 %%% Local Variables: | 21 %%% Local Variables: |
14 %%% mode: latex | 22 %%% mode: latex |
15 %%% TeX-master: "00book" | 23 %%% TeX-master: "00book" |
16 %%% End: | 24 %%% End: |