请问在Mac下如何利用texshop或者Texmaker编译词汇表

发布于 2026-04-20 14:21:33

各位大佬,windows下使用texworkstexmaker编辑器时,可以在终端进入相关.tex文件所在目录,然后用makeglossaries命令编译词汇表(导言区加载宏包glossaries)。WinEdt编辑器甚至直接构建了Make Glossary的快捷键,使用起来更加直接方便。

但为何在macOS下,却无法在终端中使用makeglossaries命令编译词汇表,提示找不到命令。同样在macOS中也无法使用makeindex命令编译索引,具体如下:

1、makeglossaries

mac@192 smart_contract % makeglossaries smartcontract
zsh: command not found: makeglossaries
mac@192 smart_contract % perl -v

This is perl 5, version 18, subversion 4 (v5.18.4) built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)

Copyright 1987-2013, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

2、makeindex

mac@192 smart_contract % makeindex -s smartcontract.ist -t smartcontract.glg -o smartcontract.gls smartcontract.glo
zsh: command not found: makeindex
mac@192 smart_contract % sudo makeindex -s smartcontract.ist -t smartcontract.glg -o smartcontract.gls smartcontract.glo
Password:
sudo: makeindex: command not found

当然,macOS中的texshoptexmaker编辑器构建了MakeIndex快捷键(但没有构建Make Glossary快捷键),直接使用MakeIndex快捷键使用进行编译,还是没有问题的,就是无法在终端下使用makeindexmakeglossaries两条命令。不知道有没有大佬能帮忙看看原因在哪里,如何解解决。在此先行谢过!

查看更多

关注者
0
被浏览
37
1 个回答
Sagittarius Rover
Sagittarius Rover 2小时前
这家伙很懒,什么也没写!
但为何在macOS下,却无法在终端中使用makeglossaries命令编译词汇表,提示找不到命令

终端能找到系统程序的必要条件是 makeglossaries.exe 需要在系统的 $PATH 路径下,可以尝试一下环境变量路径下是否真的有 makeglossaries.exe 这个程序。

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览