I think I have solved my .fig display problem (remember I wanted to use the separate .tex/.ps export to be able to use formulas in the drawing instead of .ps-only export).
To do so I created shell scripts fig2tex, fig2eps and fig2xpm. [And I think I'd like to add them to lib/scripts, they wont hurt there - Comments on that?] Then I added \converters in my .lyx/preferences _and_ removed the fig2dev entries from lyxrc.default. I think the latter should not be needed. So what is wrong there? Do the personal preferences fail to override the global ones? Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
#!/bin/bash # usage: fig2tex foo.fig foo.tex PSNAME=fig2epstmp_content_$$.ps echo " \\documentclass{article} \\usepackage{epsfig} \\usepackage{color} \\pagestyle{empty} \\begin{filecontents}{$PSNAME} `fig2dev -L pstex $1` \\end{filecontents} \\begin{document} \\begin{center} `fig2dev -L pstex_t -p $PSNAME $1` \\end{center} \\end{document} " > $2
#!/bin/bash # usage: fig2eps foo.fig foo.eps TMPDIR=/tmp BASE=fig2epstmp_$$ PSNAME=fig2epstmp_content_$$.ps echo " \\documentclass{article} \\usepackage{epsfig} \\usepackage{color} \\pagestyle{empty} \\begin{filecontents}{$PSNAME} `fig2dev -L pstex $1` \\end{filecontents} \\begin{document} \\begin{center} `fig2dev -L pstex_t -p $PSNAME $1` \\end{center} \\end{document} " > $TMPDIR/$BASE.tex ( cd $TMPDIR ; latex $BASE.tex ; dvips -o $BASE.tmpeps $BASE.dvi rm -f $BASE.tex $BASE.log $BASE.dvi $BASE.aux $PSNAME ) #mv $TMPDIR/$BASE.tmpeps $2 eps2eps $TMPDIR/$BASE.tmpeps $2 rm $TMPDIR/$BASE.tmpeps
#!/bin/bash # usage: fig2xpm foo.fig foo.xpm TMP=/tmp/fig2epstmp_$$.eps fig2eps $1 $TMP convert -crop 0x0 EPS:$TMP XPM:$2 #convert EPS:$TMP XPM:$2 echo rm -f $TMP rm -f $TMP