[SOLVED] xdvik does not shows figures properly.

Issues related to applications and software problems
centguy
Posts: 271
Joined: 2008/08/11 16:03:29

[SOLVED] xdvik does not shows figures properly.

Post by centguy » 2011/12/18 02:28:16

Thought I could start using CentOS 6.1 for work but I am hit by a problem in xdvik.
It does not show all eps files in the xdvik window.

It seems it is has been encountered by someone before: http://www.latex-community.org/forum/viewtopic.php?f=45&t=10279

I guess for now, I shall revert to CentOS 5.x for a little while.

I tried both xdvik-22.84.14-9.el6.x86_64 and xdvik-22.84.14-8.puias6.x86_64.rpm. Same problem.

There are a lots of gibberish stuff flush to the xterm screen issueing xdvi command. The representative output are shown below for those who
can take a deeper look.

[quote]
gs: 250(L)-- --dict:77/200(L)-- --dict:35/200(L)--
gs: Current allocation mode is local
gs: Current file position is 4067
gs: Error: /limitcheck in /findfont
gs: Operand stack:
gs: --nostringval-- Times-Roman
gs: Execution stack:
gs: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
gs: 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fals
gs: e 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop
gs: 1845 1 3 %oparray_pop 1739 1 3 %oparray_pop --nostringval--
gs: %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
gs: 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --nost
gs: ringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1753
gs: 1 3 %oparray_pop --nostringval-- --nostringval-- false 1 %stopped
gs: _push --nostringval-- 1862 1 5 %oparray_pop 1861 1 5 %oparray_p
gs: op 1845 1 5 %oparray_pop 1739 1 5 %oparray_pop --nostringval--
gs: %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-
gs: - 2 %stopped_push --nostringval-- 1820 2 6 %oparray_pop
gs: Dictionary stack:
gs: --dict:1155/1684(ro)(G)-- --dict:0/20(G)-- --dict:87/200(L)-- --dict:23/
gs: 250(L)-- --dict:77/200(L)-- --dict:35/200(L)--
gs: Current allocation mode is local
gs: Current file position is 4067
[/quote]

centguy
Posts: 271
Joined: 2008/08/11 16:03:29

Re: xdvik does not shows figures properly.

Post by centguy » 2011/12/19 02:11:22

Just to give you my analysis in another forum :
http://www.latex-community.org/forum/viewtopic.php?f=45&t=10279

[quote]

I agree with you that DVI does not natively support PS.

I am depending on xdvi to view all my electronic latex notes daily since
it is basic and it is very fast to move around the pages via the hyperlink within the page. So xdvi is a must for me.

Anyway, I think since I do not have such problem on CentOS 5.x but
only the recent new CentOS 6.x, I believe I have a good theory why such
thing happens.

99.9 % of my eps figure are prepared using xmgrace (one specific
version is Grace-5.1.20), and I xmgrace to output an eps with a format
that may be "too old" for the new ghostscript program in newer
Linux distributions.

I don't know how to solve it, it is either through a much newer
xmgrace that confirm to a newer eps format (it means I have to go through all xmgrace project files to output new eps files !) or the new ghostscript
that understand the old eps format adopted by xmgrace.

I believe this problem to be universal, but since most people
do not use xdvi so they are not hit by this.

[/quote]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[SOLVED] xdvik does not shows figures properly.

Post by pschaff » 2011/12/19 20:30:30

Bugs in EPEL packages should be reported to [url=https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora+EPEL]Fedora EPEL[/url].

centguy
Posts: 271
Joined: 2008/08/11 16:03:29

Re: xdvik does not shows figures properly.

Post by centguy » 2011/12/20 01:50:17

First I do not know if that's a bug for sure.

Second, I posted a question to xmgrace forum, it seems I have (or CentOS 6.x has) a missing ghostscript-fonts-* package.

I will check later and report back.

centguy
Posts: 271
Joined: 2008/08/11 16:03:29

Re: xdvik does not shows figures properly.

Post by centguy » 2011/12/20 13:34:49

A bad thing happened.
The case is getting very interesting.

I have exactly the same xdvi + eps (generated using xmgrace) on CentOS 5.6 (sorry I know this for CentOS 6.x but then the problem is of the same nature).

I installed CentOS 5.6 for the first time and made sure that I did not have
xdvi + eps problem. I happily installed stuff and then suddenly I was hit by
the same problem as I have seen on CentOS 6.1, i.e., xdvi + eps problem described above appeared. I thought I have not checked very carefully when I first installed
CentOS 5.6. But later I figured out that it must have been all sorts of yum install
that changed some of the packages and that trigger the same problem as I have reported in the first post.

