如果我使用 overleaf 编译 main.tex,latex 文件会编译为 6mb pdf。我使用相同的引擎在本地机器上使用 pdflatex 编译 pdf,得到 140mb pdf 文件。此问题仅在使用以下包时发生:
\usepackage[accsupp]{axessibility}
但问题只发生在上述软件包中,而不是在 overleaf 上
源文件和资产(如图像)加起来只有几 MB。我很难理解问题出在哪里。
Here is how much of TeX's memory you used:
14128 strings out of 481239
231003 string characters out of 5920377
544979 words of memory out of 5000000
28581 multiletter control sequences out of 15000+600000
589840 words of font info for 350 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
49i,12n,46p,1246b,525s stack positions out of 5000i,500n,10000p,200000b,80000s
{/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc}</usr/share/texliv
e/texmf-dist/fonts/type1/public/amsfonts/cm/cmbsy10.pfb></usr/share/texlive/tex
mf-dist/fonts/type1/public/amsfonts/cm/cmex10.pfb></usr/share/texlive/texmf-dis
t/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/texlive/texmf-dist/font
s/type1/public/amsfonts/cm/cmmi5.pfb></usr/share/texlive/texmf-dist/fonts/type1
/public/amsfonts/cm/cmmi6.pfb></usr/share/texlive/texmf-dist/fonts/type1/public
/amsfonts/cm/cmmi7.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfon
ts/cm/cmmi9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/c
mr10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr5.pfb
></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr6.pfb></usr/s
hare/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb></usr/share/tex
live/texmf-dist/fonts/type1/public/amsfonts/cm/cmr9.pfb></usr/share/texlive/tex
mf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dis
t/fonts/type1/public/amsfonts/cm/cmsy7.pfb></usr/share/texlive/texmf-dist/fonts
/type1/public/amsfonts/cm/cmsy9.pfb></usr/share/texlive/texmf-dist/fonts/type1/
public/amsfonts/symbols/msbm10.pfb></usr/share/texlive/texmf-dist/fonts/type1/u
rw/courier/ucrr8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/urw/times/utmb
8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/urw/times/utmbi8a.pfb></usr/s
hare/texlive/texmf-dist/fonts/type1/urw/times/utmr8a.pfb></usr/share/texlive/te
xmf-dist/fonts/type1/urw/times/utmri8a.pfb>
Output written on main.pdf (18 pages, 149582541 bytes).
PDF statistics:
624 PDF objects out of 1000 (max. 8388607)
502 compressed objects within 6 object streams
127 named destinations out of 1000 (max. 500000)
39728 words of extra memory for PDF output out of 42996 (max. 10000000)
答案1
arxiv 上的源代码加载\usepackage[accsupp]{axessibility}
并且该包强制创建未压缩的 pdf。
该软件包还处于实验阶段,应小心使用。
答案2
很可能 Overleaf 已经修改了包的结构来设置\pdfcompresslevel=1
生成压缩版本的 pdf。arXiv 尚未以任何方式定制此包的行为,因此当提供该选项时它会遵循默认值。arXiv 工作人员确实联系了该包的维护者,但这取决于他们是否在代码中更改该行为。