我想创建一个个性化的词汇表(因为我想创建两个不同的词汇表)。
我首先尝试了 Overleaf 教程(https://www.overleaf.com/learn/latex/Glossaries),它对我有用。
然后我尝试重现本教程:词汇表包,多个词汇表混合条目但我无法创建新的词汇表。
这是一个简单的例子:
\documentclass[a4paper,12pt]{report}
\usepackage[toc]{glossaries}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Trying creating my glossary
\newglossary*{type1}{Title One} % or \newglossary[tld]{type1}{pref1}{ntn1}{Title One}
\makeglossaries
\newglossaryentry{pref1:latex}{
type=type1,
name=latex,
description={Is a markup language specially suited for
scientific documents}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Normal
%\makeglossaries
%
%\newglossaryentry{latex}{
% name=latex,
% description={Is a markup language specially suited for
%scientific documents}
%}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The
%\Gls{latex}
\Gls{pref1:latex}
typesetting markup language is specially suitable for documents that include maths.
%\printglossary
\printglossary[type=type1]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
普通版本是受 Overleaf 启发的版本(带注释的版本);未注释的版本是我尝试从 stackexhange 问题中创建新的词汇表的版本。
当我运行 MakeIndex 时,收到以下消息:
Process started
This is makeindex, version 2.16 [MiKTeX 23.5]. Scanning style file ./build/test3.ist...........................
done (27 attributes redefined, 0 ignored). Scanning input file build/test3.glo...done (0 entries accepted, 0 rejected). Nothing written in build/test3.gls. Transcript written in build/test3.glg.
Process exited normally
有人能帮帮我吗?谢谢!