Re: PDF handling in Instant Preview

2012-06-16 Thread Wolfgang Engelmann
Am Freitag, 15. Juni 2012, 21:34:31 schrieb Rudi Gaelzer:
 How does LyX handle pdf files to show them with Instant Preview?
 
 In Preferences - File Handling - File Formats, any PDF option uses
 xdg-open as viewer, which in my case is Okular (using KDE here).
 
 However, when Instant Preview is going to display a pdf image for the
 first time, it apparently uses gs (ghostscript) to convert the PDF to
 EPS first.  On itself, this is no big deal, but the problem is that for
 some reason gs takes a long time converting the image, and when I have
 a text with a lot of figures, it can be quite a PITA.
 
 Is there any alternative for me in this case?

Use draft and run the pdf conversion with figures before a coffee break

Wolfgang 


problem with natbib numbering

2012-06-16 Thread julien.babinot

Hello,

I am currently writing my PhD thesis on Lyx, and i have one problem with 
my bibliography.
I am using multiple bibliography, with a separate bib file for each 
chapter (these are included in a main document thesis.lyx).
As advised in the advanced options document, i use \begin{btUnit}and 
\end{btUnit}at the beginning and end of my chapter to allow the multiple 
bibliography.
I want to use a numbered style, in superscript, and numbered in the 
order of citation. But my problem is that references are listed in the 
alphabetical order of authors, thus generating numbering like 5, 23, 6 
 and not 1,2,3

Here is the Latex code generated by Lyx:

%% LyX 2.0.3 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[oneside,english,french]{thl3i}

\usepackage[T1]{fontenc}

\usepackage[utf8x]{inputenc}

\setcounter{secnumdepth}{1}

\setcounter{tocdepth}{1}

\usepackage{array}

\usepackage{float}

\usepackage{textcomp}

\usepackage{multirow}

\usepackage{amsthm}

\usepackage{amsmath}

\usepackage{graphicx}

\usepackage{setspace}

\usepackage[dot]{bibtopic}

\PassOptionsToPackage{normalem}{ulem}

\usepackage{ulem}

\onehalfspacing

\makeatletter

%% LyX specific LaTeX commands.

\DeclareRobustCommand{\greektext}{%

\fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}

\DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}

\DeclareFontEncoding{LGR}{}{}

\DeclareTextSymbol{\~}{LGR}{126}

%% Because html converters don't know tabularnewline

\providecommand{\tabularnewline}{\\}

%% A simple dot to overcome graphicx limitations

\newcommand{\lyxdot}{.}

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section}

\newcommand{\lyxaddress}[1]{

\par {\raggedright #1

\vspace{1.4em}

\noindent\par}

}

%% User specified LaTeX commands.

\usepackage[numbers,super,sortcompress]{natbib}

\bibliographystyle{unsrtnat}

\makeatother

\usepackage{babel}

\addto\extrasfrench{%

\providecommand{\og}{\leavevmode\flqq~}%

\providecommand{\fg}{\ifdim\lastskip\z@\unskip\fi~\frqq}%

}

\begin{document}

\titreLogoUn{}

\titreLogoDeux{}

\subject{}

\title{}

\author{\textbf{\large }\\

}

\date{xx/xx/2012}

\Rapporteurs{Rapporteur 1Université 1\\

Rapporteur 2Université 2}

\Examinateurs{Examinateur 1Université 3\\

Examinateur 2Université 4}

\Directeur{Directeur 1Université 5}

\Encadrant{Encadrant 1Université 6}

\Encadrant{Invité 1Université 7}

\titreBasDePage{}

\maketitle

\address{%

\begin{minipage}[t][1\textheight]{1\columnwidth}%

\begin{center}

\includegraphics[width=3cm]{Logos/Financeur}

\par\end{center}

\vspace{1cm}

\begin{tabular}{rll}

\emph{Thèse réalisée au}  \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{Web :}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

\emph{Sous la direction de }  \tabularnewline

  \tabularnewline

\emph{Co-encadrement}  \tabularnewline

  \tabularnewline

\end{tabular}

\begin{center}

\cleardoublepage

\par\end{center}

\begin{center}

\par\end{center}%

\end{minipage}}

