Search found 2 matches

by jsjuni
Mon Jul 27, 2009 11:26 pm
Forum: General
Topic: Macros in includegraphics options
Replies: 8
Views: 13282

Macros in includegraphics options

Thanks, gmedina and phi, for the replies. I wrote a macro using calc and ifthenelse to set \epsangle, \epswidth, \epsheight, etc, and used those as

Code: Select all

\includegraphics[angle=\epsangle, width=\epswidth, ...]
A bit ugly, perhaps, but it works. Thanks again.
by jsjuni
Mon Jul 27, 2009 12:21 am
Forum: General
Topic: Macros in includegraphics options
Replies: 8
Views: 13282

Macros in includegraphics options

I'm trying to do something similar for the 'angle' key. I want to compute the rotation angle in a macro. The example below is a bare skeleton, but it doesn't work.

\documentclass{article}
\usepackage{graphicx}
\usepackage{calc}
\usepackage{ifthen}
\begin{document}
% this works
\includegraphics ...