Using boxedminipage environment in LaTeX

Boxedminipage is an environment that is used in LaTeX to crate a pseudo page environment with border around it in your actual page.
Here I am saying how to use it. First import the package using \usepackage{} command in the preamble.

\usepackage{boxedminipage}
Syntax to use this package is

\begin{boxedminipage}{<width_of_the_minipage>}
minipage content
\end{boxedminipage}
This environment can be used if you want to put some thing together but it is spliting up over more than one pages because this create a float, and so the box will not allow to creat page break inside it like figure environment. Also you can use this environment to place some text at the lift or right not extending more than one line. Like we put address, salutation, or header in Letter. If you don't want box around it yo can use minipage environment. Here I am giving a simple example

\documentclass{report}

 \usepackage{boxedminipage}
\author{APaul} 
\title{Example of boxedminipage environment} 

\begin{document} 
\maketitle 
\begin{boxedminipage}{0.4\textwidth} 
Here is the content of the minipage, which will be placed 
inside a box having 40\% of the total textwidth of the page. 
\end{boxedminipage}

\end{document}
Hope this is some useful information.
Cheers
APaul
Source:

Comments

Post a Comment

Please dont forget to tell me if this post helped you or not...

Popular posts from this blog

Changing caption width in latex

Subtitle in latex

Placing float (table or figure) at the top of the page in otherwise empty page in LaTeX