\frontmatter

\include{Remerciements}\include{Résumé}

\include{Abstract}

\tableofcontents{}

\listoffigures

\listoftables

\include{abreviations}

\mainmatter

\include{Introduction}

\include{Chapitre1}

\include{Chapitre2}

\include{Chapitre3}

\include{Chapitre4}

\include{Chapitre5}

\include{Chapitre6}

\include{Conclusion}

\include{Annexes}

\backmatter

\end{document}


What i don't understand is that my bibliography is actually numbered in 
superscript but not sorted by order of citation?! unsrtnat is not 
supposed to do so?


I would extremely appreciate any help.

Thanks,

Julien





How to get rid of excessive vertical whitespace

2012-06-16 Thread Roger House

I'm using Lyx for the first time and find it, by and large, quite nice.
However, I've run into a situation where Lyx's automatic vertical layout
is creating ugly output.  Example:

  input
text
small figure
caption
text
large figure (taking an entire page)

  output
PAGE BREAK
text
small figure
LOTS OF VERTICAL WHITESPACE
caption
LOTS OF VERTICAL WHITESPACE
text
PAGE BREAK
large figure (taking an entire page)

I want a page break before the large figure, so that works fine.  
However the
vertical whitespace is really unacceptable.  I understand that the 
algorithm

is trying to spread things out uniformly in the vertical direction, but in
this case, I would like all the vertical whitespace to go away and just let
the printed portion of the page stop wherever it stops.  (Also, the 
whitespace
between the figure and the caption just seems plain wrong.  I have the 
caption

marked Definitely here, but my idea of here does not seem to agree with
the way it works.)

I would greatly appreciate any advice on how to prevent the layout shown
above.

Thank you,

Roger House



Re: How to get rid of excessive vertical whitespace

2012-06-16 Thread Liviu Andronic
On Sat, Jun 16, 2012 at 9:53 PM, Roger House rho...@sonic.net wrote:
 I'm using Lyx for the first time and find it, by and large, quite nice.
 However, I've run into a situation where Lyx's automatic vertical layout
 is creating ugly output.  Example:

  input
    text
    small figure
    caption
    text
    large figure (taking an entire page)

  output
    PAGE BREAK
    text
    small figure
    LOTS OF VERTICAL WHITESPACE
    caption
    LOTS OF VERTICAL WHITESPACE
    text
    PAGE BREAK
    large figure (taking an entire page)

 I want a page break before the large figure, so that works fine.  However
 the
 vertical whitespace is really unacceptable.

Yes, LaTeX can be generous with empty vertical space. One way to
workaround is to insert negative vertical spaces right after the
caption (or float). Just Insert  Formatting  Vertical Space and
input a negative value (say -10 pt). This should help.


 I understand that the algorithm
 is trying to spread things out uniformly in the vertical direction, but in
 this case, I would like all the vertical whitespace to go away and just let
 the printed portion of the page stop wherever it stops.  (Also, the
 whitespace
 between the figure and the caption just seems plain wrong.  I have the
 caption
 marked Definitely here, but my idea of here does not seem to agree with
 the way it works.)

See Section 11 of LyX Essentials [1] for some prose on this. The
Definitely here pertains to the float placement, not caption
placement.

Liviu

[1] http://wiki.lyx.org/uploads/LyX/tutorials/essentials/LyX_Essentials.pdf


 I would greatly appreciate any advice on how to prevent the layout shown
 above.

 Thank you,

 Roger House




-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: How to get rid of excessive vertical whitespace

2012-06-16 Thread Les Denham
On Sat, 16 Jun 2012 12:53:50 -0700
Roger House rho...@sonic.net wrote:

 I'm using Lyx for the first time and find it, by and large, quite
 nice. However, I've run into a situation where Lyx's automatic
 vertical layout is creating ugly output.  Example:
 
