From ArchWiki
Jump to: navigation, search

Lout is a lightware document formatting system invented by Jeffrey H. Kingston. It reads a high-level description of a document similar in style to LaTeX and produces a PostScript.


Install the lout package.

In order to enable cyrillic printout, fonts need to be installed separately (e.g lout-dejavuAUR[broken link: package not found]).


Lout supports only one byte encoding, thus you need to use specific character map in case of non-english input.

@SysInclude {doc}
@SysInclude {dejavu}
  @InitialFont { DejaVuSerif Base 12p}
  @InitialLanguage { Russian }
@Text @Begin

@Display @Heading {Russian language example}

Параграф на русском языке.

@End @Text

Core utilities#iconv could be used to obtain required encoding, before feed source to lout:

$ iconv -f utf-8 -t koi8-r example.lout example.koi8-r.lout
$ lout  example.koi8-r.lout example.ps

Ps2pdf could be used to covert post script file to pdf:

$ ps2pdf example.ps example.pdf

See also