diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-external.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-external.tex | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-external.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-external.tex index fc4606b0848..33792dd1a2f 100644 --- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-external.tex +++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-external.tex @@ -107,7 +107,7 @@ As we see in Figure~\ref{fig1}, the world is flat. \end{figure} \end{codeexample} - Each graphic that is be externalized should have a unique name. Note + Each graphic to be externalized should have a unique name. Note that this name will be used as the name of a file in the file system, so it should not contain any funny characters. @@ -136,7 +136,7 @@ As we see in Figure~\ref{fig1}, the world is flat. the graphic file is included. \item The most complex behaviour arises when current the |\jobname| equals the \meta{file name prefix} and, furthermore, the - a \emph{real job name} has been declared. The behaviour for this + \emph{real job name} has been declared. The behaviour for this case is explained later. \end{enumerate} @@ -178,7 +178,7 @@ modify the |\jobname| appropriately. This is done in two steps: the graphic for which you need an external graphic to be generated. To set the |\jobname|, you use the |--jobname=| option of \TeX: -\begin{codeexample}[code only] +\begin{codeexample}[code only, tikz syntax=false] bash> latex --jobname=survey-graphic1 survey.tex \end{codeexample} \end{enumerate} @@ -199,19 +199,19 @@ The following things will now happen: Note that, typically, \meta{everything} will contain just a single |{tikzpicture}| or |{pgfpicture}| environment. However, this need - not be the case, you use, say, a |{pspicture}| environment as + not be the case, you can use, say, a |{pspicture}| environment as \meta{everything} or even just some normal \TeX-text. \item At the |\endpgfgraphicnamed|, the box \emph{is} shipped out using the original |\shipout| command. Thus, unlike everything else, the contents of the graphic is made part of the output. \item When the box containing the graphic is shipped out, the paper - size is modified such that it exactly equal to the height and width + size is modified such that it is exactly equal to the height and width of the box. \end{enumerate} The net effect of everything described above is that the two commands -\begin{codeexample}[code only] +\begin{codeexample}[code only, tikz syntax=false] bash> latex --jobname=survey-graphic1 survey.tex bash> dvips survey-graphic1 \end{codeexample} @@ -222,7 +222,7 @@ page that contains exactly the graphic produced by the code between exactly the size of the graphic. If you use pdf\TeX, producing the graphic is even simpler: -\begin{codeexample}[code only] +\begin{codeexample}[code only, tikz syntax=false] bash> pdflatex --jobname=survey-graphic1 survey.tex \end{codeexample} \noindent produces the single-page |pdf|-file |survey-graphic1.pdf|. @@ -360,7 +360,7 @@ external graphics. To create the external graphics, we run |pdflatex| twice, once for each graphic: -\begin{codeexample}[code only] +\begin{codeexample}[code only, tikz syntax=false] bash> pdflatex --jobname=survey-f1 survey.tex This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6) entering extended mode @@ -372,7 +372,7 @@ Output written on survey-f1.pdf (1 page, 1016 bytes). Transcript written on survey-f1.log. \end{codeexample} -\begin{codeexample}[code only] +\begin{codeexample}[code only, tikz syntax=false] bash> pdflatex --jobname=survey-f2 survey.tex This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6) entering extended mode @@ -416,7 +416,9 @@ By comparison, in this figure we see a rectangle: \end{document} \end{codeexample} If we now run pdf\LaTeX, then, indeed, \pgfname\ is no longer needed: -\begin{codeexample}[code only] +% In the following, we switch off typesetting of listings because the +% parentheses confuse the pretty printer +\begin{codeexample}[code only,typeset listing/.code=#1] bash> pdflatex survey.tex This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6) entering extended mode |