input
  text
  small figure
  caption
  text
  large figure (taking an entire page)
 
output
  PAGE BREAK
  text
  small figure
  LOTS OF VERTICAL WHITESPACE
  caption
  LOTS OF VERTICAL WHITESPACE
  text
  PAGE BREAK
  large figure (taking an entire page)
 
 I want a page break before the large figure, so that works fine.  
.
.
.
 
 I would greatly appreciate any advice on how to prevent the layout
 shown above.
 
Roger,

The obvious solution would be to put a vertical
fill (Insert-Formatting-Vertical Space-VFill) after the second
text, and follow it with a page break (Ctrl-Enter).

However, I'd suggest you reconsider the need for having the large
figure quite so large (so it would fit on the same page) or,
alternatively, making the small figure larger, so it fills some of the
empty space.

But make sure your document has pretty much its final content, and you
are happy with the margins and font size (etc.) before you start making
changes to get the page breaks making sense: changing these  things
will change the page breaks anyway.

Les



Re: How to get rid of excessive vertical whitespace

2012-06-16 Thread Allen Barker

On 06/16/2012 03:53 PM, Roger House wrote:

I'm using Lyx for the first time and find it, by and large, quite nice.
However, I've run into a situation where Lyx's automatic vertical layout
is creating ugly output.  Example:

   input
 text
 small figure
 caption
 text
 large figure (taking an entire page)

   output
 PAGE BREAK
 text
 small figure
 LOTS OF VERTICAL WHITESPACE
 caption
 LOTS OF VERTICAL WHITESPACE
 text
 PAGE BREAK
 large figure (taking an entire page)

I want a page break before the large figure, so that works fine. However the
vertical whitespace is really unacceptable.  I understand that the algorithm
is trying to spread things out uniformly in the vertical direction, but in
this case, I would like all the vertical whitespace to go away and just let
the printed portion of the page stop wherever it stops.  (Also, the whitespace
between the figure and the caption just seems plain wrong.  I have the caption
marked Definitely here, but my idea of here does not seem to agree with
the way it works.)

I would greatly appreciate any advice on how to prevent the layout shown
above.


If \flushbottom is set it might help to put \raggedbottom in an
ERT TeX box before the parts which space excessively.  You can
then turn \flushbottom back on afterwards, if desired, in another
ERT inset.








Re: PDF handling in Instant Preview

2012-06-16 Thread Wolfgang Engelmann
Am Freitag, 15. Juni 2012, 21:34:31 schrieb Rudi Gaelzer:
 How does LyX handle pdf files to show them with Instant Preview?
 
 In Preferences - File Handling - File Formats, any PDF option uses
 xdg-open as viewer, which in my case is Okular (using KDE here).
 
 However, when Instant Preview is going to display a pdf image for the
 first time, it apparently uses gs (ghostscript) to convert the PDF to
 EPS first.  On itself, this is no big deal, but the problem is that for
 some reason gs takes a long time converting the image, and when I have
 a text with a lot of figures, it can be quite a PITA.
 
 Is there any alternative for me in this case?

Use draft and run the pdf conversion with figures before a coffee break

Wolfgang 


problem with natbib numbering

2012-06-16 Thread julien.babinot

Hello,

I am currently writing my PhD thesis on Lyx, and i have one problem with 
my bibliography.
I am using multiple bibliography, with a separate bib file for each 
chapter (these are included in a main document thesis.lyx).
As advised in the advanced options document, i use \begin{btUnit}and 
\end{btUnit}at the beginning and end of my chapter to allow the multiple 
bibliography.
I want to use a numbered style, in superscript, and numbered in the 
order of citation. But my problem is that references are listed in the 
alphabetical order of authors, thus generating numbering like 5, 23, 6 
 and not 1,2,3

Here is the Latex code generated by Lyx:

%% LyX 2.0.3 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[oneside,english,french]{thl3i}

