summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/zhlineskip
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-16 21:03:18 +0000
committerKarl Berry <karl@freefriends.org>2019-05-16 21:03:18 +0000
commitedccc2e846a8eefb4a901a8254ae488bf8b61237 (patch)
tree3278f0698a245f11312621779302d5e31463a26c /Master/texmf-dist/tex/latex/zhlineskip
parentaa49c1225fce57a723178887de19e5718cc8ddc3 (diff)
zhlineskip (16may19)
git-svn-id: svn://tug.org/texlive/trunk@51142 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/zhlineskip')
-rw-r--r--Master/texmf-dist/tex/latex/zhlineskip/zhlineskip.sty20
1 files changed, 11 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/zhlineskip/zhlineskip.sty b/Master/texmf-dist/tex/latex/zhlineskip/zhlineskip.sty
index 1acb4ce4c61..37686ebc935 100644
--- a/Master/texmf-dist/tex/latex/zhlineskip/zhlineskip.sty
+++ b/Master/texmf-dist/tex/latex/zhlineskip/zhlineskip.sty
@@ -1,5 +1,5 @@
%
-% Copyright (C) 2018 by Ruixi Zhang <ruixizhang42@gmail.com>
+% Copyright (C) 2018, 2019 by Ruixi Zhang <ruixizhang42@gmail.com>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -14,16 +14,16 @@
% The Current Maintainer of this work is Ruixi Zhang.
%
% This work consists of the files zhlineskip.sty,
-% zhlineskip-man.tex,
+% zhlineskip.tex,
% zhlineskip-test.tex,
% Latinmetrics.pdf,
% CJKmetrics.pdf,
% README.md
-% and the derived file zhlineskip-man.pdf.
+% and the derived file zhlineskip.pdf.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zhlineskip}[%
- 2018/11/30 v1.0d Line spacing for CJK documents]
+ 2019/05/15 v1.0e Line spacing for CJK documents]
\RequirePackage{kvoptions}
\RequirePackage{xintexpr}
@@ -100,7 +100,9 @@
\ZhLS@targetfootleading/\ZhLS@defaultfootleading\relax\relax
}
-\linespread{\ZhLS@bodylinespread}\selectfont
+\AtBeginDocument{%
+ \linespread{\ZhLS@bodylinespread}\selectfont
+}
\patchcmd\@footnotetext
{\reset@font}
@@ -123,8 +125,8 @@
\def\ZhLS@textlinespread{#1}%
}
\SetTextEnvironmentSinglespace{1}
-\newcommand*\RestoreTextEnvironmentLeading{%
- \ZhLS@restoretextenvironmentleading
+\newcommand*\RestoreTextEnvironmentLeading[1]{%
+ \forcsvlist\ZhLS@restoretextenvironmentleading{#1}%
}
\def\ZhLS@restoretextenvironmentleading#1{%
\AtBeginEnvironment{#1}{%
@@ -138,8 +140,8 @@
\def\ZhLS@mathlinespread{#1}%
}
\SetMathEnvironmentSinglespace{1}
- \newcommand*\RestoreMathEnvironmentLeading{%
- \ZhLS@restoremathenvironmentleading
+ \newcommand*\RestoreMathEnvironmentLeading[1]{%
+ \forcsvlist\ZhLS@restoremathenvironmentleading{#1}%
}
\def\ZhLS@restoremathenvironmentleading#1{%
\AtBeginEnvironment{#1}{%