Re: Comment/lyx-code problem

2000-12-16 Thread Dekel Tsur

On Sat, Dec 16, 2000 at 08:27:08AM +, Herbert Voss wrote:
> Jason Stirling wrote:
> > 
> > Here's how to produce the problem:

The problem is the quotes in the lyx-code paragraph.
To fix this problem, edit the file LYXLIBDIR/layouts/lyxmacros.inc
replacing the line
  \verbatim@font}%
by
  \normalfont\ttfamily}%

> i could only produce an error once, when i deleted some text
> in the comment line, but all other runs no problem with class article, 
> an empty preamble and lyx 1.1.6pre2 

The above fix has been applied to 1.1.6, which explains why you didn't have
problems.



Re: Comment/lyx-code problem

2000-12-15 Thread Herbert Voss

Jason Stirling wrote:
> 
> Here's how to produce the problem:
> 
> Go to lyx, start a new document, type a few words, append the following
> text:
> 
> query << "select (%2:field1, %3:field2) from stock where %1:wheref =
> %q0:what"
> 
> Now set the style of first line to "comment" and the second line to
> "lyx-code".  Now do a "file -> view postscript" and you should get two
> bizzare fatal latex errors.

i could only produce an error once, when i deleted some text
in the comment line, but all other runs no problem with class article, 
an empty preamble and lyx 1.1.6pre2 
have a look at the attached ps-file and try to run the lyx-file.

is your latex-preamble empty? and what kind of latex error do you get?
also send me your lyx-file.

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/lyx/

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.17
\textclass article
\begin_preamble

\end_preamble
\language german
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize 11
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 1
\use_amsmath 1
\paperorientation portrait
\paperwidth 16cm
\paperheight 23cm
\leftmargin 1cm
\topmargin 1cm
\rightmargin 2cm
\bottommargin 0cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Comment

text text text
\layout LyX-Code

query << "select (%2:field1, %3:field2) from stock where %1:wheref = %q0:what"
\the_end

 newfile2.ps.gz