Text Formatting ⇒ Boxes in LaTeX
-
- Posts: 92
- Joined: Fri Apr 24, 2009 8:02 pm
Boxes in LaTeX
\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
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Boxes in LaTeX
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 \\ command after each line is superfluous.
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 92
- Joined: Fri Apr 24, 2009 8:02 pm
Re: Boxes in LaTeX
-Michael