Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm importing .eps in LaTeX. I want to resize image to fit my purposes. I want to do that only by one scale, X or Y (disproportional). The problem is that labels (font and size) become distorted.

Is there some way to change one scale (e.g. width) and to keep labels as they in original?

share|improve this question
    
This is a nasty issue in my opinion. If you have your figure in a vector drawing software then together with the \psfrag command, you can work on the fonts in your LaTeX code itself. –  yCalleecharan Nov 30 '11 at 6:37
add comment

migrated from stackoverflow.com Sep 19 '11 at 13:52

This question came from our site for professional and enthusiast programmers.

1 Answer

No matter which way you scale, the fonts etc. used in the image will also be affected by that scaling. Here is an example, substitute your own image

\documentclass[a4paper]{memoir}
\usepackage{graphicx}
\begin{document}
\newlength\mylen
\settoheight\mylen{\includegraphics{x-1}}
\includegraphics[width=6cm,height=\mylen]{x-1}
\includegraphics{x-1}
\end{document}

I used this metapost code, and ran it through mptopdf

beginfig(1);
label(btex "This is some text" etex, origin);
endfig;
end;
share|improve this answer
    
Thanks. It seems that I will have to work on the .eps file, instead of LaTex. –  ufffffff Sep 19 '11 at 14:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.