
フランス語の用語集を入手しようとしています。そこで、パッケージのサンプル (英語) から始めました。次に(x2)glossaries
実行すると、サンプルはすべて正常でした。パッケージのオプションを使用して同じサンプルを実行し、用語集パッケージのガイドで提案されているように追加すると、すべてうまく機能しています。latex
makeglossaries
latex
xindy
glossaries
\usepackage[spanish]{babel}
しかし、ここで問題が発生します。スペイン語をフランス語に変更すると、xindy からエラー メッセージが表示されます。
ERROR: Syntax Error in (INDEXENTRY :TKEY (:|EMPTYSET@INDEXeNDCSNAME|) :LOCREF "{}{11}" :ATTR "pageglsnumberformat").
これが私の LaTeX コードです:
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[xindy,toc,acronym]{glossaries}
% Define a new glossary type called notation
\newglossary[nlg]{notation}{not}{ntn}{Notation}
\makeglossaries
% Notation definitions
\newglossaryentry{not:emptyset}{type=notation,
name={$O$},
text={00},
description={The empty set},
sort={O}}
% Main glossary definitions
\newglossaryentry{gls:card}{name=cardinality,
description={The number of elements in the specified set}}
% Acronym definitions
\newacronym{nf}{NF}{new foundations}
\begin{document}
\title{Sample Document using the glossaries Package}
\author{Nicola Talbot}
\maketitle
\tableofcontents
\printglossaries
\chapter{Introduction}
$\gls{not:emptyset}$
\gls{gls:card}
\gls{nf}
\end{document}
グーグルで検索しましたが、何も見つかりません。誰か助けてくれませんか?
答え1
(私のコメントを回答に変換します。)
babel
を 設定で使用するとfrench
、コロンが:
アクティブ文字に変換されます。用語集エントリ ラベルはエントリ データを保存する内部コマンドを形成するために使用されるため、アクティブ文字を含めることはできません。コロンを削除するか、非アクティブ文字に置き換えると、問題は解決します。たとえば、コロンをピリオドに置き換えると、問題なく動作します。
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[xindy,toc,acronym]{glossaries}
% Define a new glossary type called notation
\newglossary[nlg]{notation}{not}{ntn}{Notation}
\makeglossaries
% Notation definitions
\newglossaryentry{not.emptyset}{type=notation,
name={$O$},
text={00},
description={The empty set},
sort={O}}
% Main glossary definitions
\newglossaryentry{gls.card}{name=cardinality,
description={The number of elements in the specified set}}
% Acronym definitions
\newacronym{nf}{NF}{new foundations}
\begin{document}
\title{Sample Document using the glossaries Package}
\author{Nicola Talbot}
\maketitle
\tableofcontents
\printglossaries
\chapter{Introduction}
$\gls{not.emptyset}$
\gls{gls.card}
\gls{nf}
\end{document}