使用 \makeglossaries 未顯示的縮寫列表

使用 \makeglossaries 未顯示的縮寫列表

我希望在我的文件中顯示縮寫列表。

我正在使用glossary找到的程式碼這裡並且無法顯示縮寫清單。我採取了以下步驟:

  1. 我安裝了珍珠腳本。

  2. 然後我下載並將makeglossaries.bat其放入makeglossaries.txt資料夾名稱中makeglossaries,並將該資料夾放入路徑中C:\Users\mycomputer\makeglossaries

  3. 然後我makeglossaries.bat通過將原始命令更改為 來修改該文件perl -S %makeglossaries_path%\makeglossaries "%~n1"

我正在使用 WinEdt,當我運行時PDFLaTeXify,我收到警告

Can't open pearl script "\makeglossaries": No such file or directory

我看到該.acn文件是使用詞彙表建立的。

您能告訴我如何讓縮寫清單顯示在文件中嗎?

我確實查看了有關此問題的其他帖子,但仍然無法找到解決方案。

這是代碼:

\documentclass{article}
\usepackage{longtable}
\usepackage[acronym]{glossaries}

% abbreviations:
\newacronym{ny}{NY}{New York}
\newacronym{la}{LA}{Los Angeles}
\newacronym{un}{UN}{United Nations}

% nomenclature:
\newglossaryentry{angelsperarea}{
  name = $a$ ,
  description = The number of angels per unit area,
}
\newglossaryentry{numofangels}{
  name = $N$ ,
  description = The number of angels per needle point
}
\newglossaryentry{areaofneedle}{
  name = $A$ ,
  description = The area of the needle point
}

\makeglossaries
\begin{document}

\gls{ny}, \gls{la} and \gls{un} are abbreviations whereas
\gls{angelsperarea}, \gls{numofangels} and \gls{areaofneedle} are part of the
nomenclature

\printglossary[type=\acronymtype,title=Abbreviations]

\printglossary[title=Nomenclature]

\end{document} 

相關內容