summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-03 22:29:09 +0000
committerKarl Berry <karl@freefriends.org>2019-05-03 22:29:09 +0000
commit5139fa11fc380bdb1d620afffda047044c55ef7a (patch)
treee60d1ecba7d1acd0c4865a4b6eaa8b4e52130ea2
parentfe044b7f6ea3e031ee8a83fc2a8e17426e93807a (diff)
centeredline (3may19)
git-svn-id: svn://tug.org/texlive/trunk@50971 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/centeredline/README.md28
-rw-r--r--Master/texmf-dist/tex/latex/centeredline/centeredline.sty4
2 files changed, 12 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/latex/centeredline/README.md b/Master/texmf-dist/doc/latex/centeredline/README.md
index 90bcac86764..8be64136923 100644
--- a/Master/texmf-dist/doc/latex/centeredline/README.md
+++ b/Master/texmf-dist/doc/latex/centeredline/README.md
@@ -2,38 +2,29 @@
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>
# 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
-
- \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.
+The macro itself may be encountered in paragraph or in vertical mode.
+It places the argument inside a `\hbox` (inside an extra simple group).
# HISTORY #
@@ -49,6 +40,7 @@ not expect to update the package anytime soon.
# CHANGE LOG #
- v1.0 (2019/04/27): First release.
+- v1.1 (2019/05/03): Improved description (this file).
# LICENSE #
diff --git a/Master/texmf-dist/tex/latex/centeredline/centeredline.sty b/Master/texmf-dist/tex/latex/centeredline/centeredline.sty
index 7503e78ef82..d1afe19f3ec 100644
--- a/Master/texmf-dist/tex/latex/centeredline/centeredline.sty
+++ b/Master/texmf-dist/tex/latex/centeredline/centeredline.sty
@@ -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