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 5684 times

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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 5658 times

Code: Select all

\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}
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