Graphics, Figures & Tablespsfrag for greek symbols corrupted with asme2e

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
CoolnessItself
Posts: 47
Joined: Wed Nov 11, 2009 9:30 pm

psfrag for greek symbols corrupted with asme2e

Post by CoolnessItself »

Hi all,

I have an eps figure with x- and-ylabels set to a,b,c,d, and e, corresponding to -pi through pi in increments of pi/2 (see example and attachment). I also have x and y axes labeled X and Y, respectively. When I try to replace these with greek symbols \pi or \Delta, I get unexpected symbols. This is using the asme2e class. Article class works fine. Any clue why this happens?

Code: Select all

Code, edit and compile here:
\documentclass{asme2e} %if this is {article}, no problems
\usepackage{graphicx}
\usepackage{etex}
\usepackage[latex={-interaction=nonstopmode},crop=off,runs=2]{auto-pst-pdf}
\usepackage{psfrag}
\begin{document}
\begin{figure}[t]
\begin{center}
\psfrag{a}[][][1]{$-\pi$}
\psfrag{b}[][][1]{$-\pi/2$}
\psfrag{c}[][][1]{$0$}
\psfrag{d}[][][1]{$\pi/2$}
\psfrag{e}[][][1]{$\pi$}
\psfrag{X}[][][1]{$\Delta x$}
\psfrag{Y}[][][1]{$\Delta y$}
\includegraphics{peaks.eps}
\end{center}
\end{figure}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Untitled.png
Untitled.png (2.04 KiB) Viewed 2925 times
Attachments
asme2e.cls
(46.3 KiB) Downloaded 322 times
peaks.eps
(11.16 KiB) Downloaded 331 times
Last edited by cgnieder on Wed Mar 06, 2013 10:15 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

psfrag for greek symbols corrupted with asme2e

Post by cgnieder »

Your MWE works for me:
psfrag.png
psfrag.png (1.96 KiB) Viewed 2916 times
My system: up to date TeX Live 2012, compiled with pslatex --shell-escape.

Regards
site moderator & package author
Post Reply