I did a second fresh CentOS 5.6 installation on another partition
and indeed I was able to confirm that
the packages on DVD are okay, i.e., no xdvi + eps problem.

Now, I need to pinpoint which packages trigger this error:

I captured the rpm -qva | sort output as shown below:

is for the updated CentOS 5.6:

[quote]
[xx@2nd-centos56-acer tex]$ diff rpm-qva /sda7-c56/home/xx/
1a2,3
> a52dec-0.7.4-8.el5.rf
> aalib-1.4.0-5.el5.rf
15a18
> arts-1.5.4-1
58a62,63
> blas-3.0-38.el5
> blas-3.0-38.el5
60d64
bsh-javadoc-1.3.0-9jpp.1
> bsh-manual-1.3.0-9jpp.1
70a77
> busybox-1.2.0-7.el5.centos
80a88
> cairomm-1.2.4-3.el5.rf
115c123,124
cpp-4.1.2-51.el5
> cppunit-1.12.0-3.el5.rf
174a184,185
> dirac-1.0.2-1.el5.rf
> djvulibre-3.5.22-1.el5.rf
195a207
> eclipse-ecj-3.2.1-19.el5.centos
211a224
> elrepo-release-5-3.el5.elrepo
217a231
> epel-release-5-4
235a250,251
> faac-1.26-1.el5.rf
> faad2-2.7-1.el5.rf
237a254,257
> ffmpeg-0.6.1-1.el5.rf
> ffmpeg-libpostproc-0.6.1-1.el5.rf
> fftw3-3.2.2-3.el5
> fftw3-3.2.2-3.el5
249a270
> flash-plugin-11.0.1.152-0.1.el5.rf
255a277
> freeglut-2.4.0-7.1.el5
259a282
> fribidi-0.10.7-5.1
270,272c293,296
gcc-4.1.2-51.el5
> gcc-c++-4.1.2-51.el5
> gcc-gfortran-4.1.2-51.el5
> gcc-java-4.1.2-51.el5
300a325
> git-1.7.6.4-1.el5.rf
312a338,340
> glibmm24-2.12.8-1.el5.rf
> glpk-4.20-2.el5
> glpk-4.20-2.el5
355a384
> gnome-python2-gtkhtml2-2.14.2-7.el5
380a410,414
> gparted-0.4.8-4.el5.rf
> gpg-pubkey-217521f6-45e8a532
> gpg-pubkey-6b8d79e6-3f49313d
> gpg-pubkey-baadae52-49beffa4
> gpg-pubkey-e8562897-459f07a4
388a423
> gsm-1.0.13-1.el5.rf
402a438,439
> gtkglext-devel-1.2.0-5.fc8
> gtkglext-libs-1.2.0-5.fc8
405a443
> gtkmm24-2.10.9-1.el5.rf
415a454,455
> hdf5-1.6.10-1.el5
> hdf5-1.6.10-1.el5
432d471
intel-iforte101026-10.1.026-1
> intel-iidbe101026-10.1.026-1
453a495,497
> jakarta-commons-codec-1.3-7jpp.2
> jakarta-commons-httpclient-3.0-7jpp.1
> jakarta-commons-logging-1.0.4-6jpp.1
454a499,502
> java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115
> java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115
> java-1.4.2-gcj-compat-javadoc-1.4.2.0-40jpp.115
> java-1.4.2-gcj-compat-src-1.4.2.0-40jpp.115
457a506
> junit-3.8.2-3jpp.1
462a512
> kexec-tools-1.102pre-126.el5
466a517
> kmod-rt3090sta-2.4.0.4-1.el5.elrepo
477a529,531
> lame-3.98.4-1.el5.rf
> lapack-3.0-38.el5
> lapack-3.0-38.el5
480a535
> ldapjdk-4.18-2jpp.3.el5
506a562
> libcaca-0.99-0.1.beta17.el5.rf
510a567,568
> libcddb-1.3.1-1.el5.rf
> libcdio-0.77-1.el5.rf
516a575
> libdca-0.0.5-1.el5.rf
522a582,586
> libdvbpsi-0.1.7-1.el5.rf
> libdvdcss-1.2.10-1.el5.rf
> libdvdnav-0.1.10-3.el5.rf
> libdvdread-0.9.7-1.el5.rf
> libebml-1.0.0-1.el5.rf
531,533c595,601
libgcc-4.1.2-51.el5
> libgcc-4.1.2-51.el5
> libgcj-4.1.2-51.el5
> libgcj-4.1.2-51.el5
> libgcj-devel-4.1.2-51.el5
> libgcj-devel-4.1.2-51.el5
> libgcj-src-4.1.2-51.el5
537c605,606
libgfortran-4.1.2-51.el5
> libgfortran-4.1.2-51.el5
584a654
> libid3tag-0.15.1b-3.el5.rf
596a667,669
> libkate-0.3.7-1.el5.rf
> libmad-0.15.1b-4.el5.rf
> libmatroska-1.0.0-1.el5.rf
600a674,675
> libmodplug-0.8.7-1.el5.rf
> libmpcdec-1.2.6-1.el5.rf
631a707,708
> libshout-2.2.2-2.el5.rf
> libsigc++20-2.0.17-1.el5.rf
637a715
> libsndfile-1.0.17-1.el5.rf
641,643c719,721
libstdc++-4.1.2-51.el5
> libstdc++-4.1.2-51.el5
> libstdc++-devel-4.1.2-51.el5
656a735
> libupnp-1.6.6-1.el5.rf
807a887,888
> lirc-0.6.6-4.el5.rf
> live555-0-0.27.2010.04.09.el5.rf
834a916
> meld-1.1.5-1.el5.rf
854a937
> mpeg2dec-0.4.1-2.el5.rf
881d963
octave-3.0.5-1.el5
> octave-3.0.5-1.el5
919,920c1002,1003
opencore-amr-0.1.2-1.el5.rf
> opencv-1.0.0-1.el5.rf
924d1006
pcre-6.6-6.el5_6.1
> pcre-6.6-6.el5_6.1
996a1080,1081
> perl-DBI-1.52-2.el5
> perl-Git-1.7.6.4-1.el5.rf
1015a1101
> portaudio-19-1.20071207.el5.rf
1040d1125
qhull-2003.1-8.el5
> qhull-2003.1-8.el5
1084a1172
> rpmforge-release-0.5.2-2.el5.rf
1090a1179,1186
> rt2860-firmware-26-1.el5.elrepo
> ruby-1.8.5-5.el5_4.8
> ruby-devel-1.8.5-5.el5_4.8
> ruby-devel-1.8.5-5.el5_4.8
> ruby-libs-1.8.5-5.el5_4.8
> ruby-libs-1.8.5-5.el5_4.8
> ruby-mode-1.8.5-5.el5_4.8
> sabayon-2.12.4-6.el5
1110c1206
scribus-1.3.3.2-3.el5
1115a1212
> SDL_image-1.2.10-1.el5.rf
1121a1219,1221
> setroubleshoot-2.0.5-5.el5
> setroubleshoot-plugins-2.0.4-2.el5
> setroubleshoot-server-2.0.5-5.el5
1153a1254,1256
> suitesparse-3.1.0-1.el5
> suitesparse-3.1.0-1.el5
> svgalib-1.9.25-1.el5.rf
1161a1265
> system-config-kdump-1.0.14-4.el5
1163a1268
> system-config-lvm-1.1.5-8.el5
1167a1273
> system-config-rootpassword-1.1.9.1-1
1175a1282
> taglib-1.5-1.el5.rf
1206a1314
> twolame-0.3.13-1.el5.rf
1227c1335
vlc-0.9.9a-7.el5.rf
1239a1348
> x264-0.0.0-0.4.20101111.el5.rf
1245,1246c1354
xdg-utils-1.0.2-2.el5.rf
1254a1363,1364
> xmlrpc-2.0.1-3jpp.1
> xmlrpc-javadoc-2.0.1-3jpp.1
1323a1434
> xorg-x11-server-sdk-1.1.1-48.76.el5_5.2
1336a1448
> xosd-2.2.14-1.el5.rf
1355d1466
zvbi-0.2.33-2.el5.rf

