Re: Is this possible with lyx?

2005-11-02 Thread Paul Smith
On 11/2/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I would add two different entries to the Wiki: one to answer the question
> >
> > 1. How can I disallow LaTeX to linebreak an inlined math formula?;
>
> Now added as
> http://wiki.lyx.org/Examples/PreventingLinebreakInInlineFormula
>
> as for the boxed thing, I'm leaving it since it seemed to get kind of
> complicated.

Thanks, Christian.

Paul


Re: Is this possible with lyx?

2005-11-02 Thread chr
On Tue, 25 Oct 2005, Paul Smith wrote:

> I would add two different entries to the Wiki: one to answer the question
> 
> 1. How can I disallow LaTeX to linebreak an inlined math formula?;

Now added as 
http://wiki.lyx.org/Examples/PreventingLinebreakInInlineFormula

as for the boxed thing, I'm leaving it since it seemed to get kind of 
complicated.

/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Is this possible with lyx?

2005-10-26 Thread Paul Smith
On 10/25/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I thought I'd add the stuff below to the wiki, but first I'd like to check
> that it's correct (since I haven't tried it myself).
>
>
> 
> Question:
> How can I disallow LaTeX to linebreak an inlined math formula?
> (This is typically useful for formulas at the end of a line)
>
> Answer:
> You can put the formula inside an "mbox" to prevent LaTeX from
> splitting up the formula. The steps can be summarized as follows:
>
> 1) Go to math mode (inline formula or display formula)
> 2) Type \mbox and then a press carriage return or the spacebar
> 3) The text "\mbox" disappear and a box appears
> 4) Type the equation inside the box
>
> Note that if you'd like a frame around your equation, you can use "fbox"
> instead of "mbox".
> -

Christian,

I think the text below is correct and appropiate.

Regards,

Paul

Question:
How can I disallow LaTeX to linebreak an inlined math formula?
(This is typically useful for formulas at the end of a line)

Answer:
You can put the formula inside an "mbox" to prevent LaTeX from
splitting up the formula. The steps can be summarized as follows:

1) Go to math mode (inline formula or display formula)
2) Type \mbox and then a press carriage return or the spacebar
3) The text "\mbox" disappears and a box appears
4) Select math mode
5) Type the equation inside the box

Alternatively to the above solution, you can type, inside math mode,
\{ and \}, respectively, before and after your formula.

Question:
How can I insert a frame around my equation?

1) Go to math mode (inline formula or display formula)
2) Type \boxed  and then a press carriage return or the spacebar
3) The text "\boxed" disappears and a framed box appears
4) Type the equation inside the box


Re: Is this possible with lyx?

2005-10-26 Thread Herbert Voss
ZAVARISE GIORGIO wrote:

>>Paul Smith <[EMAIL PROTECTED]>
>>Oggetto:  Re: Is this possible in lyx?
>>Data: Tue, 25 Oct 2005 12:14:54 +0100
>>A:lyx-users@lists.lyx.org
> 
> 
> 
>>On 10/25/05, Herbert Voss <[EMAIL PROTECTED]>
>>wrote:
>> > I just figured out how to disallow LaTeX to linebreak
>> > a math inline formula that resides in the end of a
>> > line. Sometimes they turn so awkward when they are
>> > breaked in the end of the line. With LaTeX I just type
>> > a formula in an \mbox and it solves my problem.. but
>> > what about lyx? how can I perform an \mbox in Lyx? ..
>> > I can of course input a latex code within lyx.. but it
>> > would be great if I could do it in a "lyx" way too so
>> > that I could also have the benefit of actually seeing
>> > to formula.
>>
>> _inside_ the math mode put all in braces { ... }
>> no need for ERT
> 
>>Inside math mode, just write
> 
>>\mbox
> 
>>This solution does not need ERT as well.
> 
>>Paul
> 
> I needed it also, and it works fine, thanks, but to see
> the box frame I used \fbox.

enable the amsmath button and then use \boxed{...}
inside the math mode, it is the better way

Herbert




Re: Is this possible with lyx?

