LOUT(1)
β¨ NAME β¨
lout β get your Lout document ready for printing, bestie π
π SYNOPSIS π
lout [ options ] file...
πΈ DESCRIPTION πΈ
Okay so here's the tea, bestie: you run the Basser Lout interpreter over all those named files smushed together (concatenation, iykyk), and it spits out a PostScript file on standard output that's literally ready to go to a PostScript printer via lpr(1). Chef's kiss. π¨οΈβ¨
If you don't name any files at all? No worries, it just reads from stdin instead. And the special file name - also means "yep, standard input, that's the one." π«Ά
Also super chill detail: white space between flags and their associated option values is optional. So you can breathe, it's not gonna be mad at you. π
Oh and also β an optional .lt suffix may be used for Lout source and include files. And when you're invoking files that end in that suffix, you can just... omit the suffix. Slay, no cap. π¦
π OPTIONS π
π Output
-ofilename β send the output to filename instead of tostdout. Obsessed with a little redirect, honestly.-efilename β send those error messages to filename instead of tostderr. Keep your mess contained, queen. π-aβ use the"filename:linenum:colnum:message"alternative error message format. So useful with Emacs compilation mode and other tools. It's giving "I know exactly where the problem is." π₯
π Output format
-EPSβ produce output as an EPS (Encapsulated PostScript) file, which is suitable for inclusion in another document. Perfect for stand-alone illustrations. Iconic behavior. β¨-pβ produce plain text output instead of PostScript. Simple. Clean. Lowkey underrated. π-Pβ like-p, but with a form-feed character between pages. Page breaks, but make it text. π-Zβ produce Adobe Portable Document Format (PDF) output. This includes links, but heads up β the more advanced graphics packages of Lout are not supported. F in the chat for the fancy graphics. π-PDFβ a synonym for-Z. Same energy, different name. π¦-tβ ignore texture-changing options; everything that would otherwise have been printed using a texture will be printed in solid colour instead. Flattened. Grounded. Periodt.
π Cross-reference database
-sβ suppress all reading and writing of the cross reference database; other databases are not affected. Super useful when many simple documents that don't do any cross referencing are stored in one directory. No cross-refs, no drama. π-lβ use ASCII order when sorting index entries etc.; the default depends on theCOLLATEcompilation option (use the-Voption to find out your default value). Go find out your truth, bestie. π-Lβ use your locale's order when sorting index entries etc.; the default depends on theCOLLATEcompilation option (use the-Voption to find out your default value). Same vibe check, different sort. π
π Execution of filters
-Sβ Safe execution: disable all calls tosystem(3), instead echoing the commands that would have been executed. Although this makes the Lout run certainly safe, the PostScript output file may not be. Bestie, read that twice. π-Uβ Unsafe execution: allow calls tosystem(3). This is usually the default behavior, but it is possible to make safe execution the default during installation (use the-Voption to find out whether this was done or not), hence the need for this flag. Mystery flag, solved. π΅οΈ
π Changing document setup options
--option{value}β set setup file option option to value, overriding any value assigned to option in the setup file. For example,--@PageType{Letter}will set the@PageTypesetup file option toLetter. The value may be a sequence of words but not an arbitrary Lout object. If there are spaces you must ensure that it is passed to Lout as a single option; the usual way to do this is to enclose it in quotes. Quotes are your bestie here, fr fr. π«Ά
π Searching for files
-ifilename β search the directories of the include file path (see below) for filename orfilename.ltand include it. There may be multiple-ioptions. Stack 'em up. π-Idirname β add dirname to the list of directories searched for@Includefiles and-ioption files. There may be multiple-Ioptions.@Includefirst searches the current directory, then searches the-Idirectories in the order given, and finally searches the default include file directory (see below).@SysIncludeand the-ioption omit the search of the current directory. Order matters, bestie. π-Cdirname β add dirname to the list of directories searched for Lout character mapping (.LCM) files. There may be multiple-Coptions; the directories are searched in the order given, and finally the default character mappings directory is searched (see below). π-Fdirname β add dirname to the list of directories searched for font metrics (formerly.AFM) files. There may be multiple-Foptions; the directories are searched in the order given, and finally the default font metrics directory is searched (see below). Fonts, but make it a quest. π€-Hdirname β add dirname to the list of directories searched for hyphenation patterns files, both unpacked (.lh) and packed (.lp). There may be multiple-Hoptions; the directories are searched in the order given, and finally the default hyphenation directory is searched (see below). π¦-Ddirname β add dirname to the list of directories searched for Lout database files. There may be multiple-Doptions.@Databasesearches the current directory, then the-Ddirectories in the order given, and finally searches the default databases directory (see below).@SysDatabaseomits the search of the current directory. ποΈ
π Miscellaneous options
-rnum β run Lout num times, producing output only on the last run. Useful for bringing cross references up to date quickly. Run it back, run it back. π-xβ initializing run, not for ordinary use: read and check all font files mentioned in font definitions, read and check all hyphenation files mentioned in language definitions and build compressed versions, read and check all database files mentioned in database clauses and build index files. This is the setup grind. π€-uβ print usage information onstderrand exit. A little "here's how you use me" moment. π-Vβ print version information onstderrand exit. Who am I? Find out. β¨-Mβ use less memory and run more slowly (the cross reference database index will be kept in a file rather than in memory). Trade-offs, bestie, trade-offs. π-wβ show the total number of non-empty words printed in the output file. This includes words and numbers in page headers and footers; section numbers and other numbers; every punctuation character in a font different from its adjacent word; and every little fragment of every equation; so it will always somewhat overestimate the true number. It's an estimate, it said what it said. π
π§ FILES AND ENVIRONMENT VARIABLE π§
- Default include file directory:
LOUTLIB/include - Default databases directory:
LOUTLIB/data - Default font metrics directory:
LOUTLIB/font - Default hyphenation directory:
LOUTLIB/hyph - Default character mappings dir.:
LOUTLIB/maps - Default locales directory:
LOUTLIB/locale
The default library directory, usually /usr/local/lib/lout, can be changed by setting environment variable LOUTLIB to an alternative directory name. Glow up your library path whenever you want. π
π SEE ALSO π
prg2lout(1), lpr(1), ghostview(1)
π REFERENCES π
Jeffrey H. Kingston, βA User's Guide to the Lout Document Formatting Systemβ, and βAn Expert's Guide to the Lout Document Formatting Systemβ.
π AUTHOR π
Jeffrey H. Kingston
And that's a wrap on the LOUT(1) page, bestie β it lives in the General Commands Manual, and the very last line of the original just says LOUT(1) again like a lil signature. No version, no date, just the manual name serving looks one more time. π
πβ¨
π¦ where this page comes from
- arch rolling: lout 3.43.4-1 Β· GPL-3.0-or-later
- fedora 43: lout 3.40-30.fc43 Β· GPL-2.0-or-later
- fedora 44: lout 3.40-31.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lout 3.41.0-bp160.1.34 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lout 3.41.0-bp160.1.34 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lout 3.41.0-bp160.1.34 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lout 3.41.0-bp160.1.34 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms