Results 1 to 8 of 8

Math Help - Box Drawing

  1. #1
    Member
    Joined
    Oct 2009
    From
    United States
    Posts
    169

    Box Drawing

    Do any of you know how to draw a box around a paragraph that contains both text and mathematical expressions using Lyx? Thanks!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Banned
    Joined
    Oct 2009
    Posts
    769

    Answer

    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 \boxed{100}.

    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).
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Member
    Joined
    Oct 2009
    From
    United States
    Posts
    169
    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.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Banned
    Joined
    Oct 2009
    Posts
    769

    Sample

    Can you post a sample of whatever it is that's giving you the difficulty?
    Follow Math Help Forum on Facebook and Google+

  5. #5
    MHF Contributor
    Opalg's Avatar
    Joined
    Aug 2007
    From
    Leeds, UK
    Posts
    4,041
    Thanks
    7
    Quote Originally Posted by tarheelborn View Post
    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.
    How about this?

    \boxed{\parbox{6cm}{\textsc{Theorem.} \itshape If $x>0$ then $x^3>0$.\\ But if $x<0$ then $x^3<0$.}}

    The snag with using \parbox, however, is that you have to assign the width of the box manually.
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Member
    Joined
    Oct 2009
    From
    United States
    Posts
    169
    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!
    Follow Math Help Forum on Facebook and Google+

  7. #7
    Banned
    Joined
    Oct 2009
    Posts
    769

    Thought

    I've tried some testing with LaTex; apparently it's too much for LaTex to handle all at once (I got an error for the image being too large) and you might have to break it down unless someone can come up with another way.
    Follow Math Help Forum on Facebook and Google+

  8. #8
    Banned
    Joined
    Oct 2009
    Posts
    769

    Is this another way?

    Suppose you shrink down what you have into a thumbnail size and then try to box it (a pdf might be involved here). Have you tried that?
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Drawing cards...
    Posted in the Advanced Statistics Forum
    Replies: 3
    Last Post: September 27th 2010, 02:20 PM
  2. drawing
    Posted in the Calculus Forum
    Replies: 0
    Last Post: February 23rd 2010, 01:06 PM
  3. drawing balls from an urn
    Posted in the Advanced Statistics Forum
    Replies: 1
    Last Post: November 2nd 2009, 04:26 PM
  4. Ok I am drawing a blank
    Posted in the Calculus Forum
    Replies: 5
    Last Post: March 31st 2008, 05:21 PM
  5. Drawing of Coordinates
    Posted in the Math Software Forum
    Replies: 2
    Last Post: December 26th 2007, 01:16 PM

Search Tags


/mathhelpforum @mathhelpforum