Do any of you know how to draw a box around a paragraph that contains both text and mathematical expressions using Lyx? Thanks!
Latex actually wants to do that for you. Let's say you want to put a box around the number 100. Then you would type .
By studying the tutorial and posted answers to other posted questions, you can adapt my answer. (put your cursor on the box around the 100 to see how I did it).
This works pretty well if what you want to enclose is short and doesn't involve multiple lines. Even then, you have to manually format the spaces. I was looking for a nice way to enclose a theorem (including both math AND text) in a box. Thanks for your help.
I would like to include all of the following in one box:
Proof 1: (By induction on n). When n-1 we see that F_{1}=2+1=F_{3}-1 so the formula holds for this base case. We will now assume that F_{1}+F_{2}+\cdots+F_{k}=F_{k+2}-1=F_{k+2}-1 for some k\geq1 and we will use this assumption to show that F_{1}+F_{2}+\cdots+F_{k+1}=F_{k+3}-1. Well, F_{1}+F_{2}+\cdots+F_{k+1} as claimed. Thus, by the Principle of Mathematical Induction, this theorem is true for all n\geq1.█
Note: I am using Lyx. Thanks for your help!