- 如何修复以下问题以将名称列宽度设置为最宽的条目名称?
- 如何对条目进行排序,使得希腊字母在前,并且排在拉丁字母之前?
- 在排版和排序使用希腊字母标签时是否可以正确解析它?
\begin{filecontents*}[overwrite]{GlossaryEntries.bib}
@symbol{vy,
name = {\ensuremath{v_y}},
description = {Lateral velocity}
}
@symbol{delta,
name = {\ensuremath{\Delta}},
description = {some symbol}
}
@symbol{α,
name = {\ensuremath{\alpha}},
description = {another symbol}
}
@symbol{F,
name = {\ensuremath{F_{x,ij}^{D}}},
description = {Dynamic longitudinal force of ij tire}
}
\end{filecontents*}
\documentclass{article}
\usepackage{hyperref}
\usepackage[
symbols,
record,
]{glossaries-extra}
\GlsXtrLoadResources[
match = {entrytype = symbol},
type = symbols,
selection = {all},
src = GlossaryEntries,
symbol-sort-fallback = {name},
break-at = {none},
]
\newlength\glsnamewidth
\newglossarystyle{nameunitdesc}{%
\setlength{\glsdescwidth}{\linewidth-\glsnamewidth-\tabcolsep}%
\renewenvironment{theglossary}%
{\begin{supertabular}{@{}p{\glsnamewidth}@{\hspace{\tabcolsep}}%
p{\glsdescwidth}@{}}\toprule\addlinespace[5pt]}%
{\bottomrule\end{supertabular}}%
\renewcommand*{\glossaryheader}{}%
\renewcommand*{\glsgroupheading}[1]{}%
\renewcommand{\glossentry}[2]{%
\raggedright\glstarget{##1}{\glossentryname{##1}} &
\glossentrydesc{##1}\tabularnewline
}%
\renewcommand{\subglossentry}[3]{\glossentry{##2}{##3}}%
\renewcommand*{\glsgroupskip}{}%
}
\begin{document}
\glsFindWidestAnyNameSymbol{\glsnamewidth}
\gls{α} and \gls{delta}
\printunsrtglossary[
style = nameunitdesc,
nonumberlist,
type = symbols,
title = Nomenclature
]
\end{document}