- Rhymes: -aʊt
Etymology 1Of dialectal origin.
Lout is a batch document formatter invented by Jeffrey H. Kingston. It reads a high-level description of a document similar in style to LaTeX and produces a PostScript file which can be printed on most printers. Plain text and PDF output are also available. The term Lout primarily designates a document formatting programming language, while the (only) implementation of the language (by Jeffrey H. Kingston) is sometimes referred to as Basser Lout. Basser Lout is Free Software, distributed under the terms of the GNU General Public Licence.
Lout copies some of its formatting algorithms from TeX but is intended to be much easier to program due to the use of high-level functional programming language, instead of a macro language.
While a usable set of LaTeX modules together with TeX binaries takes from 50 to 300 MB, Lout is about 1 MB.
Lout comes with an easy-to-read user guide, and the basics can be learnt in a couple of hours. It includes packages for creating tables, charts, equations, and diagrams, so you have pretty well everything in one package "out of the box". Lout is useful for creating reports and books and gives very precise control over typesetting. Its main disadvantages are that it can only produce PostScript and there is no easy way to get XML or any other output format (apart from plain text).
A lout is also a noun defined by the Cambridge dictionary as 'a young man who behaves in a very rude, offensive and sometimes violent way'.
Document Formatting With Lout
While the core of the Lout programming language provides only low-level operations, similar to that of TeX, the packages that come with Basser Lout provide a complete high-level markup language that users may use directly to produce documents, in a way that is similar to LaTeX.
A very simple Lout document may look like this:
# This is a comment. # Use the `doc' document class and its default style. @SysInclude @Document @InitialFont // # Beginning of document contents. @Text @Begin @PP This is a paragraph. One can easily embed @B or @I text. One can also easily change the style of text, such as @Font . @BeginSections @Section @Title @Begin @PP This is the content of a section. @End @Section @EndSections @End @Text # End of the document.
Different document types are available: doc, report, book, but also slides (for overhead transparencies) and illustration (for stand-alone illustrations). Customizing a document style is usually relatively easy, even to the non-programmer.
Programming Language Features
The Lout programming language is similar to other functional languages. The core programming language consists of less than 30 primitive operators. Some features make it particularly close to Haskell, notably the fact that Lout expressions are lazily evaluated. Lout also provides constructs needed for the implementation of document formatting that are not commonly found in other programming languages, such as galleys. Unlike most other functional programming languages, Lout does not provide, for instance, first-class functions.
lout in German: Lout
lout in French: Lout
Babbitt, Philistine, arriviste, babe, blockhead, blunderer, blunderhead, boor, botcher, bounder, bourgeois, bucolic, bumbler, bumpkin, bungler, cad, child, child of nature, churl, clod, clodhopper, clodknocker, clot, clown, country bumpkin, deride, dolt, dove, dupe, epicier, farmer, fumbler, gawk, gawky, gowk, groundling, guttersnipe, hayseed, hick, hillbilly, hooligan, ill-bred fellow, infant, ingenue, innocent, klutz, lamb, lobster, looby, low fellow, lubber, lummox, lump, mere child, mock, mucker, noble savage, nouveau riche, oaf, ox, palooka, parvenu, peasant, quiz, rally, razz, ribald, rough, roughneck, rowdy, rube, ruffian, rustic, scout, simple soul, slouch, slubberer, taunt, twit, unsophisticate, upstart, vulgarian, vulgarist, yokel