\usepackage[T1]{fontenc}

\usepackage[utf8x]{inputenc}

\setcounter{secnumdepth}{1}

\setcounter{tocdepth}{1}

\usepackage{array}

\usepackage{float}

\usepackage{textcomp}

\usepackage{multirow}

\usepackage{amsthm}

\usepackage{amsmath}

\usepackage{graphicx}

\usepackage{setspace}

\usepackage[dot]{bibtopic}

\PassOptionsToPackage{normalem}{ulem}

\usepackage{ulem}

\onehalfspacing

\makeatletter

%% LyX specific LaTeX commands.

\DeclareRobustCommand{\greektext}{%

\fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}

\DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}

\DeclareFontEncoding{LGR}{}{}

\DeclareTextSymbol{\~}{LGR}{126}

%% Because html converters don't know tabularnewline

\providecommand{\tabularnewline}{\\}

%% A simple dot to overcome graphicx limitations

\newcommand{\lyxdot}{.}

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section}

\newcommand{\lyxaddress}[1]{

\par {\raggedright #1

\vspace{1.4em}

\noindent\par}

}

%% User specified LaTeX commands.

\usepackage[numbers,super,sortcompress]{natbib}

\bibliographystyle{unsrtnat}

\makeatother

\usepackage{babel}

\addto\extrasfrench{%

\providecommand{\og}{\leavevmode\flqq~}%

\providecommand{\fg}{\ifdim\lastskip\z@\unskip\fi~\frqq}%

}

\begin{document}

\titreLogoUn{}

\titreLogoDeux{}

\subject{}

\title{}

\author{\textbf{\large }\\

}

\date{xx/xx/2012}

\Rapporteurs{Rapporteur 1Université 1\\

Rapporteur 2Université 2}

\Examinateurs{Examinateur 1Université 3\\

Examinateur 2Université 4}

\Directeur{Directeur 1Université 5}

\Encadrant{Encadrant 1Université 6}

\Encadrant{Invité 1Université 7}

\titreBasDePage{}

\maketitle

\address{%

\begin{minipage}[t][1\textheight]{1\columnwidth}%

\begin{center}

\includegraphics[width=3cm]{Logos/Financeur}

\par\end{center}

\vspace{1cm}

\begin{tabular}{rll}

\emph{Thèse réalisée au}  \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

 \multicolumn{2}{l}{Web :}\tabularnewline

 \multicolumn{2}{l}{}\tabularnewline

\emph{Sous la direction de }  \tabularnewline

  \tabularnewline

\emph{Co-encadrement}  \tabularnewline

  \tabularnewline

\end{tabular}

\begin{center}

\cleardoublepage

\par\end{center}

\begin{center}

\par\end{center}%

\end{minipage}}

\frontmatter

\include{Remerciements}\include{Résumé}

\include{Abstract}

\tableofcontents{}

\listoffigures

\listoftables

\include{abreviations}

\mainmatter

\include{Introduction}

\include{Chapitre1}

\include{Chapitre2}

\include{Chapitre3}

\include{Chapitre4}

\include{Chapitre5}

\include{Chapitre6}

\include{Conclusion}

\include{Annexes}

\backmatter

\end{document}


What i don't understand is that my bibliography is actually numbered in 
superscript but not sorted by order of citation?! unsrtnat is not 
supposed to do so?


I would extremely appreciate any help.

Thanks,

Julien





How to get rid of excessive vertical whitespace

2012-06-16 Thread Roger House

I'm using Lyx for the first time and find it, by and large, quite nice.
However, I've run into a situation where Lyx's automatic vertical layout
is creating ugly output.  Example:

  input
text
small figure
caption
text
large figure (taking an entire page)

  output
PAGE BREAK
text
small figure
LOTS OF VERTICAL WHITESPACE
caption
LOTS OF VERTICAL WHITESPACE
text
PAGE BREAK
large figure (taking an entire page)

I want a page break before the large figure, so that works fine.  
However the
vertical whitespace is really unacceptable.  I understand that the 
algorithm

is trying to spread things out uniformly in the vertical direction, but in
this case, I would like all the vertical whitespace to go away and just let
the printed portion of the page stop wherever it stops.  (Also, the 
whitespace
between the figure and the caption just seems plain wrong.  I have the 
caption

marked Definitely here, but my idea of here does not seem to agree with
the way it works.)

I would greatly appreciate any advice on how to prevent the layout shown
above.

Thank you,

Roger House



Re: How to get rid of excessive vertical whitespace

2012-06-16 Thread Liviu Andronic
On Sat, Jun 16, 2012 at 9:53 PM, Roger House rho...@sonic.net wrote:
 I'm using Lyx for the first time and find it, by and large, quite nice.
 However, I've run into a situation where Lyx's automatic vertical layout
 is creating ugly output.  Example:

  input
    text
    small figure
    caption
    text
    large figure (taking an entire page)

  output
    PAGE BREAK
    text
    small figure
    LOTS OF VERTICAL WHITESPACE
    caption
    LOTS OF VERTICAL WHITESPACE
    text
    PAGE BREAK
    large figure (taking an entire page)

 I want a page break before the large figure, so that works fine.  However
 the
 vertical whitespace is really unacceptable.

Yes, LaTeX can be generous with empty vertical space. One way to
workaround is to insert negative vertical spaces right after the
caption (or float). Just Insert  Formatting  Vertical Space and
input a negative value (say -10 pt). This should help.


 I understand that the algorithm
 is trying to spread things out uniformly in the vertical direction, but in
 this case, I would like all the vertical whitespace to go away and just let
 the printed portion of the page stop wherever it stops.  (Also, the
 whitespace
 between the figure and the caption just seems plain wrong.  I have the
 caption
 marked Definitely here, but my idea of here does not seem to agree with
 the way it works.)

See Section 11 of LyX Essentials [1] for some prose on this. The
Definitely here pertains to the float placement, not caption
placement.

Liviu

[1] http://wiki.lyx.org/uploads/LyX/tutorials/essentials/LyX_Essentials.pdf


 I would greatly appreciate any advice on how to prevent the layout shown
 above.

 Thank you,

 Roger House




-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: How to get rid of excessive vertical whitespace

2012-06-16 Thread Les Denham
On Sat, 16 Jun 2012 12:53:50 -0700
Roger House rho...@sonic.net wrote:

 I'm using Lyx for the first time and find it, by and large, quite
 nice. However, I've run into a situation where Lyx's automatic
 vertical layout is creating ugly output.  Example:
 
input
  text
  small figure
  caption
  text
  large figure (taking an entire page)
 
output
  PAGE BREAK
  text
  small figure
  LOTS OF VERTICAL WHITESPACE
  caption
  LOTS OF VERTICAL WHITESPACE
  text
  PAGE BREAK
  large figure (taking an entire page)
 
 I want a page break before the large figure, so that works fine.  
.
.
.
 
 I would greatly appreciate any advice on how to prevent the layout
 shown above.
 
Roger,

The obvious solution would be to put a vertical
fill (Insert-Formatting-Vertical Space-VFill) after the second
text, and follow it with a page break (Ctrl-Enter).

However, I'd suggest you reconsider the need for having the large
figure quite so large (so it would fit on the same page) or,
alternatively, making the small figure larger, so it fills some of the
empty space.

But make sure your document has pretty much its final content, and you
are happy with the margins and font size (etc.) before you start making
changes to get the page breaks making sense: changing these  things
will change the page breaks anyway.

Les



Re: How to get rid of excessive vertical whitespace

2012-06-16 Thread Allen Barker

On 06/16/2012 03:53 PM, Roger House wrote:

