Re: lyx 2.0 thesis template generate too much vertical space before and after the equation

2011-05-19 Thread Ruida Yun
Thanks a lot, Uwe,

The problem is indeed from the fact that I accidentally put the
equation into a new paragraph.

On Tue, May 17, 2011 at 8:44 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 17.05.2011 20:36, schrieb Ruida Yun:

 I'm writing my dissertation using the thesis template offered  by the
 new Lyx2.0.  The Latex preamble shipped with the thesis template
 somehow messed up the fleqn option when the line space is set to
 double. There is way too much vertical space before and after the
 equation.

 Can you please send a screenshot where you have too much space. I cannot see
 a difference between fleqn or not.
 Note the space around equations depends if the equation is in an own
 paragraph or not. If it in an own paragraph the spacing is the normal one
 PLUS the paragraph separation space.

 regards Uwe




-- 
Ruida Yun
Ph.D. Candidate
Electrical and Computer Engineering
Tufts University
161 College Avenue
Medford, MA 02155
URL:   http://www.eecs.tufts.edu/~ryun01/


Re: lyx 2.0 thesis template generate too much vertical space before and after the equation

2011-05-19 Thread Ruida Yun
Thanks a lot, Uwe,

The problem is indeed from the fact that I accidentally put the
equation into a new paragraph.

On Tue, May 17, 2011 at 8:44 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 17.05.2011 20:36, schrieb Ruida Yun:

 I'm writing my dissertation using the thesis template offered  by the
 new Lyx2.0.  The Latex preamble shipped with the thesis template
 somehow messed up the fleqn option when the line space is set to
 double. There is way too much vertical space before and after the
 equation.

 Can you please send a screenshot where you have too much space. I cannot see
 a difference between fleqn or not.
 Note the space around equations depends if the equation is in an own
 paragraph or not. If it in an own paragraph the spacing is the normal one
 PLUS the paragraph separation space.

 regards Uwe




-- 
Ruida Yun
Ph.D. Candidate
Electrical and Computer Engineering
Tufts University
161 College Avenue
Medford, MA 02155
URL:   http://www.eecs.tufts.edu/~ryun01/


Re: lyx 2.0 thesis template generate too much vertical space before and after the equation

2011-05-19 Thread Ruida Yun
Thanks a lot, Uwe,

The problem is indeed from the fact that I accidentally put the
equation into a new paragraph.

On Tue, May 17, 2011 at 8:44 PM, Uwe Stöhr  wrote:
> Am 17.05.2011 20:36, schrieb Ruida Yun:
>
>> I'm writing my dissertation using the thesis template offered  by the
>> new Lyx2.0.  The Latex preamble shipped with the thesis template
>> somehow messed up the fleqn option when the line space is set to
>> double. There is way too much vertical space before and after the
>> equation.
>
> Can you please send a screenshot where you have too much space. I cannot see
> a difference between fleqn or not.
> Note the space around equations depends if the equation is in an own
> paragraph or not. If it in an own paragraph the spacing is the normal one
> PLUS the paragraph separation space.
>
> regards Uwe
>



-- 
Ruida Yun
Ph.D. Candidate
Electrical and Computer Engineering
Tufts University
161 College Avenue
Medford, MA 02155
URL:   http://www.eecs.tufts.edu/~ryun01/


lyx 2.0 thesis template generate too much vertical space before and after the equation

2011-05-17 Thread Ruida Yun
Hi all,

I'm writing my dissertation using the thesis template offered  by the
new Lyx2.0.  The Latex preamble shipped with the thesis template
somehow messed up the fleqn option when the line space is set to
double. There is way too much vertical space before and after the
equation.

If I delete the preamble or remove the fleqn option, the vertical
space looks normal. I'm not sure what causes the problem and hope
someone could help me out here.

The latex preamble looks like this:

% increase link area for cross-references and autoname them
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1
\newlength{\abc}
\settowidth{\abc}{\space}
\AtBeginDocument{%
\addto\extrasenglish{
 \renewcommand{\equationautorefname}{\hspace{-\abc}}
 \renewcommand{\sectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
 \renewcommand{\figureautorefname}{Fig.\negthinspace}
 \renewcommand{\tableautorefname}{Tab.\negthinspace}
}
}

% in case somebody want to have the label equation
%\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}

% that links to image floats jumps to the beginning
% of the float and not to its caption
\usepackage[figure]{hypcap}

% the pages of the TOC is numbered roman
% and a pdf-bookmark for the TOC is added
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
  \frontmatter
  \pdfbookmark[1]{\contentsname}{}
  \myTOC
  \mainmatter }

% make caption labels bold
\setkomafont{captionlabel}{\bfseries}
\setcapindent{1em}

% enable calculations
\usepackage{calc}

% fancy page header/footer settings
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}

% avoid that floats are placed above its sections
\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}




-- 
Ruida Yun


Re: lyx 2.0 thesis template generate too much vertical space before and after the equation

2011-05-17 Thread Uwe Stöhr

