Lout: program pemrosesan dokumen level tinggi a la LaTeX


Lout merupakan salah satu program untuk melakukan pemformatan dokumen dengan fitur yang sederhana, koheren dan bahasa level tinggi. Dst. belum mikir lagi...

Lihat contoh type setting lout pada box berikut ini.

# Ini semacam preamble kalau di LaTeX
@SysInclude { graph }
@SysInclude { tbl }
@SysInclude { eq }
@SysInclude { doc }
@Doc @Text @Begin

# Penulisan text dimulai dari sini...
24p @Font {
@Center { @Box grey @Color {Contoh typesetting program Lout} }
}
@LLP

@PP
18p @Font {
90d @Rotate { blue @Colour {
@Eq { big sum from i=0 to n r sup i = {r sup n+1 - 1} over r-1 }
@LLP
@Eq { big int supp 1 on 0 dx over sqrt{1 - x sup 2} = pi over 2 }
@LLP
@Eq { {a, ... , z} widefrom {90d @Rotate blbrace} }
} }
@LLP

@PP
@Tbl
rulewidth { 0.05f }
rulegap { 1f }
aformat { @StartHSpan @Cell indent { ctr } @B A | @HSpan | @HSpan}
bformat { @Cell @I A | @Cell indent { align } B | @Cell indent { align } C }
{
@Rowa
ruleabove { yes }
A { Contoh rumus matematik }
rulebelow { yes }
@Rowb
A { Quadratic formula }
B { @Eq { x ^= { -b +- sqrt {b sup 2 - 4ac} } over 2a } }
C { 3^.5 }
@Rowb
A { Binomial theorem }
B { @Eq { (a + b) sup n ^= big sum from k=0 to infty
matrix
atleft {(}
atright {)}
{
row col n
row col k
}
a sup k b sup {n-k} } }
C { 12^ }
rulebelow { yes }
}}
@LLP

@PP
@Center {
1.75 @Scale {
@Graph
abovecaption { Grafik iseng }
{
@Data points { plus } pairs { dashed }
{ 1963 5.6 1971 4.3 1976 3.7 1979 3.4 1982 2.9 1985 2.3 1988 2.0 }
}}}

@End @Text

Kalau ketikan di atas disimpan dalam file test.l lalu dikompilasi dengan program lout dengan perintah:

$ lout test.l > test.ps
$ ps2pdf test.ps

akan dihasilkan dengan tampilan sebagai berikut.

Contoh yang lainya: