]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/Literate.lyx
Amend and extend 9f3518bc
[lyx.git] / lib / examples / Literate.lyx
index 050963611c3a3d97003f85e2bbb8691598099300..599f5c9b0e38a9ff9164484fe4e29353724d4b91 100644 (file)
@@ -1,7 +1,9 @@
-#LyX 2.1 created this file. For more info see http://www.lyx.org/
-\lyxformat 474
+#LyX 2.2 created this file. For more info see http://www.lyx.org/
+\lyxformat 508
 \begin_document
 \begin_header
+\save_transient_properties true
+\origin /systemlyxdir/examples/
 \textclass article
 \use_default_options false
 \begin_modules
@@ -12,16 +14,16 @@ noweb
 \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
 \graphics default
 \default_output_format default
 \output_sync 0
@@ -73,7 +75,8 @@ noweb
 \begin_body
 
 \begin_layout Title
-LyX and Literate Programming
+\SpecialChar LyX
+ and Literate Programming
 \begin_inset Newline newline
 \end_inset
 
@@ -90,7 +93,7 @@ edmar-w-jr@technologist.com
 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
 
@@ -110,7 +113,8 @@ Note:
 \emph on
 examples/listerrors.lyx
 \emph default
- which should be installed in the LyX scripts directory.
+ which should be installed in the \SpecialChar LyX
+ scripts directory.
 \end_layout
 
 \begin_layout Date
@@ -143,15 +147,19 @@ Introduction
 \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
 
@@ -164,9 +172,12 @@ In this document we present a filter that recognizes compilation error messages
 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
@@ -401,7 +412,8 @@ The output format
 \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
@@ -414,9 +426,11 @@ status collapsed
 
 \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
@@ -1165,7 +1179,8 @@ The gcc compiler error messages are more complicated to scan.
  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
@@ -2144,7 +2159,8 @@ gcc -g -o listerrors listerrors.c
 \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