调整侧标题,使放置在边距中的标题从图片的顶部边缘开始

调整侧标题,使放置在边距中的标题从图片的顶部边缘开始

在我的文档中,我使用了一个宽边距来放置图片的标题。使用包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*)不变?

相关内容