我有一份文档,右侧twocolumn
有一个大图。当我将其包含在右列中时,它工作正常。但如果它在左列,则边距图会被推入左侧边距,并且不完全可见。我怎样才能强制将边距图包含在两列中?和也存在同样的问题。marginpar
marginfigure
left
marginpar
marginnote
sidenote
我试着看类似问题有回忆录课程,但没有解决方案。
平均能量损失
\documentclass[11pt,twocolumn,a4paper,landscape,twoside=semi]{scrbook}
\setlength{\columnsep}{25pt}
\usepackage{geometry}
\geometry{top=15mm,bottom=25mm, textheight=195mm, headsep=5mm, left=15mm, right=85mm, textwidth=100mm, marginpar=70mm,marginparsep=5mm}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{sidenotes}
\usepackage{lipsum}
\usepackage{showframe}
\begin{document}
\begin{marginfigure}
\centering
\includegraphics[width=\textwidth]{ske.jpg}
\caption{a figure}
\end{marginfigure}
\lipsum
\lipsum[1-2]
\begin{marginfigure}%[!ht]
\centering
\includegraphics[width=\textwidth]{ske.jpg}
\caption{a figure}
\end{marginfigure}
\end{document}
答案1
虽然不是最理想的,但可能会对你有所帮助。使用 textpos 包。
\documentclass[11pt,twocolumn,a4paper,landscape,twoside=semi]{scrbook}
\setlength{\columnsep}{25pt}
%https://tex.stackexchange.com/questions/641760/issue-with-marginfigure-in-twocolumn-document/641859#641859
\usepackage{geometry}
\geometry{top=15mm,bottom=25mm, textheight=195mm, headsep=5mm, left=15mm, right=85mm, textwidth=100mm, marginpar=70mm,marginparsep=5mm}
\usepackage{graphicx}
\usepackage{sidenotes}
\usepackage{lipsum}
\usepackage{showframe}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage[absolute,showboxes]{textpos}<--- for the test
\usepackage[absolute]{textpos}
\textblockorigin{217mm}{15mm}%217<---297mm-70mm-10mm?
\newcommand{\placemarge}[3]{%
% 3.8 per test
\begin{textblock}{3.8}(0,#3)% postion absolue
\centering
\begin{figure}
\includegraphics[width=70mm]{#1}
\caption{#2}
\end{figure}
\end{textblock}
}
\begin{document}
\placemarge{example-image-a.jpg}{a figure A}{0}
\lipsum
\placemarge{example-image-b.jpg}{a figure B}{1}
\lipsum[1-2]
\placemarge{example-image-c.jpg}{a figure C}{6}
\end{document}