Page LayoutMarginal Note at vertical Center of Paragraph

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
andersonnakano
Posts: 3
Joined: Fri Jan 31, 2014 11:32 pm

Marginal Note at vertical Center of Paragraph

Post by andersonnakano »

Hello,

I'm using the package marginnote and I would like to put my notes at the center of the paragraph (not at the beginning). How could I do this?


Thanks in advance
Anderson

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Marginal Note at vertical Center of Paragraph

Post by cgnieder »

Hi Anderson,

welcome to the LaTeX community. As far as I know you can't do that with marginnote or rather: you can only do it manually (which is not an ideal solution).

What is the use case you have in mind? There might be another solution (depending...)
Regards
site moderator & package author
andersonnakano
Posts: 3
Joined: Fri Jan 31, 2014 11:32 pm

Marginal Note at vertical Center of Paragraph

Post by andersonnakano »

Hi Clemens,

Thanks for the answer!

The use case is simple: I'm doing my doctorate thesis in Latex, and I would like to add some margin notes in each paragraph in order to provide like a summary of each paragraph. But it would be better if these notes could be placed in the center of the paragraph.

I'm using this code:

Code: Select all

\newif\ifnotes
\notestrue 

\definecolor{notescolor}{RGB}{0,0,80}
\newcommand{\pmp}[1]
{
 \ifnotes
 \marginnote{\centering \footnotesize \textsc{\textcolor{notescolor}{#1}}}
 \fi
} 
How could I do it manually?
Post Reply