problems displaying eps files in LyX and WinDVI

2002-03-05 Thread Wayne Johnson
Hi:
I have searched the mail archives to the best of my ability and can find no solutions to the following problem: 
I open the LyX Users Guide in LyX and I try to view thesection regarding figures (4.3.1 I thiink). But I only see a blank box. If I click on the figure box I can view the full screen version of the figure in GSView 4.2 (which opens automatically). But I do get a document structure conversion warning in GSView before the figure comes up.
If I try to view the DVI version of this file I get the several errors:
An error window pops up stating "initialize_gs/RegOpenKeyEx can't be found"
In the LaTeX? Log file window: 
snip
pathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 msam10 gsftopk(k) version 1.19.2
Can't locate Ghostscript ! Exiting ...
mktexpk: Running gsftopk msam10 600 command gsftopk msam10 600 return 1 mktexpk: 
warning: can't open log file msam10.log. mktexpk: `gsftopk msam10 600' failed. kpathsea: Appending font creation commands to missfont.log. 
snip

Eventually the dvi version of the Users Guide shows up. But when I go to the section with the figures (p. 73-74), the same initialize_gs error window pops up and also another error message about not being able to find gsdll32.dll appears
After this the WinDVI program usually crashes and the LyX menu bar becomes unresponsive.
Here is my config. info:

OS: WinXP HomeEd v.2002
LaTeX 2001/06/01
LyX v.1.1.6fix4
GSView 4.2 (I found gsdll32.dll in the bin folder )
Ghostscript 7.04
X-Win32 v.5.2.2b3
Lyx-gs4.03 
from the ~/.lyrc/preferences file:
snip---

# Program used for interpreting postscript.
\ps_command "/apps/gs4.03/bin/gs"
# SCREEN  FONTS SECTION 
#
\screen_dpi 80
# 2nd MISC SUPPORT SECTION ##
#
\screen_font_encoding_menu "iso8859-1"
#
# FORMATS SECTION ##
#
\format "pspic" "pspic" "pspic" ""
\viewer "eps" "/cygdrive/c/Ghostgum/gsview/gsview32"
\viewer "pdf2" "/cygdrive/c/Program Files/Adobe/Acrobat 4.0/Acrobat/Acrobat"
\viewer "ps" "/cygdrive/c/Ghostgum/gsview/gsview32"
\viewer "pspic" "/cygdrive/c/Ghostgum/gsview/gsview32"
snip-
partial output from cygwincheck
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Mar 06 00:34:19 2002
Windows XP Home Edition Ver 5.1 Build 2600 
Path: C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\Program Files\TeXLive\bin\win32
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS
HOME = `C:\cygwin\home\Wayne'
MAKE_MODE = `unix'
PWD = `/tmp'
USER = `Wayne'


Cygwin Package Information
Package Version 
LyX 1.1.6fix4 
LyX-GScript 4.03 
LyXsupport 1.3 
XFree86-Runtime 4.1a 
ash 20020131-1 
bash 2.05a-3 
bc 1.06-1 
binutils 20011002-1 
bzip2 1.0.1-6 
cron 3.0.1-5 
cygrunsrv 0.95-1 
cygwin 1.3.10-1 
diff 0.0 
ed 0.2-1 
fileutils 4.1-1 
findutils 4.1 
gawk 3.0.4-1 
gcc 2.95.3-5 
gdbm 1.8.0-4 
gettext 0.10.40-1 
grep 2.5g 
groff 1.17.2-1 
gzip 1.3.2-1 
ispell 3.1 
jpeg 6b-7 
less 358-3 
libintl 0.10.38-3 
libintl1 0.10.40-1 
libncurses5 5.2-1 
libncurses6 5.2-8 
libreadline4 4.1-2 
libreadline5 4.2a-1 
login 1.4-3 
man 1.5g-2 
ncftp 3.0.2-2 
ncurses 5.2-8 
newlib-man 20001118-1 
openssh 3.0.2p1-5 
openssl 0.9.6c-3 
pcre 3.7-1 
perl 5.6.1-2 
readline 4.2a-1 
regex 4.4-2 
sed 3.02-1 
sh-utils 2.0-2 
shutdown 1.2-2 
tar 1.13.19-1 
termcap 20010825-1 
terminfo 5.2-1 
texmf-doc 2804-2 
textutils 2.0.21-1 
tiff 3.5.7-1 
vim 6.0.93-1 
w32api 1.1-1 
which 1.5-1 
xpm-nox 4.2.0-1 
Thanks for any help anyone can provide!
Ciao
Wayne

Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!

