词汇表 PDF 书签前面包含等号

词汇表 PDF 书签前面包含等号

我正在用 scrreprt 文档类和词汇表包写一篇论文。我对词汇表的 PDF 书签有问题。如下图所示,词汇表书签前面有一个等号。我不知道为什么书签前面会出现等号,我想把它去掉。非常感谢您的帮助。

书签前的等号

这是您可以用于测试的最小工作文档:

%##### Praeambel: ##########################################################################

\documentclass[
    12pt,                                       
    DIV=13,                                     
    paper=A4,                               
    parskip=half,
    listof=totoc                                
]{scrreprt}

\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}

% Hyperlinks:
\usepackage[                                    
    bookmarks         = true,                   
    bookmarksnumbered = true,                   
    pdfpagemode       = {UseOutlines},      
    plainpages        = false,              
    pdfpagelabels     = true,                   
    colorlinks        = true,               
    linkcolor         = {black},            
    citecolor         = {black},                
    urlcolor          = {black},                
]{hyperref}

% Glossaries:
\usepackage[
    acronym,
    toc,
]{glossaries}

\usepackage{glossary-longbooktabs}

\makeglossaries

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

\newglossaryentry{formula}{
    name=formula,
    description={A mathematical expression}
}

\newacronym{afk}{AFK}{Away from keyboard}
\newacronym{btw}{BTW}{By the way}
\newacronym{fyi}{FYI}{For your interest}
\newacronym{asap}{ASAP}{As soon as possible}


\setlength{\parindent}{0pt}                     
\usepackage{blindtext}                      


%##### Text: ##############################################################################
\begin{document}

    \tableofcontents    
    
    \printglossary[title={\protect\centering\acronymname}, type=\acronymtype, style=long3col-booktabs]
    \printglossary[title={\protect\centering\glossaryname}, style=long3col-booktabs]

    \clearpage

    \chapter{Einleitung}
    The \Gls{latex} typesetting markup language is specially suitable for documents that include 
    \gls{maths}. \Glspl{formula} are rendered properly an easily once one gets used to the commands.
    \acrfull{fyi} das Akronym \acrshort{asap}, steht für \acrlong{asap}. \acrshort{btw} ich bin jetzt 
    \acrshort{afk}.

    \section{Motivation}
    \blindtext
    
    \listoffigures

\end{document}

答案1

@Ulrike Fischer 提供了以下可行的解决方案:

改变

\printglossary[
    title={\protect\centering\acronymname}, 
    type=\acronymtype, 
    style=long3col-booktabs
]

\printglossary[
    title={\texorpdfstring{\protect\centering\acronymname}{\acronymname}},
    type=\acronymtype, 
    style=long3col-booktabs
]   

相关内容