I'm using Lyx for the first time and find it, by and large, quite nice.
However, I've run into a situation where Lyx's automatic vertical layout
is creating ugly output.  Example:

   input
 text
 small figure
 caption
 text
 large figure (taking an entire page)

   output
 PAGE BREAK
 text
 small figure
 LOTS OF VERTICAL WHITESPACE
 caption
 LOTS OF VERTICAL WHITESPACE
 text
 PAGE BREAK
 large figure (taking an entire page)

I want a page break before the large figure, so that works fine. However the
vertical whitespace is really unacceptable.  I understand that the algorithm
is trying to spread things out uniformly in the vertical direction, but in
this case, I would like all the vertical whitespace to go away and just let
the printed portion of the page stop wherever it stops.  (Also, the whitespace
between the figure and the caption just seems plain wrong.  I have the caption
marked Definitely here, but my idea of here does not seem to agree with
the way it works.)

I would greatly appreciate any advice on how to prevent the layout shown
above.


If \flushbottom is set it might help to put \raggedbottom in an
ERT TeX box before the parts which space excessively.  You can
then turn \flushbottom back on afterwards, if desired, in another
ERT inset.








Re: PDF handling in Instant Preview

2012-06-16 Thread Wolfgang Engelmann
Am Freitag, 15. Juni 2012, 21:34:31 schrieb Rudi Gaelzer:
> How does LyX handle pdf files to show them with Instant Preview?
> 
> In Preferences -> File Handling -> File Formats, any PDF option uses
> xdg-open as viewer, which in my case is Okular (using KDE here).
> 
> However, when Instant Preview is going to display a pdf image for the
> first time, it apparently uses gs (ghostscript) to convert the PDF to
> EPS first.  On itself, this is no big deal, but the problem is that for
> some reason gs takes a long time converting the image, and when I have
> a text with a lot of figures, it can be quite a PITA.
> 
> Is there any alternative for me in this case?

Use draft and run the pdf conversion with figures before a coffee break

Wolfgang 


problem with natbib numbering

2012-06-16 Thread julien.babinot

Hello,

I am currently writing my PhD thesis on Lyx, and i have one problem with 
my bibliography.
I am using multiple bibliography, with a separate bib file for each 
chapter (these are included in a main document thesis.lyx).
As advised in the advanced options document, i use \begin{btUnit}and 
\end{btUnit}at the beginning and end of my chapter to allow the multiple 
bibliography.
I want to use a numbered style, in superscript, and numbered in the 
order of citation. But my problem is that references are listed in the 
alphabetical order of authors, thus generating numbering like 5, 23, 6 
 and not 1,2,3

Here is the Latex code generated by Lyx:

%% LyX 2.0.3 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[oneside,english,french]{thl3i}

\usepackage[T1]{fontenc}

\usepackage[utf8x]{inputenc}

\setcounter{secnumdepth}{1}

\setcounter{tocdepth}{1}

\usepackage{array}

\usepackage{float}

\usepackage{textcomp}

\usepackage{multirow}

\usepackage{amsthm}

\usepackage{amsmath}

\usepackage{graphicx}

\usepackage{setspace}

\usepackage[dot]{bibtopic}

\PassOptionsToPackage{normalem}{ulem}

\usepackage{ulem}

\onehalfspacing

\makeatletter

%% LyX specific LaTeX commands.

\DeclareRobustCommand{\greektext}{%

\fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}

\DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}

\DeclareFontEncoding{LGR}{}{}

\DeclareTextSymbol{\~}{LGR}{126}

%% Because html converters don't know tabularnewline

\providecommand{\tabularnewline}{\\}

%% A simple dot to overcome graphicx limitations

\newcommand{\lyxdot}{.}

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section}

\newcommand{\lyxaddress}[1]{

\par {\raggedright #1

\vspace{1.4em}

\noindent\par}

}

%% User specified LaTeX commands.

\usepackage[numbers,super,sort]{natbib}

\bibliographystyle{unsrtnat}

\makeatother

\usepackage{babel}

\addto\extrasfrench{%

\providecommand{\og}{\leavevmode\flqq~}%

\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%

}

\begin{document}

