We are trying to put the figure caption as well as the footnotes in the margin and got very good results with the tufte-latex
package. However, we have to manually adjust the offset of each sidenote or caption so that they do not overlap. Please see the following part of a page. Please note, how reference 64 was manually moved up to not be too close to the caption.
Now, we have to find something fully automatic and I found the marginfix
package. It works great and can move \marginpar
s around to get very pleasing results. Please see this article how it works. I tried to make the sidenote package to combine the look with the automatic feature.
Nevertheless, it is not useful to move a figure caption away from the adjacent figure. Therefore, the caption is placed with a \marginnote
from the marginnote
package. If the margin gets very crowded, the \marginpar
s start to overlap with the \marginnote
s.
It seems, that was addressed in the first version of marginfix
. I could 'block' some part of the margin with \blockmargin
. Does anyone know why \blockmargin
was dropped in the rewrite of marginfix
? I asked the author, but got no response. The repository of marginfix
is here.
Or is there another way to 'forbit' some area of the margin for \marginpar
?
I tried a MWE to generally demonstrate the problem. Please replace the filename in the \includegraphics
macro.
\documentclass[]{article}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{marginnote}
\usepackage[paperwidth=170mm, paperheight=240mm, left=40pt, top=40pt, textwidth=260pt, marginparsep=20pt, marginparwidth=100pt, textheight=560pt, footskip=40pt]{geometry}
\begin{document}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.
\marginpar{This could be a couple of references and other sidenotes.}
Donec vehicula augue eu neque.
\marginpar{This could be a couple of references and other sidenotes.}
Pellentesque habitant morbi tris- tique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices.
\marginpar{This could be a couple of references and other sidenotes.}
Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc.
\begin{figure}[h]
\marginnote{This would be where the caption should be.}
\includegraphics{broken_loop}
\end{figure}
\lipsum[3]
\end{document}
`
to mark your inline code as I did in my edit.\blockmargin
, but I found the command in the TUGboat article (tug.org/TUGboat/tb31-2/tb98hicks.pdf). In the github repository (github.com/shicks/marginfix/commits/master) it is present in the initial commit (Jun 23, 2010) and was dropped in the next one (Aug 8, 2010). I use marginfix extensively and it works great. Now I want to mix it with figure captions that require\marginnote
, those obviously overlap with the\marginpars
.\blockmargin
would be very helpful.