diff options
author | Karl Berry <karl@freefriends.org> | 2022-10-10 20:22:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-10-10 20:22:05 +0000 |
commit | 10978f66143b953f5a492189a55b3ebb40d44583 (patch) | |
tree | 3db1379c36971fd6d8f334750527cdebe8f4483f /Master/texmf-dist/tex/latex/centeredline | |
parent | 3c2bc083812ac2acc7384696a710e3655a3cdddf (diff) |
centeredline (10oct22)
git-svn-id: svn://tug.org/texlive/trunk@64672 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/centeredline')
-rw-r--r-- | Master/texmf-dist/tex/latex/centeredline/centeredline.sty | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/centeredline/centeredline.sty b/Master/texmf-dist/tex/latex/centeredline/centeredline.sty index d1afe19f3ec..240ac64b906 100644 --- a/Master/texmf-dist/tex/latex/centeredline/centeredline.sty +++ b/Master/texmf-dist/tex/latex/centeredline/centeredline.sty @@ -1,26 +1,18 @@ %% File: centeredline.sty -%% Version: 1.1 (2019/05/03) +%% Version: 1.2 (2022/10/10) %% License: LPPL 1.3c -%% Copyright (C) 2019 Jean-Francois Burnol <jfbu at free dot fr> +%% Copyright (C) 2019, 2022 Jean-Francois Burnol <jfbu at free dot fr> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{centeredline}[2019/05/03 v1.1 centering a line the JFB way] +\ProvidesPackage{centeredline}[2022/10/10 v1.2 centering a line the JFB way] % \centeredline: OUR OWN LITTLE MACRO FOR CENTERING LINES % -% 7 mars 2013 -% \ignorespaces added June 9, 2013 -% -% This macro allows to conveniently center a line inside a paragraph and still -% allow usage therein of \verb or other macros changing catcodes. -% -% It works nicely in list environments (as it uses \linewidth, not \hsize...; -% maybe there is an even better LaTeX parameter to use, but I don't know -% LaTeX2e that well enough and never typeset in two-column mode.) -% -% Note: \centeredline is scope limiting for assignments done during execution -% of its argument. +% March 7, 2013 : first version +% June 9, 2013 : \ignorespaces added +% Oct. 10, 2022 : \unpenalty\newline replaces \\\relax % +% See README.md for documentation. \newcommand*\centeredline{% - \ifhmode \\\relax + \ifhmode \unpenalty\newline \def\centeredline@@{\hss\egroup\hskip\z@skip\ignorespaces}% \else \def\centeredline@@{\hss\egroup}% |