每当我尝试使用 LaTeXiT 渲染 LaTeX 时,该过程似乎已成功完成,但显示框却是空的。这是我点击“LaTeX it”后看到的图片
我已将相应的 LaTeX 执行日志粘贴于本文底部。
我在最新版本的 macOS Catalina 上运行了最新版本的 LaTeXiT。据我所知,我的 ghostscript 安装是最新的。
我尝试过但未能解决问题的方法:
- 重新安装 LaTeXiT 并回滚到以前的版本
- 尝试更新所有内容,包括 GhostScript
- 从暗色模式切换为亮色模式并切换回暗色模式
- 调整 LaTeXiT 设置以进行输出裁剪和输出文件类型
- 更改 LaTeXiT 默认环境
执行日志
Source :
\documentclass[10pt]{article}
\usepackage[usenames]{color} %used for font color
\usepackage{amssymb} %maths
\usepackage{amsmath} %maths
\usepackage[utf8]{inputenc} %useful to type directly diacritic characters
\pagestyle{empty} \begin{document}$\displaystyle 8
$
\end{document}
--------------- processing pdflatex ---------------
#!/bin/sh
export TMPDIR="/var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/" 1>/dev/null 2>&1
export SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.uJGrd1QwSc/Listeners" 1>/dev/null 2>&1
export SHELL="/bin/zsh" 1>/dev/null 2>&1
export HOME="/Users/username" 1>/dev/null 2>&1
export XPC_SERVICE_NAME="fr.chachatelier.pierre.LaTeXiT.32160" 1>/dev/null 2>&1
export XPC_FLAGS="0x0" 1>/dev/null 2>&1
export __CF_USER_TEXT_ENCODING="0x1F6:0x0:0x0" 1>/dev/null 2>&1
export PATH="/Library/TeX/texbin:/opt/local/bin:/usr/local/bin:/sbin:/sw/bin:/bin:/usr/sbin:/usr/local/sbin:/sw/sbin:/usr/texbin:/sw/usr/bin:/sw/usr/sbin:/usr/local/texbin:/usr/bin:/sw/local/bin:/sw/local/sbin:/sw/usr/local/bin:/sw/usr/local/sbin:/opt/local/sbin" 1>/dev/null 2>&1
export LOGNAME="username" 1>/dev/null 2>&1
export USER="username" 1>/dev/null 2>&1
cd /var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0
/Library/TeX/texbin/pdflatex -file-line-error -interaction nonstopmode /var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0/latexit-1.tex 1>|/var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0/latexit-task-stdout.N43Z0ryK.log 2>|/var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0/latexit-task-stderr.6XufxRyG.log </dev/null
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(/var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0/latexit-1.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-03-06>
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics-def/pdftex.def))
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/inputenc.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def)
No file latexit-1.aux.
(/usr/local/texlive/2020/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2020/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsfonts/umsb.fd) [1{/usr/local/t
exlive/2020/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./latexit-1.aux) )<
/usr/local/texlive/2020/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on latexit-1.pdf (1 page, 8925 bytes).
Transcript written on latexit-1.log.
--------------- bounding box computation ---------------
#!/bin/sh
export TMPDIR="/var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/" 1>/dev/null 2>&1
export SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.uJGrd1QwSc/Listeners" 1>/dev/null 2>&1
export SHELL="/bin/zsh" 1>/dev/null 2>&1
export HOME="/Users/username" 1>/dev/null 2>&1
export XPC_SERVICE_NAME="fr.chachatelier.pierre.LaTeXiT.32160" 1>/dev/null 2>&1
export XPC_FLAGS="0x0" 1>/dev/null 2>&1
export __CF_USER_TEXT_ENCODING="0x1F6:0x0:0x0" 1>/dev/null 2>&1
export PATH="/Library/TeX/texbin:/opt/local/bin:/usr/local/bin:/sbin:/sw/bin:/bin:/usr/sbin:/usr/local/sbin:/sw/sbin:/usr/texbin:/sw/usr/bin:/sw/usr/sbin:/usr/local/texbin:/usr/bin:/sw/local/bin:/sw/local/sbin:/sw/usr/local/bin:/sw/usr/local/sbin:/opt/local/sbin" 1>/dev/null 2>&1
export LOGNAME="username" 1>/dev/null 2>&1
export USER="username" 1>/dev/null 2>&1
cd /var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0
/usr/local/bin/gs-noX11 -sstdout=%stderr -dNOPAUSE -dSAFER -dNOPLATFONTS -sDEVICE=bbox -dBATCH -q /var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0/latexit-1.pdf 1>|/var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0/latexit-task-stdout.74Kte83s.log 2>|/var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0/latexit-task-stderr.07GZhLcY.log </dev/null
--------------- pdfcrop call ---------------
#!/bin/sh
export TMPDIR="/var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/" 1>/dev/null 2>&1
export SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.uJGrd1QwSc/Listeners" 1>/dev/null 2>&1
export SHELL="/bin/zsh" 1>/dev/null 2>&1
export HOME="/Users/username" 1>/dev/null 2>&1
export XPC_SERVICE_NAME="fr.chachatelier.pierre.LaTeXiT.32160" 1>/dev/null 2>&1
export XPC_FLAGS="0x0" 1>/dev/null 2>&1
export __CF_USER_TEXT_ENCODING="0x1F6:0x0:0x0" 1>/dev/null 2>&1
export PATH="/Library/TeX/texbin:/opt/local/bin:/usr/local/bin:/sbin:/sw/bin:/bin:/usr/sbin:/usr/local/sbin:/sw/sbin:/usr/texbin:/sw/usr/bin:/sw/usr/sbin:/usr/local/texbin:/usr/bin:/sw/local/bin:/sw/local/sbin:/sw/usr/local/bin:/sw/usr/local/sbin:/opt/local/sbin" 1>/dev/null 2>&1
export LOGNAME="username" 1>/dev/null 2>&1
export USER="username" 1>/dev/null 2>&1
cd /var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0
perl "/Applications/TeX/LaTeXiT.app/Contents/Resources/pdfcrop.pl" --clip --pdfversion 1.5 --gscmd /usr/local/bin/gs-noX11 --pdftex --pdftexcmd /Library/TeX/texbin/pdflatex --margins "0.000000 0.180000 0.000000 0.180000" /var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0/latexit-1-baseline.pdf /var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0/latexit-1-crop.pdf 1>|/var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0/latexit-task-stdout.tjJAiPrI.log 2>|/var/folders/g_/3gcjjjc12l9cjdh8drtctrdm0000gp/T/LaTeXiT-2.15.0/latexit-task-stderr.qhez8mhx.log </dev/null
------------------------------------------------
编辑:这是我的“首选项”面板的图片。我尝试了复选框的各种排列,也尝试了背景颜色和文本颜色。这些都无法解决问题。
编辑:我找到了解决方案这个答案。问题是 GhostScript 的版本。
答案1
我遇到了同样的问题。我的 LaTeXiT 附带 mactex homebrew cask。我相信这个问题是在我升级到 MacOS Big Sur 后出现的(homebrew 抱怨说他们几周内都不支持这个最新版本的 MacOS)。尝试了很多方法来解决这个问题,包括重新安装 mactex cask 和安装独立的 latexit cask,但都没有解决问题。今天我卸载了 mactex cask,直接安装了从
https://www.tug.org/mactex/
问题终于解决了。
答案2
我遇到了完全相同的问题,下面是我修复它的方法。
- 删除 LaTeXit 偏好设置。(Library/Preferences/fr.chachatelier.pierre.LaTeXiT.plist)
- 删除 LaTeXit
- 重新安装 LaTeXit