[latex3-commits] [git/LaTeX3-latex3-latex3] master: Drawing ID (db65076)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Feb 22 23:54:39 CET 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/db6507691f4c57c1aa818544d52559492a63aedb

>---------------------------------------------------------------

commit db6507691f4c57c1aa818544d52559492a63aedb
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Feb 22 22:54:39 2018 +0000

    Drawing ID
    
    Internal for the present


>---------------------------------------------------------------

db6507691f4c57c1aa818544d52559492a63aedb
 l3experimental/l3draw/l3draw-scopes.dtx       |    8 ++++++++
 l3experimental/l3draw/testfiles/m3draw000.tlg |    1 +
 2 files changed, 9 insertions(+)

diff --git a/l3experimental/l3draw/l3draw-scopes.dtx b/l3experimental/l3draw/l3draw-scopes.dtx
index 59a3435..49fce56 100644
--- a/l3experimental/l3draw/l3draw-scopes.dtx
+++ b/l3experimental/l3draw/l3draw-scopes.dtx
@@ -87,6 +87,13 @@
 %    \end{macrocode}
 % \end{variable}
 %
+% \begin{variable}{\g_@@_id_int}
+%   The drawing number.
+%    \begin{macrocode}
+\dim_new:N \g_@@_id_int
+%    \end{macrocode}
+% \end{variable}
+%
 % \begin{macro}{\draw_begin:, \draw_end:}
 %   Drawings are created by setting them into a box, then adjusting the box
 %   before inserting into the surroundings. At present the content is simply
@@ -101,6 +108,7 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \draw_begin:
   {
+    \int_gincr:N \g_@@_id_int
     \vbox_set:Nw \l_@@_main_box
       \driver_draw_begin:
       \dim_gset:Nn \g_@@_xmax_dim { -\c_max_dim }
diff --git a/l3experimental/l3draw/testfiles/m3draw000.tlg b/l3experimental/l3draw/testfiles/m3draw000.tlg
index 6141e5f..2172379 100644
--- a/l3experimental/l3draw/testfiles/m3draw000.tlg
+++ b/l3experimental/l3draw/testfiles/m3draw000.tlg
@@ -23,6 +23,7 @@ Author: Joseph Wright
 \g__draw_ymax_dim=\dimen...
 \g__draw_ymin_dim=\dimen...
 \l__draw_main_box=\box...
+\g__draw_id_int=\dimen...
 \l__draw_linewidth_dim=\dimen...
 \g__draw_softpath_buffer_a_int=\count...
 \g__draw_softpath_buffer_b_int=\count...





More information about the latex3-commits mailing list