[/quote]

Any idea ?
Anyway with a sharp eye is able to tell me what goes wrong ?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: xdvik does not shows figures properly.

Post by pschaff » 2011/12/20 17:57:08

[quote]
centguy wrote:
....
I captured the rpm -qva | sort output as shown below:

is for the updated CentOS 5.6:[/quote]
I'm not really sure what you are showing. An update from the obsolete 5.6 to current packages should bring you to the 5.7+updates level, but your results do not show things like centos-release, kernel, and glibc being updated. They do show some packages being removed and some 3rd party packages being added (such as epel-release and rpmforge-release) and apparently a mix of add-on packages from these mutually incompatible repos. In other words it is not clear what you have done, but you have likely caused breakage in the process.

I'd suggest a fresh install of 5.7 as a baseline. Then configure a single repo for add-ons, and/or install and carefully configure the yum priorities plugin.

centguy
Posts: 271
Joined: 2008/08/11 16:03:29

Re: xdvik does not shows figures properly.

Post by centguy » 2011/12/21 02:30:49

I only have CentOS 5.6 DVD at hand.

I did a fresh install and with no updates at all, did rpm -qva | sort > rpm-qva

This system does NOT have the xdvi + gs problem when viewing a eps file.


I have another system CentOS 5.6 that I have first checked has no problem with xdvi + gs. But with the installations of
meld, gparted, flash-plugins, vlc, octave, ifort, LAPACK, SCALAPACK. At the end of the exercise this breaks the xdvi when dealing with eps files.
I did rpm -qva | sort > rpm-qva

