texlive[53371] Master/texmf-dist: tasks (11jan20)

commits+karl at tug.org commits+karl at tug.org
Sat Jan 11 23:12:57 CET 2020


Revision: 53371
          http://tug.org/svn/texlive?view=revision&revision=53371
Author:   karl
Date:     2020-01-11 23:12:57 +0100 (Sat, 11 Jan 2020)
Log Message:
-----------
tasks (11jan20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/tasks/README
    trunk/Master/texmf-dist/doc/latex/tasks/tasks_en.pdf
    trunk/Master/texmf-dist/doc/latex/tasks/tasks_en.tex
    trunk/Master/texmf-dist/tex/latex/tasks/tasks.cfg
    trunk/Master/texmf-dist/tex/latex/tasks/tasks.sty

Modified: trunk/Master/texmf-dist/doc/latex/tasks/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tasks/README	2020-01-11 22:12:45 UTC (rev 53370)
+++ trunk/Master/texmf-dist/doc/latex/tasks/README	2020-01-11 22:12:57 UTC (rev 53371)
@@ -1,5 +1,5 @@
 --------------------------------------------------------------------------
-the TASKS package v1.1 2019/11/03
+the TASKS package v1.1a 2020/01/11
 
   horizontally columned lists
 
@@ -8,7 +8,7 @@
 Web:    https://github.com/cgnieder/tasks/
 E-Mail: contact at mychemistry.eu
 --------------------------------------------------------------------------
-Copyright 2013--2019 Clemens Niederberger
+Copyright 2013--2020 Clemens Niederberger
 
 This work may be distributed and/or modified under the
 conditions of the LaTeX Project Public License, either version 1.3

Modified: trunk/Master/texmf-dist/doc/latex/tasks/tasks_en.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tasks/tasks_en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tasks/tasks_en.tex	2020-01-11 22:12:45 UTC (rev 53370)
+++ trunk/Master/texmf-dist/doc/latex/tasks/tasks_en.tex	2020-01-11 22:12:57 UTC (rev 53371)
@@ -8,7 +8,7 @@
 % Web:    https://github.com/cgnieder/tasks/
 % E-Mail: contact at mychemistry.eu
 % --------------------------------------------------------------------------
-% Copyright 2013--2019 Clemens Niederberger
+% Copyright 2013--2020 Clemens Niederberger
 % 
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either version 1.3
@@ -270,8 +270,9 @@
      Choose the instance to be used.  Read more on this in
      section~\ref{sec:tasks}.
   \keyval{label-format}{code}\Default
-    \changedversion{0.9}Can be used to apply a formatting like, \eg,
-    \cs*{bfseries} to the labels.
+    \changedversion{1.1a}Can be used to apply a formatting like, \eg,
+    \cs*{bfseries} to the labels.  This may be code accepting the item as
+    mandatory argument.
   \keyval{label}{code}\Default{\cs*{alph}\code{*)}}
     \changedversion{1.0}Sets a custom label.  The \code{*} is replaced by
     \Marg{task}.  This is heavily inspired by
@@ -283,7 +284,7 @@
     item.
   \keyval{item-format}{code}\Default
     \sinceversion{0.11}Can be used to apply a formatting like, \eg,
-    \cs*{bfseries} to the items. This may be a macro accepting the item as
+    \cs*{bfseries} to the items. This may be code accepting the item as
     mandatory argument.
   \keyval{item-indent}{dim}\Default{2.5em}
     \sinceversion{0.9a}The indent of an item, \ie, the horizontal space
@@ -341,7 +342,7 @@
     \draw[<->] (0,-.5) --node[below]{item indent} (2,-.5) ;
     \draw[<->] (2,-.5) --node[below]{item width} (10,-.5) ;
     \draw[<->] (labeledge1) ++(0,1) --node[above]{label width} ++(-1,0) ;
-    \draw[<->] (labeledge1) --node[above]{item offset} ++(.5,0) ;
+    \draw[<->] (labeledge1) --node[above]{label offset} ++(.5,0) ;
   \end{tikzpicture}
   \caption{A visual representation of the used lengths.}
   \label{fig:lengths}

