Re: Vertical space before and after equations

2011-01-06 Thread Enrico Forestieri
Barak Shoshany writes:

 The equations are in display mode. All I need is some global command to
 make the vertical spacing before and after the equations smaller.

Put the following in the latex preamble:

\AtBeginDocument{
\addtolength{\abovedisplayskip}{-2ex}
\addtolength{\abovedisplayshortskip}{-2ex}
\addtolength{\belowdisplayskip}{-2ex}
\addtolength{\belowdisplayshortskip}{-2ex}
}

Adjust the spacing as needed. You can use any length, not only ex.

-- 
Enrico



Re: Vertical space before and after equations

2011-01-06 Thread Paul A . Rubin
Enrico Forestieri forenr at lyx.org writes:

 Put the following in the latex preamble:
 
 \AtBeginDocument{
 \addtolength{\abovedisplayskip}{-2ex}
 \addtolength{\abovedisplayshortskip}{-2ex}
 \addtolength{\belowdisplayskip}{-2ex}
 \addtolength{\belowdisplayshortskip}{-2ex}
 }

Aha, the secret sauce!  I'd suggested the length adjustments to Barak (out of
band), using \setlength, but didn't know how to get them to work in the preamble
(\AtBeginDocument).  Learned something new.

/Paul





Re: Vertical space before and after equations

2011-01-06 Thread Barak Shoshany
Thanks to both of you. This works perfectly.

Barak



Re: Vertical space before and after equations

2011-01-06 Thread Enrico Forestieri
Barak Shoshany writes:

 The equations are in display mode. All I need is some global command to
 make the vertical spacing before and after the equations smaller.

Put the following in the latex preamble:

\AtBeginDocument{
\addtolength{\abovedisplayskip}{-2ex}
\addtolength{\abovedisplayshortskip}{-2ex}
\addtolength{\belowdisplayskip}{-2ex}
\addtolength{\belowdisplayshortskip}{-2ex}
}

Adjust the spacing as needed. You can use any length, not only ex.

-- 
Enrico



Re: Vertical space before and after equations

2011-01-06 Thread Paul A . Rubin
Enrico Forestieri forenr at lyx.org writes:

 Put the following in the latex preamble:
 
 \AtBeginDocument{
 \addtolength{\abovedisplayskip}{-2ex}
 \addtolength{\abovedisplayshortskip}{-2ex}
 \addtolength{\belowdisplayskip}{-2ex}
 \addtolength{\belowdisplayshortskip}{-2ex}
 }

Aha, the secret sauce!  I'd suggested the length adjustments to Barak (out of
band), using \setlength, but didn't know how to get them to work in the preamble
(\AtBeginDocument).  Learned something new.

/Paul





Re: Vertical space before and after equations

2011-01-06 Thread Barak Shoshany
Thanks to both of you. This works perfectly.

Barak



Re: Vertical space before and after equations

2011-01-06 Thread Enrico Forestieri
Barak Shoshany writes:

> The equations are in display mode. All I need is some global command to
> make the vertical spacing before and after the equations smaller.

Put the following in the latex preamble:

\AtBeginDocument{
\addtolength{\abovedisplayskip}{-2ex}
\addtolength{\abovedisplayshortskip}{-2ex}
\addtolength{\belowdisplayskip}{-2ex}
\addtolength{\belowdisplayshortskip}{-2ex}
}

Adjust the spacing as needed. You can use any length, not only "ex".

-- 
Enrico



Re: Vertical space before and after equations

2011-01-06 Thread Paul A . Rubin
Enrico Forestieri  lyx.org> writes:

> Put the following in the latex preamble:
> 
> \AtBeginDocument{
> \addtolength{\abovedisplayskip}{-2ex}
> \addtolength{\abovedisplayshortskip}{-2ex}
> \addtolength{\belowdisplayskip}{-2ex}
> \addtolength{\belowdisplayshortskip}{-2ex}
> }

Aha, the secret sauce!  I'd suggested the length adjustments to Barak (out of
band), using \setlength, but didn't know how to get them to work in the preamble
(\AtBeginDocument).  Learned something new.

/Paul





Re: Vertical space before and after equations

2011-01-06 Thread Barak Shoshany
Thanks to both of you. This works perfectly.

Barak



Re: Vertical space before and after equations

2011-01-05 Thread Barak Shoshany
Thanks, Gwen.

I'm familiar with that code, but I'm looking for a global option. I have a lot 
of formulas and I can't insert the code manually for each one separately.

Barak




Re: Vertical space before and after equations

2011-01-05 Thread Barak Shoshany
Paul Rubin rubin at msu.edu writes:

 
 How are you entering the formulas (inline, display mode, equation arrays, 
 ...)?
  Perhaps you could post a one page document showing a sample.
 
 /Paul
 
 

Thanks, Paul.

The equations are in display mode. All I need is some global command to make 
the 
vertical spacing before and after the equations smaller.

I sent you a sample document by mail.

Barak



Re: Vertical space before and after equations

2011-01-05 Thread Barak Shoshany
Thanks, Gwen.

I'm familiar with that code, but I'm looking for a global option. I have a lot 
of formulas and I can't insert the code manually for each one separately.

Barak




Re: Vertical space before and after equations

2011-01-05 Thread Barak Shoshany
Paul Rubin rubin at msu.edu writes:

 
 How are you entering the formulas (inline, display mode, equation arrays, 
 ...)?
  Perhaps you could post a one page document showing a sample.
 
 /Paul
 
 

Thanks, Paul.

