[latex3-commits] [git/LaTeX3-latex3-latex3] master: 'scope' better than 'suspend' (I hope) (428a5d2)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Feb 27 08:04:51 CET 2018


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

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

commit 428a5d266e3983aed09c5b2c08bdf0cb873dc06f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Feb 27 07:04:51 2018 +0000

    'scope' better than 'suspend' (I hope)


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

428a5d266e3983aed09c5b2c08bdf0cb873dc06f
 l3experimental/l3draw/l3draw-scopes.dtx |    6 +++---
 l3experimental/l3draw/l3draw.dtx        |   35 ++++++++++++++++---------------
 2 files changed, 21 insertions(+), 20 deletions(-)

diff --git a/l3experimental/l3draw/l3draw-scopes.dtx b/l3experimental/l3draw/l3draw-scopes.dtx
index 19997fd..5b3cc1f 100644
--- a/l3experimental/l3draw/l3draw-scopes.dtx
+++ b/l3experimental/l3draw/l3draw-scopes.dtx
@@ -218,11 +218,11 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{macro}{\draw_suspend_bb_begin:, \draw_suspend_bb_end:}
+% \begin{macro}{\draw_scope_bb_begin:, \draw_scope_bb_end:}
 %   The bounding box is simple: a straight group-based save and restore
 %   approach.
 %    \begin{macrocode}
-\cs_new_protected:Npn \draw_suspend_bb_begin:
+\cs_new_protected:Npn \draw_scope_bb_begin:
   {
     \group_begin:
       \dim_set_eq:NN \l_@@_xmax_dim \g_@@_xmax_dim
@@ -231,7 +231,7 @@
       \dim_set_eq:NN \l_@@_ymin_dim \g_@@_ymin_dim
       \@@_reset_bb:
   }
-\cs_new_protected:Npn \draw_suspend_bb_end:
+\cs_new_protected:Npn \draw_scope_bb_end:
   {
       \dim_gset_eq:NN \g_@@_xmax_dim \l_@@_xmax_dim
       \dim_gset_eq:NN \g_@@_xmin_dim \l_@@_xmin_dim
diff --git a/l3experimental/l3draw/l3draw.dtx b/l3experimental/l3draw/l3draw.dtx
index 060f762..141d5be 100644
--- a/l3experimental/l3draw/l3draw.dtx
+++ b/l3experimental/l3draw/l3draw.dtx
@@ -274,6 +274,24 @@
 %   PDF and PostScript manuals. The \meta{factor} is an \meta{fp expr}.
 % \end{function}
 %
+%
+% \subsection{Scoping drawing elements}
+%
+% Scoping drawing elements is necessary to allowing nesting of subparts.
+% These features have specific use requirements: the preconditions must be
+% met.
+%
+% \begin{function}{\draw_scope_bb_begin:, \draw_scope_bb_end:}
+%   \begin{syntax}
+%     \cs{draw_scope_bb_begin:}
+%     ...
+%     \cs{draw_scope_bb_begin:}
+%   \end{syntax}
+%   Suspends (and saves) calculation of the bounding box of a drawing,
+%   resetting the tracking data and allowing the bounding box of the
+%   nested content to be calculated.
+% \end{function}
+%
 % \subsection{Points}
 %
 % Functions supporting the calculation of points (co-ordinates) are expandable
@@ -966,23 +984,6 @@
 %   This assignment is local.
 % \end{function}
 %
-% \subsection{Suspending drawing elements}
-%
-% Suspending drawing elements is necessary to allowing nesting of subparts.
-% These features have specific use requirements: the preconditions must be
-% met.
-%
-% \begin{function}{\draw_suspend_bb_begin:, \draw_suspend_bb_end:}
-%   \begin{syntax}
-%     \cs{draw_suspend_bb_begin:}
-%     ...
-%     \cs{draw_suspend_bb_begin:}
-%   \end{syntax}
-%   Suspends (and saves) calculation of the bounding box of a drawing,
-%   resetting the tracking data and allowing the bounding box of the
-%   nested content to be tracked.
-% \end{function}
-%
 % \end{documentation}
 %
 % \begin{implementation}





More information about the latex3-commits mailing list