Hi folks, This is a small Literate.lyx patch. I am still thinking about the best way to solve Bug #190 ( http://bugzilla.lyx.org/show_bug.cgi?id=190 ) and so needed to look at Literate.lyx, which is when I came across this problem.
-- 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)
Index: ChangeLog =================================================================== RCS file: /cvs/lyx/lyx-devel/lib/ChangeLog,v retrieving revision 1.181 diff -u -u -r1.181 ChangeLog --- ChangeLog 2002/03/12 11:32:24 1.181 +++ ChangeLog 2002/03/12 17:48:25 @@ -1,3 +1,9 @@ +2002-03-12 Kayvan A. Sylvan <[EMAIL PROTECTED]> + + * examples/Literate.lyx: Fixed build-script section to work + with lyx tempdir. As it was, you could not build-program + when opening Literate.lyx from within LyX. + 2002-03-12 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> * kbd/bg-bds-1251.kmap: new keyboard mapping for bulgarian Index: examples/Literate.lyx =================================================================== RCS file: /cvs/lyx/lyx-devel/lib/examples/Literate.lyx,v retrieving revision 1.4 diff -u -u -r1.4 Literate.lyx --- examples/Literate.lyx 2000/11/03 11:21:36 1.4 +++ examples/Literate.lyx 2002/03/12 17:48:25 @@ -1,5 +1,5 @@ -#LyX 1.1 created this file. For more info see http://www.lyx.org/ -\lyxformat 2.16 +#LyX 1.2 created this file. For more info see http://www.lyx.org/ +\lyxformat 220 \textclass literate-article \language english \inputencoding default @@ -11,6 +11,8 @@ \paperpackage a4 \use_geometry 0 \use_amsmath 0 +\use_natbib 0 +\use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 @@ -32,19 +34,29 @@ Edmar Wienskoski Jr. \newline [EMAIL PROTECTED] -\begin_float footnote +\begin_inset Foot +collapsed true + \layout Standard Modified by Bernard Michael Hurley [EMAIL PROTECTED] ---- Don't blame Edmar for any errors that have crept in! -\end_float +\end_inset + + \layout Date -\latex latex +\begin_inset ERT +status Collapsed +\layout Standard + \backslash today +\end_inset + + \layout Standard @@ -185,14 +197,18 @@ \family default , a program name and line number. There is no special requirement on the input strings, they can be anything. -\begin_float footnote +\begin_inset Foot +collapsed true + \layout Standard This function has been slightly changed from EW's original to make scanning a bit easier with LaTeX::scanLogFile(). The test has been added because LyX can crash if empty lines are allowed here --- I can't figure out why! --- BMH -\end_float +\end_inset + + \layout Scrap <<Function bodies>>= @@ -711,13 +727,17 @@ superfluous information from gcc messages, namely the name of the noweb file and the line number of the Error. -\begin_float footnote +\begin_inset Foot +collapsed true + \layout Standard More could be done. For instance, some way of distinguishing between gcc Errors and Warnings should be devised. -\end_float +\end_inset + + \layout Scrap <<Function bodies>>= @@ -930,9 +950,9 @@ <<build-script>>= \newline -#!/usr/local/bin/bash +#!/bin/sh \newline -notangle -L -Rlisterrors.c Literate.nw > listerrors.c +notangle -L -Rlisterrors.c ${NOWEB_SOURCE} > listerrors.c \newline gcc -g -o listerrors listerrors.c \newline @@ -955,7 +975,7 @@ #!/bin/sh \newline -notangle -Rbuild-script $1 | sh +notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh \layout LyX-Code \the_end
msg34310/pgp00000.pgp
Description: PGP signature