I currently try to find a good way to include images that were creaded with xfig in a LaTeX document which will be compiled to a PDF.
So I currently try to get to know the difference between the following export options:
- LaTeX picture
- LaTeX picture + epic macros
- LaTeX picture + eepic macros
- LaTeX picture + eepicemu macros
I tried those export options with a simple example and they gave the following results:
LaTeX picture
\setlength{\unitlength}{4144sp}%
%
\begingroup\makeatletter\ifx\SetFigFont\undefined%
\gdef\SetFigFont#1#2#3#4#5{%
\reset@font\fontsize{#1}{#2pt}%
\fontfamily{#3}\fontseries{#4}\fontshape{#5}%
\selectfont}%
\fi\endgroup%
\begin{picture}(2505,1824)(76,-1423)
\thinlines
{\color[rgb]{0,0,0}\put(631,-61){\line( 1, 0){360}}
}%
{\color[rgb]{0,0,0}\put(631,-1051){\line( 1, 0){360}}
}%
{\color[rgb]{0,0,0}\put(2341,-331){\line( 1, 0){180}}
}%
{\color[rgb]{0,0,0}\put(991,-1411){\framebox(1350,1800){}}
}%
\put( 91,-151){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}\$a\_i\$}%
}}}}
\put(136,-1141){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}\$b\_i\$}%
}}}}
\put(2566,-376){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}\$s\_i\$}%
}}}}
\put(1936,-1231){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}CO}%
}}}}
\put(1306,164){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}\$Sigma\$}%
}}}}
\end{picture}%
LaTeX picture + epic macros
\setlength{\unitlength}{0.00087489in}
%
\begingroup\makeatletter\ifx\SetFigFont\undefined%
\gdef\SetFigFont#1#2#3#4#5{%
\reset@font\fontsize{#1}{#2pt}%
\fontfamily{#3}\fontseries{#4}\fontshape{#5}%
\selectfont}%
\fi\endgroup%
{\renewcommand{\dashlinestretch}{30}
\begin{picture}(2966,1839)(0,-10)
\drawline(555,1362)(915,1362)
\drawline(555,372)(915,372)
\drawline(2265,1092)(2445,1092)
\drawline(915,1812)(2265,1812)(2265,12)
(915,12)(915,1812)
\put(15,1272){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}\$a\_i\$}}}}
\put(60,282){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}\$b\_i\$}}}}
\put(2490,1047){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}\$s\_i\$}}}}
\put(1860,192){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}CO}}}}
\put(1230,1587){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}\$$\backslash$Sigma\$}}}}
\end{picture}
}
LaTeX picture + eepic macros and LaTeX picture + eepicemu macros
\setlength{\unitlength}{0.00087489in}
%
\begingroup\makeatletter\ifx\SetFigFont\undefined%
\gdef\SetFigFont#1#2#3#4#5{%
\reset@font\fontsize{#1}{#2pt}%
\fontfamily{#3}\fontseries{#4}\fontshape{#5}%
\selectfont}%
\fi\endgroup%
{\renewcommand{\dashlinestretch}{30}
\begin{picture}(2966,1839)(0,-10)
\path(555,1362)(915,1362)
\path(555,372)(915,372)
\path(2265,1092)(2445,1092)
\path(915,1812)(2265,1812)(2265,12)
(915,12)(915,1812)
\put(15,1272){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}\$a\_i\$}}}}
\put(60,282){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}\$b\_i\$}}}}
\put(2490,1047){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}\$s\_i\$}}}}
\put(1860,192){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}CO}}}}
\put(1230,1587){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}\$$\backslash$Sigma\$}}}}
\end{picture}
}
Some differences
I compared some of them with meld and got these results
- latex <-> epic: epic seems to be a lot shorter. The coordinates change. epic uses \drawline
- epic <-> eepic: \drawline <-> \path
- eepic <-> eepicemu: No diffences, I've combined them above