arch-wiki-md-repo
Version:
All arch-wiki articles in markdown format, updated every two days.
50 lines (32 loc) • 1.73 kB
Markdown
[Lout](http://savannah.nongnu.org/projects/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.
## Installation
[Install](/index.php/Install "Install") the [lout](https://www.archlinux.org/packages/?name=lout) package.
In order to enable cyrillic printout, fonts need to be installed separately (e.g [lout-dejavu](https://aur.archlinux.org/packages/lout-dejavu/)).
## Using
Lout supports only one byte encoding, thus you need to use specific character map in case of non-english input.
`example.lout`
```
@SysInclude {doc}
@SysInclude {dejavu}
@Document
@InitialFont { DejaVuSerif Base 12p}
@InitialLanguage { Russian }
@Text @Begin
@Display @Heading {Russian language example}
@LP
Параграф на русском языке.
@End @Text
```
[Core utilities#iconv](/index.php/Core_utilities#iconv "Core utilities") 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](/index.php/Ps2pdf "Ps2pdf") could be used to covert post script file to pdf:
```
$ ps2pdf example.ps example.pdf
```
## See also
* [A User's Guide to the Lout Document Formatting System](https://src.fedoraproject.org/repo/pkgs/lout/user-guide.pdf/10b5825ad7e3e9d801aab159bce41545/user-guide.pdf)
* [An Expert’s Guide to the Lout Document Formatting System](https://src.fedoraproject.org/repo/pkgs/lout/expert-guide.pdf/6952736ef663234ad0585ac7de29ccd6/expert-guide.pdf)
* [Lout on Wikipedia](https://en.wikipedia.org/wiki/Lout_(software) "wikipedia:Lout (software)")