texlive[58514] Master/texmf-dist: lua-ul (18mar21)
commits+karl at tug.org
commits+karl at tug.org
Thu Mar 18 22:10:53 CET 2021
Revision: 58514
http://tug.org/svn/texlive?view=revision&revision=58514
Author: karl
Date: 2021-03-18 22:10:53 +0100 (Thu, 18 Mar 2021)
Log Message:
-----------
lua-ul (18mar21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/lualatex/lua-ul/lua-ul.pdf
trunk/Master/texmf-dist/source/lualatex/lua-ul/lua-ul.dtx
trunk/Master/texmf-dist/tex/lualatex/lua-ul/docstrip-luacode.sty
trunk/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty
Modified: trunk/Master/texmf-dist/doc/lualatex/lua-ul/lua-ul.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/lualatex/lua-ul/lua-ul.dtx
===================================================================
--- trunk/Master/texmf-dist/source/lualatex/lua-ul/lua-ul.dtx 2021-03-18 21:10:08 UTC (rev 58513)
+++ trunk/Master/texmf-dist/source/lualatex/lua-ul/lua-ul.dtx 2021-03-18 21:10:53 UTC (rev 58514)
@@ -20,6 +20,7 @@
%</gobble>
\input docstrip.tex
\keepsilent
+\askforoverwritefalse
\let\MetaPrefix\relax
\preamble
\endpreamble
@@ -62,7 +63,7 @@
% \duck
% \end{tikzpicture}§
% }}
-% \NewDocumentCommand\underDuck{m}{{\beginUnderDuck#1}}
+% \NewDocumentCommand\underDuck{+m}{{\beginUnderDuck#1}}
% \newunderlinetype\beginUnderWavy[\number\dimexpr1ex]{\cleaders\hbox{§
% \setlength\unitlength{.3ex}§
% \begin{picture}(4,0)(0,1)
@@ -72,11 +73,11 @@
% \qbezier(2,0)(3,-1)(4,0)
% \end{picture}§
% }}
-% \NewDocumentCommand\underWavy{m}{{\beginUnderWavy#1}}
+% \NewDocumentCommand\underWavy{+m}{{\beginUnderWavy#1}}
% \newunderlinetype\beginStrikeThough{\leaders\hbox{§
% \normalfont\bfseries/§
% }}
-% \NewDocumentCommand\StrikeThough{m}{{\beginStrikeThough#1}}
+% \NewDocumentCommand\StrikeThough{+m}{{\beginStrikeThough#1}}
%
% \newcommand\Luaul{Lua-UL}
% \newcommand\luaul{Lua-UL}
@@ -180,7 +181,7 @@
% \duck
% \end{tikzpicture}%
% }}
-% \NewDocumentCommand\underDuck{m}{{\beginUnderDuck#1}}
+% \NewDocumentCommand\underDuck{+m}{{\beginUnderDuck#1}}
% \newunderlinetype\beginUnderWavy[\number\dimexpr1ex]{\cleaders\hbox{%
% \setlength\unitlength{.3ex}%
% \begin{picture}(4,0)(0,1)
@@ -190,11 +191,11 @@
% \qbezier(2,0)(3,-1)(4,0)
% \end{picture}%
% }}
-% \NewDocumentCommand\underWavy{m}{{\beginUnderWavy#1}}
+% \NewDocumentCommand\underWavy{+m}{{\beginUnderWavy#1}}
% \newunderlinetype\beginStrikeThough{\leaders\hbox{%
% \normalfont\bfseries/%
% }}
-% \NewDocumentCommand\StrikeThough{m}{{\beginStrikeThough#1}}
+% \NewDocumentCommand\StrikeThough{+m}{{\beginStrikeThough#1}}
% \end{verbatim}
%
% Here \verb+\underWavy+ uses a custom context because it doesn't change depending on the current font color.
@@ -816,7 +817,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage
{lua-ul}
- [2021/02/02 v0.1.1 Underlining and related functionality for LuaTeX]
+ [2021/02/15 v0.1.2 Underlining and related functionality for LuaTeX]
% \fi
% Only \LuaLaTeX{} is supported.
@@ -910,8 +911,9 @@
\edef\luaul at highlight@color{\IfValueTF{#1}{[#1]{#2}}{#2}}%
}
% \end{macrocode}
-% \changes{0.1.1}{2020-03-15}{Use \texttt{xparse} for all user commands}
+% \changes{0.1.1}{2021-02-02}{Use \texttt{xparse} for all user commands}
% \changes{0.1.1}{2021-02-02}{Optionally color \texttt{\protect\string\protect\strikeThrough}}
+% \changes{0.1.2}{2021-02-15}{Allow \texttt{long} arguments (again)}
% The sizes for the predefined commands are stolen from the \enquote{soul}
% default values.
% \begin{macrocode}
@@ -918,7 +920,7 @@
\newunderlinetype\@underLine{%
\leaders\vrule height -.65ex depth .75ex
}
- \NewDocumentCommand\underLine{m}{{\@underLine#1}}
+ \NewDocumentCommand\underLine{+m}{{\@underLine#1}}
\newunderlinetype\@strikeThrough{%
\leaders\vrule height .55ex depth -.45ex
@@ -928,7 +930,7 @@
\luaul at applycolor
\leaders\vrule height .55ex depth -.45ex
}
- \NewDocumentCommand\strikeThrough{om}{{%
+ \NewDocumentCommand\strikeThrough{o+m}{{%
\IfValueTF{#1}{%
\luaul at setcolor{#1}%
\colored at strikeThrough
@@ -941,7 +943,7 @@
\luaul at applycolor
\leaders\vrule height 1.75ex depth .75ex
}
- \NewDocumentCommand\highLight{O{\luaul at highlight@color}m}{{%
+ \NewDocumentCommand\highLight{O{\luaul at highlight@color}+m}{{%
\luaul at setcolor{#1}%
\@highLight#2%
}}
Modified: trunk/Master/texmf-dist/tex/lualatex/lua-ul/docstrip-luacode.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/lua-ul/docstrip-luacode.sty 2021-03-18 21:10:08 UTC (rev 58513)
+++ trunk/Master/texmf-dist/tex/lualatex/lua-ul/docstrip-luacode.sty 2021-03-18 21:10:53 UTC (rev 58514)
@@ -13,7 +13,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage
{docstrip-luacode}
- [2021/02/02 v0.1.1 Directly execute Lua code from DocStrip files]
+ [2021/02/15 v0.1.2 Directly execute Lua code from DocStrip files]
\expanded{%
\def\noexpand\docstrip at luacode@argscanner#1\directlua{
tex.sprint(\the\catcodetable at string, "\string\\end{docstrip-luacode}")
Modified: trunk/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty 2021-03-18 21:10:08 UTC (rev 58513)
+++ trunk/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty 2021-03-18 21:10:53 UTC (rev 58514)
@@ -20,7 +20,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage
{lua-ul}
- [2021/02/02 v0.1.1 Underlining and related functionality for LuaTeX]
+ [2021/02/15 v0.1.2 Underlining and related functionality for LuaTeX]
\ifx\directlua\undefined
\PackageError{lua-ul}{LuaLaTeX required}%
@@ -84,7 +84,7 @@
\newunderlinetype\@underLine{%
\leaders\vrule height -.65ex depth .75ex
}
- \NewDocumentCommand\underLine{m}{{\@underLine#1}}
+ \NewDocumentCommand\underLine{+m}{{\@underLine#1}}
\newunderlinetype\@strikeThrough{%
\leaders\vrule height .55ex depth -.45ex
@@ -94,7 +94,7 @@
\luaul at applycolor
\leaders\vrule height .55ex depth -.45ex
}
- \NewDocumentCommand\strikeThrough{om}{{%
+ \NewDocumentCommand\strikeThrough{o+m}{{%
\IfValueTF{#1}{%
\luaul at setcolor{#1}%
\colored at strikeThrough
@@ -107,7 +107,7 @@
\luaul at applycolor
\leaders\vrule height 1.75ex depth .75ex
}
- \NewDocumentCommand\highLight{O{\luaul at highlight@color}m}{{%
+ \NewDocumentCommand\highLight{O{\luaul at highlight@color}+m}{{%
\luaul at setcolor{#1}%
\@highLight#2%
}}
More information about the tex-live-commits
mailing list.