Graphics, Figures & TablesVertical Line through entire Page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
yiorgosb
Posts: 30
Joined: Mon Aug 02, 2010 11:56 pm

Vertical Line through entire Page

Post by yiorgosb »

Hi,
how can I draw a line using the \rule command from the top of a minipage to the bottom of it?

The only possible way is to measure the text height inside the minipage?

Thank you

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Vertical Line through entire Page

Post by localghost »

The minipage environment allows to specify its height. And with a \rule command there should be no problem to get the line. More specific help only possible with a true minimal example.


Thorsten
yiorgosb
Posts: 30
Joined: Mon Aug 02, 2010 11:56 pm

Vertical Line through entire Page

Post by yiorgosb »

Thank you for your reply.
I can not specify the height of the minipage since the text is arbitrary. My ultimate goal is to create an environment where the text is surrounded by vertical lines.
I've tried solutions from existing packages like mdframed but none can be used with the multicol environment. So, I'm trying to create it from scratch. Here's my try

Code: Select all

\documentclass[a4paper]{article}
\usepackage{multicol}
\begin{document}
Lorem Ipsum.

\noindent

\begin{minipage}{0.1\textwidth}
\rule{1pt}{20pt}
\end{minipage}
%
\begin{minipage}{0.8\textwidth}
\begin{multicols}{2}
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. 
\end{multicols}
\end{minipage}
%
\begin{minipage}{0.1\textwidth}
\rule{1pt}{20pt}
\end{minipage}

\end{document}
So the question is how to specify the height of the \rule
(here is set to 20pt just as an example)
Post Reply