라텍스 용어집 그리스 기호: 알파벳 순서가 아님

라텍스 용어집 그리스 기호: 알파벳 순서가 아님

저는 논문을 쓰고 있는데 그리스 기호 목록 장을 가지고 있습니다. 목록은 성공적으로 생성되었지만 그리스 기호의 순서가 올바르지 않은 것을 발견했습니다. 내 코드는 다음과 같습니다.

\documentclass{article}
\usepackage[utf8]{inputenc}


\usepackage[hidelinks]{hyperref} % hyperlinks
\usepackage[toc, nopostdot, nonumberlist, nogroupskip, acronym, order=letter]{glossaries} 

\newglossary[ch1]{greekstyle}{ch2}{ch3}{List of Greek Symbols}

\setglossarystyle{long} % left align
\makeglossaries


\include{glossary_entries} % define all your symbols in a separated file. 


\title{My title}
\author{Name}
\date{November 2020}

\begin{document}

\maketitle

% print all the symbols without referencing them
\glsaddall
% remove the left vacant space of long style
\setlength\LTleft{0pt}
\setlength\LTright{0pt}
\setlength\glsdescwidth{1.0\hsize}

\printglossary[title=List of Symbols]


\printglossary[type=greekstyle]

\section{Introduction}
Some words...

\end{document}

glossary_entries.tex파일:

\newglossaryentry{latex}
{
    name=latex,
    description={Is a mark up language specially suited 
    for scientific documents}
}

\newglossaryentry{maths}
{
    name=mathematics,
    description={Mathematics is what mathematicians do}
}


% greek -------------------------------------------------------
\newglossaryentry{gls:phi}{name={$\phi_i, \phi_n$},description={basis function, orthogonal basis functions}, type=greekstyle}

\newglossaryentry{gls:tau}{name={$\tau$},description={truncation error}, type=greekstyle}

\newglossaryentry{gls:delta}{name={$\delta_{i, j}$},description={Kronecker delta}, type=greekstyle}

\newglossaryentry{gls:psi}{name={$\psi$},description={intermediate term in barycentric Lagrange interpolation}, type=greekstyle}

\newglossaryentry{gls:Omega}{name={$\Omega$},description={element representation, computational domain}, type=greekstyle}

\newglossaryentry{gls:Omega_e}{name={$\Omega_e$},description={domain of element $e$}, type=greekstyle}

\newglossaryentry{gls:lambda}{name={$\lambda, \lambda_i $},description={eigenvalue}, type=greekstyle}

\newglossaryentry{gls:Lambda}{name={$\Lambda$},description={diagonal matrix of coefficient matrix $\mathbf{A}$}, type=greekstyle}

\newglossaryentry{gls:xi}{name={$\xi$},description={reference space coordinate in $x$ direction}, type=greekstyle}

\newglossaryentry{gls:eta}{name={$\eta$},description={reference space coordinate in $y$ direction}, type=greekstyle}

\newglossaryentry{gls:sigma}{name={$\sigma$},description={error decay rate}, type=greekstyle}

\newglossaryentry{gls:alpha}{name={$\alpha$},description={the offset of linear least squares best fit}, type=greekstyle}

\newglossaryentry{gls:beta}{name={$\beta$},description={the slope of linear least squares best fit}, type=greekstyle}

\newglossaryentry{gls:estimated_error}{name={$\epsilon_{est}$},description={estimated error}, type=greekstyle}

\newglossaryentry{gls:discretization_tol}{name={$\epsilon$},description={discretization tolerance, balance ratio}, type=greekstyle}

\newglossaryentry{gls:Xi}{name={$\Xi$},description={mortar element}, type=greekstyle}

\newglossaryentry{gls:Psi}{name={$\Psi$},description={solution projection on the mortar}, type=greekstyle}

\newglossaryentry{gls:Phi}{name={$\Phi$},description={numerical flux on mortar}, type=greekstyle}

\newglossaryentry{gls:Gamma}{name={$\Gamma $},description={adjacent vertices set, domain boundary}, type=greekstyle}

\newglossaryentry{gls:test_function}{name={$\varphi, \varphi_j$},description={test function}, type=greekstyle}

생성되는 것: 무도회

그러나 이것은 알파벳 순서가 아닙니다. 예를 들어 는 \Xi앞에 배치되어야 합니다 \Omega. 대문자 순서와 소문자 순서가 모두 잘못되었습니다. 이 문제를 어떻게 해결할 수 있나요? 매우 감사합니다.

답변1

손쉬운 수정 방법은 다음과 같습니다. 그리스 문자를 수동으로 정렬합니다.

sort에 인수를 추가할 수 있습니다 \newglossaryentry{}. 나는 그리스 문자에 glossary_entries.tex다음과 같이 번호를 매겼습니다.

\newglossaryentry{gls:phi}{name={$\phi_i, \phi_n$},description={basis function, orthogonal basis functions}, sort = {b21}, type=greekstyle}

\newglossaryentry{gls:tau}{name={$\tau$},description={truncation error}, sort = {b19}, type=greekstyle}

...

그리고 용어집을 인쇄하도록 명령을 변경했습니다.

\printnoidxglossary[sort=standard, type=greekstyle] 

그런 다음 원하는 순서를 얻었습니다.

관련 정보