Bug 125309 - lyx with app-text/tetex-3.0_p1-r2 fails to create ps files with graphic images since dvips now requires the -R0 flag
Bug#: 125309 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: cjk@gentoo.org Reported By: bsolar17@gmail.com
Component: Applications
URL:  http://www.tug.org/pipermail/tex-live/2005-December/009585.html
Summary: lyx with app-text/tetex-3.0_p1-r2 fails to create ps files with graphic images since dvips now requires the -R0 flag
Keywords:  
Status Whiteboard: 
Opened: 2006-03-06 16:31 0000
Description:   Opened: 2006-03-06 16:31 0000
Running lyx in a console and trying to create a ps from a document with images
causes the following errors to be printed:

--
lyx sort.lyx
This is dvips(k) 5.95b Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2006.03.07:0057' -> sort.ps
<tex.pro><texps.pro><special.pro>. <cmsy7.pfb><cmmi7.pfb><cmr7.pfb>
<cmsy10.pfb><cmr10.pfb><cmmi10.pfb>[1] [1] [2] [3] [4] [5] [6] [7] [8] [9] 
[10] [11] [12
dvips: Could not find figure file
/tmp/lyx_tmpdir6663NoYfAZ/lyx_tmpbuf0/0_home_bsolar_supsi_svnwc_sort_sort_lyx_data_QuickSort_chart.epsi;
continuing
] [13
dvips: Could not find figure file
/tmp/lyx_tmpdir6663NoYfAZ/lyx_tmpbuf0/1_home_bsolar_supsi_svnwc_sort_sort_lyx_data_MergeSort_chart.epsi;
continuing
dvips: Could not find figure file
/tmp/lyx_tmpdir6663NoYfAZ/lyx_tmpbuf0/2_home_bsolar_supsi_svnwc_sort_sort_lyx_data_InsertionSort_chart.epsi;
continuing
] [14
[...]
--

The generated ps does not contain the figures.

The problem seems caused by a change in the behaviour of dvips, as shown in the
link provided. Adding -R0 in the DVI -> postscript command in the lyx
configuration solves the problem:

dvips -R0 -o $$o $$i

------- Comment #1 From Martin Ehmsen (RETIRED) 2006-03-29 08:25:03 0000 -------
I have patched the lyx source so it by default should use -R0, so it is in CVS
in lyx-1.4.0-r1.
Thanks for reporting and finding the fix!

------- Comment #2 From pavel sanda 2008-02-26 22:58:44 0000 -------
Christian, could you provide one image showing the problem?
I'm not able to reproduce the problem here and I'm wondering why I dont
see similar hacks on other distros.

------- Comment #3 From pavel sanda 2008-05-17 10:06:43 0000 -------
i see now, from dvips(k) 5.95b it doesn't accept absolute paths unless -R0 is
added.