I am trying to use the adjustbox package. When I use the adjustbox command inside a \ffigbox (floatrow package) it works fine. Now I wanted to use it inside a figure environment. Therfore I used the following code:
\begin{figure}
\centering
\adjustbox{max width=\linewidth}{\include{images/plot/associativity}}
%\include{images/plot/associativity}
\caption{Associativity compared to execution time}\label{fig:intro:associativity}
\floatfoot{Matrix multiplication on the \emph{leon3}, normalized by longest execution time. Lower is better. There is no optimal solution across all problem sizes}
\end{figure}
Latex gives me the following error if I use the \adjustbox line, and works fine if I use the pure include:
Extra }, or forgotten \endgroup \end{figure}
Since my MWE turned out to actually contian an error, but I think the parantheses in this adjustbox line are balanced, I have an issue, I am tryuing to build a new (non working) MWE
MWE:
\documentclass{report}
\usepackage{tikz}
\usepackage{adjustbox}
\usepackage{filecontents}
\begin{document}
\begin{filecontents}{asso.tex}
\begin{tikzpicture}
\end{tikzpicture}
\end{filecontents}
\begin{figure}
\centering
\adjustbox{max width=\linewidth}{\include{asso}}
%\include{asso}
\end{figure}
\end{document}
}, just like the error says in the\adjustboxline. End it with two}}rather than}}}. – Werner Jul 24 '13 at 20:47\includeinside\adjustboxis asking for troubles. Use\includeonly for big chunks like chapters (and it's not so useful as it was in the past); it should be\input. – egreg Jul 24 '13 at 21:04\includeis the problem, since it issues a\clearpage... Does using\inputsolve your problem? – Werner Jul 24 '13 at 21:19