and I did a diff as mention above.

Was my approach not scientific enough ? The kernel information that you are interested in is strictly with official CentOS 5.6 rpm packages.

Unless there is a strong reason, fresh install of CentOS 5.7 may reveal the same problem because I have
encountered the issue with CentOS 6.0 and CentOS 6.1.

centguy
Posts: 271
Joined: 2008/08/11 16:03:29

Re: xdvik does not shows figures properly.

Post by centguy » 2011/12/21 06:15:46

Could someone please do this 2-min simple test on any CentOS 6.x system:


$ xmgrace
(yum install grace first and choose File -> Print setup -> Device -> EPS -> Accept, and then click File > Print to generate a file called Untitled.eps)

(prepare a file called test.tex)

$ cat test.tex
\documentclass{book}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{color}
\begin{document}
\section{A simple test}
\begin{figure}
\centering\includegraphics[width=7.2cm,clip]{./Untitled.eps}
\caption{
Example.
}
\label{fig:example}
\end{figure}
Figure~\ref{fig:example} shows...
\end{document}


% latex test.tex
% latex test.tex
% xdvi test.dvi

If there are not gs error messages under xdvi command line then it means my problem is an isolated case.

Thanks!

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: xdvik does not shows figures properly.

Post by pschaff » 2011/12/21 19:54:22

A bit longer than two minutes counting installing grace (from EPEL), tetexlive-latex, and dependencies, but here you go...[code]
$ latex test.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./test.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,
french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,
turkish, ukenglish, ukrainian, loaded.
(/usr/share/texmf/tex/latex/base/book.cls
Document Class: book 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/bk10.clo))
(/usr/share/texmf/tex/latex/graphics/epsfig.sty
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def))))
(/usr/share/texmf/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
No file test.aux.
<./Untitled.eps>

LaTeX Warning: Reference `fig:example' on page 1 undefined on input line 14.

[1] (./test.aux)

LaTeX Warning: There were undefined references.


LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.

)
Output written on test.dvi (1 page, 724 bytes).
Transcript written on test.log.
$ latex test.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./test.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,
french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,
turkish, ukenglish, ukrainian, loaded.
(/usr/share/texmf/tex/latex/base/book.cls
Document Class: book 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/bk10.clo))
(/usr/share/texmf/tex/latex/graphics/epsfig.sty
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def))))
(/usr/share/texmf/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def)) (./test.aux)
<./Untitled.eps> [1] (./test.aux) )
Output written on test.dvi (1 page, 672 bytes).
Transcript written on test.log.
$ ll -t test.*
-rw-rw-r--. 1 prs prs 4051 Dec 21 14:32 test.log
-rw-rw-r--. 1 prs prs 203 Dec 21 14:32 test.aux
-rw-rw-r--. 1 prs prs 724 Dec 21 14:32 test.dvi
-rw-rw-r--. 1 prs prs 302 Dec 21 14:21 test.tex
$ rpm -q centos-release
centos-release-6-2.el6.centos.7.x86_64
$ [/code]

Similar successful results on 5.7. Have a careful look at your mix of 3rd party repos.

centguy
Posts: 271
Joined: 2008/08/11 16:03:29

Re: xdvik does not shows figures properly.

Post by centguy » 2011/12/22 02:19:10

Thanks Phil.

I guess you have no complication that I have encountered here.

To be fair, I have a perfectly working (vlc, octave, ,,,) CentOS 5.2 that I won't want to touch with updates.
I installed practically everything on this system, vlc, octave, etc and they are working as happy as ever. Mind you that
I am just a Desktop user.


Ever since I bought a brand new acer, I have installed CentOS 6.0, 6.1, 5.6 and I can be sure (at least for 5.6) that I don't have any problem with
xdvi after a fresh install. However, after I have installed vlc and octave, etc (I kept mentioning this two because they are relatively large
and one is from rpmforge and one is from epel, and both seems to supply conflicting packages for VLC)
that somehow break xdvi + gs and what not. Sorry for my strong suspecion, but epel or elrepo might be the one that break it since I did not mess (or know)
with epel and elrepo when I was installing the old CentOS 5.2. Ah well, one can't be too sure in Linux world.

The diff information from "rpm -qva" I provided shows one that is healthy and one that is not healthy. But since each package might
pulled down other shared libraries, so it is probably useless as you have said.

For now I will have to stick to CentOS 5.2 for as long as possible.

Post Reply