I used to be very knowledgeable about TeX and LaTeX in the late eighties and early nineties, but I've been away from the fold for a long time. I'm pleasantly surprised at how much TeX-fu I still retain, but much has gone.
I'm using \marginpar to add some marginal annotations to a document:
The \side command is on a line by itself, but it applies to the last word on the preceding line. There's a newline at the end of the preceding line and because of that, the marginal note may appear beside the following line in the output.
I know of two ways to fix this, with a trailing %:
but neither of those are aesthetically satisying. I would prefer not to mutilate the preceding line, but to have the annotation occupy its own line in the TeX input.
Is it possible to have \side discard any whitespace immediately preceding its invocation? I haven't been able to find anything that works. I don't want to put all the regular text inside some environment either.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p