diff options
Diffstat (limited to 'Master/texmf-dist/doc/metapost')
-rw-r--r-- | Master/texmf-dist/doc/metapost/base/mpman.pdf | bin | 481031 -> 483138 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/metapost/base/source/manfig.mp | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/metapost/base/source/mpman.tex | 38 |
3 files changed, 25 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/metapost/base/mpman.pdf b/Master/texmf-dist/doc/metapost/base/mpman.pdf Binary files differindex fdd20d6f4de..e2f4f982b4a 100644 --- a/Master/texmf-dist/doc/metapost/base/mpman.pdf +++ b/Master/texmf-dist/doc/metapost/base/mpman.pdf diff --git a/Master/texmf-dist/doc/metapost/base/source/manfig.mp b/Master/texmf-dist/doc/metapost/base/source/manfig.mp index bd490432c87..62b698dc851 100644 --- a/Master/texmf-dist/doc/metapost/base/source/manfig.mp +++ b/Master/texmf-dist/doc/metapost/base/source/manfig.mp @@ -14,7 +14,7 @@ draw (2u,2u)--(0,0)--(0,3u)--(3u,0)--(0,0); pickup pencircle scaled 4pt; for i=0 upto 2: for j=0 upto 2: - draw (i*u,j*u); + drawdot (i*u,j*u); endfor endfor endfig; diff --git a/Master/texmf-dist/doc/metapost/base/source/mpman.tex b/Master/texmf-dist/doc/metapost/base/source/mpman.tex index ed965965baf..28b7e44b27c 100644 --- a/Master/texmf-dist/doc/metapost/base/source/mpman.tex +++ b/Master/texmf-dist/doc/metapost/base/source/mpman.tex @@ -185,7 +185,7 @@ the current version from within a MetaPost program via the version 0.9). For instance: $$\begin{verbatim} if known mpversion: - message "mp = " \& mpversion; + message "mp = " & mpversion; if mpversion > "1.0": message "time has flown by" fi fi; \end{verbatim} @@ -236,7 +236,7 @@ draws a polygonal line like this: $$ \includegraphics{manfig-0} $$ \label{Ddrawdot}MetaPost also has a \ttt{drawdot} command to print a -single point, as in \ttt{drawdot(30,0)}. +single point, as in \ttt{drawdot(30,0)}. What is meant by coordinates like \verb|(30,0)|? MetaPost uses the same default coordinate system that PostScript\index{PostScript!coordinate @@ -280,13 +280,13 @@ for setting the line width for subsequent \verb|draw| statements to 4 points. With such a wide line width, even a line of zero length comes out as a big bold dot\index{dots}. We can use this to make a grid of bold dots by having one -\verb|draw| statement +\verb|drawdot| statement for each grid point. Such a repetitive sequence of \verb|draw| statements is best written as a pair of nested loops:\index{loops}% \index{for?\texttt{for}}\index{endfor?\texttt{endfor}} $$\begin{verbatim} for i=0 upto 2: - for j=0 upto 2: draw (i*u,j*u); endfor + for j=0 upto 2: drawdot (i*u,j*u); endfor endfor \end{verbatim} $$ @@ -302,7 +302,7 @@ u=1cm; draw (2u,2u)--(0,0)--(0,3u)--(3u,0)--(0,0); pickup pencircle scaled 4pt; for i=0 upto 2: - for j=0 upto 2: draw (i*u,j*u); endfor + for j=0 upto 2: drawdot (i*u,j*u); endfor endfor endfig; \end{verbatim} @@ -1584,8 +1584,8 @@ as {\tt cmr10} is a little dangerous because it does not have a space character or certain ASCII symbols. MetaPost does not use the ligatures\index{ligatures} and -kerning\index{kerning} information that comes with a \TeX\ font. -Further, MetaPost does not interpret virtual fonts. +kerning\index{kerning} information that comes with a \TeX\ font. +Further, MetaPost itself does not interpret virtual fonts. \subsection{Typesetting Your Labels} @@ -1818,12 +1818,17 @@ $$\begin{tabular}{|c|l|} \hline $-$ & remove all matching fonts from the font list \\ \hline \end{tabular} -$$ -Without any option, the current list will be completely replaced. If there are no \ttt{fontmapfile} statements, MetaPost will attempt -to locate a default map file with a preference to read {\tt -mpost.map} and then {\tt pdftex.map}. If \ttt{prologues} is set to~1, -MetaPost attempts to read a file called {\tt psfonts.map}, regardless of any -{\tt fontmapfile} statement. Again, this is for backward compatibility only. +$$ +Without any option, the current list will be completely replaced. + +If \ttt{prologues} is set to two or three, yet there are no +\ttt{fontmapfile} statements, MetaPost will attempt to locate a +default map file, with a preference to read {\tt mpost.map}. If that +fails, it will also attempt either {\tt troff.map} or {\tt +pdftex.map}, depending on whether or not troff mode is enabled. If +\ttt{prologues} is set to~1, MetaPost attempts to read a file called +{\tt psfonts.map}, regardless of any {\tt fontmapfile} +statement. Again, this is for backward compatibility only. \subsection{The {\tt infont} operator} @@ -1853,6 +1858,11 @@ is a picture containing character {\tt n+64} of the font \ttt{ptmr8r}, which is a typical \TeX\ way to refer to Times-Roman. See p.\ \pageref{fontname} for further discussion. +Bare MetaPost does not do any kind of input reencoding, so when +you use {\tt infont} string for labels (instead of {\tt btex} \ldots\ +{\tt etex}), the string has to be specified in the font encoding. + + \subsection{Measuring Text} \label{meas} @@ -2426,7 +2436,7 @@ paraphrasing the above equation for {\tt T} into English: ``{\tt T} should be the transform obtained by doing whatever {\tt identity} does. Then scaling $x$~coordinates by $-1$, rotating $45^\circ$, and shifting by $(1,1)$.'' This works because {\tt identity} is the -identity transformaion which does nothing; i.e., {\tt transformed +identity transformation which does nothing; i.e., {\tt transformed identity} is a no-op. The syntax for transform expressions and transformation operators is given in |