problems displaying eps files in LyX and WinDVI

2002-03-05 Thread Wayne Johnson
Hi:
I have searched the mail archives to the best of my ability and can find no solutions to the following problem: 
I open the LyX Users Guide in LyX and I try to view thesection regarding figures (4.3.1 I thiink). But I only see a blank box. If I click on the figure box I can view the full screen version of the figure in GSView 4.2 (which opens automatically). But I do get a document structure conversion warning in GSView before the figure comes up.
If I try to view the DVI version of this file I get the several errors:
An error window pops up stating "initialize_gs/RegOpenKeyEx can't be found"
In the LaTeX? Log file window: 
snip
pathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 msam10 gsftopk(k) version 1.19.2
Can't locate Ghostscript ! Exiting ...
mktexpk: Running gsftopk msam10 600 command gsftopk msam10 600 return 1 mktexpk: 
warning: can't open log file msam10.log. mktexpk: `gsftopk msam10 600' failed. kpathsea: Appending font creation commands to missfont.log. 
snip

Eventually the dvi version of the Users Guide shows up. But when I go to the section with the figures (p. 73-74), the same initialize_gs error window pops up and also another error message about not being able to find gsdll32.dll appears
After this the WinDVI program usually crashes and the LyX menu bar becomes unresponsive.
Here is my config. info:

OS: WinXP HomeEd v.2002
LaTeX 2001/06/01
LyX v.1.1.6fix4
GSView 4.2 (I found gsdll32.dll in the bin folder )
Ghostscript 7.04
X-Win32 v.5.2.2b3
Lyx-gs4.03 
from the ~/.lyrc/preferences file:
snip---

# Program used for interpreting postscript.
\ps_command "/apps/gs4.03/bin/gs"
# SCREEN  FONTS SECTION 
#
\screen_dpi 80
# 2nd MISC SUPPORT SECTION ##
#
\screen_font_encoding_menu "iso8859-1"
#
# FORMATS SECTION ##
#
\format "pspic" "pspic" "pspic" ""
\viewer "eps" "/cygdrive/c/Ghostgum/gsview/gsview32"
\viewer "pdf2" "/cygdrive/c/Program Files/Adobe/Acrobat 4.0/Acrobat/Acrobat"
\viewer "ps" "/cygdrive/c/Ghostgum/gsview/gsview32"
\viewer "pspic" "/cygdrive/c/Ghostgum/gsview/gsview32"
snip-
partial output from cygwincheck
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Mar 06 00:34:19 2002
Windows XP Home Edition Ver 5.1 Build 2600 
Path: C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\Program Files\TeXLive\bin\win32
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS
HOME = `C:\cygwin\home\Wayne'
MAKE_MODE = `unix'
PWD = `/tmp'
USER = `Wayne'


Cygwin Package Information
Package Version 
LyX 1.1.6fix4 
LyX-GScript 4.03 
LyXsupport 1.3 
XFree86-Runtime 4.1a 
ash 20020131-1 
bash 2.05a-3 
bc 1.06-1 
binutils 20011002-1 
bzip2 1.0.1-6 
cron 3.0.1-5 
cygrunsrv 0.95-1 
cygwin 1.3.10-1 
diff 0.0 
ed 0.2-1 
fileutils 4.1-1 
findutils 4.1 
gawk 3.0.4-1 
gcc 2.95.3-5 
gdbm 1.8.0-4 
gettext 0.10.40-1 
grep 2.5g 
groff 1.17.2-1 
gzip 1.3.2-1 
ispell 3.1 
jpeg 6b-7 
less 358-3 
libintl 0.10.38-3 
libintl1 0.10.40-1 
libncurses5 5.2-1 
libncurses6 5.2-8 
libreadline4 4.1-2 
libreadline5 4.2a-1 
login 1.4-3 
man 1.5g-2 
ncftp 3.0.2-2 
ncurses 5.2-8 
newlib-man 20001118-1 
openssh 3.0.2p1-5 
openssl 0.9.6c-3 
pcre 3.7-1 
perl 5.6.1-2 
readline 4.2a-1 
regex 4.4-2 
sed 3.02-1 
sh-utils 2.0-2 
shutdown 1.2-2 
tar 1.13.19-1 
termcap 20010825-1 
terminfo 5.2-1 
texmf-doc 2804-2 
textutils 2.0.21-1 
tiff 3.5.7-1 
vim 6.0.93-1 
w32api 1.1-1 
which 1.5-1 
xpm-nox 4.2.0-1 
Thanks for any help anyone can provide!
Ciao
Wayne

Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!

