GeneralMargins and textboxes

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Blkmage
Posts: 4
Joined: Tue Nov 11, 2008 10:51 pm

Margins and textboxes

Post by Blkmage »

1) How do I expand the right and left margins? Sorry if this seems stupid.

2) I want to make textboxes around certain pieces of text but I'm not really sure how to use this function. I have an assignment to create a collection of documents and I wanted to put boxes around wach of the documents as seen here: http://apcentral.collegeboard.com/apc/p ... st_frq.pdf

Thanks.

Recommended reading 2024:

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

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

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Margins and textboxes

Post by phi »

Blkmage wrote:1) How do I expand the right and left margins? Sorry if this seems stupid.
The geometry packages supports setting all kinds of lengths of that kind.
Blkmage wrote:2) I want to make textboxes around certain pieces of text but I'm not really sure how to use this function. I have an assignment to create a collection of documents and I wanted to put boxes around wach of the documents as seen here: http://apcentral.collegeboard.com/apc/p ... st_frq.pdf
Simple frames are possible with the \fbox command. For longer pieces, the framed package is quite useful.
Blkmage
Posts: 4
Joined: Tue Nov 11, 2008 10:51 pm

Margins and textboxes

Post by Blkmage »

Thanks for the reply. How do I control the parameters of fbox though? When I use the command it puts the text I want into a fram but it stretches it across the entire page on one line. I attached the pdf for reference. And this is the code:

Code: Select all

\fbox{\noindent Source: Joseph J. Ellis, \textit{Founding Brothers}, Chapter Two
\\
\\
\noindent Jefferson assured [Monroe] that he too found the measure [of assumption] repulsive: "But in the present instance I see the necessity of yielding for this time . . . for the sake of the union, and to save us from the greatest of all Calamities."}
Attachments
APUSHDocuments.pdf
(25.67 KiB) Downloaded 288 times
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Margins and textboxes

Post by phi »

You can put everything inside the \fbox, including \parboxes and minipage environments. Here is an example using a custom environment:

Code: Select all

\documentclass{article}

\newsavebox\FrameBox
\newenvironment{Frame}{%
  \par\setbox\FrameBox\hbox\bgroup\minipage{0.9\textwidth}\parskip\baselineskip\ignorespaces
}{%
  \endminipage\egroup\fbox{\box\FrameBox}\par
}


\begin{document}

\begin{Frame}
Source: Joseph J. Ellis, \emph{Founding Brothers}, Chapter Two

Jefferson assured [Monroe] that he too found the measure [of assumption] repulsive: ``But in the present instance I see the necessity of yielding for this time \ldots\ for the sake of the union, and to save us from the greatest of all Calamities.''
\end{Frame}

\end{document}
Post Reply