hgbook

changeset 11:e9d5b4c3d16b

First SVG image!
author Bryan O'Sullivan <bos@serpentine.com>
date Thu Jun 29 00:32:35 2006 -0700 (2006-06-29)
parents d450d67ecc82
children 1f692024d438
files .hgignore en/00book.tex en/99defs.tex en/Makefile en/mq-stack.svg en/mq.tex
line diff
     1.1 --- a/.hgignore	Wed Jun 28 20:29:21 2006 -0700
     1.2 +++ b/.hgignore	Thu Jun 29 00:32:35 2006 -0700
     1.3 @@ -3,9 +3,6 @@
     1.4  
     1.5  syntax: glob
     1.6  
     1.7 -.run
     1.8 -.*.swp
     1.9 -*~
    1.10  *.aux
    1.11  *.bbl
    1.12  *.bib
    1.13 @@ -15,6 +12,10 @@
    1.14  *.lo[fgt]
    1.15  *.out
    1.16  *.pdf
    1.17 +*.png
    1.18  *.tmp
    1.19  *.toc
    1.20  *.xref
    1.21 +*~
    1.22 +.*.swp
    1.23 +.run
     2.1 --- a/en/00book.tex	Wed Jun 28 20:29:21 2006 -0700
     2.2 +++ b/en/00book.tex	Thu Jun 29 00:32:35 2006 -0700
     2.3 @@ -1,7 +1,8 @@
     2.4  \documentclass{book}
     2.5  \usepackage{enumerate}
     2.6  \usepackage{fullpage}
     2.7 -\usepackage{graphics}
     2.8 +\usepackage{ifpdf}
     2.9 +\usepackage{graphicx}
    2.10  \usepackage{newcent}
    2.11  \usepackage{fancyvrb}
    2.12  % leave hyperref until last
     3.1 --- a/en/99defs.tex	Wed Jun 28 20:29:21 2006 -0700
     3.2 +++ b/en/99defs.tex	Thu Jun 29 00:32:35 2006 -0700
     3.3 @@ -5,11 +5,19 @@
     3.4  \newcommand{\hgcmdargs}[2]{``\texttt{hg #1 #2}''}
     3.5  
     3.6  \newsavebox{\notebox}
     3.7 -\newenvironment{note}{\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}{\end{minipage}\end{lrbox}\begin{center}\fbox{\usebox{\notebox}}\end{center}}
     3.8 +\newenvironment{note}%
     3.9 +  {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}%
    3.10 +  {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
    3.11  
    3.12  \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}}
    3.13  \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}}
    3.14  
    3.15 +\ifpdf
    3.16 +  \newcommand{\grafix}[1]{\includegraphics[scale=0.2]{#1_pdf.png}}
    3.17 +\else
    3.18 +  \newcommand{\grafix}[1]{\includegraphics{#1.png}}
    3.19 +\fi
    3.20 +
    3.21  %%% Local Variables: 
    3.22  %%% mode: latex
    3.23  %%% TeX-master: "00book"
     4.1 --- a/en/Makefile	Wed Jun 28 20:29:21 2006 -0700
     4.2 +++ b/en/Makefile	Thu Jun 29 00:32:35 2006 -0700
     4.3 @@ -4,6 +4,9 @@
     4.4  	99defs.tex \
     4.5  	mq.tex
     4.6  
     4.7 +image-sources := \
     4.8 +	mq-stack.svg
     4.9 +
    4.10  example-sources := \
    4.11  	examples/run-example \
    4.12  	examples/mq.qinit-help \
    4.13 @@ -18,7 +21,7 @@
    4.14  
    4.15  pdf: pdf/hgbook.pdf
    4.16  
    4.17 -pdf/hgbook.pdf: $(sources) examples
    4.18 +pdf/hgbook.pdf: $(sources) $(image-sources:%.svg=%_pdf.png) examples
    4.19  	mkdir -p $(dir $@)
    4.20  	pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1)
    4.21  	cp 99book.bib $(dir $@)
    4.22 @@ -42,13 +45,22 @@
    4.23  	perl -pi -e 's/&#x00([0-7][0-9a-f]);/chr(hex($$1))/egi' $(dir $(1))/*.html
    4.24  endef
    4.25  
    4.26 -html/onepage/hgbook.html: $(sources) examples
    4.27 +html/onepage/hgbook.html: $(sources) $(image-sources:%.svg=%.png) examples
    4.28  	$(call htlatex,$@,$<)
    4.29 +	cp $(image-sources:%.svg=%.png) $(dir $@)
    4.30  
    4.31 -html/split/hgbook.html: $(sources) examples
    4.32 +html/split/hgbook.html: $(sources) $(image-sources:%.svg=%.png) examples
    4.33  	$(call htlatex,$@,$<,2)
    4.34 +	cp $(image-sources:%.svg=%.png) $(dir $@)
    4.35  
    4.36 -.PHONY: examples
    4.37 +%.png: %.svg
    4.38 +	inkscape -D -e $@ $<
    4.39 +
    4.40 +%_pdf.png: %.svg
    4.41 +	inkscape -D -d 300 -e $@ $<
    4.42 +
    4.43 +%.eps: %.svg
    4.44 +	inkscape -E $@ $<
    4.45  
    4.46  examples: examples/.run
    4.47  
    4.48 @@ -56,4 +68,4 @@
    4.49  	cd examples && ./run-example
    4.50  
    4.51  clean:
    4.52 -	rm -rf html pdf *.aux *.dvi *.log *.out examples/*.out examples/.run
    4.53 +	rm -rf html pdf *.eps *.png *.aux *.dvi *.log *.out examples/*.out examples/.run
     5.1 --- a/en/mq-stack.svg	Wed Jun 28 20:29:21 2006 -0700
     5.2 +++ b/en/mq-stack.svg	Thu Jun 29 00:32:35 2006 -0700
     5.3 @@ -13,7 +13,8 @@
     5.4     id="svg2"
     5.5     sodipodi:version="0.32"
     5.6     inkscape:version="0.43"
     5.7 -   sodipodi:docname="mq-stack.svg">
     5.8 +   sodipodi:docname="mq-stack.svg"
     5.9 +   sodipodi:docbase="/home/bos/hg/hgbook/en">
    5.10    <defs
    5.11       id="defs4" />
    5.12    <sodipodi:namedview
    5.13 @@ -23,13 +24,13 @@
    5.14       borderopacity="1.0"
    5.15       inkscape:pageopacity="0.0"
    5.16       inkscape:pageshadow="2"
    5.17 -     inkscape:zoom="1.4"
    5.18 -     inkscape:cx="304.37721"
    5.19 -     inkscape:cy="802.01706"
    5.20 +     inkscape:zoom="1.4142136"
    5.21 +     inkscape:cx="299.33323"
    5.22 +     inkscape:cy="815.646"
    5.23       inkscape:document-units="px"
    5.24       inkscape:current-layer="layer1"
    5.25 -     inkscape:window-width="1024"
    5.26 -     inkscape:window-height="693"
    5.27 +     inkscape:window-width="1014"
    5.28 +     inkscape:window-height="689"
    5.29       inkscape:window-x="0"
    5.30       inkscape:window-y="25" />
    5.31    <metadata
    5.32 @@ -47,253 +48,223 @@
    5.33       inkscape:label="Layer 1"
    5.34       inkscape:groupmode="layer"
    5.35       id="layer1">
    5.36 -    <g
    5.37 -       id="g2210"
    5.38 -       transform="translate(100.8575,-66.26604)">
    5.39 -      <rect
    5.40 -         y="288.68686"
    5.41 -         x="129.16194"
    5.42 -         height="24.243662"
    5.43 -         width="202.93683"
    5.44 -         id="rect1307"
    5.45 -         style="fill:#0000ff;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1.05063355px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
    5.46 -      <text
    5.47 -         id="text1309"
    5.48 -         y="304.11923"
    5.49 -         x="137.03856"
    5.50 -         style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
    5.51 -         xml:space="preserve"><tspan
    5.52 -           y="304.11923"
    5.53 -           x="137.03856"
    5.54 -           id="tspan1311"
    5.55 -           sodipodi:role="line">prevent-compiler-reorder.patch</tspan></text>
    5.56 -    </g>
    5.57 -    <g
    5.58 -       id="g4127"
    5.59 -       transform="translate(0,-4)">
    5.60 -      <g
    5.61 -         style="opacity:0.5"
    5.62 -         transform="translate(101.173,-120.9757)"
    5.63 -         id="g2223">
    5.64 -        <rect
    5.65 -           style="fill:#7979ff;fill-opacity:0.875;fill-rule:evenodd;stroke:#000000;stroke-width:1.05063355px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
    5.66 -           id="rect2225"
    5.67 -           width="202.93683"
    5.68 -           height="24.243662"
    5.69 -           x="128.84636"
    5.70 -           y="313.94067" />
    5.71 -        <text
    5.72 -           xml:space="preserve"
    5.73 -           style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
    5.74 -           x="136.72298"
    5.75 -           y="329.37305"
    5.76 -           id="text2227"><tspan
    5.77 -             sodipodi:role="line"
    5.78 -             id="tspan2229"
    5.79 -             x="136.72298"
    5.80 -             y="329.37305">fix-memory-leak.patch</tspan></text>
    5.81 -      </g>
    5.82 -      <g
    5.83 -         style="opacity:0.5"
    5.84 -         transform="translate(101.173,-146.4315)"
    5.85 -         id="g3104">
    5.86 -        <rect
    5.87 -           style="fill:#7979ff;fill-opacity:0.875;fill-rule:evenodd;stroke:#000000;stroke-width:1.05063355px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
    5.88 -           id="rect3106"
    5.89 -           width="202.93683"
    5.90 -           height="24.243662"
    5.91 -           x="128.84636"
    5.92 -           y="313.94067" />
    5.93 -        <text
    5.94 -           xml:space="preserve"
    5.95 -           style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
    5.96 -           x="136.72298"
    5.97 -           y="329.37305"
    5.98 -           id="text3108"><tspan
    5.99 -             sodipodi:role="line"
   5.100 -             id="tspan3110"
   5.101 -             x="136.72298"
   5.102 -             y="329.37305">forbid-illegal-params.patch</tspan></text>
   5.103 -      </g>
   5.104 -    </g>
   5.105 -    <g
   5.106 -       id="g2205"
   5.107 -       transform="translate(101.173,-58.06398)">
   5.108 -      <rect
   5.109 -         y="313.94067"
   5.110 -         x="128.84636"
   5.111 -         height="24.243662"
   5.112 -         width="202.93683"
   5.113 -         id="rect1320"
   5.114 -         style="fill:#7979ff;fill-opacity:0.875;fill-rule:evenodd;stroke:#000000;stroke-width:1.05063355px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
   5.115 -      <text
   5.116 -         id="text1322"
   5.117 -         y="329.37305"
   5.118 -         x="136.72298"
   5.119 -         style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.120 -         xml:space="preserve"><tspan
   5.121 -           y="329.37305"
   5.122 -           x="136.72298"
   5.123 -           id="tspan1324"
   5.124 -           sodipodi:role="line">namespace-cleanup.patch</tspan></text>
   5.125 -    </g>
   5.126 -    <g
   5.127 -       id="g2215"
   5.128 -       transform="translate(101.173,-32.60817)">
   5.129 -      <rect
   5.130 -         y="313.94067"
   5.131 -         x="128.84636"
   5.132 -         height="24.243662"
   5.133 -         width="202.93683"
   5.134 -         id="rect2217"
   5.135 -         style="fill:#7979ff;fill-opacity:0.875;fill-rule:evenodd;stroke:#000000;stroke-width:1.05063355px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
   5.136 -      <text
   5.137 -         id="text2219"
   5.138 -         y="329.37305"
   5.139 -         x="136.72298"
   5.140 -         style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.141 -         xml:space="preserve"><tspan
   5.142 -           y="329.37305"
   5.143 -           x="136.72298"
   5.144 -           id="tspan2221"
   5.145 -           sodipodi:role="line">powerpc-port-fixes.patch</tspan></text>
   5.146 -    </g>
   5.147 -    <g
   5.148 -       id="g3112"
   5.149 -       transform="translate(101.173,-7.1523)">
   5.150 -      <rect
   5.151 -         y="313.94067"
   5.152 -         x="128.84636"
   5.153 -         height="24.243662"
   5.154 -         width="202.93683"
   5.155 -         id="rect3114"
   5.156 -         style="fill:#7979ff;fill-opacity:0.875;fill-rule:evenodd;stroke:#000000;stroke-width:1.05063355px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
   5.157 -      <text
   5.158 -         id="text3116"
   5.159 -         y="329.37305"
   5.160 -         x="136.72298"
   5.161 -         style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.162 -         xml:space="preserve"><tspan
   5.163 -           y="329.37305"
   5.164 -           x="136.72298"
   5.165 -           id="tspan3118"
   5.166 -           sodipodi:role="line">report-devinfo-correctly.patch</tspan></text>
   5.167 -    </g>
   5.168 +    <rect
   5.169 +       style="fill:#0000ff;fill-opacity:0.75;fill-rule:evenodd;stroke:#3c3c3c;stroke-width:1.05063355px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
   5.170 +       id="rect1307"
   5.171 +       width="202.93683"
   5.172 +       height="24.243662"
   5.173 +       x="230.01944"
   5.174 +       y="221.70146" />
   5.175 +    <text
   5.176 +       xml:space="preserve"
   5.177 +       style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.178 +       x="237.89606"
   5.179 +       y="237.13383"
   5.180 +       id="text1309"><tspan
   5.181 +         sodipodi:role="line"
   5.182 +         id="tspan1311"
   5.183 +         x="237.89606"
   5.184 +         y="237.13383">prevent-compiler-reorder.patch</tspan></text>
   5.185 +    <rect
   5.186 +       style="fill:#7979ff;fill-opacity:0.875;fill-rule:evenodd;stroke:#3c3c3c;stroke-width:1.05063355px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
   5.187 +       id="rect1320"
   5.188 +       width="202.93683"
   5.189 +       height="24.243662"
   5.190 +       x="230.01936"
   5.191 +       y="251.34325" />
   5.192 +    <text
   5.193 +       xml:space="preserve"
   5.194 +       style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.195 +       x="237.89598"
   5.196 +       y="266.77563"
   5.197 +       id="text1322"><tspan
   5.198 +         sodipodi:role="line"
   5.199 +         id="tspan1324"
   5.200 +         x="237.89598"
   5.201 +         y="266.77563">namespace-cleanup.patch</tspan></text>
   5.202 +    <rect
   5.203 +       style="fill:#7979ff;fill-opacity:0.875;fill-rule:evenodd;stroke:#3c3c3c;stroke-width:1.05063355px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
   5.204 +       id="rect2217"
   5.205 +       width="202.93683"
   5.206 +       height="24.243662"
   5.207 +       x="230.01936"
   5.208 +       y="280.98505" />
   5.209 +    <text
   5.210 +       xml:space="preserve"
   5.211 +       style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.212 +       x="237.89598"
   5.213 +       y="296.41742"
   5.214 +       id="text2219"><tspan
   5.215 +         sodipodi:role="line"
   5.216 +         id="tspan2221"
   5.217 +         x="237.89598"
   5.218 +         y="296.41742">powerpc-port-fixes.patch</tspan></text>
   5.219 +    <rect
   5.220 +       style="fill:#7979ff;fill-opacity:0.875;fill-rule:evenodd;stroke:#3c3c3c;stroke-width:1.05063355px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
   5.221 +       id="rect3114"
   5.222 +       width="202.93683"
   5.223 +       height="24.243662"
   5.224 +       x="230.01936"
   5.225 +       y="310.6268" />
   5.226 +    <text
   5.227 +       xml:space="preserve"
   5.228 +       style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.229 +       x="237.89598"
   5.230 +       y="326.05917"
   5.231 +       id="text3116"><tspan
   5.232 +         sodipodi:role="line"
   5.233 +         id="tspan3118"
   5.234 +         x="237.89598"
   5.235 +         y="326.05917">report-devinfo-correctly.patch</tspan></text>
   5.236      <text
   5.237         xml:space="preserve"
   5.238         style="font-size:12px;font-style:normal;font-weight:normal;line-height:125%;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.239         x="200.01021"
   5.240 -       y="202.67921"
   5.241 +       y="191.68094"
   5.242         id="text3170"
   5.243         sodipodi:linespacing="125%"><tspan
   5.244           sodipodi:role="line"
   5.245           id="tspan3172"
   5.246           x="200.01021"
   5.247 -         y="202.67921"
   5.248 +         y="191.68094"
   5.249           style="font-size:48px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans">{</tspan></text>
   5.250      <text
   5.251         xml:space="preserve"
   5.252 -       style="font-size:15.25329494px;font-style:normal;font-weight:normal;line-height:125%;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.253 -       x="255.26624"
   5.254 -       y="249.06793"
   5.255 +       style="font-size:15.25329685px;font-style:normal;font-weight:normal;line-height:125%;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.256 +       x="255.26627"
   5.257 +       y="248.79449"
   5.258         id="text3190"
   5.259         sodipodi:linespacing="125%"
   5.260         transform="scale(0.786716,1.271107)"><tspan
   5.261           sodipodi:role="line"
   5.262           id="tspan3192"
   5.263 -         x="255.26624"
   5.264 -         y="249.06793"
   5.265 -         style="font-size:61.01317978px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans">{</tspan></text>
   5.266 +         x="255.26627"
   5.267 +         y="248.79449"
   5.268 +         style="font-size:61.01318741px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans">{</tspan></text>
   5.269      <text
   5.270         xml:space="preserve"
   5.271         style="font-size:12px;font-style:normal;font-weight:normal;line-height:125%;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.272         x="195.86807"
   5.273 -       y="184.16945"
   5.274 +       y="173.17117"
   5.275         id="text4085"
   5.276         sodipodi:linespacing="125%"><tspan
   5.277           sodipodi:role="line"
   5.278           id="tspan4087"
   5.279           x="195.86807"
   5.280 -         y="184.16945"
   5.281 -         style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;writing-mode:lr-tb;text-anchor:end;font-family:Bitstream Vera Sans">patches in series,</tspan><tspan
   5.282 +         y="173.17117"
   5.283 +         style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;writing-mode:lr-tb;text-anchor:end;font-family:Bitstream Vera Sans">present in series,</tspan><tspan
   5.284           sodipodi:role="line"
   5.285           x="195.86807"
   5.286 -         y="199.16945"
   5.287 +         y="188.17117"
   5.288           id="tspan4089"
   5.289           style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;writing-mode:lr-tb;text-anchor:end;font-family:Bitstream Vera Sans">but not applied</tspan></text>
   5.290      <text
   5.291         xml:space="preserve"
   5.292         style="font-size:12px;font-style:normal;font-weight:normal;line-height:125%;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.293         x="195.0712"
   5.294 -       y="289.26492"
   5.295 +       y="288.91745"
   5.296         id="text4091"
   5.297         sodipodi:linespacing="125%"><tspan
   5.298           sodipodi:role="line"
   5.299           id="tspan4093"
   5.300           x="195.0712"
   5.301 -         y="289.26492"
   5.302 +         y="288.91745"
   5.303           style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;writing-mode:lr-tb;text-anchor:end;font-family:Bitstream Vera Sans">patches applied,</tspan><tspan
   5.304           sodipodi:role="line"
   5.305           x="195.0712"
   5.306 -         y="304.26492"
   5.307 +         y="303.91745"
   5.308           id="tspan4111"
   5.309           style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;writing-mode:lr-tb;text-anchor:end;font-family:Bitstream Vera Sans">changesets present</tspan></text>
   5.310      <text
   5.311         xml:space="preserve"
   5.312         style="font-size:12px;font-style:normal;font-weight:normal;line-height:125%;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.313         x="195.0712"
   5.314 -       y="230.00749"
   5.315 +       y="229.28813"
   5.316         id="text4095"
   5.317         sodipodi:linespacing="125%"><tspan
   5.318           sodipodi:role="line"
   5.319           id="tspan4097"
   5.320           x="195.0712"
   5.321 -         y="230.00749"
   5.322 +         y="229.28813"
   5.323           style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;writing-mode:lr-tb;text-anchor:end;font-family:Bitstream Vera Sans">topmost</tspan><tspan
   5.324           sodipodi:role="line"
   5.325           x="195.0712"
   5.326 -         y="245.00749"
   5.327 +         y="244.28813"
   5.328           id="tspan4109"
   5.329           style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;writing-mode:lr-tb;text-anchor:end;font-family:Bitstream Vera Sans">applied patch</tspan></text>
   5.330      <text
   5.331         xml:space="preserve"
   5.332         style="font-size:12px;font-style:normal;font-weight:normal;opacity:1;fill:#666666;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.333         x="450.4975"
   5.334 -       y="239.01628"
   5.335 +       y="238.29692"
   5.336         id="text4137"><tspan
   5.337           sodipodi:role="line"
   5.338           id="tspan4139"
   5.339           x="450.4975"
   5.340 -         y="239.01628">201ad3209902</tspan></text>
   5.341 +         y="238.29692">201ad3209902</tspan></text>
   5.342      <text
   5.343         xml:space="preserve"
   5.344         style="font-size:12px;font-style:normal;font-weight:normal;opacity:1;fill:#989898;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.345         x="450.05804"
   5.346 -       y="272.47217"
   5.347 +       y="267.93872"
   5.348         id="text4141"><tspan
   5.349           sodipodi:role="line"
   5.350           id="tspan4143"
   5.351           x="450.05804"
   5.352 -         y="272.47217">126b84e593ae</tspan></text>
   5.353 +         y="267.93872">126b84e593ae</tspan></text>
   5.354      <text
   5.355         xml:space="preserve"
   5.356         style="font-size:12px;font-style:normal;font-weight:normal;opacity:1;fill:#989898;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.357         x="450.6557"
   5.358 -       y="297.92798"
   5.359 +       y="297.58051"
   5.360         id="text4145"><tspan
   5.361           sodipodi:role="line"
   5.362           id="tspan4147"
   5.363           x="450.6557"
   5.364 -         y="297.92798">a655daf15409</tspan></text>
   5.365 +         y="297.58051">a655daf15409</tspan></text>
   5.366      <text
   5.367         xml:space="preserve"
   5.368         style="font-size:12px;font-style:normal;font-weight:normal;opacity:1;fill:#989898;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.369         x="450.71429"
   5.370 -       y="323.38385"
   5.371 +       y="327.22226"
   5.372         id="text4149"><tspan
   5.373           sodipodi:role="line"
   5.374           id="tspan4151"
   5.375           x="450.71429"
   5.376 -         y="323.38385">e50d59aaea3a</tspan></text>
   5.377 +         y="327.22226">e50d59aaea3a</tspan></text>
   5.378 +    <rect
   5.379 +       style="fill:#d7d7ff;fill-opacity:0.875;fill-rule:evenodd;stroke:#a6a6a6;stroke-width:1.05063355px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
   5.380 +       id="rect3106"
   5.381 +       width="202.93683"
   5.382 +       height="24.243662"
   5.383 +       x="230.01936"
   5.384 +       y="150.41792" />
   5.385 +    <text
   5.386 +       xml:space="preserve"
   5.387 +       style="font-size:12px;font-style:normal;font-weight:normal;fill:#808080;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.388 +       x="237.89598"
   5.389 +       y="165.8503"
   5.390 +       id="text3108"><tspan
   5.391 +         sodipodi:role="line"
   5.392 +         id="tspan3110"
   5.393 +         x="237.89598"
   5.394 +         y="165.8503">forbid-illegal-params.patch</tspan></text>
   5.395 +    <rect
   5.396 +       style="fill:#d7d7ff;fill-opacity:0.875;fill-rule:evenodd;stroke:#a6a6a6;stroke-width:1.05063355px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
   5.397 +       id="rect2241"
   5.398 +       width="202.93683"
   5.399 +       height="24.243662"
   5.400 +       x="230.16466"
   5.401 +       y="180.05968" />
   5.402 +    <text
   5.403 +       xml:space="preserve"
   5.404 +       style="font-size:12px;font-style:normal;font-weight:normal;fill:#808080;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
   5.405 +       x="238.04128"
   5.406 +       y="195.49205"
   5.407 +       id="text2243"><tspan
   5.408 +         sodipodi:role="line"
   5.409 +         id="tspan2245"
   5.410 +         x="238.04128"
   5.411 +         y="195.49205">fix-memory-leak.patch</tspan></text>
   5.412    </g>
   5.413  </svg>
     6.1 --- a/en/mq.tex	Wed Jun 28 20:29:21 2006 -0700
     6.2 +++ b/en/mq.tex	Thu Jun 29 00:32:35 2006 -0700
     6.3 @@ -263,8 +263,8 @@
     6.4  \subsection{Manipulating the patch stack}
     6.5  
     6.6  The previous discussion implied that there must be a difference
     6.7 -between ``known'' and ``applied'' patches, and there is.  MQ can know
     6.8 -about a patch without it being applied in the repository.
     6.9 +between ``known'' and ``applied'' patches, and there is.  MQ can
    6.10 +manage a patch without it being applied in the repository.
    6.11  
    6.12  An \emph{applied} patch has a corresponding changeset in the
    6.13  repository, and the effects of the patch and changeset are visible in
    6.14 @@ -287,6 +287,13 @@
    6.15  or two patches, the output of \hgcmd{qseries} remains the same, while
    6.16  that of \hgcmd{qapplied} has changed.
    6.17  
    6.18 +\begin{figure}
    6.19 +  \centering
    6.20 +  \grafix{mq-stack}
    6.21 +  \caption{Applied and unapplied patches in the MQ patch stack}
    6.22 +  \label{fig:mq:stack}
    6.23 +\end{figure}
    6.24 +
    6.25  MQ does not limit you to pushing or popping one patch.  You can have
    6.26  no patches, all of them, or any number in between applied at some
    6.27  point in time.