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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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