I want to change how the font of the sidenotes appears. For this I modified \marginfont and I am getting the desired results. In particular, this works well with \marginnote{} and with \sidenote{} but with a caveat. It only works with the sidenotes when I give a concrete offset value. That is it the formatting of text works only if I give \sidenote[][0cm]{}.
If I do not provide an offset in a given sidenote, it reverts to the normal font, and a new numbering is started. I would like to know why this is happening and how can one set formatting for sidenotes without offset too.
MWE is appended below
\documentclass{article}
\usepackage{sidenotes}
\renewcommand*{\marginfont}{\small\sffamily}
\begin{document}
Furthermore, they were emboldened to play a game of hide and seek with the imperialists whom they harassed incessantly by plundering their convoys and by interrupting their lines of communication. Status quo came from or how it should be changed. \sidenote[1][0pt]{This is a sidenote, which is set with offset of 0pt. And the formatting is correct.}
Furthermore, they were emboldened to play a game of hide and seek with the imperialists whom they harassed incessantly by plundering their convoys and by interrupting their lines of communication. Status quo came from or how it should be changed.
Furthermore, they were emboldened to play a game of hide and seek with the imperialists whom they harassed incessantly by plundering their convoys and by interrupting their lines of communication. Status quo came from or how it should be changed. \sidenote{This is a sidenote with no offset, and the formatting doesn't work here, neither does the numbering.}
Furthermore, they were emboldened to play a game of hide and seek with the imperialists whom they harassed incessantly by plundering their convoys and by interrupting their lines of communication. Status quo came from or how it should be changed.Furthermore, they were emboldened to play a game of hide and seek with the imperialists whom they harassed incessantly by plundering their convoys and by interrupting their lines of communication. Status quo came from or how it should be changed.
Furthermore, they were emboldened to play a game of hide and seek with the imperialists whom they harassed incessantly by plundering their convoys and by interrupting their lines of communication. Status quo came from or how it should be changed.\marginnote{This is a margin note with correct formatting.}
Furthermore, they were emboldened to play a game of hide and seek with the imperialists whom they harassed incessantly by plundering their convoys and by interrupting their lines of communication. Status quo came from or how it should be changed.\sidenote{This is a sidenote with no offset, and the formatting doesn't work here, and this has its own numbering.}
Furthermore, they were emboldened to play a game of hide and seek with the imperialists whom they harassed incessantly by plundering their convoys and by interrupting their lines of communication. Status quo came from or how it should be changed.
Furthermore, they were emboldened to play a game of hide and seek with the imperialists whom they harassed incessantly by plundering their convoys and by interrupting their lines of communication. Status quo came from or how it should be changed.\sidenote[][1cm]{This is a side note with offset again and formatting works.}
\end{document}
