Re: Problems importing figure

2007-08-01 Thread Jürgen Spitzmüller
Hans Kunkell wrote:
 I am importing a TeX-file into LyX 1.5.0 but have some problems with the
   graphics. The code is

 \begin{floatingfigure}{0.5\columnwidth}%
 \includegraphics{picture.png}
 \caption{some text...}
 \end{floatingfigure}%

tex2lyx apparently does not import floatingfigure yet (I'll file a bug report 
about that). It shouldn't be difficult to implement this.

 Creating a DVI causes
 errors. Inserting the figure manually through LyX works great though.

What errors do you get? The ERT version works fine for me here (given that the 
float is surrounded by a sufficient amount of text).

Jürgen


Re: Problems importing figure

2007-08-01 Thread Jürgen Spitzmüller
Also sprach Hans Kunkell:
 If I don't use LyX text wrap float I get the following errors:

    LaTeX Error: Environment floatingfigure undefined.
    Missing number, treated as zero.
    Illegal unit of measure (pt inserted).
    Undefined control sequence.
    LaTeX Error: \begin{document} ended by \end{floatingfigure}

 I found out that \usepackage{floatflt} is missing when not using Text
 Wrap float in LyX 

This is strange. tex2lyx adds this command to the preamble for me.

 but when adding the usepackage statement in the 
 preamble I get the error Undefined control sequence for \includegraphics.

Isn't the graphic imported natively? If it is imported as ERT, you need to add 
\usepackage{graphicx} to the preamble.

Jürgen


Re: Menu fonts

2007-08-01 Thread Jean-Pierre Chrétien
Charles de Miramon [EMAIL PROTECTED] writes:

  
 qtconfig, maybe named qtconfig-qt4
 

Great, thanks a lot.

This  edits the ~/.config/Trolltech.conf file.
Any way to set these preferences globally on a site ?

I would like a fresh lyx-1.5.0 user to get the right font menu
without calling qtconfig.

-- 
Jean-Pierre






Re: Problems importing figure

2007-08-01 Thread Jürgen Spitzmüller
Hans Kunkell wrote:
 I am importing a TeX-file into LyX 1.5.0 but have some problems with the
   graphics. The code is

 \begin{floatingfigure}{0.5\columnwidth}%
 \includegraphics{picture.png}
 \caption{some text...}
 \end{floatingfigure}%

tex2lyx apparently does not import floatingfigure yet (I'll file a bug report 
about that). It shouldn't be difficult to implement this.

 Creating a DVI causes
 errors. Inserting the figure manually through LyX works great though.

What errors do you get? The ERT version works fine for me here (given that the 
float is surrounded by a sufficient amount of text).

Jürgen


Re: Problems importing figure

2007-08-01 Thread Jürgen Spitzmüller
Also sprach Hans Kunkell:
 If I don't use LyX text wrap float I get the following errors:

    LaTeX Error: Environment floatingfigure undefined.
    Missing number, treated as zero.
    Illegal unit of measure (pt inserted).
    Undefined control sequence.
    LaTeX Error: \begin{document} ended by \end{floatingfigure}

 I found out that \usepackage{floatflt} is missing when not using Text
 Wrap float in LyX 

This is strange. tex2lyx adds this command to the preamble for me.

 but when adding the usepackage statement in the 
 preamble I get the error Undefined control sequence for \includegraphics.

Isn't the graphic imported natively? If it is imported as ERT, you need to add 
\usepackage{graphicx} to the preamble.

Jürgen


Re: Menu fonts

2007-08-01 Thread Jean-Pierre Chrétien
Charles de Miramon [EMAIL PROTECTED] writes:

  
 qtconfig, maybe named qtconfig-qt4
 

Great, thanks a lot.

This  edits the ~/.config/Trolltech.conf file.
Any way to set these preferences globally on a site ?

I would like a fresh lyx-1.5.0 user to get the right font menu
without calling qtconfig.

-- 
Jean-Pierre






Re: Problems importing figure

2007-08-01 Thread Jürgen Spitzmüller
Hans Kunkell wrote:
> I am importing a TeX-file into LyX 1.5.0 but have some problems with the
>   graphics. The code is
>
> \begin{floatingfigure}{0.5\columnwidth}%
> \includegraphics{picture.png}
> \caption{some text...}
> \end{floatingfigure}%

tex2lyx apparently does not import floatingfigure yet (I'll file a bug report 
about that). It shouldn't be difficult to implement this.

> Creating a DVI causes
> errors. Inserting the figure manually through LyX works great though.

What errors do you get? The ERT version works fine for me here (given that the 
float is surrounded by a sufficient amount of text).

Jürgen


Re: Problems importing figure

2007-08-01 Thread Jürgen Spitzmüller
Also sprach Hans Kunkell:
> If I don't use LyX text wrap float I get the following errors:
>
>    LaTeX Error: Environment floatingfigure undefined.
>    Missing number, treated as zero.
>    Illegal unit of measure (pt inserted).
>    Undefined control sequence.
>    LaTeX Error: \begin{document} ended by \end{floatingfigure}
>
> I found out that \usepackage{floatflt} is missing when not using Text
> Wrap float in LyX 

This is strange. tex2lyx adds this command to the preamble for me.

> but when adding the usepackage statement in the 
> preamble I get the error "Undefined control sequence" for \includegraphics.

Isn't the graphic imported natively? If it is imported as ERT, you need to add 
\usepackage{graphicx} to the preamble.

Jürgen


Re: Menu fonts

2007-08-01 Thread Jean-Pierre Chrétien
Charles de Miramon <[EMAIL PROTECTED]> writes:

> > 
> qtconfig, maybe named qtconfig-qt4
> 

Great, thanks a lot.

This  edits the ~/.config/Trolltech.conf file.
Any way to set these preferences globally on a site ?

I would like a fresh lyx-1.5.0 user to get the right font menu
without calling qtconfig.

-- 
Jean-Pierre