texlive[50971] Master/texmf-dist: centeredline (3may19)

commits+karl at tug.org commits+karl at tug.org
Sat May 4 00:29:09 CEST 2019


Revision: 50971
          http://tug.org/svn/texlive?view=revision&revision=50971
Author:   karl
Date:     2019-05-04 00:29:09 +0200 (Sat, 04 May 2019)
Log Message:
-----------
centeredline (3may19)

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

Modified: trunk/Master/texmf-dist/doc/latex/centeredline/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/centeredline/README.md	2019-05-03 22:28:44 UTC (rev 50970)
+++ trunk/Master/texmf-dist/doc/latex/centeredline/README.md	2019-05-03 22:29:09 UTC (rev 50971)
@@ -2,7 +2,7 @@
 
     Author:  Jean-Francois Burnol
     Package: centeredline
-    Version: 1.0 (2019/04/27)
+    Version: 1.1 (2019/05/03)
     License: LPPL 1.3c
     Copyright (C) 2019 Jean-Francois Burnol
     <jfbu at free dot fr>
@@ -9,33 +9,24 @@
 
 # DESCRIPTION #
 
-After `\usepackage{centeredline}` you can use
+After `\usepackage{centeredline}` one can use
 
     \centeredline{....}
 
-to get contents centered, in a better way than with `\centerline`:
+to get the argument centered, in a better way than with `\centerline`:
 
-1. `\verb` or other catcode changes are allowed,
+1. `\verb` or other catcode changes inside the argument are allowed,
 2. the centering (with respect to the surrounding text paragraph) will
    be as expected if this all happens inside an item from a LaTeX list
-   environment,
-3. and material whose natural width exceeds the linewidth will get
-   properly centered too.
+   environment.
 
-The contents are executed in horizontal mode inside a group inside a
-`\hbox`.
+Material whose natural width exceeds the linewidth will get properly
+centered too.
 
-The macro itself maybe encountered in paragraph or in vertical mode. For
-example in vertical mode
+The macro itself may be encountered in paragraph or in vertical mode.
+It places the argument inside a `\hbox` (inside an extra simple group).
 
-    \centeredline{\rule{\dimexpr-1cm+\paperwidth}{1pt}}
-    \centeredline{\rule{\dimexpr-1cm+\paperwidth}{1pt}}
-    \centeredline{\rule{\dimexpr-1cm+\paperwidth}{1pt}}
 
-will create horizontally centered on the page horizontal rules
-vertically separated by the baseline skip and ignoring the parskip.
-
-
 # HISTORY #
 
 I have used this macro since 2013 and it has served me well.
@@ -49,6 +40,7 @@
 # CHANGE LOG #
 
 - v1.0 (2019/04/27): First release.
+- v1.1 (2019/05/03): Improved description (this file).
 
 
 # LICENSE #

Modified: trunk/Master/texmf-dist/tex/latex/centeredline/centeredline.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/centeredline/centeredline.sty	2019-05-03 22:28:44 UTC (rev 50970)
+++ trunk/Master/texmf-dist/tex/latex/centeredline/centeredline.sty	2019-05-03 22:29:09 UTC (rev 50971)
@@ -1,9 +1,9 @@
 %% File: centeredline.sty
-%% Version: 1.0 (2019/04/27)
+%% Version: 1.1 (2019/05/03)
 %% License: LPPL 1.3c
 %% Copyright (C) 2019 Jean-Francois Burnol <jfbu at free dot fr>
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{centeredline}[2019/04/27 v1.0 centering a line my way (JFB)]
+\ProvidesPackage{centeredline}[2019/05/03 v1.1 centering a line the JFB way]
 % \centeredline: OUR OWN LITTLE MACRO FOR CENTERING LINES
 %
 % 7 mars 2013



More information about the tex-live-commits mailing list