Skip to main content
added 1 character in body
Source Link
Atcold
  • 1.8k
  • 1
  • 13
  • 18

I know this is a biglong shot since I cannot really post a minimal working example, but I'll try to describe the issue to the best of my capabilities. I'm running pdflatex twice for the compilation.

I have the following testing macro, which produces the expected result at the beginning of the chapter.

\def\myTest{
Text1. \marginnote[left]{right}

Some more text. \marginnote[left]{right}

More text, longer sentence. \marginnote[left]{right}}

enter image description here

Unfortunately, after a few pages, marginnote gets confused.

enter image description here

It looks like the first call to \marginnote[left]{right} fixes the alignment for the following two instances.

One could simply use marginpar. I noticed this issue when trying to use sidecaption, which was putting the text over the figure rather than in the margin.

Original issue

\begin{figure}[H]
  \centering
  \sidecaption{Something.}
  \sidecaption{Something.}
  \caption{Disappeared.}
  \input{inference-figs/activation}
\end{figure}

enter image description here

I know this is a big shot since I cannot really post a minimal working example, but I'll try to describe the issue to the best of my capabilities. I'm running pdflatex twice for the compilation.

I have the following testing macro, which produces the expected result at the beginning of the chapter.

\def\myTest{
Text1. \marginnote[left]{right}

Some more text. \marginnote[left]{right}

More text, longer sentence. \marginnote[left]{right}}

enter image description here

Unfortunately, after a few pages, marginnote gets confused.

enter image description here

It looks like the first call to \marginnote[left]{right} fixes the alignment for the following two instances.

One could simply use marginpar. I noticed this issue when trying to use sidecaption, which was putting the text over the figure rather than in the margin.

Original issue

\begin{figure}[H]
  \centering
  \sidecaption{Something.}
  \sidecaption{Something.}
  \caption{Disappeared.}
  \input{inference-figs/activation}
\end{figure}

enter image description here

I know this is a long shot since I cannot really post a minimal working example, but I'll try to describe the issue to the best of my capabilities. I'm running pdflatex twice for the compilation.

I have the following testing macro, which produces the expected result at the beginning of the chapter.

\def\myTest{
Text1. \marginnote[left]{right}

Some more text. \marginnote[left]{right}

More text, longer sentence. \marginnote[left]{right}}

enter image description here

Unfortunately, after a few pages, marginnote gets confused.

enter image description here

It looks like the first call to \marginnote[left]{right} fixes the alignment for the following two instances.

One could simply use marginpar. I noticed this issue when trying to use sidecaption, which was putting the text over the figure rather than in the margin.

Original issue

\begin{figure}[H]
  \centering
  \sidecaption{Something.}
  \sidecaption{Something.}
  \caption{Disappeared.}
  \input{inference-figs/activation}
\end{figure}

enter image description here

Source Link
Atcold
  • 1.8k
  • 1
  • 13
  • 18

How to debug wrong marginnote alignment

I know this is a big shot since I cannot really post a minimal working example, but I'll try to describe the issue to the best of my capabilities. I'm running pdflatex twice for the compilation.

I have the following testing macro, which produces the expected result at the beginning of the chapter.

\def\myTest{
Text1. \marginnote[left]{right}

Some more text. \marginnote[left]{right}

More text, longer sentence. \marginnote[left]{right}}

enter image description here

Unfortunately, after a few pages, marginnote gets confused.

enter image description here

It looks like the first call to \marginnote[left]{right} fixes the alignment for the following two instances.

One could simply use marginpar. I noticed this issue when trying to use sidecaption, which was putting the text over the figure rather than in the margin.

Original issue

\begin{figure}[H]
  \centering
  \sidecaption{Something.}
  \sidecaption{Something.}
  \caption{Disappeared.}
  \input{inference-figs/activation}
\end{figure}

enter image description here