problems displaying eps files in LyX and WinDVI

2002-03-05 Thread Wayne Johnson
Hi:
I  have searched the mail archives to the best of my ability and can find no solutions to the following problem: 
I open the LyX Users Guide in LyX and I try to view the section  regarding figures  (4.3.1 I thiink). But I only see a blank box. If I click on the figure box I can view the full screen version of the figure in GSView 4.2 (which opens automatically). But I do get  a document structure conversion warning in GSView before the figure comes up.
If I try to view the DVI version of this file I get the several errors:
An error window pops up stating "initialize_gs/RegOpenKeyEx can't be found"
In the LaTeX? Log file window:  
snip
pathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 msam10 gsftopk(k) version 1.19.2
Can't locate Ghostscript ! Exiting ...
mktexpk: Running gsftopk msam10 600 command gsftopk msam10 600 return 1 mktexpk: 
warning: can't open log file msam10.log. mktexpk: `gsftopk msam10 600' failed. kpathsea: Appending font creation commands to missfont.log. 
snip
 
Eventually the dvi version of the Users Guide shows up. But when I go to the section with the figures (p. 73-74), the same initialize_gs error window pops up and also another error message about not being able to find  gsdll32.dll appears
After this the WinDVI program usually crashes and the LyX menu bar becomes unresponsive.
Here is my config. info:
 
OS: WinXP HomeEd v.2002
LaTeX 2001/06/01
LyX v.1.1.6fix4
GSView 4.2 (I found gsdll32.dll in the bin folder )
Ghostscript 7.04
X-Win32 v.5.2.2b3
Lyx-gs4.03 
from the  ~/.lyrc/preferences file:
snip---
 
# Program used for interpreting postscript.
\ps_command "/apps/gs4.03/bin/gs"
# SCREEN & FONTS SECTION 
#
\screen_dpi 80
# 2nd MISC SUPPORT SECTION ##
#
\screen_font_encoding_menu "iso8859-1"
#
# FORMATS SECTION ##
#
\format "pspic" "pspic" "pspic" ""
\viewer "eps" "/cygdrive/c/Ghostgum/gsview/gsview32"
\viewer "pdf2" "/cygdrive/c/Program Files/Adobe/Acrobat 4.0/Acrobat/Acrobat"
\viewer "ps" "/cygdrive/c/Ghostgum/gsview/gsview32"
\viewer "pspic" "/cygdrive/c/Ghostgum/gsview/gsview32"
snip-
partial output from cygwincheck
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Mar 06 00:34:19 2002
Windows XP Home Edition Ver 5.1 Build 2600 
Path: C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\Program Files\TeXLive\bin\win32
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS
HOME = `C:\cygwin\home\Wayne'
MAKE_MODE = `unix'
PWD = `/tmp'
USER = `Wayne'
 
 
Cygwin Package Information
Package Version 
LyX 1.1.6fix4 
LyX-GScript 4.03 
LyXsupport 1.3 
XFree86-Runtime 4.1a 
ash 20020131-1 
bash 2.05a-3 
bc 1.06-1 
binutils 20011002-1 
bzip2 1.0.1-6 
cron 3.0.1-5 
cygrunsrv 0.95-1 
cygwin 1.3.10-1 
diff 0.0 
ed 0.2-1 
fileutils 4.1-1 
findutils 4.1 
gawk 3.0.4-1 
gcc 2.95.3-5 
gdbm 1.8.0-4 
gettext 0.10.40-1 
grep 2.5g 
groff 1.17.2-1 
gzip 1.3.2-1 
ispell 3.1 
jpeg 6b-7 
less 358-3 
libintl 0.10.38-3 
libintl1 0.10.40-1 
libncurses5 5.2-1 
libncurses6 5.2-8 
libreadline4 4.1-2 
libreadline5 4.2a-1 
login 1.4-3 
man 1.5g-2 
ncftp 3.0.2-2 
ncurses 5.2-8 
newlib-man 20001118-1 
openssh 3.0.2p1-5 
openssl 0.9.6c-3 
pcre 3.7-1 
perl 5.6.1-2 
readline 4.2a-1 
regex 4.4-2 
sed 3.02-1 
sh-utils 2.0-2 
shutdown 1.2-2 
tar 1.13.19-1 
termcap 20010825-1 
terminfo 5.2-1 
texmf-doc 2804-2 
textutils 2.0.21-1 
tiff 3.5.7-1 
vim 6.0.93-1 
w32api 1.1-1 
which 1.5-1 
xpm-nox 4.2.0-1 
Thanks for any help anyone can provide!
Ciao
Wayne
 
 Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!

