Ubuntu
打開 .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
Ubuntu 設置 evince 以使用 AppArmor,這會阻止它訪問某些文件,即使這些文件具有適當的權限。請參閱Evince 無法啟動,因為它無法讀取 .Xauthority以解決不同但相關的問題。
你有自定義的 TeX 安裝嗎?如果是這樣,evince 可能會阻止 AppArmor 寫入字型檔。請參閱Ubuntu 錯誤 846639,它顯示瞭如何修復系統的 AppArmor 配置。
一個簡單的解決方法是在另一個查看器(例如 )中查看該文件一次
xdvi
,以便生成字型。然後 evince 將能夠讀取它們。或執行allneeded L1.dvi
您可以執行命令
allcm
並allec
生成一些常用字型。