Text FormattingBoxes in LaTeX

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

Boxes in LaTeX

Post by thedoctor818 »

I am still fairly new to LaTeX. What I want to do is to put a box around the following text:


\rubric{From Pascha until its Leavetaking, we pray the following before every meal:}
Christ is risen from the dead, trampling down death by death, and upon those in the tombs bestowing life.
\instruct{(thrice)}\\

Glory to the Father, and to the Son, and to the Holy Spirit; now and ever, and unto ages of ages. Amen.\\

Lord, have mercy.
\instruct{(thrice)}\\

Lord {\color{red}[Father]}, bless.\\

{\color{red}[Through the prayers of our Holy Fathers,]} O Lord Jesus Christ our God bless the food, drink, and fellowship of Thy servants; for blessed art Thou unto ages of ages. Amen.\\

\rubric{From Pascha until its Leavetaking, we pray the following after every meal:}
Christ is risen from the dead, trampling down death by death, and upon those in the tombs bestowing life.
\instruct{(thrice)}\\

Glory to the Father, and to the Son, and to the Holy Spirit; now and ever, and unto ages of ages. Amen.\\

Lord, have mercy. \instruct{(thrice)}\\

Lord {\color{red}[Father]}, bless.\\

God is with us, through His grace and love for mankind; always, now and ever, and unto ages of ages. Amen.\\


with pretty much a single space between EACH line, where \rubric is a newcommand that sets the {<text>} to red, centers, and italicizes, and \instruct sets the {<text>} to red, with no indent and 'normal' font.


Currently I am using:
\begin{tabular}{p{6.0}}
\hline
<all the above text>
\hline
\end{tabluar}


I tried \parbox, but I must have been doing something wrong, b/c it did not work correctly.

Any help would be appreciated.

-Michael
-Michael D

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Boxes in LaTeX

Post by localghost »

A minimal working example (MWE) would have been better since you are using commands that don't come with the standard classes. Keep that in mind for future requests.

A simple solution would be a framed box by means of standard LaTeX without any additional package.

Code: Select all

\framebox{%
  \parbox{6cm}{%
    The quick brown fox jumps over the lazy dog.
  }
}
The framed package allows framed text with page breaks.

The \\ command after each line is superfluous.


Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

Re: Boxes in LaTeX

Post by thedoctor818 »

Thanks again Thorsten. I will definitely keep the MWE's in mind the next time I have a question. The framed.sty was what I was looking for. Thanks again.

-Michael
-Michael D
Post Reply