1. Georg Brandl
  2. sphinx

Pull requests

#248 Open
Repository
Deleted repository
Branch
default (ffbe740f2423)
Repository
sphinx
Branch
default

Use includegraphics' scale option

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}
  }
  • Learn about pull requests

Comments (0)