Strut (typesetting)
   HOME

TheInfoList



OR:

In
typesetting Typesetting is the composition of text by means of arranging physical ''type'' (or ''sort'') in mechanical systems or '' glyphs'' in digital systems representing '' characters'' (letters and other symbols).Dictionary.com Unabridged. Random ...
, a strut is an invisible character or element, used to ensure that a text has a minimum height and depth, even if no other elements are included. For example,
LaTeX Latex is an emulsion (stable dispersion) of polymer microparticles in water. Latexes are found in nature, but synthetic latexes are common as well. In nature, latex is found as a milky fluid found in 10% of all flowering plants (angiosperms ...
and plain
TeX Tex may refer to: People and fictional characters * Tex (nickname), a list of people and fictional characters with the nickname * Joe Tex (1933–1982), stage name of American soul singer Joseph Arrington Jr. Entertainment * ''Tex'', the Italian ...
Donald E. Knuth. ''The TeXbook'' (
Computers and Typesetting ''Computers and Typesetting'' is a 5-volume set of books by Donald Knuth published in 1986 describing the TeX and Metafont systems for digital typography. Knuth's computers and typesetting project was the result of his frustration with the lac ...
, Volume A). Reading, Massachusetts: Addison-Wesley, 1984. , page 82.
provide the command \strut to insert a font size-specific strut. In
LaTeX Latex is an emulsion (stable dispersion) of polymer microparticles in water. Latexes are found in nature, but synthetic latexes are common as well. In nature, latex is found as a milky fluid found in 10% of all flowering plants (angiosperms ...
Braams, J. and Carlisle, D. and Jeffrey, A. and Lamport, L. and Mittelbach, F. and Rowley, C. and Schöpf, R., ''The LaTeX2e Sources''. 2009/09/24, pages 19 and 129. Available online a
PDF
an
LaTeX source
it has a height of 70% of the baseline skip (the distance between the baselines of two consecutive lines of text) and a depth of 30% of the baseline skip. It ensures that two vertical stacked boxes which include such a strut have the same distance as two normal consecutive lines.
LaTeX Latex is an emulsion (stable dispersion) of polymer microparticles in water. Latexes are found in nature, but synthetic latexes are common as well. In nature, latex is found as a milky fluid found in 10% of all flowering plants (angiosperms ...
also supports the creation of general struts using the command: \rule ''depth'' where \strut is equivalent in size to \rule .3\baselineskip/syntaxhighlight>.


References

{{Reflist Typesetting