diff options
author | Karl Berry <karl@freefriends.org> | 2012-03-30 22:59:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-03-30 22:59:00 +0000 |
commit | d82e1c23973fd0271f93686f487bd1cee8dcd947 (patch) | |
tree | aa2b560201147b7fa4c9a307309855ed5c7ef6a6 /Master/texmf-dist/doc/generic/FAQ-en/faq-graphics.tex | |
parent | 0c2a4b76e6f5683bb95ad5a176f157745fd78dc7 (diff) |
FAQ-en (30mar12)
git-svn-id: svn://tug.org/texlive/trunk@25791 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/faq-graphics.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/faq-graphics.tex | 66 |
1 files changed, 41 insertions, 25 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/faq-graphics.tex b/Master/texmf-dist/doc/generic/FAQ-en/faq-graphics.tex index 9e063a72408..363d9e6ec3e 100644 --- a/Master/texmf-dist/doc/generic/FAQ-en/faq-graphics.tex +++ b/Master/texmf-dist/doc/generic/FAQ-en/faq-graphics.tex @@ -1,4 +1,4 @@ -% $Id: faq-graphics.tex,v 1.20 2011/06/03 18:01:31 rf10 Exp rf10 $ +% $Id: faq-graphics.tex,v 1.23 2012/03/16 23:01:22 rf10 Exp rf10 $ \section{Graphics} @@ -702,11 +702,13 @@ importing graphics created externally), ranging from simple use of sophisticated (but slow) drawing with \PiCTeX{}. Depending on your type of drawing, and setup, here are a few systems you may consider: \begin{itemize} -\item \PiCTeX{} is a venerable, and very powerful, system, that draws - by placing dots on the page to give the effect of a line or curve. While - this has the potential of great power, it is (of course) much slower - than any of the other established packages. What's more, there - are problems with its \Qref*{documentation}{Q-docpictex}. +\item The \environment{picture} environment provides rather primitive + drawing capabilities (anything requiring more than linear + calculations is excluded, unless a font can come to your help). The + environment's tedious insistence on its own \csx{unitlength}, as the + basic measurement in a diagram, may be avoided by use of the + \Package{picture} package, which detects whether a length is quoted + as a number or as a length, and acts accordingly. \item \Package{epic} was designed to make use of the \LaTeX{} \environment{picture} environment somewhat less agonising; \Package{eepic} extends it, and is capable of using \ProgName{tpic} @@ -722,6 +724,11 @@ of drawing, and setup, here are a few systems you may consider: useful tool than the original environment has ever been. (Note that \Package{pict2e} supersedes David Carlisle's stop-gap \Package{pspicture}.) +\item \PiCTeX{} is a venerable, and very powerful, system, that draws + by placing dots on the page to give the effect of a line or curve. While + this has the potential of great power, it is (of course) much slower + than any of the other established packages. What's more, there + are problems with its \Qref*{documentation}{Q-docpictex}. \item \Package{PSTricks}; this gives you access to all the power of \PS{} from \TeX{} itself, by sophisticated use of \Qref*{\csx{special} commands}{Q-specials}. Since \PS{} is itself a @@ -797,6 +804,7 @@ see \Qref{question}{Q-inlgrphapp}. \item[pgf.sty]\CTANref{pgf} \item[pict2e.sty]\CTANref{pict2e} \item[pictex.sty]\CTANref{pictex} +\item[picture.sty]Distributed as part of \CTANref{oberdiek}[picture] \item[pstricks]\CTANref{pstricks} \item[tikz.sty]Distributed as part of \CTANref{pgf} \end{ctanrefs} @@ -896,16 +904,19 @@ drawing or graphing tools that can do such things (the honourable exception being \MP{}, which allows you to program the labels, in \AllTeX{}, in the middle of specifying your graphic). -Labels on graphics produced by all those \emph{other} tools is where -the \Package{psfrag} package can help. Place an unique +Placing labels on graphics produced by all those \emph{other} tools is +what we discuss here. + +The time-honoured \Package{psfrag} package can help, if your image is +included as an (encapsulated) \PS{} file. Place an unique text in your graphic, using the normal text features of your tool, and you can ask \Package{psfrag} to replace the text with arbitrary \AllTeX{} material. \Package{Psfrag}'s ``operative'' command is -\cmdinvoke{psfrag}{\emph{PS text}}{\emph{Repl text}}, which instructs -the system to replace the original (``\texttt{PS}'') text with the -\TeX{}-typeset replacement text. Optional -arguments permit adjustment of position, scale and rotation; full -details may be found in \File{pfgguide} in the distribution. +\cmdinvoke{psfrag}{\emph{Orig text}}{\emph{Repl text}}, which +instructs the system to replace the original (``unique'') text with +the \TeX{}-typeset replacement text. Optional arguments permit +adjustment of position, scale and rotation; full details may be found +in \File{pfgguide} in the distribution. Since \Package{psfrag} works in terms of (encapsulated) \PS{} files, it needs extra work for use with \PDFLaTeX{}. The % ! line break @@ -914,15 +925,9 @@ usage. In fact, the \Package{pst-pdf} support package \Package{auto-pst-pdf} offers a configuration setting precisely for use with \Package{psfrag}. -On the other hand, -\begin{narrowversion} - V\TeX{}'s GeX processor (\Qref{}{Q-commercial}) -\end{narrowversion} -\begin{wideversion} - \Qref*{V\TeX{}}{Q-commercial}'s GeX processor -\end{wideversion} -explicitly deals with \Package{psfrag}, both in its free and -commercial instances. +On the other hand, % ! line break +\Qref*{V\TeX{}'s GeX processor}{Q-commercial} explicitly deals with +\Package{psfrag}, both in its free and commercial instances. The \Package{psfragx} package goes one step further than \Package{psfrag}: it provides a means whereby you can put the @@ -953,8 +958,15 @@ graphic for you): within the environment you may use the command \csx{lbl} to position \latex{} material at appropriate places over the graphic. +\Package{Pinlabel} is another package whose author thought in the same +sort of way as that of \Package{overpic}; the documentation explains +in detail how to plan your `labelling attack'~--- in this case by +loading your figure into a viewer and taking measurements from it. +(The package discusses direct use of \ProgName{ghostscript} as well as +customised viewers such as \ProgName{gsview} or \ProgName{gv}.) + \Package{Pstricks} can of course do everything -that \Package{overpic} or \Package{lpic} +that \Package{overpic}, \Package{lpic} or \Package{pinlabel} can, with all the flexibility of \PS{} programming that it offers. This capability is exemplified by the \Package{pst-layout} package, which seems to be a superset of both \Package{overpic} and @@ -975,15 +987,19 @@ are plainly little more than a convenience over what is achievable with the do-it-yourself approach. \begin{ctanrefs} \item[auto-pst-pdf.sty]\CTANref{auto-pst-pdf} -\item[pgf.sty]\CTANref{pgf} +\item[ghostscript]\CTANref{ghostscript} +\item[gsview]\CTANref{gsview} +\item[gv]\CTANref{gv} \item[iTe]\CTANref{ite} \item[laprint]Distributed with \CTANref{psfragx} \item[lpic.sty]\CTANref{lpic} \item[overpic.sty]\CTANref{overpic} +\item[pinlabel.sty]\CTANref{pinlabel} +\item[pgf.sty]\CTANref{pgf} \item[psfrag.sty]\CTANref{psfrag} \item[psfragx.sty]\CTANref{psfragx} \item[pstricks.sty]\CTANref{pstricks} \item[pst-layout.sty]\CTANref{pst-layout} \item[pst-pdf.sty]\CTANref{pst-pdf} \end{ctanrefs} -\LastEdit{2011-06-02} +\LastEdit{2012-03-16} |