Just wanted to note the following - if you have installed texlive from a
script, then obviously all the necessities are on your system - but
evince could still fail opening the DVI because it doesn't know where
the texmf.cmf file is.

That can be remedied by use of TEXMFCNF variable - however, that is not
all; even after setting it correctly, you may get "Permission Denied".
That problem is due to apparmor controlling evince, and is described
here:

[SOLVED] texlive 2009 + evince = no love - Ubuntu Forums - 
http://ubuntuforums.org/showthread.php?p=8690020

What I did was:

sudo mv /etc/apparmor.d/usr.bin.evince /etc/apparmor.d/disable/
sudo shutdown -r now

... and after restart, I could run:

TEXMFCNF=/path/to/texlive/2011/texmf/web2c evince mytemp.dvi

... and tex fonts are generated, and the document renders in evince..


Note that calling this path however: 

TEXMFCNF=/path/to/texlive/2011 evince mytemp.dvi

... will actually *not* work, even if there is a texmf.cnf file there -
it may fail with "page: Error: could not load font" in stdout, and
"Unable to open document" in evince.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to evince in Ubuntu.
https://bugs.launchpad.net/bugs/42410

Title:
  evince reports "incorrect format" for DVI files when no TeX
  distribution is installed. evince should  Suggests tetex-bin

Status in Evince document viewer:
  New
Status in “evince” package in Ubuntu:
  Triaged

Bug description:
  When opening a DVI file with evince, if no TeX distribution is
  available, the error claims that the DVI file is at fault, rather than
  the installation.

  "Unable to open document", and below that, "DVI document has incorrect
  format". The DVI document, however, may be perfectly fine; the issue
  is that evince doesn't have DVI support installed. The error behavior
  should be changed to make this clear.

To manage notifications about this bug go to:
https://bugs.launchpad.net/evince/+bug/42410/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to