-#LyX 2.1 created this file. For more info see http://www.lyx.org/
-\lyxformat 474
+#LyX 2.3 created this file. For more info see http://www.lyx.org/
+\lyxformat 544
\begin_document
\begin_header
+\save_transient_properties true
+\origin /systemlyxdir/examples/
\textclass article
\use_default_options false
\begin_modules
\language_package default
\inputencoding default
\fontencoding global
-\font_roman default
-\font_sans default
-\font_typewriter default
-\font_math auto
+\font_roman "default" "default"
+\font_sans "default" "default"
+\font_typewriter "default" "default"
+\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
-\font_sf_scale 100
-\font_tt_scale 100
+\font_sf_scale 100 100
+\font_tt_scale 100 100
+\use_microtype false
+\use_dash_ligatures false
\graphics default
\default_output_format default
\output_sync 0
\use_hyperref false
\papersize default
\use_geometry false
-\use_package amsmath 0
-\use_package amssymb 0
-\use_package cancel 0
-\use_package esint 0
+\use_package amsmath 1
+\use_package amssymb 1
+\use_package cancel 1
+\use_package esint 1
\use_package mathdots 1
-\use_package mathtools 0
+\use_package mathtools 1
\use_package mhchem 1
-\use_package stackrel 0
-\use_package stmaryrd 0
-\use_package undertilde 0
+\use_package stackrel 1
+\use_package stmaryrd 1
+\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
-\suppress_date false
+\suppress_date true
\justification true
\use_refstyle 0
+\use_minted 0
\index Index
\shortcut idx
\color #008000
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
-\quotes_language english
+\is_math_indent 0
+\math_numbering_side default
+\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\begin_body
\begin_layout Title
-LyX and Literate Programming
+\SpecialChar LyX
+ and Literate Programming
\begin_inset Newline newline
\end_inset
status collapsed
\begin_layout Plain Layout
-Modified by Bernard Michael Hurley bernardh@westherts.ac.uk ---- Don't blame
+Modified by Bernard Michael Hurley bernardh@westherts.ac.uk —- Don't blame
Edmar for any errors that have crept in!
\end_layout
\emph on
examples/listerrors.lyx
\emph default
- which should be installed in the LyX scripts directory.
-\end_layout
-
-\begin_layout Date
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-today
-\end_layout
-
-\end_inset
-
-
+ which should be installed in the \SpecialChar LyX
+ scripts directory.
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-After typesetting a document, LyX scans the LaTeX log file looking for errors.
+After typesetting a document, \SpecialChar LyX
+ scans the \SpecialChar LaTeX
+ log file looking for errors.
For each error found, the line number is obtained and a error box is displayed
- in the LyX screen at that position.
+ in the \SpecialChar LyX
+ screen at that position.
\end_layout
\begin_layout Standard
To use this feature to view compilation errors while working with literate
documents, we need a program that filters the compilation errors and puts
- them in a format suitable for LyX reading it.
+ them in a format suitable for \SpecialChar LyX
+ reading it.
\end_layout
The filter is required to read from standard input, parse for error messages
and copy the error messages to the standard output.
During the output process, the filter must present the error messages in
- a format that LyX can interpret, currently, the LaTeX error message format.
- Of course, nothing will prevent future LyX releases from being able to
- read other formats as well (like gcc error messages for example).
+ a format that \SpecialChar LyX
+ can interpret, currently, the \SpecialChar LaTeX
+ error message format.
+ Of course, nothing will prevent future \SpecialChar LyX
+ releases from being able to read
+ other formats as well (like gcc error messages for example).
This mechanism is necessary to fully explore the literate programming tool's
capabilities.
\end_layout
status open
\begin_layout Plain Layout
+
Function bodies
\end_layout
status open
\begin_layout Plain Layout
+
Function prototypes
\end_layout
\end_layout
\begin_layout Standard
-The output format mimics the TeX error messages format.
+The output format mimics the \SpecialChar TeX
+ error messages format.
This function prints a number of lines residing in the global variable
\family typewriter
\begin_layout Plain Layout
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
+ a bit easier with \SpecialChar LaTeX
+::scanLogFile().
+ The test has been added because \SpecialChar LyX
+ can crash if empty lines are allowed here
+ — I can't figure out why! — BMH
\end_layout
\end_inset
status open
\begin_layout Plain Layout
+
Function bodies
\end_layout
status open
\begin_layout Plain Layout
+
Function prototypes
\end_layout
status open
\begin_layout Plain Layout
+
Scan input for noweb error messages
\end_layout
status open
\begin_layout Plain Layout
+
Scan input for xlc error messages
\end_layout
status open
\begin_layout Plain Layout
+
Function prototypes
\end_layout
line number is still the same.
At the time they differ, all the accumulated lines, except the last one,
will belong to one single error message, which now can be output-ed to
- LyX.
+ \SpecialChar LyX
+.
\end_layout
\begin_layout Standard
status open
\begin_layout Plain Layout
+
Scan input for gcc error messages
\end_layout
status open
\begin_layout Plain Layout
+
gcc error message criteria is to find a "...:999:" or a "...: "
\end_layout
status open
\begin_layout Plain Layout
+
Function prototypes
\end_layout
status open
\begin_layout Plain Layout
+
Function bodies
\end_layout
status open
\begin_layout Plain Layout
+
Function prototypes
\end_layout
status open
\begin_layout Plain Layout
+
Solaris and Linux systems using both noweb and gcc
\end_layout
status open
\begin_layout Plain Layout
+
listerrors.c
\end_layout
status open
\begin_layout Plain Layout
+
build-script
\end_layout
\end_layout
\begin_layout Standard
-This project can be tangled and compiled from LyX if you set
+This project can be tangled and compiled from \SpecialChar LyX
+ if you set
\family typewriter
\backslash