diff --git a/byrne-latex.tex b/byrne-latex.tex index 5d34f58..70999d5 100644 --- a/byrne-latex.tex +++ b/byrne-latex.tex @@ -336,12 +336,12 @@ \subsubsection{byNamedLineSeq(lineShift)(LINES\_LIST)}\label{byNamedLineSeq} Draws lines joined in sequence. Line joints look like this:\drawCurrentPicture. Returns a picture of the lines. - \texttt{lineShift}~— how much the lines are shifted perpendicular lines' axis. \texttt{$1$} is for one regular line thickness to one side% + \texttt{lineShift}~— how much the lines are shifted perpendicular lines' axis. \texttt{1} is for one regular line thickness to one side% \drawFromCurrentPicture[bottom]{ draw byNamedLineSeq(1)(BC,AB) scaled 2; draw (A--B--C) scaled 2 withpen pencircle scaled 1/2pt; }, - \texttt{$-1$} is for one regular line thickness to the other side% + \texttt{-1} is for one regular line thickness to the other side% \drawFromCurrentPicture[bottom]{ draw byNamedLineSeq(-1)(BC,AB) scaled 2; draw (A--B--C) scaled 2 withpen pencircle scaled 1/2pt; @@ -470,11 +470,11 @@ \subsubsection{byArcDefineBE.ArcName(O, begin, end, radius, color, dashed, thick \texttt{thick}~— is arc line thick. \texttt{0} for regular line and \texttt{1} for thin line \ref{lineWidth}. - \texttt{shift}~— how much arc line is shifted. \texttt{$1$} is for one regular line thickness outwards + \texttt{shift}~— how much arc line is shifted. \texttt{1} is for one regular line thickness outwards \drawFromCurrentPicture{ draw byArcBE(A, 1/2, 7/2, 1/6cm, byyellow, 0, 0, 1, 0) scaled 2; draw (subpath (1/2, 7/2) of (fullcircle scaled 4/6cm)) withpen pencircle scaled 1/2pt; - }, \texttt{$-1$} is for one regular line thickness inwards + }, \texttt{-1} is for one regular line thickness inwards \drawFromCurrentPicture{ draw byArcBE(A, 1/2, 7/2, 1/6cm, byyellow, 0, 0, -1, 0) scaled 2; draw (subpath (1/2, 7/2) of (fullcircle scaled 4/6cm)) withpen pencircle scaled 1/2pt; @@ -540,12 +540,12 @@ \subsubsection{byCircleDefineFree.CircleName(o, radius, color, dashed, thick, sh \texttt{thick}~— is circle line thick. \texttt{0} for regular line and \texttt{1} for thin line \ref{lineWidth}. - \texttt{shift}~— how much circle line is shifted. \texttt{$1$} is for one regular line thickness outwards + \texttt{shift}~— how much circle line is shifted. \texttt{1} is for one regular line thickness outwards \drawFromCurrentPicture{ byCircleDefineFree((0,0), 1/8cm, byyellow, 0, 0, 1); draw byNamedCircle(aCircle) scaled 2; draw fullcircle scaled 1/2cm; - }, \texttt{$-1$} is for one regular line thickness inwards + }, \texttt{-1} is for one regular line thickness inwards \drawFromCurrentPicture{ byCircleDefineFree((0,0), 1/8cm, byyellow, 0, 0, -1); draw byNamedCircle(aCircle) scaled 2; diff --git a/byrne.sty b/byrne.sty index 473f091..c7c9666 100644 --- a/byrne.sty +++ b/byrne.sty @@ -47,8 +47,8 @@ end \begin{mplibcode}[\currentInstance]% picture instanceMainPicture; input byrne; + \mpPre instanceMainPicture := image( - \mpPre startMainPictureMode; projectionAngle := (0, 0, 0); linecap := butt; @@ -58,8 +58,8 @@ end generateAngleSynonyms; generateLineSynonyms; stopMainPictureMode; - \mpPost ); + \mpPost \end{mplibcode}% }\global\addToUndefineList{#2}% }