Textmate Latex 编译:macOS 更新 Monterey 12.3 后带有 python 版本的 pb

Jul*_*rot 6 ruby python textmate latex

我使用 textmate 在乳胶中制作 pdf 文件。macOS Monterey 版本 12.3 更新后,最小版本的 python (/usr/bin/python) 消失了:编译现在无法工作。\n我尝试通过 / 更改文本伙伴的文件 /usr/bin/python usr/bin/python3 (我只有这个 python 文件夹),但这总是不起作用。

\n

错误说我更改了编译命令,如下所示:

\n
 #!/usr/bin/env ruby18\n# coding: utf-8\n\nrequire ENV["TM_SUPPORT_PATH"] + "/lib/tm/process"\nrequire ENV["TM_SUPPORT_PATH"] + "/lib/tm/htmloutput"\nrequire ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document"\n\n# To enable the typesetting of unsaved documents, you must change the \xe2\x80\x9cSave\xe2\x80\x9d setting of\n# this command to \xe2\x80\x9cCurrent File\xe2\x80\x9d and add the variable TM_LATEX_AUTOSAVE to TextMate's\n# Shell Variables preferences. Be warned that your document must be encoded as UTF-8 if\n# you exercise this option \xe2\x80\x94 becauseTextMate.save_current_document cannot know the file \n# encoding you prefer.\n\nTextMate.save_current_document unless ENV["TM_LATEX_AUTOSAVE"].nil?\n\ntexmate = ENV["TM_BUNDLE_SUPPORT"] + "/bin/texmate.py"\nengine_version = TextMate::Process.run(texmate, "version")\nTextMate::HTMLOutput.show(:title => "Typesetting \xe2\x80\x9c#{ENV["TM_DISPLAYNAME"] || File.basename(ENV["TM_FILEPATH"])}\xe2\x80\x9d\xe2\x80\xa6", :sub_title => engine_version) do |io|\n  TextMate::Process.run(texmate, 'latex', :interactive_input => false) do |line|\n    io << line\n  end\nend\n::Process.exit($?.exitstatus || 0) # exitstatus is nil if our process is prematurely terminated (SIGINT)\n
Run Code Online (Sandbox Code Playgroud)\n

非常感谢您的帮助。\nPS:使用texshop进行编译,我不认为这是乳胶问题

\n

小智 7

TextMate 的 LaTeX-Bundle 没有及时更新以适应 MacOS 12.3 的发布。您可以按如下方式修复它:

\n
    \n
  1. 下载并安装 Python 3 ( https://www.python.org/downloads/ )
  2. \n
  3. /usr/bin/python3 -m pip install pyobjc --user
  4. \n
  5. cd ~/Library/Application\\ Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin
  6. \n
  7. 将所有 .py 文件(configure.py、btexdoc.py、texmate.py、texparser.py)标头中的 \xe2\x80\x9cpython\xe2\x80\x9d 更改为 \xe2\x80\x9cpython3\xe2\x80\x9d )
  8. \n
\n