I have reason to insert notes in-text in boxes. I defined the following command for doing so:
\newcommand{\Lnote}[1]{%
\textsuperscript{\footnotesize{\thelnote}}
\begin{center}
\fbox{\parbox{0.7\textwidth}{\textsuperscript{\footnotesize{\thelnote}}#1}}
\end{center}
\stepcounter{lnote}
}
This does most of what I want: the notes are numbered by the lnote counter, etc. However, I would like it if the box containing the note didn't break the text, but rather occurred at the next line break. That is, if I wrote this:
Some really long thing that takes up more than one line.\Lnote{Something that should be noted.} You know, something that keeps on going on and on.
I would like it to not go:
Some really long thing that takes up more than one line.
Boxed in ``Something that should be noted.''
You know, something that keeps on going on and on.
But rather
Some really long thing that takes up more than one line. You know, something that keeps on
Boxed in ``Something that should be noted.''
going on and on.
(Note: I've ommitted the numbering in the examples of what I don't want and what do want. But I do want numbering, just like it is in the command as it already is. The important part is that I always want the boxed in note stuff to come at the next line break, not right where the note is noted, though I do want the lnote number to occur at the spot where the \Lnote command is invoked.)