Pull requests

#248 Open
Repository
kroger kroger
Branch
default
Repository
birkenfeld birkenfeld
Branch
default

Use includegraphics' scale option

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update default
hg pull -r default https://bitbucket.org/kroger/sphinx
hg merge ffbe740f2423
hg commit -m 'Merged in kroger/sphinx (pull request #248)'
Author
  1. kroger
Reviewers
Description

Sphinx currently uses scalebox to scale images. Although it works for most cases, it doesn't work when one needs to redefine the includegraphics command. For instance, the following code doesn't work when includegraphics is inside a scalebox but it works fine if we use includegraphics' scale option:

\LetLtxMacro\latexincludegraphics\includegraphics

\renewcommand{\includegraphics}[2][]{%
  \vspace{1.5ex}
  \latexincludegraphics[#1]{#2}
  \vspace{1.5ex}
  }

Comments (0)