From edccc2e846a8eefb4a901a8254ae488bf8b61237 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 16 May 2019 21:03:18 +0000 Subject: zhlineskip (16may19) git-svn-id: svn://tug.org/texlive/trunk@51142 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/zhlineskip/zhlineskip.sty | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'Master/texmf-dist/tex/latex/zhlineskip') 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 +% Copyright (C) 2018, 2019 by Ruixi Zhang % % 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}{% -- cgit v1.2.3