Good morning.
I would like to get margin notes next to text. When I do it it's right but when I write a text margin notes change position (the picture below) . How to fix it?
Thanks for help.
\documentclass[10pt,a6paper]{book}
%46paper
\usepackage[utf8]{inputenc}
\usepackage[main=english,slovak]{babel}
\usepackage[cm]{fullpage}
\usepackage{marginnote}
\usepackage[top=10mm, bottom=10mm, outer=30mm, inner=10mm, heightrounded, marginparwidth=25mm, marginparsep=2mm]{geometry}
\usepackage{tipa}
\usepackage{multirow}
\usepackage{color}
\usepackage{longtable}
\usepackage[dvipsnames]{xcolor}
%\pagenumbering{alph}
%\pagenumbering{Roman}
%\usepackage{tgbonum}
\begin{document}
\catcode`\-=12
\sloppy
%\tableofcontents
%\thispagestyle{empty}
\underline{\texttt{Proces merania}}
\begin{enumerate}
\item \texttt{meranie, pozorovanie}
\item \texttt{výpočet}
\item \texttt{analýza}
\end{enumerate}
\vspace{5mm}
\underline{\texttt{Pozorovania}}
\begin{enumerate}
\item \texttt{priame}
\item \texttt{nepriame}
\end{enumerate}
$$ E= X - \bar{X} $$
\begin{longtable}{lp{5cm}}
$\bar{X}$ & skutočná hodnota,veľkosť meranej veličiny\\
X & nameraná, odmeraná hodnota veličiny\\
E & chyba v nameranej, odmeranej hodnove veličiny\\
\end{longtable}
\marginnote{{\footnotesize
{\color{TealBlue} \foreignlanguage{English}{observation}} [\textipa{\textsecstress 6b.z@\textprimstress veI.S\super @n}]\\
\foreignlanguage{slovak}{pozorovanie} \\
{\color{TealBlue} \foreignlanguage{English}{measurement}} [\textipa{\textprimstress meZ.@.m@nt}]\\
\foreignlanguage{slovak}{meranie \textit{(of) čoho}}\\
{\color{TealBlue} \foreignlanguage{English}{to analyse}} [\textipa{\textprimstress \ae n.\super @l.aIz}]\\
\foreignlanguage{slovak}{analyzovať \textit{čo}}\\\vspace{10mm}
{\color{TealBlue} \foreignlanguage{English}{directly}} [\textipa{daI\textprimstress rekt.li}]\\ \foreignlanguage{slovak}{priamo, bezprostredne} \\
{\color{TealBlue} \foreignlanguage{English}{indirectly}} [\textipa{\textsecstress In.daI\textprimstress rekt.li}]\\
\foreignlanguage{slovak}{nepriamo}\\
}}
\end{document}


\marginnotematerial before the material in the body of the document? – Mico Oct 10 '16 at 06:29