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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
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 4659 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