Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I would like to know why my Lubuntu 11.10 does not open my .dvi files created with Latex.

Please, can anybody help me solve this problem?


When I use evince L1.dvi, in the terminal, the evince opens but not the file and the messages on the terminal are:

    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
share|improve this question
    
more details required, including: What do you mean by "does not open"? How are you trying to open them? What exactly are you doing? What exact response are you getting? How does that differ from the expected response? –  cas Aug 28 '12 at 1:30
    
@CraigSanders, thanks. I updated above. Sorry for so many errors. First, I try to open dvi files with double click on it. –  Sigur Aug 28 '12 at 1:37
    
@jasonwyran, please, how did you create that minipage for the codes? Thanks for editing. –  Sigur Aug 28 '12 at 1:41
    
it looks like some kind of permissions problem - google says that 'Permissão negada' means 'Permission denied' –  cas Aug 28 '12 at 1:44
2  
Looks like this Ubuntu bug: bugs.launchpad.net/ubuntu/+source/texlive-bin/+bug/1010909 –  Renan Aug 28 '12 at 1:46
show 3 more comments

1 Answer

up vote 2 down vote accepted

Ubuntu sets up evince to use AppArmor, which prevents it from accessing certain files even though the files have appropriate permissions. See Evince fails to start because it cannot read .Xauthority for a different but related problem.

Do you have a custom TeX installation? If so, evince is probably preventing from writing the font files by AppArmor. See Ubuntu bug 846639, which shows how to fix the AppArmor configuration for your system.

A simple workaround is to view the file once in another viewer such as xdvi, so that the fonts are generated. Then evince will be able to read them. Or run

allneeded L1.dvi

You can run the commands allcm and allec to generate some common fonts.

share|improve this answer
    
Thanks. I will try to do this. –  Sigur Aug 31 '12 at 20:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.