Skip to content

Commit

Permalink
mpPre and mpPost moved outside main picture, to allow for file inculs…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
jemmybutton committed Feb 1, 2022
1 parent d3254ae commit 99b5b76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions byrne-latex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions byrne.sty
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ end
\begin{mplibcode}[\currentInstance]%
picture instanceMainPicture;
input byrne;
\mpPre
instanceMainPicture := image(
\mpPre
startMainPictureMode;
projectionAngle := (0, 0, 0);
linecap := butt;
Expand All @@ -58,8 +58,8 @@ end
generateAngleSynonyms;
generateLineSynonyms;
stopMainPictureMode;
\mpPost
);
\mpPost
\end{mplibcode}%
}\global\addToUndefineList{#2}%
}
Expand Down

0 comments on commit 99b5b76

Please sign in to comment.