Am 17.05.2011 20:36, schrieb Ruida Yun:


I'm writing my dissertation using the thesis template offered  by the
new Lyx2.0.  The Latex preamble shipped with the thesis template
somehow messed up the fleqn option when the line space is set to
double. There is way too much vertical space before and after the
equation.


Can you please send a screenshot where you have too much space. I cannot see a difference between 
fleqn or not.
Note the space around equations depends if the equation is in an own paragraph or not. If it in an 
own paragraph the spacing is the normal one PLUS the paragraph separation space.


regards Uwe


lyx 2.0 thesis template generate too much vertical space before and after the equation

2011-05-17 Thread Ruida Yun
Hi all,

I'm writing my dissertation using the thesis template offered  by the
new Lyx2.0.  The Latex preamble shipped with the thesis template
somehow messed up the fleqn option when the line space is set to
double. There is way too much vertical space before and after the
equation.

If I delete the preamble or remove the fleqn option, the vertical
space looks normal. I'm not sure what causes the problem and hope
someone could help me out here.

The latex preamble looks like this:

% increase link area for cross-references and autoname them
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1
\newlength{\abc}
\settowidth{\abc}{\space}
\AtBeginDocument{%
\addto\extrasenglish{
 \renewcommand{\equationautorefname}{\hspace{-\abc}}
 \renewcommand{\sectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
 \renewcommand{\figureautorefname}{Fig.\negthinspace}
 \renewcommand{\tableautorefname}{Tab.\negthinspace}
}
}

% in case somebody want to have the label equation
%\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}

% that links to image floats jumps to the beginning
% of the float and not to its caption
\usepackage[figure]{hypcap}

% the pages of the TOC is numbered roman
% and a pdf-bookmark for the TOC is added
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
  \frontmatter
  \pdfbookmark[1]{\contentsname}{}
  \myTOC
  \mainmatter }

% make caption labels bold
\setkomafont{captionlabel}{\bfseries}
\setcapindent{1em}

% enable calculations
\usepackage{calc}

% fancy page header/footer settings
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}

% avoid that floats are placed above its sections
\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}




-- 
Ruida Yun


Re: lyx 2.0 thesis template generate too much vertical space before and after the equation

2011-05-17 Thread Uwe Stöhr

Am 17.05.2011 20:36, schrieb Ruida Yun:


I'm writing my dissertation using the thesis template offered  by the
new Lyx2.0.  The Latex preamble shipped with the thesis template
somehow messed up the fleqn option when the line space is set to
double. There is way too much vertical space before and after the
equation.


Can you please send a screenshot where you have too much space. I cannot see a difference between 
fleqn or not.
Note the space around equations depends if the equation is in an own paragraph or not. If it in an 
own paragraph the spacing is the normal one PLUS the paragraph separation space.


regards Uwe


lyx 2.0 thesis template generate too much vertical space before and after the equation

2011-05-17 Thread Ruida Yun
Hi all,

I'm writing my dissertation using the thesis template offered  by the
new Lyx2.0.  The Latex preamble shipped with the thesis template
somehow messed up the fleqn option when the line space is set to
double. There is way too much vertical space before and after the
equation.

If I delete the preamble or remove the fleqn option, the vertical
space looks normal. I'm not sure what causes the problem and hope
someone could help me out here.

The latex preamble looks like this:

% increase link area for cross-references and autoname them
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1
\newlength{\abc}
\settowidth{\abc}{\space}
\AtBeginDocument{%
\addto\extrasenglish{
 \renewcommand{\equationautorefname}{\hspace{-\abc}}
 \renewcommand{\sectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
 \renewcommand{\figureautorefname}{Fig.\negthinspace}
 \renewcommand{\tableautorefname}{Tab.\negthinspace}
}
}

% in case somebody want to have the label "equation"
%\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}

% that links to image floats jumps to the beginning
% of the float and not to its caption
\usepackage[figure]{hypcap}

% the pages of the TOC is numbered roman
% and a pdf-bookmark for the TOC is added
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
  \frontmatter
  \pdfbookmark[1]{\contentsname}{}
  \myTOC
  \mainmatter }

% make caption labels bold
\setkomafont{captionlabel}{\bfseries}
\setcapindent{1em}

% enable calculations
\usepackage{calc}

% fancy page header/footer settings
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}

% avoid that floats are placed above its sections
\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}




-- 
Ruida Yun


Re: lyx 2.0 thesis template generate too much vertical space before and after the equation

2011-05-17 Thread Uwe Stöhr

Am 17.05.2011 20:36, schrieb Ruida Yun:


I'm writing my dissertation using the thesis template offered  by the
new Lyx2.0.  The Latex preamble shipped with the thesis template
somehow messed up the fleqn option when the line space is set to
double. There is way too much vertical space before and after the
equation.


Can you please send a screenshot where you have too much space. I cannot see a difference between 
fleqn or not.
Note the space around equations depends if the equation is in an own paragraph or not. If it in an 
own paragraph the spacing is the normal one PLUS the paragraph separation space.


regards Uwe