diff options
author | Karl Berry <karl@freefriends.org> | 2023-01-27 21:57:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-01-27 21:57:08 +0000 |
commit | 99669706cc43d7cd292672c98ef84f27cb4a23e0 (patch) | |
tree | a5db8f9a42e7d6a31aabe451666bd3ab4bf13793 /Master/texmf-dist/doc/latex/fixdif/fixdif-zh-cn.tex | |
parent | 684f8f831bfb7df2bd6e3c0f90f832bca7d87c92 (diff) |
fixdif (27jan23)
git-svn-id: svn://tug.org/texlive/trunk@65644 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/fixdif/fixdif-zh-cn.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/fixdif/fixdif-zh-cn.tex | 38 |
1 files changed, 12 insertions, 26 deletions
diff --git a/Master/texmf-dist/doc/latex/fixdif/fixdif-zh-cn.tex b/Master/texmf-dist/doc/latex/fixdif/fixdif-zh-cn.tex index 075b57610e5..4c4793742d5 100644 --- a/Master/texmf-dist/doc/latex/fixdif/fixdif-zh-cn.tex +++ b/Master/texmf-dist/doc/latex/fixdif/fixdif-zh-cn.tex @@ -1,25 +1,21 @@ \documentclass[letterpaper,11pt]{article} -\date{2022/10/27\quad Version 1.4b% +\date{2023/01/27\quad Version 1.6% \thanks{源代码见~\hyperref{https://github.com/AlphaZTX/fixdif}{}{}{GitHub} 或~\hyperref{https://www.ctan.org/pkg/fixdif}{}{}{CTAN}。} } \ifcsname XeTeXversion\endcsname\else\errmessage{本文档需使用 xelatex 编译}\fi - \usepackage{indentfirst,enumitem} - \usepackage{manfnt,marginnote} \newcounter{fixdifattention} \newcommand\attention[1][1]{\setcounter{fixdifattention}{1}% \ifnum#1=1 \def\attentiontext{\dbend}\else - \def\attentiontext{\loop\dbend\,% + \def\attentiontext{\loop\dbend\kern1pt% \addtocounter{fixdifattention}{1}% \ifnum \value{fixdifattention}<#1 \repeat\dbend}\fi% - \marginnote{\makebox[0pt][r]{\attentiontext}}} - + \marginnote{\hbox to 0pt{\hss\attentiontext}}} \usepackage{xcolor} \definecolor{titlecolor}{RGB}{0,128,8} \definecolor{lnkcolor}{RGB}{0,12,160} - \usepackage{fontspec} \setmainfont{STIX Two Text} \setsansfont{Inter}[Scale=MatchLowercase] @@ -33,31 +29,24 @@ \DeclareRobustCommand\zhemph{\CJKunderdot} \usepackage{unicode-math} \setmathfont{STIX Two Math} - \usepackage{hyperref} \hypersetup{pdffitwindow, - pdftitle = {fixdif 宏包(中文文档)}, + pdftitle = {fixdif 宏包}, pdfauthor = {AlphaZTX}, - pdfcreator = {pdfLaTeX/XeLaTeX/LuaLaTeX}, + pdfcreator = {XeTeX}, linkcolor = black, - urlcolor = lnkcolor, -} - -\usepackage{doc} + urlcolor = lnkcolor} +\usepackage{doc}% Warning \DeclareRobustCommand\marg[1]{\texttt{\{}\meta{#1}\texttt{\}}} - \usepackage{fancyvrb} \fvset{xleftmargin=2em,fontsize=\small} \MakeShortVerb| - \usepackage{hologo} \DeclareRobustCommand\pdflatex{\hologo{pdfLaTeX}} \DeclareRobustCommand\xelatex{\hologo{XeLaTeX}} \DeclareRobustCommand\lualatex{\hologo{LuaLaTeX}} - \DeclareRobustCommand\pkg{\textsf} \DeclareRobustCommand\opt{\texttt} - \makeatletter \renewcommand\section{\@startsection{section}{1}{\z@}% {-2.5ex plus -1ex minus -.2ex}% @@ -73,23 +62,19 @@ {\indent\normalfont\normalsize\bfseries\color{titlecolor}}} \gdef\fd@name{\char"66\char"69\char"78\char"64\char"69\char"66} \def\ps@plain{\let\@mkboth\@gobbletwo - \def\@oddhead{\hbox{}\llap{\raisebox{-24.44cm}[0pt][0pt]{\sffamily\bfseries% - \color{titlecolor!5}\fontsize{238pt}{0pt}\selectfont\fd@name}% - \hspace*{-14.72cm}}\hfil\hbox{}\rlap{\raisebox{.2cm}[0pt][0pt]{% + \def\@oddhead{\hfil\hbox{}\rlap{\raisebox{.2cm}[0pt][0pt]{% \hspace*{1.4cm}\sffamily\bfseries\color{titlecolor!35}% \fontsize{128pt}{0pt}\selectfont\thepage}}}% \def\@oddfoot{\reset@font}\let\@evenhead\@oddhead\let\@evenfoot\@oddfoot} -\gdef\@title{\bfseries\pkg{\fd@name}\Uchar"5B8F\Uchar"5305} +\gdef\@title{\bfseries\pkg{\char"66\char"69\char"78\char"64\char"69\char"66}% + \Uchar"5B8F\Uchar"5305} \gdef\@author{\Uchar"5F20\Uchar"5EAD\Uchar"7444} \makeatother \pagestyle{plain} - \usepackage{fixdif} - \linespread{1.2} \parskip8pt plus 4pt minus 2pt \parindent2em - \begin{document} \maketitle \thispagestyle{plain} @@ -382,7 +367,8 @@ $\d x$ 和 \d x \begin{Verbatim} \letdif{\laplacian}{Delta} \end{Verbatim} -如果你比较擅长使用 \pkg{xparse} 宏包的接口,你也可以采用下面的方法: +如果你比较擅长使用 \pkg{xparse} 宏包(2020 年 10 月后已被集成进 \LaTeXe{} 内核) +的接口,你也可以采用下面的方法: \begin{Verbatim} \letdif{\nabla}{nabla} \DeclareDocumentCommand{ \laplacian }{ s }{ |