Skip to content

Commit

Permalink
adjust marks for zh/en templates
Browse files Browse the repository at this point in the history
  • Loading branch information
stone-zeng committed Feb 18, 2023
1 parent b3e0328 commit 3db8aa5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
- 优化
- 封面信息栏改用表格实现 - [#60][#86]
- 通过引入 `ctex-c5size.clo` 来修改字号 - [#78]
- (fdudoc) 移除多余的文档层定义
- (fdudoc) 更新宏包手册字体
- (fdudoc) 移除多余的文档层定义
- (fdudoc) 调整中英文标记

## [v0.8 (2022-09-04)]

Expand Down
20 changes: 16 additions & 4 deletions source/fduthesis-doc.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,14 @@
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@@_typeset_functions:}
% 减少展开标记(用来表明中英文模板中的不同用法)前的空格。
% \begin{macrocode}
\__fdudoc_patch_cmd:Nnn \@@_typeset_expandability:
{ & } { & \skip_horizontal:n { -0.5em } }
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@@_typeset_functions:,\@@_macro_init:,
% \@@_macro_dump:}
% 左侧边注的函数列表采用单倍行距。
Expand Down Expand Up @@ -1850,15 +1858,19 @@
%
% \subsubsection{文档层命令}
%
% \changes{v0.9}{2023/02/18}{[\pkg{fdudoc}] 调整中英文标记。}
%
% \begin{macro}{\exptarget,\rexptarget,\expstar,\rexpstar,
% \__codedoc_typeset_exp:,\__codedoc_typeset_rexp:}
% 部分命令之后的特殊符号($^^^^263a$ 或 $^^^^263b$),表明其不同用法。这里的
% “exp”和“rexp”分别源自 \LaTeX3 中的“expandable”和“restricted-expandable”。
% 部分命令之后的标记,表明中英文模板中的不同用法。这里的“exp”和“rexp”
% 分别源自 \LaTeX3 中的“expandable”和“restricted-expandable”。
% \begin{macrocode}
\newcommand*\exptarget{\Hy@raisedlink{\hypertarget{expstar}{}}}
\newcommand*\rexptarget{\Hy@raisedlink{\hypertarget{rexpstar}{}}}
\newcommand*\expstar{\hyperlink{expstar}{$^^^^263b$}}
\newcommand*\rexpstar{\hyperlink{rexpstar}{$^^^^263a$}}
\newcommand*\expstar{%
\hyperlink{expstar}{\textsuperscript{\rmfamily\scshape en}}}
\newcommand*\rexpstar{%
\hyperlink{rexpstar}{\textsuperscript{\rmfamily\scshape zh}}}
\ExplSyntaxOn
\cs_set_eq:NN \__codedoc_typeset_exp: \expstar
\cs_set_eq:NN \__codedoc_typeset_rexp: \rexpstar
Expand Down
6 changes: 3 additions & 3 deletions source/fduthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ Copyright (C) 2017&ndash;2023 by Xiangdong Zeng <[email protected]>.
% \begin{itemize}
% \item 名字后面带有 \rexptarget\rexpstar{} 的,表示只能在\emph{中文模板}中使用;
% \item 名字后面带有 \exptarget\expstar{} 的,表示只能在\emph{英文模板}中使用;
% \item 名字后面不带有特殊符号的,表示既可以在中文模板中使用,也可以在英文模板中使用。
% \item 名字后面不带有特殊标记的,表示既可以在中文模板中使用,也可以在英文模板中使用。
% \end{itemize}
%^^A! The options, commands and environments in \cls{fduthesis} can be
%^^A! divided into the following three types:
Expand All @@ -442,8 +442,8 @@ Copyright (C) 2017&ndash;2023 by Xiangdong Zeng <[email protected]>.
%^^A! indicated by \rexptarget\rexpstar{}.
%^^A! \item Those can be only used in \emph{English templates} are
%^^A! indicated by \rexptarget\expstar{}.
%^^A! \item If they do not have special characters afterwards, then
%^^A! you can use them in both Chinese and English templates.
%^^A! \item If they do not have marks afterwards, then you can use
%^^A! them in both Chinese and English templates.
%^^A! \end{itemize}
%^^A!
%
Expand Down

0 comments on commit 3db8aa5

Please sign in to comment.