World Library  
Flag as Inappropriate
Email this Article

Lout (software)


Lout (software)

Developer(s) Jeffrey H. Kingston
Stable release 3.40 / June 26, 2013
Written in C
Operating system GNU/Linux, MS-Windows, POSIX compliant systems
Type Text formatting
License GPL

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 License.

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 typical installation of LaTeX, together with TeX binaries takes from 50 to 300 MB, Lout is about 1 MB. This is mainly due to fewer packages and tools, but might also be attributed to a C implementation instead of macro language source code.[1]

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, everything in one package "out of the box". Lout is useful for creating reports and books and gives very precise control over typesetting.


  • Document formatting with Lout 1
  • Programming language features 2
  • References 3
  • External links 4

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 { doc }
   @InitialFont { Times Base 10p }
 # Beginning of document contents.
 @Text @Begin
 This is a paragraph.  One can easily embed @B { bold } or
 @I { italic } text.  One can also easily change the style of
 text, such as { Helvetica Base } @Font { changing the font
 being used }.
 @Section @Title { The First Section }
 This is the content of a section.
 @End @Section
 @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.[2] 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.[3] Unlike most other functional programming languages, Lout does not provide, for instance, first-class functions.


  1. ^ Lout Downloads
  2. ^ Kingston, Jeffrey H (September 1993). "The Design and Implementation of the Lout Document Formatting Language". Software—Practice & Experience 23 (9): 1001–41.  
  3. ^ Kahl, Wolfram (January 1999). "Beyond Pretty-Printing: Galley Concepts in Document Formatting Combinators". 

External links

  • Home page
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.