[latex3-commits] [l3svn] r6694 - Add comment concerning \csstring (closes #311)

noreply at latex-project.org noreply at latex-project.org
Thu Sep 1 17:36:08 CEST 2016


Author: bruno
Date: 2016-09-01 17:36:07 +0200 (Thu, 01 Sep 2016)
New Revision: 6694

Modified:
   trunk/l3kernel/l3basics.dtx
Log:
Add comment concerning \csstring (closes #311)

The consensus is to wait and see if LuaTeX's primitives
stick around.  Besides, as Joseph feared there is some
engine variation for the empty csname (LuaTeX's \csstring
does better than our \cs_to_str:N in my view).


Modified: trunk/l3kernel/l3basics.dtx
===================================================================
--- trunk/l3kernel/l3basics.dtx	2016-08-20 08:56:53 UTC (rev 6693)
+++ trunk/l3kernel/l3basics.dtx	2016-09-01 15:36:07 UTC (rev 6694)
@@ -2093,6 +2093,10 @@
 \cs_set:Npn \__cs_to_str:w #1 \__cs_to_str:N
   { - \__int_value:w \fi: \exp_after:wN \c_zero }
 %    \end{macrocode}
+%   If speed is a concern we could use \tn{csstring} in \LuaTeX{}.  For
+%   the empty csname that primitive gives an empty result while the
+%   current \cs{cs_to_str:N} gives incorrect results in all engines
+%   (this is impossible to fix without huge performance hit).
 % \end{macro}
 % \end{macro}
 %



More information about the latex3-commits mailing list