pdf文档中的字体在使用latex(尤其是pdflatex)在mac osx上生成时被搞乱了 [英] Fonts in pdf documents screwed up when generated with latex (specifically, pdflatex) on mac osx

查看:650
本文介绍了pdf文档中的字体在使用latex(尤其是pdflatex)在mac osx上生成时被搞乱了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的同事认为,texniscope是某种程度上的责任,我应该尝试从我的系统中清除它。

可能的线索:


    当我说字体被搞砸了,我的意思是主要文字看起来像也许这是默认的Mac系统字体,所有的数学是完全不可读的。基本上所有的特殊符号都是乱码。
  • 我从这里安装了latex: http://www.tug.org/mactex/ 。我已经安装了texniscope。当我运行 / usr / texbin / pdflatex foo.tex ,它似乎工作:

  • / b>


 
这是pdfTeXk,版本3.1415926-1.40.9(Web2C 7.5.7)
% - 线解析启用。
进入扩展模式
...

但是由此产生的pdf文件搞砸了字体。




  • 在命令行上使用pdflatex或使用TeXShop也会发生同样的事情。 苹果知道这个问题,并没有打算修复这个问题(我有一位教职员花了很多时间测试并向苹果公司提交了一个bug)。他们的观点是,PDFTeX错误地嵌入了字体,并且他们已经修复了Apple PDF库对于它将会和不会接受的内容的更严格的规定,这意味着您将继续在预览中看到使用PDFTeX创建的PDF文档的问题,TeXShop或其他使用Apple的PDF引擎显示PDF的工具。不幸的是,他们并不清楚PDFTeX究竟是在做什么错误,这使得修复它甚至向PDFTeX开发者报告错误是有问题的。请注意,Adobe的Acrobat或Reader应用程序通常可以毫无问题地显示这些文档;据推测,Adobe的错误检查比苹果公司的更为宽松。



    您可以在不重新启动的情况下从这个问题中恢复,尽管您可能会看到它在同一个会话中出现同一个文档。您需要运行

      atsutil服务器-shutdown 

    这将杀死Apple Type Services服务器守护进程(ATSServer)并产生一个新的实例,巧合的重建它的缓存文件。

    My colleague suggests that texniscope is somehow to blame and that I should try purging it from my system. I really hope not to have to resort to that!

    Possible clues:

    • This wasn't an issue till I upgraded to Leopard.

    • When I say the fonts are screwed up, I mean the main text looks like maybe it's the default mac system font, and all math is completely unreadable. Basically all special symbols are completely garbled.

    • I installed latex from here: http://www.tug.org/mactex/. I had already had texniscope installed.

    • When I run /usr/texbin/pdflatex foo.tex, it seems to work:

         This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
         %&-line parsing enabled.
         entering extended mode
        ...
    

    but the resulting pdf file has screwed up fonts.

    • The same thing happens both with pdflatex on the command line, or using TeXShop.

    解决方案

    Apple knows about the problem and isn't planning to fix it (I had a faculty member spend a lot of time testing and submit a bug to Apple). Their claim is that PDFTeX is embedding the fonts incorrectly, and they have fixed the Apple PDF library to be more strict about what it will and won't accept, which means that you will continue to see problems with PDF documents created with PDFTeX in Preview, TeXShop, or other tools that display PDF using Apple's PDF engine. Unfortunately, they weren't at all clear about exactly what it is that PDFTeX is doing wrong, which makes fixing it or even reporting the bug to the PDFTeX developers problematic. Note that Adobe's Acrobat or Reader applications can often display these documents without any problems; presumably Adobe's error-checking is more liberal than Apple's.

    You can actually recover from this problem without rebooting, although you may see it recur with the same document in the same session. You need to run

    atsutil server -shutdown
    

    which will kill the Apple Type Services server daemon (ATSServer) and spawn a new instance, coincidentally rebuilding its cache files.

    这篇关于pdf文档中的字体在使用latex(尤其是pdflatex)在mac osx上生成时被搞乱了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