diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-25 20:49:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-25 20:49:43 +0000 |
commit | 3502ad19f49f76a4363fec86d9c17d1639e8e013 (patch) | |
tree | 2d853419facf5524a7ee75dc3146d5e1cf23bd4b /Master/texmf-dist/doc/latex/projlib/ProjLib-doc-cn.tex | |
parent | 33309d66543ec543d061fe0a976f5a1989346f16 (diff) |
projlib (25may21)
git-svn-id: svn://tug.org/texlive/trunk@59347 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/projlib/ProjLib-doc-cn.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/projlib/ProjLib-doc-cn.tex | 59 |
1 files changed, 35 insertions, 24 deletions
diff --git a/Master/texmf-dist/doc/latex/projlib/ProjLib-doc-cn.tex b/Master/texmf-dist/doc/latex/projlib/ProjLib-doc-cn.tex index 65c2f0ac2c5..32adbf5a854 100644 --- a/Master/texmf-dist/doc/latex/projlib/ProjLib-doc-cn.tex +++ b/Master/texmf-dist/doc/latex/projlib/ProjLib-doc-cn.tex @@ -32,7 +32,7 @@ } \providecommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$} \lstset{moretexcs=% - {color,CreateTheorem,proofideanameCN,cref,dnf,needgraph,UseLanguage,UseOtherLanguage,AddLanguageSetting,maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,PJLdate,ProjLib + {color,NameTheorem,CreateTheorem,proofideanameCN,cref,dnf,needgraph,UseLanguage,UseOtherLanguage,AddLanguageSetting,maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,PJLdate,ProjLib } } \lstnewenvironment{code}% @@ -78,7 +78,7 @@ \title{\ProjLib{} 工具集\\[.3\baselineskip]\normalsize 使用指南} \author{许锦文} -\thanks{对应版本.~~\texttt{\ProjLib{}~2021/05/20}} +\thanks{对应版本.~~\texttt{\ProjLib{}~2021/05/25}} \date{2021年5月,北京} \maketitle @@ -190,15 +190,15 @@ \end{itemize} \end{itemize} -\meta{language name} 有下列选择: +\meta{language name} 有下列选择 (不区分大小写,如 \texttt{French} 或 \texttt{french} 均可): \begin{itemize} - \item 简体中文:\texttt{Chinese}、\texttt{chinese}、\texttt{SChinese}、\texttt{schinese}、\texttt{SimplifiedChinese} 或 \texttt{simplifiedchinese} - \item 繁体中文:\texttt{TChinese}、\texttt{tchinese}、\texttt{TraditionalChinese} 或 \texttt{traditionalchinese} - \item 英文:\texttt{English} 或 \texttt{english} - \item 法文:\texttt{French} 或 \texttt{french} - \item 德文:\texttt{German}、\texttt{german} 或 \texttt{ngerman} - \item 日文:\texttt{Japanese} 或 \texttt{japanese} - \item 俄文:\texttt{Russian} 或 \texttt{russian} + \item 简体中文:\texttt{CN}、\texttt{Chinese}、\texttt{SChinese} 或 \texttt{SimplifiedChinese} + \item 繁体中文:\texttt{TC}、\texttt{TChinese} 或 \texttt{TraditionalChinese} + \item 英文:\texttt{EN} 或 \texttt{English} + \item 法文:\texttt{FR} 或 \texttt{French} + \item 德文:\texttt{DE}、\texttt{German} 或 \texttt{ngerman} + \item 日文:\texttt{JP} 或 \texttt{Japanese} + \item 俄文:\texttt{RU} 或 \texttt{Russian} \end{itemize} 另外,还可以通过下面的方式来填加相应语言的设置: @@ -279,21 +279,31 @@ 预设的定理类环境包括:\texttt{assumption}、\texttt{axiom}、\texttt{conjecture}、\texttt{convention}、\texttt{corollary}、\texttt{definition}、\texttt{definition-proposition}、\texttt{definition-theorem}、\texttt{example}、\texttt{exercise}、\texttt{fact}、\texttt{hypothesis}、\texttt{lemma}、\texttt{notation}、\texttt{problem}、\texttt{property}、\texttt{proposition}、\texttt{question}、\texttt{remark}、\texttt{theorem},以及相应的带有星号 \lstinline|*| 的无编号版本。这些定理类环境在显示时会依据当前语言而相应变化,例如在中文模式下 \texttt{theorem} 会显示为“定理”,而在英文模式下则会显示为“Theorem”。关于如何选定语言,请参阅关于 \PJLlang{} 的小节。 -在引用定理类环境时,建议使用智能引用 \lstinline|\cref{|\meta{label}\lstinline|}|。这样就不必每次都写上相应环境的名称了。 - -\medskip -若需要定义新的定理类环境,首先要定义这个环境在所用语言下的名称 \lstinline|\|\meta{name of environment}\meta{language abbr},其中 \meta{language abbr} 是语言的简写,分别为: -\begin{longtable}{ll|ll} - \texttt{CN} & 简体中文 & \texttt{DE} & 德文\\ - \texttt{TC} & 繁体中文 & \texttt{JP} & 日文\\ - \texttt{EN} & 英文 & \texttt{RU} & 俄文\\ - \texttt{FR} & 法文 & &\\ -\end{longtable} - \begin{remind} - 如果要定义名称后带有星号 \lstinline|*| 的环境,那么在上面的 \meta{name of environment} 中不用写星号。 + 在引用定理类环境时,建议使用智能引用 \lstinline|\cref{|\meta{label}\lstinline|}|。这样就不必每次都写上相应环境的名称了。 \end{remind} +\medskip +% 若需要定义新的定理类环境,首先要定义这个环境在所用语言下的名称 \lstinline|\|\meta{name of environment}\meta{language abbr},其中 \meta{language abbr} 是语言的简写,分别为: +% \begin{longtable}{ll|ll} +% \texttt{CN} & 简体中文 & \texttt{DE} & 德文\\ +% \texttt{TC} & 繁体中文 & \texttt{JP} & 日文\\ +% \texttt{EN} & 英文 & \texttt{RU} & 俄文\\ +% \texttt{FR} & 法文 & &\\ +% \end{longtable} + +% \begin{remind} +% 如果要定义名称后带有星号 \lstinline|*| 的环境,那么在上面的 \meta{name of environment} 中不用写星号。 +% \end{remind} +若需要定义新的定理类环境,首先要定义这个环境在所用语言下的名称: +\vspace{-.15\baselineskip}% +\begin{itemize} + \item \lstinline|\NameTheorem[|\meta{language name}\lstinline|]{|\meta{name of environment}\lstinline|}{|\meta{name string}\lstinline|}| +\end{itemize} +\vspace{-.15\baselineskip}% +其中,\meta{language name} 可参阅关于 \PJLlang{} 的小节。当不指定 \meta{language name}时,则会将该名称设置为所有支持语言下的名称。另外,带星号与不带星号的同名环境共用一个名称,因此 \lstinline|\NameTheorem{envname*}{...}| 与 \lstinline|\NameTheorem{envname}{...}| 效果相同。 + +\medskip 然后用下面五种方式之一定义这一环境: \begin{itemize} \item \lstinline|\CreateTheorem*{|\meta{name of environment}\lstinline|}| @@ -328,14 +338,15 @@ 其内部使用了 \textsf{amsthm},因此传统的 \texttt{theoremstyle} 对其也是适用的,只需在相关定义前标明即可。 \end{remind} -\def\proofideanameCN{思路} +% \def\proofideanameCN{思路} +\NameTheorem[CN]{proofidea}{思路} \CreateTheorem*{proofidea*} \CreateTheorem{proofidea}<subsection> \bigskip 下面提供一个例子。这三行代码: \begin{code} - \def\proofideanameCN{思路} + \NameTheorem[CN]{proofidea}{思路} \CreateTheorem*{proofidea*} \CreateTheorem{proofidea}<subsection> \end{code} |