Re: problems with .eps-files

2000-11-02 Thread Eric St-Jean

Regarding your problems with figures, i've had this problem also, for 2
reasons: some programs don't generate the bounding box correctly, and most
programs put your small figure in the middle of (or anywhere in) a mostly
blank page.
I found that running the ps file in ps2epsi corrects all my problems. As a
bonus, it generates a small preview in the file. I'm not sure if lyx takes
that preview to display in its WYSIWYM interface, but i think so because
it seems faster to display the on-screen preview of epsi files than plain
ps. If it doens't, maybe it should ... :)

I take figures from Matlab, mostly (diagram printouts and plots), and i
have the student version, which prints a "Student Version of
Matlab" annoying line in the bottom. So what i always do is to disable
page border and put it in landscape mode in Matlab's print dialog, enable
print to file, print. Then i run the file through this:

awk '!($1 == "(Student")' $1 $1.tmp
ps2epsi $1.tmp $1
rm -f $1.tmp

(yes, bad shell syntax --- it should handle the argument filename's
extension much better, but i'm no shell wizard and i need to finish my
thesis before learning bash better)
This script removes that annoying line from the postscript and generates
the bbox and removes the surrounding blank. The result is consistently
good. Since other programs won't put that annoying text, you can still use
the script, it just won't do anything in the first line (unless you DO
have a "Student" text somewhere in the figure and you want to keep it
:) ).

Hope that helps. It took me a while to find a solution that works and
that's simple.

-- 
_
\\
 \ Eric St-Jean, ing.stag.  [EMAIL PROTECTED] \
  \ Space Systems, Xiphos Technologies Inc \
   \ (514)848-9640 fax 848-9644 \
\ Montreal, Quebec   \
 \\





Re: problems with .eps-files

2000-11-02 Thread Eric St-Jean

Regarding your problems with figures, i've had this problem also, for 2
reasons: some programs don't generate the bounding box correctly, and most
programs put your small figure in the middle of (or anywhere in) a mostly
blank page.
I found that running the ps file in ps2epsi corrects all my problems. As a
bonus, it generates a small preview in the file. I'm not sure if lyx takes
that preview to display in its WYSIWYM interface, but i think so because
it seems faster to display the on-screen preview of epsi files than plain
ps. If it doens't, maybe it should ... :)

I take figures from Matlab, mostly (diagram printouts and plots), and i
have the student version, which prints a "Student Version of
Matlab" annoying line in the bottom. So what i always do is to disable
page border and put it in landscape mode in Matlab's print dialog, enable
print to file, print. Then i run the file through this:

awk '!($1 == "(Student")' $1 $1.tmp
ps2epsi $1.tmp $1
rm -f $1.tmp

(yes, bad shell syntax --- it should handle the argument filename's
extension much better, but i'm no shell wizard and i need to finish my
thesis before learning bash better)
This script removes that annoying line from the postscript and generates
the bbox and removes the surrounding blank. The result is consistently
good. Since other programs won't put that annoying text, you can still use
the script, it just won't do anything in the first line (unless you DO
have a "Student" text somewhere in the figure and you want to keep it
:) ).

Hope that helps. It took me a while to find a solution that works and
that's simple.

-- 
_
\\
 \ Eric St-Jean, ing.stag.  [EMAIL PROTECTED] \
  \ Space Systems, Xiphos Technologies Inc \
   \ (514)848-9640 fax 848-9644 \
\ Montreal, Quebec   \
 \\





Re: problems with .eps-files

2000-11-02 Thread Eric St-Jean

Regarding your problems with figures, i've had this problem also, for 2
reasons: some programs don't generate the bounding box correctly, and most
programs put your small figure in the middle of (or anywhere in) a mostly
blank page.
I found that running the ps file in ps2epsi corrects all my problems. As a
bonus, it generates a small preview in the file. I'm not sure if lyx takes
that preview to display in its WYSIWYM interface, but i think so because
it seems faster to display the on-screen preview of epsi files than plain
ps. If it doens't, maybe it should ... :)

