[latex3-commits] [git/LaTeX3-latex3-latex3] master: A second draw example [ci skip] (b0468b0)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Feb 23 15:56:24 CET 2018
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/b0468b0f98287b6e06de31aaa0d82b3df000052c
>---------------------------------------------------------------
commit b0468b0f98287b6e06de31aaa0d82b3df000052c
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Feb 23 14:56:24 2018 +0000
A second draw example [ci skip]
These might look strangely familiar ...
Hopefully I've got the width about right now.
>---------------------------------------------------------------
b0468b0f98287b6e06de31aaa0d82b3df000052c
l3experimental/l3draw/l3draw.dtx | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/l3experimental/l3draw/l3draw.dtx b/l3experimental/l3draw/l3draw.dtx
index 1ac9038..7dbd340 100644
--- a/l3experimental/l3draw/l3draw.dtx
+++ b/l3experimental/l3draw/l3draw.dtx
@@ -68,7 +68,7 @@
\lst at EndWriteFile
\egroup
\begin{center}
- \ifdim\wd\demo at box > 0.67\linewidth
+ \ifdim\wd\demo at box > 0.75\linewidth
\begin{minipage}{\linewidth}
\usebox\demo at box
\end{minipage}%
@@ -77,11 +77,11 @@
\demo at input
\end{minipage}
\else
- \begin{minipage}{0.33\linewidth}
+ \begin{minipage}{0.25\linewidth}
\demo at input
\end{minipage}%
\hfil
- \begin{minipage}{0.67\linewidth}
+ \begin{minipage}{0.75\linewidth}
\usebox\demo at box
\end{minipage}%
\fi
@@ -186,6 +186,22 @@
% concepts such as the termination of lines.
% \end{function}
%
+% \begin{demo}
+% \draw_begin:
+% \draw_scope_begin:
+% \group_begin:
+% \draw_linewidth:n { 2pt }
+% \draw_path_rectangle:nn { 0 , 0 } { 2ex , 2ex }
+% \draw_path_use:n { stroke }
+% \group_end:
+% \draw_path_rectangle:nn { 3ex , 0ex } { 2ex , 2ex }
+% \draw_path_use:n { stroke }
+% \draw_scope_end:
+% \draw_path_rectangle:nn { 6ex , 0ex } { 2ex , 2ex }
+% \draw_path_use:n { stroke }
+% \draw_end:
+% \end{demo}
+%
% \begin{function}{\g_draw_linewidth_default_dim}
% The default value of the linewidth for stokes, set at the start
% of every drawing (\cs{draw_begin:}).
More information about the latex3-commits
mailing list