Commit 743286bd authored by liziwl's avatar liziwl
Browse files

国标数学规范限制在中文论文中

parent 6c0fb017
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -4,9 +4,11 @@

\section{数学符号}

模板中使用 \pkg{unicode-math} 宏包来配置数学符号,

研究生《写作指南》要求量及其单位所使用的符号应符合国家标准《国际单位制及其应用》(GB 3100—1993)、《有关量、单位和符号的一般原则》(GB/T 3101—1993)的规定,但是与 \TeX{} 默认的美国数学学会(AMS)的符号习惯有所区别。

模板中使用 \pkg{unicode-math} 宏包来配置数学符号,
英文论文的数学符号使用 \TeX{} 默认的样式。论文以中文为主要撰写语言按照国标建议的配置数学字体格式:

\begin{enumerate}
  \item 大写希腊字母默认为斜体,如
@@ -42,18 +44,17 @@
      \symup{e} = \lim_{n \to \infty} \left( 1 + \frac{1}{n} \right)^n.
    \end{equation*}
  \item 微分号使用正体,比如 $\dif y / \dif x$
  \item 向量、矩阵和张量用粗斜体(\cs{symbf}),如 $\symbf{x}$$\symbf{\Sigma}$$\symbfsf{T}$
  \item 向量、矩阵和张量用粗斜体(\cs{mathbfit}),如 $\mathbfit{x}$$\mathbfit{\Sigma}$$\mathbfit{T}$
  \item 自然对数用 $\ln x$ 不用 $\log x$
\end{enumerate}


英文论文的数学符号使用 \TeX{} 默认的样式。

关于数学符号更多的用法,参考
\href{http://mirrors.ctan.org/macros/latex/contrib/unicode-math/unicode-math.pdf}{\pkg{unicode-math}}
宏包的使用说明,
全部数学符号命的令参考
\href{http://mirrors.ctan.org/macros/latex/contrib/unicode-math/unimath-symbols.pdf}{\pkg{unimath-symbols}}
\href{http://mirrors.ctan.org/macros/latex/contrib/unicode-math/unimath-symbols.pdf}{\pkg{unimath-symbols}},也可以参考 Stack Overflow 上的答案 \href{https://tex.stackexchange.com/questions/58098/what-are-all-the-font-styles-i-can-use-in-math-mode}{What are all the font styles I can use in math mode?}

关于量和单位推荐使用
\href{http://mirrors.ctan.org/macros/latex/contrib/siunitx/siunitx.pdf}{\pkg{siunitx}}
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
\end{tabular}

\vskip 2ex
英文为主要撰写语言可以取消上标格式,将数字序号作为文字的一部分。建议全文统一使用相同的格式。
论文以英文为主要撰写语言可以取消上标格式,将数字序号作为文字的一部分。建议全文统一使用相同的格式。

\citestyle{numbers}
\begin{tabular}{l@{\quad$\Rightarrow$\quad}l}
+41 −16
Original line number Diff line number Diff line
@@ -1709,18 +1709,29 @@
%
% 使用 \pkg{unicode-math} 配置数学字体
%    \begin{macrocode}
\unimathsetup{
  math-style = TeX,
  bold-style = TeX,
}
\ifthu@language@chinese
  \unimathsetup{
    math-style = ISO,
    bold-style = ISO,
    nabla      = upright,
    partial    = upright,
  }
\fi
\newcommand\thu@xits@integral@stylistic@set{%
  \ifthu@language@chinese
    8%upright
  \fi
}
\newcommand\thu@load@math@font@xits{%
  \thu@set@xits@names
  \setmathfont{\thu@font@name@xits@math@rm}[
    Extension    = .otf,
    BoldFont     = \thu@font@name@xits@math@bf,
    StylisticSet = 8,
    StylisticSet = \thu@xits@integral@stylistic@set,
  ]%
  \setmathfont{\thu@font@name@xits@math@rm}[
    Extension    = .otf,
@@ -1731,7 +1742,7 @@
\newcommand\thu@load@math@font@stix{%
  \setmathfont{STIX2Math}[
    Extension    = .otf,
    StylisticSet = 8,
    StylisticSet = \thu@xits@integral@stylistic@set,
  ]%
  \setmathfont{STIX2Math}[
    Extension    = .otf,
@@ -2486,13 +2497,23 @@
% \begin{macro}{\int}
% 积分号 \cs{int} 使用正体,并且上下限默认置于积分号上下两侧。
%    \begin{macrocode}
\ifthu@language@chinese
  \removenolimits{%
    \int\iint\iiint\iiiint\oint\oiint\oiiint
    \intclockwise\varointclockwise\ointctrclockwise\sumint
    \intbar\intBar\fint\cirfnint\awint\rppolint
    \scpolint\npolint\pointint\sqint\intlarhk\intx
    \intcap\intcup\upint\lowint
}
  }%
\else
  \addnolimits{%
    \int\iint\iiint\iiiint\oint\oiint\oiiint
    \intclockwise\varointclockwise\ointctrclockwise\sumint
    \intbar\intBar\fint\cirfnint\awint\rppolint
    \scpolint\npolint\pointint\sqint\intlarhk\intx
    \intcap\intcup\upint\lowint
  }%
\fi
%    \end{macrocode}
% \end{macro}
%
@@ -2502,8 +2523,10 @@
% $\Re$、$\Im$。
%    \begin{macrocode}
\AtBeginDocument{%
  \ifthu@language@chinese
    \renewcommand{\Re}{\operatorname{Re}}%
    \renewcommand{\Im}{\operatorname{Im}}%
  \fi
}
%    \end{macrocode}
% \end{macro}
@@ -2513,7 +2536,9 @@
% \cs{nabla} 使用粗正体。
%    \begin{macrocode}
\AtBeginDocument{%
  \ifthu@language@chinese
    \renewcommand\nabla{\mbfnabla}%
  \fi
}
%    \end{macrocode}
% \end{macro}