Page LayoutNested framed Box with Math Formulae and Symbols

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
estemenson
Posts: 1
Joined: Wed Sep 14, 2011 5:53 am

Nested framed Box with Math Formulae and Symbols

Post by estemenson »

I can't figure out how to use \fbox or \framebox to create nested boxed content such that each line is enumerated and the numbering is outside of any boxes and the content of one or more lines can be within the nested boxes. Here is a screen capture of what I'm trying to explain: Thanks in advance!!
NestedFBox.png
NestedFBox.png (39.38 KiB) Viewed 5344 times

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

justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

Nested framed Box with Math Formulae and Symbols

Post by justdeath »

Nested boxes on multiple lines cannot be done. You can use the "framed" environment.
http://en.wikibooks.org/wiki/LaTeX/Advanced_Topics

See this:
Clipboard01.jpg
Clipboard01.jpg (17.11 KiB) Viewed 5318 times

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage{lineno}
\usepackage{framed}
\begin{document}
\linenumbers
Text.
\begin{framed}
Text.
\begin{framed}
Text 2.
\begin{framed}
\[ \begin{array}{ll}
x & y \\
z & \zeta
\end{array} \]
\end{framed}
\end{framed}
\begin{framed}
Text last.
\end{framed}
\end{framed}
\framebox[9cm][l]{Some text.
\framebox[7cm][l]{More text.
\framebox[4cm][l]{Even more text}
}}
More text.
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Nikolay
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Nested framed Box with Math Formulae and Symbols

Post by frabjous »

You might be interested in the KMcalc package here.
Post Reply