lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wishes for lout


From: Basile STARYNKEVITCH
Subject: wishes for lout
Date: Tue, 13 Jan 1998 12:21:54 +0100

Hello All,

Greeting and a happy new 1998 year to everyone!


And again two feature wishes for Lout.

1) I think that all internal files used by lout should be overiddable
at a command option. In particular, I think that the default name
lout.li should be overriddable.

2) I would like that Lout could -at command option- parse line
numbering comments à la cpp. So Lout would recognize comment lines
starting with # at column 1 such as
#line "foo" 35
# 35 "foo"
# 35 "foo" 1

and would update its position to file "foo" line 35.


################

Why am I asking this?

Let's suppose I am preparing a lecture (in a technical university) on
Caml & functional programming. So I want to produce

1) transparent overhead slides (without details)

2) a report containing the lecture notes with details

from a common source.

I'm using CPP to conditionnaly process some Lout. Typical usage
in beginning of file cours.plt

  @SysInclude { fontdefs        } # font definitions
  @SysInclude { langdefs        } # language definitions
  @SysInclude { dl              } # DocumentLayout package
#ifdef SLIDES
  @SysInclude { slidesf         } # OverheadLayout extension
#else
  @SysInclude { docf }
#endif 

and later in the file

Ocaml is a wonderful langage
#ifndef SLIDES
and easy to learn
#endif 

I put the CPP source to lout into course.plt have a makefile like

all: _slides.ps _report.ps

_slides.ps : _slides.lt
        rm -f lout.li
        ln -s _slides_lout.li lout.li
        lout -a -o _slides.ps _slides.lt

_report.ps : _report.lt
        rm -f lout.li
        ln -s _report_lout.li lout.li
        lout -a -o _report.ps _report.lt

_slides:lt : course.plt
        cpp -DSLIDES course.plt > _slides.lt

_report.lt : report.plt
        cpp -DREPORT course.plt > _report.lt

clean:
        rm *.li _*



################

By the way, is there any easy option to make Lout conditionnally
process some stuff? 
    


N.B. Any opinions expressed here are solely mine, and not of my organization.
N.B. Les opinions exprimees ici me sont personnelles et n engagent pas le CEA.


----------------------------------------------------------------------
Basile STARYNKEVITCH   ----  Commissariat à l Energie Atomique 
DRN/DMT/SERMA * CEA/Saclay bat.470 * 91191 GIF/YVETTE CEDEX * France
fax: (33) 01,69.08.85.68; phone: 01,69.08.40.66; home: 01,46.65.45.53
email: Basile . Starynkevitch @ cea . fr  (but remove white space)
I speak french, english, russian. Je parle français, anglais, russe.
----------------------------------------------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]