1

I am trying to write special characters in xfig. I am putting character code within $ sign, as normally done in latex

$x_1$ or $\mu$ or $\sigma$

I tried setting Text Flags, Special Flag = Special, but it didn't helped. When I export the file in .eps format, characters appears as it i.e. $x_1$ or $\mu$ or $\sigma$. How to resolve this issue.

Atinesh
  • 113
  • 4
  • If you just want to use the figure in `lyx` then you don't need to convert it to `.eps`, but just do *Insert -> File -> External material* in lyx and specify the `.fig` file. (I haven't tried this). – meuh Apr 24 '17 at 19:24

1 Answers1

3

EPS export doesn't run LaTeX, so labels are interpreted as plain text.

Run fig2dev to go through LaTeX:

fig2dev -Lpstex myfigure.fig >myfigure.pstex
fig2dev -Lpstex_t myfigure.pstex >myfigure.pstex_t

Then include the figure in a (La)TeX document.

\documentclass{minimal}
\usepackage{graphics}
\begin{document}
\input{myfigure.pstex_t}
\end{document}
Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175