verbatim in ERT results wrong output

2004-11-02 Thread Pearu Peterson

Hi!

I am trying to use verbatim (actually verbatim kind of environment but
latex verbatim demonstrates the problem well) environment in ERT box
but the output to latex, for example, is wrong: LyX inserts a new line
after each line in verbatim block. For example, consider

\begin{verbatim}
1
2
\end{verbatim}

in lyx ERT then in exported latex document this will read

\begin{verbatim} 

1

2

\end{verbatim}

Is there a way to avoid the extra newlines that LyX generates from ERT?
Or can I define my own environments for LyX so that I can avoid ERT?

Thanks,
Pearu




Re: verbatim in ERT results wrong output

2004-11-02 Thread José Abílio Oliveira Matos
On Tue, Nov 02, 2004 at 05:19:16PM +0200, Pearu Peterson wrote:
 
 Hi!
...
 Is there a way to avoid the extra newlines that LyX generates from ERT?
 Or can I define my own environments for LyX so that I can avoid ERT?

  Use Control+Return to start a new paragraph, you will se a red arrow at
the end of line but the result should as you want.

 Thanks,
 Pearu
 

-- 
José Abílio Matos
LyX and docbook a perfect match. :-)


Re: verbatim in ERT results wrong output

2004-11-02 Thread Pearu Peterson

On Tue, 2 Nov 2004, José Abílio Oliveira Matos wrote:

 On Tue, Nov 02, 2004 at 05:19:16PM +0200, Pearu Peterson wrote:
  
  Hi!
 ...
  Is there a way to avoid the extra newlines that LyX generates from ERT?
  Or can I define my own environments for LyX so that I can avoid ERT?
 
   Use Control+Return to start a new paragraph, you will se a red arrow at
 the end of line but the result should as you want.

Yes, that did the trick. Thanks!

Pearu




verbatim in ERT results wrong output

2004-11-02 Thread Pearu Peterson

Hi!

I am trying to use verbatim (actually verbatim kind of environment but
latex verbatim demonstrates the problem well) environment in ERT box
but the output to latex, for example, is wrong: LyX inserts a new line
after each line in verbatim block. For example, consider

\begin{verbatim}
1
2
\end{verbatim}

in lyx ERT then in exported latex document this will read

\begin{verbatim} 

1

2

\end{verbatim}

Is there a way to avoid the extra newlines that LyX generates from ERT?
Or can I define my own environments for LyX so that I can avoid ERT?

Thanks,
Pearu




Re: verbatim in ERT results wrong output

2004-11-02 Thread José Abílio Oliveira Matos
On Tue, Nov 02, 2004 at 05:19:16PM +0200, Pearu Peterson wrote:
 
 Hi!
...
 Is there a way to avoid the extra newlines that LyX generates from ERT?
 Or can I define my own environments for LyX so that I can avoid ERT?

  Use Control+Return to start a new paragraph, you will se a red arrow at
the end of line but the result should as you want.

 Thanks,
 Pearu
 

-- 
José Abílio Matos
LyX and docbook a perfect match. :-)


Re: verbatim in ERT results wrong output

2004-11-02 Thread Pearu Peterson

On Tue, 2 Nov 2004, José Abílio Oliveira Matos wrote:

 On Tue, Nov 02, 2004 at 05:19:16PM +0200, Pearu Peterson wrote:
  
  Hi!
 ...
  Is there a way to avoid the extra newlines that LyX generates from ERT?
  Or can I define my own environments for LyX so that I can avoid ERT?
 
   Use Control+Return to start a new paragraph, you will se a red arrow at
 the end of line but the result should as you want.

Yes, that did the trick. Thanks!

Pearu




verbatim in ERT results wrong output

2004-11-02 Thread Pearu Peterson

Hi!

I am trying to use verbatim (actually verbatim kind of environment but
latex verbatim demonstrates the problem well) environment in ERT box
but the output to latex, for example, is wrong: LyX inserts a new line
after each line in verbatim block. For example, consider

\begin{verbatim}
1
2
\end{verbatim}

in lyx ERT then in exported latex document this will read

\begin{verbatim} 

1

2

\end{verbatim}

Is there a way to avoid the extra newlines that LyX generates from ERT?
Or can I define my own environments for LyX so that I can avoid ERT?

Thanks,
Pearu




Re: verbatim in ERT results wrong output

2004-11-02 Thread José Abílio Oliveira Matos
On Tue, Nov 02, 2004 at 05:19:16PM +0200, Pearu Peterson wrote:
> 
> Hi!
...
> Is there a way to avoid the extra newlines that LyX generates from ERT?
> Or can I define my own environments for LyX so that I can avoid ERT?

  Use Control+Return to start a new paragraph, you will se a red arrow at
the end of line but the result should as you want.

> Thanks,
> Pearu
> 

-- 
José Abílio Matos
LyX and docbook a perfect match. :-)


Re: verbatim in ERT results wrong output

2004-11-02 Thread Pearu Peterson

On Tue, 2 Nov 2004, José Abílio Oliveira Matos wrote:

> On Tue, Nov 02, 2004 at 05:19:16PM +0200, Pearu Peterson wrote:
> > 
> > Hi!
> ...
> > Is there a way to avoid the extra newlines that LyX generates from ERT?
> > Or can I define my own environments for LyX so that I can avoid ERT?
> 
>   Use Control+Return to start a new paragraph, you will se a red arrow at
> the end of line but the result should as you want.

Yes, that did the trick. Thanks!

Pearu