Created
June 12, 2014 19:18
-
-
Save t2ru/a875e24820bb73d616ca to your computer and use it in GitHub Desktop.
Sphinx(latex→PDF)で図がはみ出さないようにする方法 ref: http://qiita.com/t2ru/items/a19560dc707bf77c432b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 末尾に追加 | |
latex_elements['preamble'] = r''' | |
\usepackage[export]{adjustbox} | |
\usepackage{letltxmacro} | |
\LetLtxMacro{\origincludegraphics}{\includegraphics} | |
\renewcommand*\includegraphics[2][max width=\textwidth,max height=\textheight,keepaspectratio]{% | |
\begin{figure}[htbp] | |
\origincludegraphics[#1]{#2} | |
\end{figure} | |
} | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment