在论文前面插入NOMENCLATURE,如果使用nomgroup时保证其和二级标题格式一致

发布于 2021-05-30 14:52:07

我在用NOMENCLATURE进行论文之前符号和变量的表示,因为有符号,变量等,所以想用nomgroup分成不同的类别。但是这个默认的格式和我二级标题的格式不一样,我看了刊出的文章都是要和二级标题一致的,没有找到解决办法。(我用的IEEE模板)
我现在的:
image.png
应该成为的:
image.png
我目前的代码是这样的:


\usepackage{nomencl}% For NOMENCLATURE
\usepackage{ifthen}% For NOMENCLATURE

\renewcommand{\nompreamble}{}% code after main title
\renewcommand{\nomgroup}[1]{%
  \item[\textbf{%
  \ifthenelse{\equal{#1}{V}}{Variables}{}% add more groups as needed
    \ifthenelse{\equal{#1}{P}}{Parameters}{}%
    \ifthenelse{\equal{#1}{A}}{Abbreviations}{}%
    }]%
}
\makenomenclature % For NOMENCLATURE

\nomenclature[V]{M$_1$}{M parameters}
\nomenclature[P]{$t$}{temperature}
\nomenclature[V]{$t1$}{temperature111}
\nomenclature[P]{$t2$}{temperature121}
\printnomenclature

其实说白了就是要让上面的小标题都是subsection{}格式的才对,哪位大佬知道怎么改,求助

查看更多

关注者
0
被浏览
3.1k
LaTeXStudio
LaTeXStudio 2021-05-30
这家伙很懒,什么也没写!

没理解具体啥意思?从目前来看没有什么大问题。

3 个回答
Miss 柚子
Miss 柚子 2022-11-27
这家伙很懒,什么也没写!

documentclass{article}
usepackage{nomencl}% For NOMENCLATURE
usepackage{ifthen}% For NOMENCLATURE

renewcommand{nompreamble}{}% code after main title
renewcommand{nomgroup}[1]{%

\item[\textbf{%
    \ifthenelse{\equal{#1}{V}}{\emph{Variables}}{}% add more groups as needed
    \ifthenelse{\equal{#1}{P}}{\emph{Parameters}}{}%
    \ifthenelse{\equal{#1}{A}}{\emph{Abbreviations}}{}%
}]%

}
makenomenclature % For NOMENCLATURE

begin{document}

nomenclature[V]{$\quad$ M$_1$}{M parameters}
nomenclature[P]{$\quad$ $t$}{temperature}
nomenclature[V]{$\quad$ $t1$}{temperature111}
nomenclature[P]{$\quad$ $t2$}{temperature121}
printnomenclature

end{document}

编译后结果如下图,感觉是你想要的效果吧
微信图片_20221127110244.png

如果您有什么不同意见,您是对的,我是错的。
这家伙很懒,什么也没写!

这不是 mwe

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览