I take figures from Matlab, mostly (diagram printouts and plots), and i
have the student version, which prints a "Student Version of
Matlab" annoying line in the bottom. So what i always do is to disable
page border and put it in landscape mode in Matlab's print dialog, enable
print to file, print. Then i run the file through this:

awk '!($1 == "(Student")' $1 >$1.tmp
ps2epsi $1.tmp $1
rm -f $1.tmp

(yes, bad shell syntax --- it should handle the argument filename's
extension much better, but i'm no shell wizard and i need to finish my
thesis before learning bash better)
This script removes that annoying line from the postscript and generates
the bbox and removes the surrounding blank. The result is consistently
good. Since other programs won't put that annoying text, you can still use
the script, it just won't do anything in the first line (unless you DO
have a "Student" text somewhere in the figure and you want to keep it
:) ).

Hope that helps. It took me a while to find a solution that works and
that's simple.

-- 
_
\\
 \ Eric St-Jean, ing.stag.  [EMAIL PROTECTED] \
  \ Space Systems, Xiphos Technologies Inc \
   \ (514)848-9640 fax 848-9644 \
\ Montreal, Quebec   \
 \\





Re: problems with .eps-files

2000-10-30 Thread Matej Cepl

 IIRC gs adjust the bbox when you convert eps - eps. Try
 gs -dBATCH -sDEVICE=epswrite -sOutputFile=new.eps old.eps

What about this?

#!/bin/sh
# eps2eps -- in order to correct bounding box
# $Id: eps2eps,v 1.3 2000/10/29 23:38:18 matej Exp $
# $Log: eps2eps,v $
# Revision 1.3  2000/10/29 23:38:18  matej
# TMP setting in true side of if.
#
# Revision 1.2  2000/10/29 23:35:34  matej
# Correction of if command -- shit!
#
# Revision 1.1  2000/10/29 23:28:59  matej
# Initial revision
#

if [ -z $2 ]
then
 TMP=` mktemp /tmp/eps2eps.XX `
 cp $1 $TMP
 INPUT=$TMP
 OUTPUT=$1
else
INPUT=$1
OUTPUT=$2
fi
gs -dBATCH -dNOPAUSE -sDEVICE=epswrite -sOutputFile=$OUTPUT $INPUT
trap "rm $TMP* 2/dev/null" 0



Re: problems with .eps-files

2000-10-30 Thread Matej Cepl

 IIRC gs adjust the bbox when you convert eps - eps. Try
 gs -dBATCH -sDEVICE=epswrite -sOutputFile=new.eps old.eps

What about this?

#!/bin/sh
# eps2eps -- in order to correct bounding box
# $Id: eps2eps,v 1.3 2000/10/29 23:38:18 matej Exp $
# $Log: eps2eps,v $
# Revision 1.3  2000/10/29 23:38:18  matej
# TMP setting in true side of if.
#
# Revision 1.2  2000/10/29 23:35:34  matej
# Correction of if command -- shit!
#
# Revision 1.1  2000/10/29 23:28:59  matej
# Initial revision
#

if [ -z $2 ]
then
 TMP=` mktemp /tmp/eps2eps.XX `
 cp $1 $TMP
 INPUT=$TMP
 OUTPUT=$1
else
INPUT=$1
OUTPUT=$2
fi
gs -dBATCH -dNOPAUSE -sDEVICE=epswrite -sOutputFile=$OUTPUT $INPUT
trap "rm $TMP* 2/dev/null" 0



Re: problems with .eps-files

2000-10-30 Thread Matej Cepl

> IIRC gs adjust the bbox when you convert eps -> eps. Try
> gs -dBATCH -sDEVICE=epswrite -sOutputFile=new.eps old.eps

What about this?

#!/bin/sh
# eps2eps -- in order to correct bounding box
# $Id: eps2eps,v 1.3 2000/10/29 23:38:18 matej Exp $
# $Log: eps2eps,v $
# Revision 1.3  2000/10/29 23:38:18  matej
# TMP setting in true side of if.
#
# Revision 1.2  2000/10/29 23:35:34  matej
# Correction of if command -- shit!
#
# Revision 1.1  2000/10/29 23:28:59  matej
# Initial revision
#

