Text Formatting ⇒ Paragraph side border
Paragraph side border
How would one add a vertical line left of a paragraph, analogous to a paragraph border in MS Word?
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Paragraph side border
Search the forum for the framed package and its leftbar environment. If you want that line in the margin, you can use the \marginpar command. An enhancement to this command comes with the marginnote package.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Paragraph side border
Thank you for responding.
The leftbar works well for me. However, I cannot figure out how to put it in the margin with \marginpar. Any pointers?
The leftbar works well for me. However, I cannot figure out how to put it in the margin with \marginpar. Any pointers?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Paragraph side border
I expressed myself a little bit misleading. You can only use one or the other. Read the marginnote manual for more information.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Paragraph side border
Still, after reading the manual, I don't get: how can you use this package to create a bar rather than a note?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Paragraph side border
Just use the \rule command.
Code: Select all
\marginnote{\rule{\2pt}{3\baselineskip}} % vertical rule with height of three lines
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Paragraph side border
Sorry to revive an old thread but this is very close to what I'm looking for. I wanted the above, but on the left side, not the right side. I've tried using the \margin options but I can't seem to force the side border to go on the left hand side of the paragraph...localghost wrote:Just use the \rule command.Code: Select all
\marginnote{\rule{\2pt}{3\baselineskip}} % vertical rule with height of three lines
OS info: Win XP | Debian 6.0 | Ubuntu 10.04
Latex editor of choice: TexWorks (for dual view feature)
Latex editor of choice: TexWorks (for dual view feature)