
略語リストを文書に表示したいと思います。
glossary
見つかったコードを使用していますここ略語のリストが表示されません。次の手順を実行しました。
パールスクリプトをインストールしました。
次に、をダウンロードしてフォルダ名に
makeglossaries.bat
配置し、そのフォルダをパスに配置しましたmakeglossaries.txt
makeglossaries
C:\Users\mycomputer\makeglossaries
次に、
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}