Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why not using the package nomencl for the 主要符号对照表 section #314

Open
innerpeace715 opened this issue Sep 5, 2022 · 0 comments

Comments

@innerpeace715
Copy link

相比于\item,nomencl能提供更多的灵活性

例如,似乎以下条目不能用\item来实现
\nomenclature[a]{$\mathbfit{u}=\begin{bmatrix}[0]u&v&w\end{bmatrix}^\mathrm{T}$}{速度矢量}

以下给出我的尝试作为参考:
root doc:
\usepackage{nomencl}
\renewcommand{\nomname}{\heiti 主要符号对照表}
\renewcommand{\nomgroup}[1]{
\ifthenelse{\equal{#1}{A}}{\item[变量]}{
\ifthenelse{\equal{#1}{B}}{\item[算符]}{
\ifthenelse{\equal{#1}{C}}{\item[上标]}{
\ifthenelse{\equal{#1}{D}}{\item[下标]}{
}
}
}
}
}
\nomlabelwidth=0.5\textwidth
\setlength{\nomitemsep}{-\parsep}

denotation.tex:
\nomenclature[a]{$\mathrm{Ma}$}{马赫数}
\nomenclature[b]{$\nabla$}{哈密顿算子}
\nomenclature[c]{$\mathrm{T}$}{转置}
\nomenclature[d]{$\infty$}{自由来流量}

\printnomenclature

compilation:
xelatex->bibtex->makeindex.exe -s nomencl.ist -t %.nlg -o %.nls %.nlo->xelatex->xelatex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant