summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fixdif/fixdif-zh-cn.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-01-28 03:02:00 +0000
committerNorbert Preining <norbert@preining.info>2023-01-28 03:02:00 +0000
commit261f52e7813eade06f278eda62023fda3d266980 (patch)
tree0d56bc08c2c97b37eda3497b1ed29eff56d02a1e /macros/latex/contrib/fixdif/fixdif-zh-cn.tex
parent924dfac8358e4caeec54b5bce18848ee52f36eac (diff)
CTAN sync 202301280301
Diffstat (limited to 'macros/latex/contrib/fixdif/fixdif-zh-cn.tex')
-rw-r--r--macros/latex/contrib/fixdif/fixdif-zh-cn.tex31
1 files changed, 8 insertions, 23 deletions
diff --git a/macros/latex/contrib/fixdif/fixdif-zh-cn.tex b/macros/latex/contrib/fixdif/fixdif-zh-cn.tex
index 9c2feac52b..4c4793742d 100644
--- a/macros/latex/contrib/fixdif/fixdif-zh-cn.tex
+++ b/macros/latex/contrib/fixdif/fixdif-zh-cn.tex
@@ -1,12 +1,10 @@
\documentclass[letterpaper,11pt]{article}
-\date{2023/01/23\quad Version 1.5%
+\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}%
@@ -15,11 +13,9 @@
\addtocounter{fixdifattention}{1}%
\ifnum \value{fixdifattention}<#1 \repeat\dbend}\fi%
\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}