Modified: trunk/Master/texmf-dist/tex/latex/tasks/tasks.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tasks/tasks.cfg	2020-01-11 22:12:45 UTC (rev 53370)
+++ trunk/Master/texmf-dist/tex/latex/tasks/tasks.cfg	2020-01-11 22:12:57 UTC (rev 53371)
@@ -8,7 +8,7 @@
 % Web:    https://github.com/cgnieder/tasks/
 % E-Mail: contact at mychemistry.eu
 % --------------------------------------------------------------------------
-% Copyright 2013--2019 Clemens Niederberger
+% Copyright 2013--2020 Clemens Niederberger
 % 
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either version 1.3

Modified: trunk/Master/texmf-dist/tex/latex/tasks/tasks.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tasks/tasks.sty	2020-01-11 22:12:45 UTC (rev 53370)
+++ trunk/Master/texmf-dist/tex/latex/tasks/tasks.sty	2020-01-11 22:12:57 UTC (rev 53371)
@@ -8,7 +8,7 @@
 % Web:    https://github.com/cgnieder/tasks/
 % E-Mail: contact at mychemistry.eu
 % --------------------------------------------------------------------------
-% Copyright 2013--2019 Clemens Niederberger
+% Copyright 2013--2020 Clemens Niederberger
 % 
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either version 1.3
@@ -28,10 +28,10 @@
 \RequirePackage {expl3,xparse,xtemplate}
 \ExplSyntaxOn
 
-\tl_const:Nn \c_tasks_date_tl                 {2019/11/03}
+\tl_const:Nn \c_tasks_date_tl                 {2020/01/11}
 \tl_const:Nn \c_tasks_version_major_number_tl {1}
 \tl_const:Nn \c_tasks_version_minor_number_tl {1}
-\tl_const:Nn \c_tasks_version_subrelease_tl   {}
+\tl_const:Nn \c_tasks_version_subrelease_tl   {a}
 \tl_const:Nx \c_tasks_version_number_tl
   {
     \c_tasks_version_major_number_tl .
@@ -63,13 +63,13 @@
 \msg_new:nnn {tasks} {width-too-small}
   {
     The~ width~ of~ `#1'~ is~ too~ small~ \msg_line_context: .~
-    Please~ set~ it~ at~ least~ to~ #2.
+    Please~ set~ it~ at~ least~ to~ #2 pt.
   }
 
 \msg_new:nnn {tasks} {no-item}
   {
     You've~ placed~ `#1'~ before~ the~ first~ #2~ \msg_line_context: .~
-    I~ will~ through~ it~ away~ and~ ignore~ it~ for~ the~ rest~ of~ the~
+    I~ will~ throw~ it~ away~ and~ ignore~ it~ for~ the~ rest~ of~ the~
     list.
   }
 
@@ -530,7 +530,7 @@
       {
         \__tasks_read_item:www ##1 \q_stop
         \refstepcounter {task}
-        \tl_set:NV \l__tasks_label_tl \l__tasks_tmpa_tl
+        \tl_set:Nx \l__tasks_label_tl { { \exp_not:V \l__tasks_tmpa_tl } }
         \bool_if:NTF \l__tasks_custom_label_format_bool
           { \tl_put_left:NV \l__tasks_label_tl \l__tasks_custom_label_format_tl }
           { \tl_put_left:NV \l__tasks_label_tl \l__tasks_label_format_tl }
@@ -602,9 +602,12 @@
   
 \cs_new_protected:Npn \__tasks_read_item_aux_ii:ww [#1]#2 \q_stop
   {
-    \tl_set:Nn \l__tasks_tmp_label_tl {#1}
-    \tl_if_eq:nnF {#1} { $tasks$default$label$ }
-      { \tl_put_left:NV \l__tasks_tmp_label_tl \l__tasks_label_format_tl }
+    \tl_if_eq:nnTF {#1} {$tasks$default$label$}
+      { \tl_set:Nn \l__tasks_tmp_label_tl {#1} }
+      {
+        \tl_set:Nn \l__tasks_tmp_label_tl {{#1}}
+        \tl_put_left:NV \l__tasks_tmp_label_tl \l__tasks_label_format_tl
+      }
     \tl_set:Nx \l__tasks_item_tl { \tl_trim_spaces:n {#2} }
   }
 
@@ -825,3 +828,5 @@
 2019/11/03 v1.1   - fix typo
                   - make \settasks' argument long
                   - new option `start'
+2020/01/11 v1.2   - allow `label-format' to end with command that needs an
+                    argument



More information about the tex-live-commits mailing list