2
votes
2answers
40 views

keyval error on passing macro as an optional argument to includegraphics [duplicate]

I am trying to include an image in my document: \documentclass[a4paper,10pt,twoside]{book} \usepackage{graphicx} \begin{document} \def\foo{scale=0.1} \includegraphics[\foo]{fig1.eps} ...
5
votes
1answer
114 views

Defining a LaTeX macro with optional arguments as keywords inside square brackets

I want to define a macro to insert pictures in figures, called \centeredfigure, which I am hoping to use the same way as \includegraphics. In \includegraphics, all optional arguments are given in the ...
9
votes
2answers
457 views

How to use a macro inside \includegraphics options?

I have to do several figures like this: \begin{figure}[h!] \centering \includegraphics[trim = 9.55cm 1.8cm 10.25cm 4.05cm, ...
6
votes
2answers
2k views

Keyval Error with \includegraphics: options undefined

I'm trying to make a class file to help me draft bylaws for clubs, but I'm running into a problem with \includegraphics. I want to be able to define a club logo using a \logo command (see class ...