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)\nRun Code Online (Sandbox Code Playgroud)\n非常感谢您的帮助。\nPS:使用texshop进行编译,我不认为这是乳胶问题
\n小智 7
TextMate 的 LaTeX-Bundle 没有及时更新以适应 MacOS 12.3 的发布。您可以按如下方式修复它:
\n