我有一份包含缩写、术语和词汇表部分的文档。一些术语条目还添加了词汇表术语。
我想将我的命名法分组分成符号、希腊字母和下标之类的内容(可以根据需要添加更多内容,例如常量)。
我找到了一些选项(重命名组 A、G 和 S 并使用 sort=X),但这也会重命名缩写和词汇表中的组。
我怎样才能让我的自定义组仅适用于命名法?
以下是 MWE:
\documentclass[]{scrbook}
\KOMAoptions{twoside=false}
\usepackage[hidelinks]{hyperref}
\hypersetup{pdftex,colorlinks=true,allcolors=blue}
\usepackage{bookmark}
\bookmarksetup{numbered,open}
\usepackage[toc,acronym,nopostdot]{glossaries}
\usepackage{siunitx}
\newglossary[nlg]{nomenclature}{not}{ntn}{Nomenclature}
\makeglossaries
\newcommand*{\Agroupname}{Symbols}
\newcommand*{\Ggroupname}{Greek Letters}
\newcommand*{\Sgroupname}{Subscripts}
\newacronym{rpm}{rpm}{revolutions per minute}
\newacronym{gdt}{GDT}{Geometric Dimensioning and Tolerancing}
\newglossaryentry{geo}{
name={geometric},
description={relating to geometry, the branch of mathematics...}}
\newglossaryentry{pressure}{type=nomenclature,
name=\ensuremath{P},
sort=a,
description={pressure (\si{\newton\per\square\metre})},
first={pressure (\ensuremath{P})\glsadd{pressure_g}},
see=[Glossary:]{pressure_g}}
\newglossaryentry{pressure_g}{
name={pressure},
description={a continuous physical force exerted on or against an object by something in contact with it}}
\newglossaryentry{density}{type=nomenclature,
name=\ensuremath{\rho},
sort=g,
description={density (\si{\kilo\gram\per\cubic\metre})},
first={density (\ensuremath{\rho})\glsadd{rho_g}},
see=[Glossary:]{rho_g}}
\newglossaryentry{rho_g}{
name={density},
description={a material's mass per unit volume with units \si{\kilo\gram\per\cubic\metre}}}
\begin{document}
\frontmatter
\glossarystyle{listhypergroup}
\printglossary[type=\acronymtype,title=Abbreviations]
\glossarystyle{listhypergroup}
\printglossary[type=nomenclature,title=Nomenclature]
\mainmatter
\chapter{Test}
\gls{gdt} and \gls{rpm} are abbreviations. \Gls{geo} is a glossary term. \Gls{pressure} and \gls{density} are nomenclature terms.
\glossarystyle{listhypergroup}
\printglossary[title=Glossary]
\end{document}