Text Formatting ⇒ Vertical line around text
Vertical line around text
I need to enclose the text inside the example with a vertical line.
Obviously the \vline command won't work.
What's the optimal way to achieve this?
I want to avoid using minipage or multicol since I use the wrapfig inside the example environment and as you most probably know these packages are incompatible to each other.
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Vertical line around text
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Vertical line around text
I mean a result like the one produced by the following code
Code: Select all
\begin{tabular}{|c}
Lorem Ipsum is simply dummy text \\
Lorem Ipsum has been the industry's \\
when an unknown printer specimen book. \\
\end{tabular}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Vertical line around text
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{framed}
\usepackage{blindtext}
\begin{document}
\blindtext
\begin{leftbar}
\blindtext
\end{leftbar}
\blindtext
\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Vertical line around text
For anyone who may see this topic, to change the color of the sidebar
you may refer here