The equations are in display mode. All I need is some global command to make 
the 
vertical spacing before and after the equations smaller.

I sent you a sample document by mail.

Barak



Re: Vertical space before and after equations

2011-01-05 Thread Barak Shoshany
Thanks, Gwen.

I'm familiar with that code, but I'm looking for a global option. I have a lot 
of formulas and I can't insert the code manually for each one separately.

Barak




Re: Vertical space before and after equations

2011-01-05 Thread Barak Shoshany
Paul Rubin  msu.edu> writes:

> 
> How are you entering the formulas (inline, display mode, equation arrays, 
> ...)?
>  Perhaps you could post a one page document showing a sample.
> 
> /Paul
> 
> 

Thanks, Paul.

The equations are in display mode. All I need is some global command to make 
the 
vertical spacing before and after the equations smaller.

I sent you a sample document by mail.

Barak



Vertical space before and after equations

2011-01-04 Thread Barak Shoshany
Hello,

I'm preparing a formula sheet, and would like to get as many formulas as I
can inside a limited number of pages. I've already used most of the tricks
in the book: 3 columns, narrow margins, small paragraph  line spacing, etc.
However, one important thing I want to change is the spacing before and
after equations, which is disproportionately large but seems to be oblivious
to the settings for paragraph and line spacing.

How can I manually set the spacing for the equations?

Thanks in advance,
Barak


Re: Vertical space before and after equations

2011-01-04 Thread Gwen Barnes
In regular latex you might be able to use \vspace{0.5cm}, or
\vspace{-0.5cm} (for example), before or after each equation.  You
might be able to put that in ERT (Insert - TeX code) in LyX.

HTH.

-Gwen



On Tue, Jan 4, 2011 at 12:48 PM, Barak Shoshany bara...@gmail.com wrote:
 Hello,
 I'm preparing a formula sheet, and would like to get as many formulas as I
 can inside a limited number of pages. I've already used most of the tricks
 in the book: 3 columns, narrow margins, small paragraph  line spacing, etc.
 However, one important thing I want to change is the spacing before and
 after equations, which is disproportionately large but seems to be oblivious
 to the settings for paragraph and line spacing.
 How can I manually set the spacing for the equations?
 Thanks in advance,
 Barak


Re: Vertical space before and after equations

2011-01-04 Thread Paul Rubin
How are you entering the formulas (inline, display mode, equation arrays, ...)?
 Perhaps you could post a one page document showing a sample.

/Paul



Vertical space before and after equations

2011-01-04 Thread Barak Shoshany
Hello,

I'm preparing a formula sheet, and would like to get as many formulas as I
can inside a limited number of pages. I've already used most of the tricks
in the book: 3 columns, narrow margins, small paragraph  line spacing, etc.
However, one important thing I want to change is the spacing before and
after equations, which is disproportionately large but seems to be oblivious
to the settings for paragraph and line spacing.

How can I manually set the spacing for the equations?

Thanks in advance,
Barak


Re: Vertical space before and after equations

2011-01-04 Thread Gwen Barnes
In regular latex you might be able to use \vspace{0.5cm}, or
\vspace{-0.5cm} (for example), before or after each equation.  You
might be able to put that in ERT (Insert - TeX code) in LyX.

HTH.

-Gwen



On Tue, Jan 4, 2011 at 12:48 PM, Barak Shoshany bara...@gmail.com wrote:
 Hello,
 I'm preparing a formula sheet, and would like to get as many formulas as I
 can inside a limited number of pages. I've already used most of the tricks
 in the book: 3 columns, narrow margins, small paragraph  line spacing, etc.
 However, one important thing I want to change is the spacing before and
 after equations, which is disproportionately large but seems to be oblivious
 to the settings for paragraph and line spacing.
 How can I manually set the spacing for the equations?
 Thanks in advance,
 Barak


Re: Vertical space before and after equations

2011-01-04 Thread Paul Rubin
How are you entering the formulas (inline, display mode, equation arrays, ...)?
 Perhaps you could post a one page document showing a sample.

/Paul



Vertical space before and after equations

2011-01-04 Thread Barak Shoshany
Hello,

I'm preparing a formula sheet, and would like to get as many formulas as I
can inside a limited number of pages. I've already used most of the tricks
in the book: 3 columns, narrow margins, small paragraph & line spacing, etc.
However, one important thing I want to change is the spacing before and
after equations, which is disproportionately large but seems to be oblivious
to the settings for paragraph and line spacing.

How can I manually set the spacing for the equations?

Thanks in advance,
Barak


Re: Vertical space before and after equations

2011-01-04 Thread Gwen Barnes
In regular latex you might be able to use \vspace{0.5cm}, or
\vspace{-0.5cm} (for example), before or after each equation.  You
might be able to put that in ERT ("Insert -> TeX code") in LyX.

HTH.

-Gwen



On Tue, Jan 4, 2011 at 12:48 PM, Barak Shoshany  wrote:
> Hello,
> I'm preparing a formula sheet, and would like to get as many formulas as I
> can inside a limited number of pages. I've already used most of the tricks
> in the book: 3 columns, narrow margins, small paragraph & line spacing, etc.
> However, one important thing I want to change is the spacing before and
> after equations, which is disproportionately large but seems to be oblivious
> to the settings for paragraph and line spacing.
> How can I manually set the spacing for the equations?
> Thanks in advance,
> Barak


Re: Vertical space before and after equations

2011-01-04 Thread Paul Rubin
How are you entering the formulas (inline, display mode, equation arrays, ...)?
 Perhaps you could post a one page document showing a sample.

/Paul