无论这个双数占据了整整一页的大小,有没有办法可以防止这种行为?
\documentclass{article}
\usepackage{subfigure}
\begin{document}
\begin{figure}
%\begin{adjustwidth}{-1cm}{}
\begin{subfigure}{.5\textwidth}
\centering
\scalebox{0.1}{
\includesvg{dia/layouts/1.svg}
}
\end{subfigure}%
\begin{subfigure}{.5\textwidth}
\centering
\scalebox{0.13}{
\includesvg{dia/layouts/2.svg}
}
\end{subfigure}
\caption{Left: a caption for the left side, Right: a caption for the right side}
\label{fig:long}
%\end{adjustwidth}
\end{figure}
\end{document}
答案1
您加载了过时的subfigure
包但使用了的语法subcaption
,并且使用了\includesvg
没有\scalebox
定义的和。
如果我修复这些问题并仅使用\rule
而不是 svg 来简化示例,则图形将按预期设置为顶部浮点数。
\documentclass{article}
\usepackage{subcaption}
\usepackage{svg}
\begin{document}
\begin{figure}
\begin{subfigure}{.5\textwidth}
\centering
\scalebox{0.1}{%
\rule{10cm}{10cm}%\includesvg{exmple-image.svg}%
}
\end{subfigure}%
\begin{subfigure}{.5\textwidth}
\centering
\scalebox{0.13}{%
\rule{10cm}{10cm}%\includesvg{example-image.svg}%
}
\end{subfigure}
\caption{Left: a caption for the left side, Right: a caption for the right side}
\label{fig:long}
\end{figure}
AaAAA BBBB CCCC AaAAA BBBB CCCC AaAAA BBBB CCCC
AaAAA BBBB CCCC AaAAA BBBB CCCC AaAAA BBBB CCCC
AaAAA BBBB CCCC AaAAA BBBB CCCC AaAAA BBBB CCCC
AaAAA BBBB CCCC AaAAA BBBB CCCC AaAAA BBBB CCCC
AaAAA BBBB CCCC AaAAA BBBB CCCC AaAAA BBBB CCCC
AaAAA BBBB CCCC AaAAA BBBB CCCC AaAAA BBBB CCCC
\end{document}