texlive[60772] Master/texmf-dist: soulpos (16oct21)

commits+karl at tug.org commits+karl at tug.org
Sat Oct 16 00:16:40 CEST 2021


Revision: 60772
          http://tug.org/svn/texlive?view=revision&revision=60772
Author:   karl
Date:     2021-10-16 00:16:39 +0200 (Sat, 16 Oct 2021)
Log Message:
-----------
soulpos (16oct21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/soulpos/README.md
    trunk/Master/texmf-dist/doc/latex/soulpos/soulpos.pdf
    trunk/Master/texmf-dist/doc/latex/soulpos/soulpos.tex
    trunk/Master/texmf-dist/tex/latex/soulpos/soulpos.sty

Modified: trunk/Master/texmf-dist/doc/latex/soulpos/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/soulpos/README.md	2021-10-15 22:16:18 UTC (rev 60771)
+++ trunk/Master/texmf-dist/doc/latex/soulpos/README.md	2021-10-15 22:16:39 UTC (rev 60772)
@@ -2,6 +2,8 @@
 Combines soul and the savepos tools provided by pdftex and compatible
 for fancy underlining.
 
+Version 1.2 works with luatex (at last).
+
 License:     MIT
 ________
 Javier Bezos --- http://www.texnia.com

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

Modified: trunk/Master/texmf-dist/doc/latex/soulpos/soulpos.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/soulpos/soulpos.tex	2021-10-15 22:16:18 UTC (rev 60771)
+++ trunk/Master/texmf-dist/doc/latex/soulpos/soulpos.tex	2021-10-15 22:16:39 UTC (rev 60772)
@@ -1,5 +1,5 @@
 %
-% Copyright (C) 2012-2019 Javier Bezos http://www.texnia.com
+% Copyright (C) 2012-2021 Javier Bezos http://www.texnia.com
 %
 % This file may be distributed and/or modified under the conditions of
 % the MIT License. A version can be found at the end of this file.
@@ -9,7 +9,7 @@
 
 \title{Underlining (and more) with soulpos}
 \author{Javier Bezos}
-\date{2012-02-25}
+\date{2021-10-15}
 
 \usepackage{tikz}
 \usetikzlibrary{decorations.pathmorphing}

Modified: trunk/Master/texmf-dist/tex/latex/soulpos/soulpos.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/soulpos/soulpos.sty	2021-10-15 22:16:18 UTC (rev 60771)
+++ trunk/Master/texmf-dist/tex/latex/soulpos/soulpos.sty	2021-10-15 22:16:39 UTC (rev 60772)
@@ -1,5 +1,5 @@
 %
-% Copyright (C) 2012-2019 Javier Bezos http://www.texnia.com
+% Copyright (C) 2012-2021 Javier Bezos http://www.texnia.com
 %
 % This file may be distributed and/or modified under the conditions of
 % the MIT License. A version can be found at the end of this file.
@@ -7,7 +7,7 @@
 % Repository: https://github.com/jbezos/esindex
 %
 
-\ProvidesPackage{soulpos}[2012/02/25 v1.1 Fancy underlining]
+\ProvidesPackage{soulpos}[2021/10/15 v1.2 Fancy underlining]
 
 \newcount\ulp at subcnt
 \newcount\ulp at cnt
@@ -15,6 +15,16 @@
 \newwrite\ulp at out
 \newread\ulp at in
 
+\ifx\savepos\@undefined
+  \let\ulp at savepos\pdfsavepos
+  \let\ulp at lastxpos\pdflastxpos
+  \let\ulp at lastypos\pdflastypos
+\else
+  \let\ulp at savepos\savepos
+  \let\ulp at lastxpos\lastxpos
+  \let\ulp at lastypos\lastypos
+\fi
+
 \AtBeginDocument{\ulp at begindoc}
 
 \def\ulp at begindoc{%
@@ -140,10 +150,10 @@
        \ulp at draw
        \global\expandafter\let\csname ulp@@\the\ulp at subcnt\endcsname\@undefined}%
     \ifcase\ulp at pos\hss\fi % over
-    \pdfsavepos
+    \ulp at savepos
     \protected at write\ulp at out{}%
       {\string\ulp at Pa\number#1{\the\ulp at subcnt}%
-      {\noexpand\the\pdflastxpos}{\noexpand\the\pdflastypos}%
+      {\noexpand\the\ulp at lastxpos}{\noexpand\the\ulp at lastypos}%
        \@percentchar}%
   \egroup}
 



More information about the tex-live-commits mailing list.