词汇表-额外符号:设置名称列的宽度并对混合希腊语/拉丁语条目进行排序

词汇表-额外符号:设置名称列的宽度并对混合希腊语/拉丁语条目进行排序
  1. 如何修复以下问题以将名称列宽度设置为最宽的条目名称?
  2. 如何对条目进行排序,使得希腊字母在前,并且排在拉丁字母之前?
  3. 在排版和排序使用希腊字母标签时是否可以正确解析它?

在此处输入图片描述

\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}

相关内容