9

In the memoir class, is there a way to get the \sidebar notes to be in paragraph style? I am looking for a similar effect that fnpara provides to footnotes.

I have included an image of what I would like my sidenote column to look like.

Image of what I desire my sidenote column to look like.

  • Related: Sidenote formatting – Werner Oct 18 '12 at 19:59
  • And by paragraph formatting you mean that the notes start from the top of the text block regardless of where they are made. – Werner Oct 18 '12 at 20:00
  • From my understanding, the \sidebar automatically starts the notes at the top of the text block. I have added an image of what I mean by paragraph style. The subsequent note will start on the same line as the previous note, if possible. – themarshian Oct 18 '12 at 20:13
2

Does this come anywhere close to what you seek? (You may or may not want to reset the counter sbrefs in the \showsidebar invocation, as I did)

\documentclass{memoir}
\edef\sbar{}
\newcounter{sbrefs}
\setcounter{sbrefs}{0}
\newcommand\addtosidebar[1]{%
\addtocounter{sbrefs}{1}%
$^\alph{sbrefs}$%
\edef\sbar{\sbar$^\alph{sbrefs}$#1 }%
}
\newcommand\showsidebar{%
\sidebar{\sbar}%
\edef\sbar{}%
\setcounter{sbrefs}{0}%
}
\begin{document}
In the beginning, etc. God created the heaven and the earth 
In the beginning, etc. God created the heaven and the earth 
In the beginning, etc. God created the heaven and the earth 
In the beginning, etc. God created the heaven and the earth%
\addtosidebar{Gn 1:1}
In the beginning, etc. God created the heaven and the earth 
In the beginning, etc. God created the heaven and the earth%
\addtosidebar{Ex 3:2; Ex 3:16}
In the beginning, etc. God created the heaven and the earth 
In the beginning, etc. God created the heaven and the earth%
\addtosidebar{Jn 3:16}
In the beginning, etc. God created the heaven and the earth 
In the beginning, etc. God created the heaven and the earth%
\addtosidebar{Mt 1:17}
In the beginning, etc. God created the heaven and the earth 
In the beginning, etc. God created the heaven and the earth 
\showsidebar

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.