This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.

Okular problems with dvi files (LaTeX)

Tags: None
(comma "," separated)
pretentious
Registered Member
Posts
2
Karma
0
Hi,

I was trying to display a very simple dvi file in Okular and I get this nasty error message:

"Okular was not able to locate all the font files which are necessary to display the current DVI file. Your document might be unreadable."

It further says:

"kpsewhich --dpi 1200 --mode lexmarks --no-mktex pk sfrm1000.pfb ecrm1000.vf ecrm1000.1200pk

findtexmf: --dpi: unknown option"


The dvi was produced by compiling a very simple LaTeX code:

\documentclass{article}
\begin{document} Haha \end{document}

Note, I don't have any problem displaying this dvi in another dvi viewer (Yap), so this must be a problem with Okular???

Anyone pls, help??? !!!
pinotree
KDE Developer
Posts
222
Karma
7
OS
Can you please paste the output of:
$ which kpsewhich
$ kpsewhich --version
?


Pino Toscano
pretentious
Registered Member
Posts
2
Karma
0
Cant run "which" as I'm on windows, the version command for kpsewhich produces the following:

MiKTeX Finder 2.7.2824 (MiKTeX 2.7)
Copyright (C) 2001-2007 Christian Schenk
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
warning: running in deprecated kpathsea emulation mode

Cheers :)
pinotree
KDE Developer
Posts
222
Karma
7
OS
I guess you need texlive/kpathsea version; not sure we do support miktex.


Pino Toscano
shlema
Registered Member
Posts
1
Karma
0
OS
I've got the same problem with Okular. When I'm trying to open .dvi file it says: "Okular was not able to locate all the font files which are necessary to display the current DVI file. Your document might be unreadable."

On Details section it stated:
---
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

kpsewhich --dpi 1200 --mode lexmarks --no-mktex pk ptmr7t.vf ptmr7t.1200pk ptmb7t.vf ptmb7t.1200pk ptmri7t.vf ptmri7t.1200pk ptmb7t.vf ptmb7t.1200pk ptmr7t.vf ptmr7t.1200pk cmsy10.pfb cmsy10.vf cmsy10.1200pk cmmi10.pfb cmmi10.vf cmmi10.1200pk cmmi7.pfb cmmi7.vf cmmi7.1200pk cmr10.pfb cmr10.vf cmr10.1200pk

kpsewhich --dpi 1200 --mode lexmarks --mktex pk ptmr7t.vf ptmr7t.1200pk ptmb7t.vf ptmb7t.1200pk ptmri7t.vf ptmri7t.1200pk ptmb7t.vf ptmb7t.1200pk ptmr7t.vf ptmr7t.1200pk

...and so on.
---

shlema@shlema-laptop:~$ which kpsewhich
/usr/bin/kpsewhich

shlema@shlema-laptop:~$ kpsewhich --version
kpathsea version 5.0.0
Copyright 2009 Karl Berry & Olaf Weber.
License LGPLv2.1+: GNU Lesser GPL version 2.1 or later <http://gnu.org/licenses/lgpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Anybody have an idea how to solve this issue?
john_hudson
Registered Member
Posts
549
Karma
2
OS
Do bear in mind that a dvi may not display graphics or rotations properly; this is nothing to do with Okular. If you want an accurate display, you would be better using pdflatex and displaying that in Okular.


John Hudson, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell