texlive[46676] Master/texmf-dist/doc/metapost/base: MetaPost 2.0 rc2:
commits+lscarso at tug.org
commits+lscarso at tug.org
Mon Feb 19 16:31:53 CET 2018
Revision: 46676
http://tug.org/svn/texlive?view=revision&revision=46676
Author: lscarso
Date: 2018-02-19 16:31:52 +0100 (Mon, 19 Feb 2018)
Log Message:
-----------
MetaPost 2.0 rc2: updated doc
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/metapost/base/mpboxes.pdf
trunk/Master/texmf-dist/doc/metapost/base/mpgraph.pdf
trunk/Master/texmf-dist/doc/metapost/base/mplibapi.pdf
trunk/Master/texmf-dist/doc/metapost/base/mpman.pdf
trunk/Master/texmf-dist/doc/metapost/base/source-manual/TODO
trunk/Master/texmf-dist/doc/metapost/base/source-manual/mplibapi.tex
trunk/Master/texmf-dist/doc/metapost/base/source-manual/mpman.mp
trunk/Master/texmf-dist/doc/metapost/base/source-manual/mpman.tex
Modified: trunk/Master/texmf-dist/doc/metapost/base/mpboxes.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/metapost/base/mpgraph.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/metapost/base/mplibapi.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/metapost/base/mpman.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/metapost/base/source-manual/TODO
===================================================================
--- trunk/Master/texmf-dist/doc/metapost/base/source-manual/TODO 2018-02-19 15:29:43 UTC (rev 46675)
+++ trunk/Master/texmf-dist/doc/metapost/base/source-manual/TODO 2018-02-19 15:31:52 UTC (rev 46676)
@@ -34,8 +34,6 @@
* Describe prescriptpart/postscriptpart.
-* Describe envelope primitive/macro.
-
* Describe penrazor, penspeck.
* Describe drawdot withpen counter-intuitivity. Describe recent change
Modified: trunk/Master/texmf-dist/doc/metapost/base/source-manual/mplibapi.tex
===================================================================
--- trunk/Master/texmf-dist/doc/metapost/base/source-manual/mplibapi.tex 2018-02-19 15:29:43 UTC (rev 46675)
+++ trunk/Master/texmf-dist/doc/metapost/base/source-manual/mplibapi.tex 2018-02-19 15:31:52 UTC (rev 46676)
@@ -46,9 +46,9 @@
\StartTitlePage
\centerline{\definedfont[TitleFont at 50pt]{\MPLIB}}
\blank[3*line]
-\centerline{\definedfont[SubTitleFont at 24pt]{API documentation, version 2.000}}
+\centerline{\definedfont[SubTitleFont at 24pt]{API documentation, version 2.00}}
\blank[3*line]
-\centerline{Taco Hoekwater, September 2012 -- Luigi Scarso, April 2017}
+\centerline{Taco Hoekwater, September 2012 -- Luigi Scarso, February 2018}
\StopTitlePage
\section{Table of contents}
Modified: trunk/Master/texmf-dist/doc/metapost/base/source-manual/mpman.mp
===================================================================
--- trunk/Master/texmf-dist/doc/metapost/base/source-manual/mpman.mp 2018-02-19 15:29:43 UTC (rev 46675)
+++ trunk/Master/texmf-dist/doc/metapost/base/source-manual/mpman.mp 2018-02-19 15:31:52 UTC (rev 46676)
@@ -417,7 +417,31 @@
draw fun;
endfig;
+beginfig(261);
+path p[] ;
+pen mypen ;
+pen mypenC;
+numeric L ;
+numeric S ;
+L:=10;
+Sa:=1;
+Sb:=2;
+Rot=32;
+p[-1] := ( (Sa*cosd(0),Sb*sind(0)) for i=1 upto L-1: -- (Sa*cosd(i/L*360), Sb*sind(i/L*360)) endfor -- cycle ) rotated Rot;
+mypen := makepen(p[-1]) ;
+mypenC:= (pencircle xscaled 2Sa yscaled 2Sb) rotated Rot;
+p0 := (0,0){down} .. {up} (100,0) ;
+p1 := envelope mypen of p0 ;
+draw p1 withcolor black withpen pencircle scaled 0.2pt ;
+draw p0 withcolor 0.8white withpen mypenC;
+for t=1 upto length(p1):
+ draw (point t of p1) withpen pencircle scaled 0.8pt;
+endfor;
+%currentpicture := currentpicture scaled 30 ;
+endfig;
+
+
beginfig(28);
path p[];
p1 = fullcircle scaled .6in;
Modified: trunk/Master/texmf-dist/doc/metapost/base/source-manual/mpman.tex
===================================================================
--- trunk/Master/texmf-dist/doc/metapost/base/source-manual/mpman.tex 2018-02-19 15:29:43 UTC (rev 46675)
+++ trunk/Master/texmf-dist/doc/metapost/base/source-manual/mpman.tex 2018-02-19 15:31:52 UTC (rev 46676)
@@ -1,4 +1,4 @@
-% $Id: mpman.tex 2133 2017-04-03 09:00:28 lscarso $
+% $Id: mpman.tex 2139 2018-02-19 14:38:47Z luigi.scarso at gmail.com $
% MetaPost manual, by John Hobby. License at end.
\listfiles
\RequirePackage{ifpdf}
@@ -12,9 +12,9 @@
\fi
\documentclass{article} % article is NOT the original style
\usepackage[nofancy]{svninfo}% Access VCS information.
-\svnInfo $Id: mpman.tex 2133 2017-04-03 09:00:28 lscarso $
-%\svnInfo $Id: mpman.tex 2059 2017-04-30 21:56:18Z karl $
-\newcommand*{\mpversion}{2.000}
+\svnInfo $Id: mpman.tex 2139 2018-02-19 14:38:47Z luigi.scarso at gmail.com $
+%\svnInfo $Id: mpman.tex 2139 2018-02-19 14:38:47Z luigi.scarso at gmail.com $
+\newcommand*{\mpversion}{2.00}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
@@ -113,7 +113,7 @@
\vskip3bp
\centerline{and the MetaPost development team}
\vskip20.8bp% actually 31.8bp (-11bp)
- \centerline{\large documented version: \mpversion\ (2.0rc1)}
+ \centerline{\large documented version: \mpversion\ (2.0rc2)}
\vskip3bp
\tracingall \centerline{\svnInfoMaxToday} \tracingnone
\vfil
@@ -2620,6 +2620,45 @@
gives the time~{\tt t} such that
$$ \hbox{\tt arclength subpath (0,t) of p} = {\tt a}. $$
+The operator {\tt
+ envelope}\index{envelope?\texttt{envelope}}\label{Denvelop} %
+returns the envelope of a path {\tt p} drawn with a polygonal pen,
+and returns an error if the pen is not polygonal.
+Figure~\ref{fig261} shows the envelope of an approximation of an elliptical pen.
+
+\begin{figure}[htp]
+$$ \begin{verbatim}
+beginfig(261);
+path p[] ;
+pen mypen ;
+pen mypenC;
+numeric L ;
+numeric S ;
+L:=10;
+Sa:=1;
+Sb:=2;
+Rot=32;
+p[-1] := ( (Sa*cosd(0),Sb*sind(0)) for i=1 upto L-1:
+ -- (Sa*cosd(i/L*360), Sb*sind(i/L*360)) endfor -- cycle ) rotated Rot;
+mypen := makepen(p[-1]) ;
+mypenC:= (pencircle xscaled 2Sa yscaled 2Sb) rotated Rot;
+p0 := (0,0){down} .. {up} (100,0) ;
+p1 := envelope mypen of p0 ;
+draw p1 withcolor black withpen pencircle scaled 0.2pt ;
+draw p0 withcolor 0.8white withpen mypenC;
+for t=1 upto length(p1):
+ draw (point t of p1) withpen pencircle scaled 0.8pt;
+endfor;
+endfig;
+\end{verbatim}
+\atop \includegraphics[width=0.9\textwidth]{mpman-261.mps}
+$$
+\caption{Example of envelope}
+\label{fig261}
+\end{figure}
+
+
+
\subsection{Affine Transformations}
\label{transsec}
\index{transform type}
More information about the tex-live-commits
mailing list