On Tue, 27 May 2003 11:46:20 +0200
Andre Poenitz <[EMAIL PROTECTED]> wrote:

> On Tue, May 27, 2003 at 11:43:22AM +0200, Charpentier Philippe wrote:
> > sometimes I find usefull to use vlatex instead of pdflatex to
> > produce a PDF file. Is it possible (in any version of LyX and
> > for the user i.e. without modifying the source) to add an NEW entry
> > in the "view" menu (i.e. in ViewFormats) like "PDF (vlatex)" for a
> > complete compilation with vlatex, in such a way that both
> > "PDF (pdflatex)" and "PDF (vlatex)" appear in the view menu?
> 
> Yes.
> 
> You need to define a new format (say "PDFvlatex") and a converter
> LaTeX -> PDFvlatex in the Preferences->Converters menus.
> 
> Andre'
> 

I did that for lyx-1.2.3 and lyx-1.3.2. Precisely I wrote

\format "pdf4" "pdf" "PDF (vlatex)" "" (in the FORMATS SECTION)

and

\converter "latex" "pdf4" "/usr/local/vtex/bin/vlatex $$i" "latex" (in the CONVERTERS 
SECTION)

With lyx-1.2.3 all is fine. But with lyx-1.3.2, if there is a latex error in the
document, lyx crashes with the following output:

lyx: /usr/include/g++-3/std/bastring.cc:126: basic_string<charT, traits, Allocator> 
&basic_string<charT, traits, Allocator>::replace (unsigned int, unsigned int, const 
basic_string<charT, traits, Allocator> &, unsigned int, unsigned int) [with charT = 
char, traits = string_char_traits<char>, Allocator = __default_alloc_template<true, 
0>]:  l'assertion `!(pos2 > len2)' a échoué.
/home/pcharpen/bin/monlyxqt: line 6:  8816 Abandon

Why?
Ph. C.

More precisely:

the test was made on a RedHat-7.2. Running lyx-1.3.2 with "-dbg latex" gives (with a 
\usepackage{al} in the preamble):

Log line: ! LaTeX Error: File `al.sty' not found.
lyx: /usr/include/g++-3/std/bastring.cc:126: basic_string<charT, traits, Allocator> 
&basic_string<charT, traits, Allocator>::replace (unsigned int, unsigned int, const 
basic_string<charT, traits, Allocator> &, unsigned int, unsigned int) [with charT = 
char, traits = string_char_traits<char>, Allocator = __default_alloc_template<true, 
0>]:  l'assertion `!(pos2 > len2)' a échoué.
Abandon

The same test on a RedHat-8.0 gives, for BOTH lyx-1.2.3 and lyx-1.3.2, a crash of lyx 
with:

Log line: ! LaTeX Error: File `al.sty' not found.
Abandon

Is this a bug in LyX?

Ph. C.

Reply via email to