打开 .dvi 文件时出现问题

打开 .dvi 文件时出现问题

我想知道为什么我的 Lubuntu 11.10 无法打开使用 Latex 创建的 .dvi 文件。

请问有人可以帮我解决这个问题吗?


当我evince L1.dvi在终端中使用 , 时,会evince打开但不会打开文件,并且终端上的消息是:

    evince L1.dvi 

(evince:3556): Gtk-WARNING **: Theme parsing error: gtk-buttons.css:159:10: Expected valid border

(evince:3556): Gtk-WARNING **: Theme parsing error: gtk-bars.css:102:16: Themeing engine 'adwaita' not found

(evince:3556): Gtk-WARNING **: Theme parsing error: gtk-bars.css:117:16: Themeing engine 'adwaita' not found

(evince:3556): Gtk-WARNING **: Theme parsing error: gtk-bars.css:134:16: Themeing engine 'adwaita' not found

(evince:3556): Gtk-WARNING **: Theme parsing error: gtk-bars.css:153:16: Themeing engine 'adwaita' not found

(evince:3556): Gtk-WARNING **: Theme parsing error: gtk-bars.css:165:16: Themeing engine 'adwaita' not found

(evince:3556): Gtk-WARNING **: Theme parsing error: gtk-bars.css:175:16: Themeing engine 'adwaita' not found

(evince:3556): Gtk-WARNING **: Theme parsing error: gtk-bars.css:186:16: Themeing engine 'adwaita' not found

(evince:3556): Gtk-WARNING **: Theme parsing error: gtk-bars.css:198:16: Themeing engine 'adwaita' not found

(evince:3556): Gtk-WARNING **: Theme parsing error: gtk-bars.css:208:16: Themeing engine 'adwaita' not found

(evince:3556): Gtk-WARNING **: Theme parsing error: gtk-bars.css:218:16: Themeing engine 'adwaita' not found

(evince:3556): Gtk-WARNING **: Theme parsing error: gtk-bars.css:223:16: Themeing engine 'adwaita' not found
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/share/texmf/web2c:/usr/share/texmf-texlive/web2c:/usr/local/share/texmf/web2c.

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 cmti10
mktexpk: Permissão negada
kpathsea: Appending font creation commands to missfont.log.
page: Warning: font `cmti10' at 600x600 not found, trying `cmr10' instead

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 cmr10
mktexpk: Permissão negada
page: Warning: font `cmti10' not found, trying metric files instead

kpathsea: Running mkofm cmti10
mkofm: Permissão negada

kpathsea: Running mktextfm cmti10
mktextfm: Permissão negada
page: Warning: metric file for `cmti10' not found, trying `cmr10' instead

kpathsea: Running mkofm cmr10
mkofm: Permissão negada

kpathsea: Running mktextfm cmr10
mktextfm: Permissão negada
page: Error: could not load font `cmti10'
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/share/texmf/web2c:/usr/share/texmf-texlive/web2c:/usr/local/share/texmf/web2c.

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 cmti10
mktexpk: Permissão negada
kpathsea: Appending font creation commands to missfont.log.
page: Warning: font `cmti10' at 600x600 not found, trying `cmr10' instead

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 cmr10
mktexpk: Permissão negada
page: Warning: font `cmti10' not found, trying metric files instead

kpathsea: Running mkofm cmti10
mkofm: Permissão negada

kpathsea: Running mktextfm cmti10
mktextfm: Permissão negada
page: Warning: metric file for `cmti10' not found, trying `cmr10' instead

kpathsea: Running mkofm cmr10
mkofm: Permissão negada

kpathsea: Running mktextfm cmr10
mktextfm: Permissão negada
page: Error: could not load font `cmti10'

(evince:3556): EvinceView-CRITICAL **: ev_document_model_set_document: assertion `EV_IS_DOCUMENT (document)' failed

(evince:3556): EvinceDocument-CRITICAL **: ev_document_get_n_pages: assertion `EV_IS_DOCUMENT (document)' failed

(evince:3556): EvinceDocument-CRITICAL **: ev_document_get_max_page_size: assertion `EV_IS_DOCUMENT (document)' failed

答案1

Ubuntu 设置 evince 使用 AppArmor,这会阻止它访问某些文件,即使这些文件具有适当的权限。看Evince 无法启动,因为它无法读取 .Xauthority对于一个不同但相关的问题。

您有自定义 TeX 安装吗?如果是这样,evince 可能会阻止 AppArmor 写入字体文件。看Ubuntu 错误 846639,其中展示了如何修复系统的 AppArmor 配置。

一个简单的解决方法是在另一个查看器(例如 )中查看一次文件xdvi,以便生成字体。然后证据将能够阅读它们。或者运行

allneeded L1.dvi

您可以运行命令allcmallec生成一些常用字体。

相关内容