我刚刚使用 HomeBrew 将 MacTex 从 2018 升级到 2019,图形渲染效果不佳(与早期版本相比非常模糊,猜测可能是默认图形分辨率配置的一些变化),所以我卸载了它并从下载了整个软件包http://www.tug.org/mactex/然后重新安装。现在又出现了一个新问题,裁剪不当。
对于简单的文本,
\documentclass[10pt]{article}
\usepackage{nopageno}
\usepackage[usenames]{color}
\usepackage{amssymb, amsmath, amsthm}
\usepackage[utf8]{inputenc}
\usepackage{multirow}
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}
\newtheorem*{main}{Main~Theorem}
\newtheorem{lemma}{Lemma}
\newtheorem{proposition}{Proposition}
\newtheorem{exercise}{Exercise}
\theoremstyle{definition}
\newtheorem{definition}{Definition}
\theoremstyle{remark}
\newtheorem*{notation}{Notation}
\numberwithin{equation}{section}
\begin{document}
$ abcdefg $
\end{document}
然后我尝试使用 pdflatex 和 pdfcrop 从控制台渲染它,pdf 似乎没问题,而裁剪版本与上面的版本类似。
以下是 pdfcrop 的调试信息:
PDFCROP 1.38, 2012/11/02 - Copyright (c) 2002-2012 by Heiko Oberdiek.
* Restricted mode: disabled
* Option `pdfversion': auto
* Perl executable: /usr/local/Cellar/perl/5.28.1/bin/perl
* Perl version: v5.28.1
* Pointer size: 8
* Pipe support: yes
* Fork support: yes
* OS name: darwin
* Arch name: darwin-thread-multi-2level
* System: unix
* Not found (gs): /usr/local/sbin/gs
* Not found (gs): /usr/local/opt/texinfo/bin/gs
* Not found (gs): /usr/local/opt/qt/bin/gs
* Not found (gs): /Applications/calibre.app/Contents/MacOS/gs
* Not found (gs): <my-user-folder>/rmac/bin/gs
* Found (gs): /usr/local/bin/gs
* Autodetected ghostscript command: gs
* Input file: a.pdf
* Output file: a-crop.pdf
* Margins: 0 0 0 0
* PDF header: %PDF-1.5
* Using PDF minor version: 5
* Running ghostscript for BoundingBox calculation ...
* Ghostscript call: gs -sDEVICE=bbox -dBATCH -dNOPAUSE -c save pop -f a.pdf
GPL Ghostscript 9.27 (2019-04-04)
Copyright (C) 2018 Artifex Software, Inc. All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Processing pages 1 through 1.
Page 1
%%BoundingBox: 144 651 177 659
* Page 1: 144 651 177 659
%%HiResBoundingBox: 144.557996 651.347980 176.705995 658.961980
* Running pdfTeX ...
* pdfTeX call: pdftex -no-shell-escape -interaction=nonstopmode tmp-pdfcrop-2173
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdftex)
entering extended mode
(./tmp-pdfcrop-2173.tex [1 <./a.pdf>] )
Output written on tmp-pdfcrop-2173.pdf (1 page, 11402 bytes).
Transcript written on tmp-pdfcrop-2173.log.
==> 1 page written on `a-crop.pdf'.
* Cleanup
* Temporary files: tmp-pdfcrop-2173.tex tmp-pdfcrop-2173.log
我在 MacTex 2017 或 2018 版本中没有遇到过此类问题。gs 边界框计算过程中是否出现任何问题?有人可以解释一下吗?非常感谢。谢谢。