\titreLogoUn{}

\titreLogoDeux{}

\subject{}

\title{}

\author{\textbf{\large }\\

}

\date{xx/xx/2012}

\Rapporteurs{Rapporteur 1é 1\\

Rapporteur 2é 2}

\Examinateurs{Examinateur 1é 3\\

Examinateur 2é 4}

\Directeur{Directeur 1é 5}

\Encadrant{Encadrant 1é 6}

\Encadrant{Invité 1é 7}

\titreBasDePage{}

\maketitle

\address{%

\begin{minipage}[t][1\textheight]{1\columnwidth}%

\begin{center}

\includegraphics[width=3cm]{Logos/Financeur}

\par\end{center}

\vspace{1cm}

\begin{tabular}{rll}

\emph{Thèse réalisée au} & \multicolumn{2}{l}{}\tabularnewline

& \multicolumn{2}{l}{}\tabularnewline

& \multicolumn{2}{l}{}\tabularnewline

& \multicolumn{2}{l}{}\tabularnewline

& \multicolumn{2}{l}{}\tabularnewline

& \multicolumn{2}{l}{}\tabularnewline

& \multicolumn{2}{l}{}\tabularnewline

& \multicolumn{2}{l}{}\tabularnewline

& \multicolumn{2}{l}{Web :}\tabularnewline

& \multicolumn{2}{l}{}\tabularnewline

\emph{Sous la direction de } & \tabularnewline

& & \tabularnewline

\emph{Co-encadrement} & \tabularnewline

& & \tabularnewline

\end{tabular}

\begin{center}

\cleardoublepage

\par\end{center}

\begin{center}

\par\end{center}%

\end{minipage}}

\frontmatter

\include{Remerciements}\include{Résumé}

\include{Abstract}

\tableofcontents{}

\listoffigures

\listoftables

\include{abreviations}

\mainmatter

\include{Introduction}

\include{Chapitre1}

\include{Chapitre2}

\include{Chapitre3}

\include{Chapitre4}

\include{Chapitre5}

\include{Chapitre6}

\include{Conclusion}

\include{Annexes}

\backmatter

\end{document}


What i don't understand is that my bibliography is actually numbered in 
superscript but not sorted by order of citation?! unsrtnat is not 
supposed to do so?


I would extremely appreciate any help.

Thanks,

Julien





How to get rid of excessive vertical whitespace

2012-06-16 Thread Roger House

I'm using Lyx for the first time and find it, by and large, quite nice.
However, I've run into a situation where Lyx's automatic vertical layout
is creating ugly output.  Example:

  input
text
small figure
caption
text
large figure (taking an entire page)

  output
PAGE BREAK
text
small figure
LOTS OF VERTICAL WHITESPACE
caption
LOTS OF VERTICAL WHITESPACE
text
PAGE BREAK
large figure (taking an entire page)

I want a page break before the large figure, so that works fine.  
However the
vertical whitespace is really unacceptable.  I understand that the 
algorithm

is trying to spread things out uniformly in the vertical direction, but in
this case, I would like all the vertical whitespace to go away and just let
the printed portion of the page stop wherever it stops.  (Also, the 
whitespace
between the figure and the caption just seems plain wrong.  I have the 
caption

marked "Definitely here", but my idea of "here" does not seem to agree with
the way it works.)

I would greatly appreciate any advice on how to prevent the layout shown
above.

Thank you,

Roger House



Re: How to get rid of excessive vertical whitespace

2012-06-16 Thread Liviu Andronic
On Sat, Jun 16, 2012 at 9:53 PM, Roger House  wrote:
> I'm using Lyx for the first time and find it, by and large, quite nice.
> However, I've run into a situation where Lyx's automatic vertical layout
> is creating ugly output.  Example:
>
>  input
>    text
>    small figure
>    caption
>    text
>    large figure (taking an entire page)
>
>  output
>    PAGE BREAK
>    text
>    small figure
>    LOTS OF VERTICAL WHITESPACE
>    caption
>    LOTS OF VERTICAL WHITESPACE
>    text
>    PAGE BREAK
>    large figure (taking an entire page)
>
> I want a page break before the large figure, so that works fine.  However
> the
> vertical whitespace is really unacceptable.
>
Yes, LaTeX can be generous with empty vertical space. One way to
workaround is to insert negative vertical spaces right after the
caption (or float). Just Insert > Formatting > Vertical Space and
input a negative value (say -10 pt). This should help.