2005-10-25 Thread Paul Smith
On 10/25/05, Giorgio Zavarise <[EMAIL PROTECTED]> wrote:
> MY PROCEDURE FOR DUMMIES WAS WRONG, SORRY
>
> The problem comes from the fact that within the box generated with the
> \fbox command you are back to the text environment, hence to type
> equations, once you are inside the box, you have to insert an online
> formula
>
> HOW TO PUT A BOX AROUND AN EQUATION
> Resume for dummies n. 2, hopefully the right one:
>
>   1) go to math mode with the command INSERT --> MATH --> DISPLAY FORMULA
>   2) type \fbox (visible box) and then a press carriage return or the
> spacebar
>   3) the text "\fbox" disappear and a framed box appears
>   4) put the cursor inside the box (WARNING, YOU ARE IN TEXT MODE NOW!!)
>   5) go again to math mode with the command INSERT --> MATH --> INLINE
> FORMULA
>   6) type the equation there inside
>   7) eventually apply equation number as usual
>
> As a comment,
> 1) the box reduces the height of the equation, I don't know why, but
> this seems to be a feature of Latex, not of Lyx
> 2) if you need the eqnarray environment within the box you are in
> troubles, it seems it does not work. A workaround is given by inserting
> a matrix from the math panel and then aligning the contents with
> EDIT-->MATH-->ALIGNEMENT--> WHAT YOU NEED
>
>   Hope this is useful, thanks to all

I would add two different entries to the Wiki: one to answer the question

1. How can I disallow LaTeX to linebreak an inlined math formula?;

and the other one to answer the question:

2. How to put a box around an equation?.

Regarding the question 1, I would also include Herbert's solution.

Paul


Re: Is this possible with lyx?

2005-10-25 Thread Giorgio Zavarise

MY PROCEDURE FOR DUMMIES WAS WRONG, SORRY

The problem comes from the fact that within the box generated with the 
\fbox command you are back to the text environment, hence to type 
equations, once you are inside the box, you have to insert an online 
formula


HOW TO PUT A BOX AROUND AN EQUATION
Resume for dummies n. 2, hopefully the right one:

 1) go to math mode with the command INSERT --> MATH --> DISPLAY FORMULA
 2) type \fbox (visible box) and then a press carriage return or the 
spacebar

 3) the text "\fbox" disappear and a framed box appears
 4) put the cursor inside the box (WARNING, YOU ARE IN TEXT MODE NOW!!)
 5) go again to math mode with the command INSERT --> MATH --> INLINE 
FORMULA

 6) type the equation there inside
 7) eventually apply equation number as usual

As a comment,
1) the box reduces the height of the equation, I don't know why, but 
this seems to be a feature of Latex, not of Lyx
2) if you need the eqnarray environment within the box you are in 
troubles, it seems it does not work. A workaround is given by inserting 
a matrix from the math panel and then aligning the contents with 
EDIT-->MATH-->ALIGNEMENT--> WHAT YOU NEED


 Hope this is useful, thanks to all

 Giorgio Zavarise

Re: Is this possible with lyx?

2005-10-25 Thread chr
On Tue, 25 Oct 2005, ZAVARISE GIORGIO wrote:

I thought I'd add the stuff below to the wiki, but first I'd like to check 
that it's correct (since I haven't tried it myself).



Question:
How can I disallow LaTeX to linebreak an inlined math formula?
(This is typically useful for formulas at the end of a line)

Answer:
You can put the formula inside an "mbox" to prevent LaTeX from 
splitting up the formula. The steps can be summarized as follows:

1) Go to math mode (inline formula or display formula)
2) Type \mbox and then a press carriage return or the spacebar
3) The text "\mbox" disappear and a box appears
4) Type the equation inside the box

Note that if you'd like a frame around your equation, you can use "fbox" 
instead of "mbox".
-


cheers
/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Is this possible with lyx?

2005-10-25 Thread ZAVARISE GIORGIO

Paul Smith <[EMAIL PROTECTED]>
Oggetto:Re: Is this possible in lyx?
Data:   Tue, 25 Oct 2005 12:14:54 +0100
A:  lyx-users@lists.lyx.org





On 10/25/05, Herbert Voss <[EMAIL PROTECTED]> wrote:
> I just figured out how to disallow LaTeX to linebreak
> a math inline formula that resides in the end of a
> line. Sometimes they turn so awkward when they are
> breaked in the end of the line. With LaTeX I just type
> a formula in an \mbox and it solves my problem.. but
> what about lyx? how can I perform an \mbox in Lyx? ..
> I can of course input a latex code within lyx.. but it
> would be great if I could do it in a "lyx" way too so
> that I could also have the benefit of actually seeing
> to formula.

_inside_ the math mode put all in braces { ... }
no need for ERT



Inside math mode, just write



\mbox



This solution does not need ERT as well.



Paul


I needed it also, and it works fine, thanks, but to see 
the box frame I used \fbox.


Resume for dummies (I am the first one):
1) go to math mode (inline formula or display formula)
2) type \fbox and then a press carriage return or the 
spacebar

3) the text "\fbox" disappear and a framed box appears
4) type the equation there inside
5) eventually apply equation number

Hope this is useful, thanks to all

Giorgio Zavarise