问题(概述)
latexmk
当我打开文件时,Neovim 中没有初始化*.tex
。此外,当我尝试latexmk
使用 TeX Live Utility 安装/重新安装时,安装长期失败。
问题(详细)
我是一名 Neovim 用户,希望开始学习如何使用 LaTeX 做笔记和撰写学术论文。为此,我最近:
- 在我的 Macbook(运行 Catalina 版本 10.15.7)上安装了 MacTex。
- 已安装VimTeX 插件通过我的
init.vim
插件管理器。 - 通过我的配置,VimTex
init.vim
使用以下设置:
let g:vimtex_view_method='skim'
let g:vimtex_quickfix_enabled=0
let g:tex_flavor='latex'
set conceallevel=2
但是,当我*.tex
在 Neovim 中打开文件时,收到以下错误:
VimTeX: latexmk is not executable
VimTeX: Compiler was not initialized!
经过一番侦查这个旧的 TeX - LaTeX Stack Exchange 帖子似乎引用了一个几乎相同的错误。在我的计算机上打开 TeX Live Utility 并在 Packages 下搜索“latexmk”,显示已universal-darwin
安装在我的计算机上;但是,尝试重新安装universal-darwin
(或任何其他版本的latexmk
)始终返回“安装失败”消息。
打开日志发现:
2022-09-05 00:20:50 +0000 Notice -[TLMMainWindowController _isCorrectDatabaseVersionAtURL:][7166] Checking database version in case preferences have been changed…
2022-09-05 00:20:50 +0000 Notice -[TLMMainWindowController _installPackagesWithNames:reinstall:][7166] Beginning install of (
latexmk
)
from https://mirror.las.iastate.edu/tex-archive/systems/texlive/tlnet/
2022-09-05 00:20:50 +0000 Notice -[TLMAuthorizedOperation main][7166] Checking code signature before running tlu_ipctask as root…
2022-09-05 00:20:50 +0000 Notice /usr/bin/codesign[7166] /Applications/TeX/TeX Live Utility.app/Contents/MacOS/tlu_ipctask: valid on disk
/Applications/TeX/TeX Live Utility.app/Contents/MacOS/tlu_ipctask: satisfies its Designated Requirement
2022-09-05 00:20:50 +0000 Notice -[TLMAuthorizedOperation main][7166] Signature was valid, okay to run tlu_ipctask
2022-09-05 00:20:54 +0000 Notice -[TLMAuthorizedOperation main][7166] Invoking privileged task via AuthorizationExecuteWithPrivileges
2022-09-05 00:20:54 +0000 Notice tlu_ipctask[15405] dropped privileges to user nobody
2022-09-05 00:20:55 +0000 Notice -[TLMAuthorizedOperation setWrapperPID:][7166] tlu_ipctask checking in: tlu_ipctask pid = 15405
2022-09-05 00:20:56 +0000 Notice -[TLMAuthorizedOperation setUnderlyingPID:][7166] tlu_ipctask checking in: pid = 15406 (/Library/TeX/texbin/tlmgr --machine-readable --repository https://mirror.las.iastate.edu/tex-archive/systems/texlive/tlnet/ --persistent-downloads install --reinstall latexmk)
2022-09-05 00:20:56 +0000 Notice tlu_ipctask[15405] tlu_ipctask: child HOME = '/var/root'
2022-09-05 00:20:56 +0000 Notice tlu_ipctask[15405] tlu_ipctask: current HOME = '/var/empty'
2022-09-05 00:20:58 +0000 Warning tlu_ipctask[15405] start load https://mirror.las.iastate.edu/tex-archive/systems/texlive/tlnet/
2022-09-05 00:20:59 +0000 Warning tlu_ipctask[15405] finish load https://mirror.las.iastate.edu/tex-archive/systems/texlive/tlnet/
2022-09-05 00:20:59 +0000 Warning tlu_ipctask[15405] tlmgr: Terminating; please see warning above!
2022-09-05 00:20:59 +0000 Notice tlu_ipctask[15405] location-url https://mirror.las.iastate.edu/tex-archive/systems/texlive/tlnet/
2022-09-05 00:21:00 +0000 Notice -[TLMAuthorizedOperation _runUntilChildExit][7166] kqueue noted that pid 15406 exited (/Library/TeX/texbin/tlmgr --machine-readable --repository https://mirror.las.iastate.edu/tex-archive/systems/texlive/tlnet/ --persistent-downloads install --reinstall latexmk)
2022-09-05 00:21:00 +0000 Notice tlu_ipctask[15405] child process pid = 15406 exited
2022-09-05 00:21:01 +0000 Notice tlu_ipctask[15405] exit status of pid = 15406 was 255
2022-09-05 00:21:01 +0000 Notice -[TLMAuthorizedOperation _runUntilChildExit][7166] exit status of pid = 15405 was 255
2022-09-05 00:21:01 +0000 Notice -[TLMAuthorizedOperation _runUntilChildExit][7166] kqueue noted that tlu_ipctask (pid = 15405) exited with status 255
更令人困惑的是,尽管 TeX Live Utility 指示latexmk
是安装后,不是可以在命令行上使用:
$ latexmk
zsh: command not found: latexmk
此外 - 我不确定这是否与该问题有关,但为了以防万一我还是会在这里提一下 -tlmgr
在命令行上运行会返回相同的消息:
$ tlmgr
zsh: command not found: tlmgr
正如我之前提到的,我是 LaTex 的新手,所以恐怕这个问题对我来说完全不透明。我假设如果我能开始工作,编译器的问题就会解决latexmk
......但我对此不是 100% 确定。
任何见解、帮助或建议都将不胜感激!