diff options
author | Norbert Preining <norbert@preining.info> | 2021-10-16 03:01:43 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-10-16 03:01:43 +0000 |
commit | ed11d82ee5f3bdb266cd37f150c1ca941fc3e67d (patch) | |
tree | a5144e99e7d9543a85a897853c3f30c5f41e091e /macros/latex/contrib/soulpos | |
parent | 3183539b7cf96584b2e0993e49e230bee3755b09 (diff) |
CTAN sync 202110160301
Diffstat (limited to 'macros/latex/contrib/soulpos')
-rw-r--r-- | macros/latex/contrib/soulpos/README.md | 2 | ||||
-rw-r--r-- | macros/latex/contrib/soulpos/soulpos.pdf | bin | 159838 -> 177402 bytes | |||
-rw-r--r-- | macros/latex/contrib/soulpos/soulpos.sty | 18 | ||||
-rw-r--r-- | macros/latex/contrib/soulpos/soulpos.tex | 4 |
4 files changed, 18 insertions, 6 deletions
diff --git a/macros/latex/contrib/soulpos/README.md b/macros/latex/contrib/soulpos/README.md index 5a16c48004..01f156e7c0 100644 --- a/macros/latex/contrib/soulpos/README.md +++ b/macros/latex/contrib/soulpos/README.md @@ -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 diff --git a/macros/latex/contrib/soulpos/soulpos.pdf b/macros/latex/contrib/soulpos/soulpos.pdf Binary files differindex ce534eb462..0f064bbcbf 100644 --- a/macros/latex/contrib/soulpos/soulpos.pdf +++ b/macros/latex/contrib/soulpos/soulpos.pdf diff --git a/macros/latex/contrib/soulpos/soulpos.sty b/macros/latex/contrib/soulpos/soulpos.sty index d32deec72b..806ac9eb43 100644 --- a/macros/latex/contrib/soulpos/soulpos.sty +++ b/macros/latex/contrib/soulpos/soulpos.sty @@ -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@subcnt \newcount\ulp@cnt @@ -15,6 +15,16 @@ \newwrite\ulp@out \newread\ulp@in +\ifx\savepos\@undefined + \let\ulp@savepos\pdfsavepos + \let\ulp@lastxpos\pdflastxpos + \let\ulp@lastypos\pdflastypos +\else + \let\ulp@savepos\savepos + \let\ulp@lastxpos\lastxpos + \let\ulp@lastypos\lastypos +\fi + \AtBeginDocument{\ulp@begindoc} \def\ulp@begindoc{% @@ -140,10 +150,10 @@ \ulp@draw \global\expandafter\let\csname ulp@@\the\ulp@subcnt\endcsname\@undefined}% \ifcase\ulp@pos\hss\fi % over - \pdfsavepos + \ulp@savepos \protected@write\ulp@out{}% {\string\ulp@Pa\number#1{\the\ulp@subcnt}% - {\noexpand\the\pdflastxpos}{\noexpand\the\pdflastypos}% + {\noexpand\the\ulp@lastxpos}{\noexpand\the\ulp@lastypos}% \@percentchar}% \egroup} diff --git a/macros/latex/contrib/soulpos/soulpos.tex b/macros/latex/contrib/soulpos/soulpos.tex index 7379469c29..d9b74c7b29 100644 --- a/macros/latex/contrib/soulpos/soulpos.tex +++ b/macros/latex/contrib/soulpos/soulpos.tex @@ -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} |