if [ -z $2 ]
then
 TMP=` mktemp /tmp/eps2eps.XX `
 cp $1 $TMP
 INPUT=$TMP
 OUTPUT=$1
else
INPUT=$1
OUTPUT=$2
fi
gs -dBATCH -dNOPAUSE -sDEVICE=epswrite -sOutputFile=$OUTPUT $INPUT
trap "rm $TMP* 2>/dev/null" 0



problems with .eps-files

2000-10-27 Thread Wolfgang Engelmann

I apologize for asking questions not Lyx specific, but may be somebody can help
me:

 *Problem 1*
I am using a program TechPlot which produces diagrams (vectorgraphics). It
exports the file also as eps. However, I am having problems with the bounding
box. Some of the figures overlay the horizontal line of my (fancy style) header
or sometimes even the text in the header. How can I trim the figure to avoid
it? I used Roger William´s proposal:
#
I've found that the easiest thing is usually to view the PS file with
gv or another PostScript previewer, use the cursors to identify the X
and Y extents of the portion of the figure you wish to use, and then
use your favourite text editor to edit the "%%BoundingBox:" comment in
the PS file (by convention, it'll be near the top; if it's not there,
add one).

This step usually takes all of about 30 seconds per figure...

-- 
Roger Williams finger me for my PGP public key
Coelacanth Engineering Incconsulting  turnkey product development
Middleborough, Massachusetts   wireless * datacomm * DSP * ATE
tel +1 508 947-5585 * fax +1 508 861-0278 * http://www.coelacanth.com/
#

but it does not help (i.e. overlay still there or even worse).

*Problem 2*
When I view my book.ps  under ghostview, it stops displaying the pages before
the end. I traced the first stop to a figure which is quite large (above 2 MB),
but there are figures which are larger and which are displayed alright.
Rerunning gv after having taken this figure out stops again before the end of
the document.

Before I try to trace the stop to figures, I would like to know whether I have
some way of checking the error messages. I used dvips after exporting the .tex
from lyx but there was no error message until the end of the document (about
300 pages, 300 figures). 

  --  Wolfgang Engelmann Physiologische "Okologie der Pflanzen
Institut f"ur Botanik Universit"at T"ubingen
Auf der Morgenstelle 1
D72076 TUEBINGEN (Germany)
Tel 07071-29-76162 
privat 07071-68324 or 68325
Fax 07071-29-5635
EMail [EMAIL PROTECTED]

*time flies like an arrow 
but fruit flies like a banana*





Re: problems with .eps-files

2000-10-27 Thread Philipp Lehman

On Thu, 26 Oct 2000, Wolfgang Engelmann [EMAIL PROTECTED]:

However, I am having problems with the bounding box. Some of the
figures overlay the horizontal line of my (fancy style) header or
sometimes even the text in the header. How can I trim the figure
to avoid it?

IIRC gs adjust the bbox when you convert eps - eps. Try

gs -dBATCH -sDEVICE=epswrite -sOutputFile=new.eps old.eps

*Problem 2* When I view my book.ps under ghostview, it stops
displaying the pages before the end.

View it in gs (running from a terminal) and take a look at the
output.

gs filename.ps

-- 
Philipp Lehman [EMAIL PROTECTED]





problems with .eps-files

2000-10-27 Thread Wolfgang Engelmann

I apologize for asking questions not Lyx specific, but may be somebody can help
me:

 *Problem 1*
I am using a program TechPlot which produces diagrams (vectorgraphics). It
exports the file also as eps. However, I am having problems with the bounding
box. Some of the figures overlay the horizontal line of my (fancy style) header
or sometimes even the text in the header. How can I trim the figure to avoid
it? I used Roger William´s proposal:
#
I've found that the easiest thing is usually to view the PS file with
gv or another PostScript previewer, use the cursors to identify the X
and Y extents of the portion of the figure you wish to use, and then
use your favourite text editor to edit the "%%BoundingBox:" comment in
the PS file (by convention, it'll be near the top; if it's not there,
add one).

This step usually takes all of about 30 seconds per figure...

-- 
Roger Williams finger me for my PGP public key
Coelacanth Engineering Incconsulting  turnkey product development
Middleborough, Massachusetts   wireless * datacomm * DSP * ATE
tel +1 508 947-5585 * fax +1 508 861-0278 * http://www.coelacanth.com/
#

but it does not help (i.e. overlay still there or even worse).