> I understand that the algorithm
> is trying to spread things out uniformly in the vertical direction, but in
> this case, I would like all the vertical whitespace to go away and just let
> the printed portion of the page stop wherever it stops.  (Also, the
> whitespace
> between the figure and the caption just seems plain wrong.  I have the
> caption
> marked "Definitely here", but my idea of "here" does not seem to agree with
> the way it works.)
>
See Section 11 of LyX Essentials [1] for some prose on this. The
"Definitely here" pertains to the float placement, not caption
placement.

Liviu

[1] http://wiki.lyx.org/uploads/LyX/tutorials/essentials/LyX_Essentials.pdf


> I would greatly appreciate any advice on how to prevent the layout shown
> above.
>
> Thank you,
>
> Roger House
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: How to get rid of excessive vertical whitespace

2012-06-16 Thread Les Denham
On Sat, 16 Jun 2012 12:53:50 -0700
Roger House  wrote:

> I'm using Lyx for the first time and find it, by and large, quite
> nice. However, I've run into a situation where Lyx's automatic
> vertical layout is creating ugly output.  Example:
> 
>input
>  text
>  small figure
>  caption
>  text
>  large figure (taking an entire page)
> 
>output
>  PAGE BREAK
>  text
>  small figure
>  LOTS OF VERTICAL WHITESPACE
>  caption
>  LOTS OF VERTICAL WHITESPACE
>  text
>  PAGE BREAK
>  large figure (taking an entire page)
> 
> I want a page break before the large figure, so that works fine.  
.
.
.
> 
> I would greatly appreciate any advice on how to prevent the layout
> shown above.
> 
Roger,

The obvious solution would be to put a "vertical
fill" (Insert->Formatting->Vertical Space->VFill) after the second
text, and follow it with a page break (Ctrl-Enter).

However, I'd suggest you reconsider the need for having the large
figure quite so large (so it would fit on the same page) or,
alternatively, making the small figure larger, so it fills some of the
empty space.

But make sure your document has pretty much its final content, and you
are happy with the margins and font size (etc.) before you start making
changes to get the page breaks making sense: changing these  things
will change the page breaks anyway.

Les



Re: How to get rid of excessive vertical whitespace

2012-06-16 Thread Allen Barker

On 06/16/2012 03:53 PM, Roger House wrote:

I'm using Lyx for the first time and find it, by and large, quite nice.
However, I've run into a situation where Lyx's automatic vertical layout
is creating ugly output.  Example:

   input
 text
 small figure
 caption
 text
 large figure (taking an entire page)

   output
 PAGE BREAK
 text
 small figure
 LOTS OF VERTICAL WHITESPACE
 caption
 LOTS OF VERTICAL WHITESPACE
 text
 PAGE BREAK
 large figure (taking an entire page)

I want a page break before the large figure, so that works fine. However the
vertical whitespace is really unacceptable.  I understand that the algorithm
is trying to spread things out uniformly in the vertical direction, but in
this case, I would like all the vertical whitespace to go away and just let
the printed portion of the page stop wherever it stops.  (Also, the whitespace
between the figure and the caption just seems plain wrong.  I have the caption
marked "Definitely here", but my idea of "here" does not seem to agree with
the way it works.)

I would greatly appreciate any advice on how to prevent the layout shown
above.


If \flushbottom is set it might help to put \raggedbottom in an
ERT TeX box before the parts which space excessively.  You can
then turn \flushbottom back on afterwards, if desired, in another
ERT inset.