我目前将下图放置在我的页面底部:
\begin{SCfigure}[][h]
\centering
\caption{Georg Cantor (1845--1918)}
\includegraphics[height=\measurepage]{images/Georg_Cantor2}
\label{fig:cantor}
\end{SCfigure}
但是,我想在旁边放置另一个带有侧边标题的图形。我无法使用正常figure
环境,因为我真的需要那些侧边标题。有什么建议吗?
答案1
以下是如何使用该floatrow
包的一个小例子。在第一页上,有一排插图,带有环境\floatrow
,位于figure
环境内部。要堆叠图形,只需使用命令即可\fcapside{\caption{…}\label{…}}
。侧面标题可以通过关键字系统放置在顶部、中间或底部、左侧、右侧、内部或外部。
\documentclass[12pt, a4paper, twoside]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage{heuristica}
\usepackage[textwidth =15cm]{geometry}
\usepackage{graphicx, floatrow}
\DeclareFloatSeparators{QQuad}%
{\begingroup\hskip 4em\endgroup}
\floatsetup{capbesideposition={bottom,outside},capbesidesep =QQuad}
\setlength{\labelsep}{1.5em}
\begin{document}
\begin{figure}
\begin{floatrow}
\ffigbox{\includegraphics[scale=0.6]{AliceSteadman.png}}{\caption{Ralph Steadman’s \emph{Alice}}\label{stead}}
\ffigbox{\includegraphics{sendak.png}}{\caption{\emph{Where the Wild Things are}}\label{send}}
\end{floatrow}
\end{figure}
\clearpage
\begin{figure}
\fcapside{\caption{Ralph Steadman’s \emph{Alice}}\label{stead}}
{\includegraphics[scale=0.6]{AliceSteadman.png}}
\end{figure}
\begin{figure}
\fcapside{\caption{\emph{Where the Wild Things are}}\label{send1}}{\includegraphics{sendak.png}}
\end{figure}
\end{document}
答案2
快速调整一段代码(基于 KOMA-Script)可能有助于您开发解决方案:
\documentclass[paper =a4, english]{scrartcl}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[demo]{graphicx}% remove option demo if you have the graphic
\begin{document}
\begin{figure}[!htb]
{
\begin{minipage}{.4\textwidth}
\begin{captionbeside}{First Box}%
{\includegraphics[width=30mm,height=18.5mm]{graphic}}
\end{captionbeside}
\end{minipage}
\begin{minipage}{.2\textwidth}
\ % Some space in between
\end{minipage}
\begin{minipage}{.4\textwidth}
%
\begin{captionbeside}{SecondBox}%
{\includegraphics[width=30mm,height=18.5mm]{graphic}}
\end{captionbeside}
\end{minipage}%
}
\end{figure}\par
\end{document}
我希望它接近你的要求。