![调整侧标题,使放置在边距中的标题从图片的顶部边缘开始](https://linux22.com/image/465868/%E8%B0%83%E6%95%B4%E4%BE%A7%E6%A0%87%E9%A2%98%EF%BC%8C%E4%BD%BF%E6%94%BE%E7%BD%AE%E5%9C%A8%E8%BE%B9%E8%B7%9D%E4%B8%AD%E7%9A%84%E6%A0%87%E9%A2%98%E4%BB%8E%E5%9B%BE%E7%89%87%E7%9A%84%E9%A1%B6%E9%83%A8%E8%BE%B9%E7%BC%98%E5%BC%80%E5%A7%8B.png)
在我的文档中,我使用了一个宽边距来放置图片的标题。使用包sidenotes
和\sicecaption
命令效果很好;特别是因为包编辑了它所figure*
跨越的环境\textwidth
并将\marginparwidth
标题放在下面的边距中。
对于仅跨越的常规图形,\textwidth
标题放在边距旁边,但与图形的顶部边缘略有偏离。我希望标题从图形的顶部边缘开始。
我尝试了一些技巧,例如调整\abovecaptionskip
或\marginnotevadjust
,因为sidenotes
使用marginnotes
包来显示标题。可以将标题向上移动,但figure*
环境的标题也会向上移动进入图片。
梅威瑟:
\documentclass[%
a4paper,
twoside
]{article}
\usepackage[T1]{fontenc}
\usepackage[% Site-layout
%includeheadfoot%
]{geometry} % passt Seitengröße an (B5 usw.)
\geometry{%
%includeheadfoot,
inner=20mm,
outer=60mm,
top=15mm,
bottom=20mm,
marginparwidth=45mm,
showframe,
}
\usepackage{graphicx}
\usepackage{sidenotes}
\usepackage{blindtext}
\begin{document}
\section{Section}
\blindtext
\begin{figure}[!htbp]
\sidecaption[Foto: Peter Paule]{A very long sidecaption describing not only the place, but the hole setting, the area, all the archaeological findings; and even every student worker who was digging in the dirt. A second sentence to test the heigth. A very long sidecaption describing not only the place, but the hole setting, the area, all the archaeological findings; and even every student worker who was digging in the dirt. A second sentence to test the heigth.}
\includegraphics[width=\textwidth]{example-image}
\end{figure}
\blindtext
\blindtext[3]
\begin{figure*}[!htbp]
\sidecaption{A very long sidecaption describing not only the place, but the hole setting, the area, all the archaeological findings; and even every student worker who was digging in the dirt.}
\includegraphics[width=\linewidth]{example-image}
\end{figure*}
\blindtext[3]
\begin{figure*}[!htbp]
\sidecaption{A very long sidecaption describing not only the place, but the hole setting, the area, all the archaeological findings; and even every student worker who was digging in the dirt.}
\includegraphics[width=\linewidth]{example-image-b}
\end{figure*}
\end{document}
我故意使用了一些较长的标题,以查看其效果。
如何才能仅移动sidecaption
常规figure
环境以从图像的顶部边缘开始,同时保持宽图形的侧标题(figure*
)不变?