On Tue, Apr 23, 2002 at 09:36:19PM +0100, S.G.GOULD wrote: > Hello, > > I am a new user of LyX and I am trying to get the literate programming up and > running. > I have managed to get the the example listerrors to compile from LyX and also a > short > file I wrote on my own. However I can't seem to get any compiler errors to show > up in > LyX when I try to build a program with an error in it. I just get a pop up that
Can you compile outside of LyX and run the error output through listerrors
and see if your listerrors works?
Which version of LyX (RPM versions contain listerrors already)?
By the way, listerrors is no longer needed in 1.2.0. It is replaced by
a python program that lives in LYXDIR/scripts (not in /usr/bin)
> <<build-script>>
> #!/bin/sh
> #
> notangle -L -RCode.c ${NOWEB_SOURCE} > Code.c
> gcc -g -o Code Code.c
>
> build-script
> #!/bin/sh
> #
> notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
>
> Listerrors is located in the /usr/bin/ directory.
> I added these lines to the lyxrc.default.
>
> \converter literate program "build-script $$i" "originaldir,parselog=listerrors
> b"
> \converter literate latex "noweave -delay -index $$i > $$o" "parselog=listerrors
> n"
This should work. What is in your ~/.lyx/ directory?
---Kayvan
--
Kayvan A. Sylvan | Proud husband of | Father to my kids:
Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)
msg18712/pgp00000.pgp
Description: PGP signature
