Martin Vermeer wrote:
>> In this latter case, the script generates pstex and pstex_t output and
>> then converts the image to png using gs. I tried to generate a pdf image
>> rather than a png one but failed :-(
> 
> I use epstopdf manually (part of tetex) and works fine. It's a perl
> script and might give you ideas what to do.

Wonderful! Thank you. (The script simply invokes it).

>> The function that uses "modern" xfig pdftex, pdftex_t targets is
>> currently disabled because I find that the pdftex image is rotated by
>> 90degrees. I have no idea why...
> 
> I find (xfig 3.2.3, no patchlevel) that the pdf produced is in a
> 'letter' page...

I attach sample output of screenshots of acroread viewing pdf files 
generated using pdflatex. The fig2pdftex.sh script was used to generate the 
image data, so:
        modern_xfig.png
                fig2dev -Lpdftex ${input} ${pdftex}
                fig2dev -Lpdftex_t -p${outbase} ${input} ${pdftex_t}
        legacy_xfig.png
                fig2dev -Lpstex ${input} ${pstex}
                fig2dev -Lpstex_t -p${outbase} ${input} ${pdftex_t}
                epstopdf --outfile=${pdf} ${pstex}

Clearly, both "work", but -Lpdftex output must be rotated, either as an 
option to fig2dev (unknown to me) or by adding some stuff to the 
\includegraphics command.
                
-- 
Angus

<<attachment: legacy_xfig.png>>

<<attachment: modern_xfig.png>>

Reply via email to