diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2020-12-31 21:49:16 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2020-12-31 21:49:16 +0000 |
commit | eac8fd5d1337a83d1dd68ca7223e8703048d239c (patch) | |
tree | fee7d44ef91449ab8f93464eea571f1db98bd20e | |
parent | 2624824ea71c767c0910df2ef7e568acaf0d28e8 (diff) |
MetaPost: small improvements in manual; some minor fixes.
git-svn-id: svn://tug.org/texlive/trunk@57271 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/web2c/mplibdir/ChangeLog | 9 | ||||
-rw-r--r-- | Build/source/texk/web2c/mplibdir/mpost.w | 1 | ||||
-rw-r--r-- | Build/source/texk/web2c/mplibdir/mpxout.w | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/metapost/base/mpman.pdf | bin | 957617 -> 959393 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/metapost/base/source-manual/mpman-app-numbersystems.tex | 12 | ||||
-rw-r--r-- | Master/texmf-dist/doc/metapost/base/source-manual/mpman-app-refman.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/metapost/base/source-manual/mpman.tex | 10 |
7 files changed, 23 insertions, 13 deletions
diff --git a/Build/source/texk/web2c/mplibdir/ChangeLog b/Build/source/texk/web2c/mplibdir/ChangeLog index fbfbdba5eff..87b2fa9be65 100644 --- a/Build/source/texk/web2c/mplibdir/ChangeLog +++ b/Build/source/texk/web2c/mplibdir/ChangeLog @@ -1,3 +1,12 @@ +2020-12-28 Luigi Scarso <luigi.scarso@gmail.com> + * Temp, fix in mpx_copy_mpto, changed || with && to avoid a wrong final % + + +2020-12-27 Luigi Scarso <luigi.scarso@gmail.com> + * Fixed some typos in manual (thank to 胡亚捷 (Hu Yajie) ) + * Added the undocumented -T option + * Added some autotools files to make reautoconf working again + 2020-11-26 Luigi Scarso <luigi.scarso@gmail.com> * Added mp-tangle dependency to libmplib.am to fix parallel compilation diff --git a/Build/source/texk/web2c/mplibdir/mpost.w b/Build/source/texk/web2c/mplibdir/mpost.w index 5e01a411506..5e447270678 100644 --- a/Build/source/texk/web2c/mplibdir/mpost.w +++ b/Build/source/texk/web2c/mplibdir/mpost.w @@ -1043,6 +1043,7 @@ fprintf(stdout, " -recorder enable filename recorder\n" " -restricted be secure: disable tex, makempx and editor commands\n" " -troff set prologues:=1 and assume TEXPROGRAM is really troff\n" +" -T same as -troff\n" " -s INTERNAL=\"STRING\" set internal INTERNAL to the string value STRING\n" " -s INTERNAL=NUMBER set internal INTERNAL to the integer value NUMBER\n" " -help display this help and exit\n" diff --git a/Build/source/texk/web2c/mplibdir/mpxout.w b/Build/source/texk/web2c/mplibdir/mpxout.w index 22b8f242b35..f08645a28f0 100644 --- a/Build/source/texk/web2c/mplibdir/mpxout.w +++ b/Build/source/texk/web2c/mplibdir/mpxout.w @@ -564,7 +564,7 @@ static void mpx_copy_mpto (MPX mpx, FILE *outfile, int textype) { if (textype == B_TEX) { /* put no |%| at end if it's only 1 line total, starting with |%|; * this covers the special case |%&format| in a single line. */ - if (t != s || *t != '%') + if (t != s && *t != '%') fprintf(outfile,"%%"); } free(res); diff --git a/Master/texmf-dist/doc/metapost/base/mpman.pdf b/Master/texmf-dist/doc/metapost/base/mpman.pdf Binary files differindex 16e32d2ca44..1838024b4ae 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-manual/mpman-app-numbersystems.tex b/Master/texmf-dist/doc/metapost/base/source-manual/mpman-app-numbersystems.tex index 23d3dce7cf9..4839943fb1f 100644 --- a/Master/texmf-dist/doc/metapost/base/source-manual/mpman-app-numbersystems.tex +++ b/Master/texmf-dist/doc/metapost/base/source-manual/mpman-app-numbersystems.tex @@ -1,4 +1,4 @@ -\svnInfo $Id: mpman-app-numbersystems.tex 2023 2014-05-21 08:47:19Z stephanhennig $ +\svnInfo $Id: mpman-app-numbersystems.tex 2163 2020-12-31 19:51:53Z luigi.scarso@gmail.com $ \section{High-precision arithmetic with MetaPost} \label{hparith} @@ -21,7 +21,7 @@ Assigning a value to this variable at run-time triggers an error. The \texttt{scaled}\index{scaled?\texttt{scaled}} number system refers to 32~bit fixed-point arithmetics described in Section~\ref{datatypes}. -This is the default number system. Precision is ca. 10~decimal digits, +This is the default number system. Precision is ca.~10~decimal digits, 5 digits before and after the comma. All arithmetic operations are done in software. @@ -31,9 +31,9 @@ precision. In the internal representation, double floating-point numbers use $52+1$~bits for the mantissa, which determines precision, 11~bits for the exponent, which determines the valid range of numbers, and one bit for the sign. The smallest absolute value that can be -represented is ca. $2.2\cdot10^{-308}$, the largest value is -ca. $1.8\cdot10^{308}$. The 53~bit mantissa makes for a precision of -ca. 15 decimal digits. The smallest possible difference between two +represented is ca.~$2.2\cdot10^{-308}$, the largest value is +ca.~$1.8\cdot10^{308}$. The 53~bit mantissa makes for a precision of +ca.~15 decimal digits. The smallest possible difference between two distinct numbers in double floating-point number representation is $2^{-53} \approx 1.1\cdot10^{-16}$. The largest integer value that can be represented exactly is $2^{53}-1 \approx 9,0\cdot10^{15}$. Variable @@ -53,7 +53,7 @@ Precision is determined by an internal variable in decimal digits. Valid numbers are in the range 1 to 1000. Higher values make for better precision at the expense of performance of arithmetic operations. Default precision is 34~decimal digits -(ca. 113~bits in the mantissa). Exponent in the internal representation +(ca.~113~bits in the mantissa). Exponent in the internal representation is an integer in the range $[-9,999,999; +9,999,999]$. All arithmetic operations are done in software using the MPFR library~\cite{lib:mpfr} and are usually orders of magnitude slower than in \texttt{double} mode. diff --git a/Master/texmf-dist/doc/metapost/base/source-manual/mpman-app-refman.tex b/Master/texmf-dist/doc/metapost/base/source-manual/mpman-app-refman.tex index 7d301c3ce09..3581ffdd8e3 100644 --- a/Master/texmf-dist/doc/metapost/base/source-manual/mpman-app-refman.tex +++ b/Master/texmf-dist/doc/metapost/base/source-manual/mpman-app-refman.tex @@ -472,7 +472,7 @@ $$\begin{tabular}{|l|l|l|r|l|} \pl\tt \verb|thelabel|& suffix, string, pair& picture& \pageref{Dthelab}& Text positioned as if to label a point\\\hline \pl\tt \verb|z|& suffix& pair& \pageref{Dzconv}& - The pair ${\tt x}\descr{suffix},{\tt y}\descr{suffix})$\\\hline + The pair $({\tt x}\descr{suffix},{\tt y}\descr{suffix})$\\\hline \end{tabular} $$ \index{min?\texttt{min}}\index{max?\texttt{max}}% diff --git a/Master/texmf-dist/doc/metapost/base/source-manual/mpman.tex b/Master/texmf-dist/doc/metapost/base/source-manual/mpman.tex index ec77468753f..9df1bc3dba3 100644 --- a/Master/texmf-dist/doc/metapost/base/source-manual/mpman.tex +++ b/Master/texmf-dist/doc/metapost/base/source-manual/mpman.tex @@ -1,4 +1,4 @@ -% $Id: mpman.tex 2139 2018-02-19 14:38:47Z luigi.scarso@gmail.com $ +% $Id: mpman.tex 2155 2019-06-02 09:39:55Z luigi.scarso@gmail.com $ % MetaPost manual, by John Hobby. License at end. \listfiles \RequirePackage{ifpdf} @@ -12,8 +12,8 @@ \fi \documentclass{article} % article is NOT the original style \usepackage[nofancy]{svninfo}% Access VCS information. -\svnInfo $Id: mpman.tex 2140 2019-06-01 14:38:47Z luigi.scarso@gmail.com $ -%\svnInfo $Id: mpman.tex 2139 2018-02-19 14:38:47Z luigi.scarso@gmail.com $ +\svnInfo $Id: mpman.tex 2155 2019-06-02 09:39:55Z luigi.scarso@gmail.com $ +%\svnInfo $Id: mpman.tex 2155 2019-06-02 09:39:55Z luigi.scarso@gmail.com $ \newcommand*{\mpversion}{2.00} \usepackage[T1]{fontenc} @@ -135,7 +135,7 @@ MetaPost is a programming language much like Knuth's \MF\footnote{\MF\ is a trademark of Addison Wesley Publishing company.}\index{metafont?\MF}~\cite{kn:c} except that it outputs -either vector graphics in the Postscript or SVG formats or bitmap +either vector graphics in the PostScript or SVG formats or bitmap graphics in the PNG format. Borrowed from \MF\ are the basic tools for creating and manipulating pictures. These include numbers, coordinate pairs, cubic splines, affine transformations, text strings, and boolean @@ -5724,7 +5724,7 @@ documents with selected applications. MetaPost graphics in the PostScript\index{PostScript} format can be easily integrated into documents prepared with \TeX\ and friends. -MetaPost's PostScript output is a low-featured dialect of the Postscript +MetaPost's PostScript output is a low-featured dialect of the PostScript language, called \emph{purified EPS}\index{EPS!purified}, which can be converted into the Portable Document Format (PDF\index{PDF}) language on-the-fly. For that reason, external MetaPost graphics can be used on |