*Problem 2*
When I view my book.ps  under ghostview, it stops displaying the pages before
the end. I traced the first stop to a figure which is quite large (above 2 MB),
but there are figures which are larger and which are displayed alright.
Rerunning gv after having taken this figure out stops again before the end of
the document.

Before I try to trace the stop to figures, I would like to know whether I have
some way of checking the error messages. I used dvips after exporting the .tex
from lyx but there was no error message until the end of the document (about
300 pages, 300 figures). 

  --  Wolfgang Engelmann Physiologische "Okologie der Pflanzen
Institut f"ur Botanik Universit"at T"ubingen
Auf der Morgenstelle 1
D72076 TUEBINGEN (Germany)
Tel 07071-29-76162 
privat 07071-68324 or 68325
Fax 07071-29-5635
EMail [EMAIL PROTECTED]

*time flies like an arrow 
but fruit flies like a banana*





Re: problems with .eps-files

2000-10-27 Thread Philipp Lehman

On Thu, 26 Oct 2000, Wolfgang Engelmann [EMAIL PROTECTED]:

However, I am having problems with the bounding box. Some of the
figures overlay the horizontal line of my (fancy style) header or
sometimes even the text in the header. How can I trim the figure
to avoid it?

IIRC gs adjust the bbox when you convert eps - eps. Try

gs -dBATCH -sDEVICE=epswrite -sOutputFile=new.eps old.eps

*Problem 2* When I view my book.ps under ghostview, it stops
displaying the pages before the end.

View it in gs (running from a terminal) and take a look at the
output.

gs filename.ps

-- 
Philipp Lehman [EMAIL PROTECTED]





problems with .eps-files

2000-10-27 Thread Wolfgang Engelmann

I apologize for asking questions not Lyx specific, but may be somebody can help
me:

 *Problem 1*
I am using a program TechPlot which produces diagrams (vectorgraphics). It
exports the file also as eps. However, I am having problems with the bounding
box. Some of the figures overlay the horizontal line of my (fancy style) header
or sometimes even the text in the header. How can I trim the figure to avoid
it? I used Roger William´s proposal:
#
I've found that the easiest thing is usually to view the PS file with
gv or another PostScript previewer, use the cursors to identify the X
and Y extents of the portion of the figure you wish to use, and then
use your favourite text editor to edit the "%%BoundingBox:" comment in
the PS file (by convention, it'll be near the top; if it's not there,
add one).

This step usually takes all of about 30 seconds per figure...

-- 
Roger Williams finger me for my PGP public key
Coelacanth Engineering Incconsulting & turnkey product development
Middleborough, Massachusetts   wireless * datacomm * DSP * ATE
tel +1 508 947-5585 * fax +1 508 861-0278 * http://www.coelacanth.com/
#

but it does not help (i.e. overlay still there or even worse).

*Problem 2*
When I view my book.ps  under ghostview, it stops displaying the pages before
the end. I traced the first stop to a figure which is quite large (above 2 MB),
but there are figures which are larger and which are displayed alright.
Rerunning gv after having taken this figure out stops again before the end of
the document.

Before I try to trace the stop to figures, I would like to know whether I have
some way of checking the error messages. I used dvips after exporting the .tex
from lyx but there was no error message until the end of the document (about
300 pages, 300 figures). 

  --  Wolfgang Engelmann Physiologische "Okologie der Pflanzen
Institut f"ur Botanik Universit"at T"ubingen
Auf der Morgenstelle 1
D72076 TUEBINGEN (Germany)
Tel 07071-29-76162 
privat 07071-68324 or 68325
Fax 07071-29-5635
EMail [EMAIL PROTECTED]

*time flies like an arrow 
but fruit flies like a banana*





Re: problems with .eps-files

2000-10-27 Thread Philipp Lehman

On Thu, 26 Oct 2000, Wolfgang Engelmann <[EMAIL PROTECTED]:

>However, I am having problems with the bounding box. Some of the
>figures overlay the horizontal line of my (fancy style) header or
>sometimes even the text in the header. How can I trim the figure
>to avoid it?

IIRC gs adjust the bbox when you convert eps -> eps. Try

gs -dBATCH -sDEVICE=epswrite -sOutputFile=new.eps old.eps

>*Problem 2* When I view my book.ps under ghostview, it stops
>displaying the pages before the end.

View it in gs (running from a terminal) and take a look at the
output.

gs filename.ps

-- 
Philipp Lehman <[EMAIL PROTECTED]>