Closed xiaqian369 closed 1 year ago
使用 XeLaTeX 时,加载 xeCJKfntef
宏包即可;使用 pdfLaTeX 时,加载 CJKfntef
。
使用 XeLaTeX 时,加载
xeCJKfntef
宏包即可;使用 pdfLaTeX 时,加载CJKfntef
。
补个例子,有简化
% !TeX TS-program = xelatex
\documentclass{ctexart}
\usepackage{xeCJKfntef}
\usepackage{xcolor} %颜色定义宏包
\usepackage{geometry} %% 负责版面设计的宏包
\geometry{right=5cm, marginparwidth=3cm} %让生成的PDF在右侧有足够的批注框进行显示
\usepackage[markup=underlined,commentmarkup=todo]{changes}
\definechangesauthor[name={Ma}, color=red!70!black!80]{Ma} %定义马老师批注颜色
\begin{document}
\section{Introduction}
\added[id=Ma,comment=批注内容]{“澳大利亚贸易部长四年来首次访华,寻求贸易全面解冻”。
据澳媒报道,应中国商务部邀请,澳大利亚贸易部长法瑞尔11日抵达北京,开始为期三天的访华行程。}
\added[id=Ma,comment=批注内容]{China urged the European Union to value the
overall state of mutual trust and cooperation between them, said the Ministry
of Commerce.}
\end{document}
PS: 原始例子里,
\geometry{..., top=1cm, ...}
太小了,页眉文字显示不全(超出页边距)\added[id=Ma,comment="文字文字"]{...}
里的双引号 "..."
输出为两个右侧英文双引号。如果想要英文双引号,应以 ``..."
输入,中文双引号以 “...”
输入。ctexart
。此时 \chapter
未定义,应删去 \ctexset{chapter/...=...}
相关设置。
如题, 想用\usepackage{changes}来跟踪修改, 但是changes包里面的命令对中文不换行(英文没问题)
原latex文件为:
结果为: