Skip to content
Surf Wiki
Save to docs
general/typesetting

From Surf Wiki (app.surf) — the open knowledge base

Strut (typesetting)

Invisible character in typesetting


Invisible character in typesetting

In typesetting, 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 and plain TeX Donald E. Knuth. The TeXbook (Computers and Typesetting, Volume A). Reading, Massachusetts: Addison-Wesley, 1984. , page 82. provide the command \strut to insert a font size-specific strut. In LaTeX 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 as PDF and 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 also supports the creation of general struts using the command: \rule[-depth]{0pt}{total height}

where \strut is equivalent in size to \rule[-.3\baselineskip]{0pt}{\baselineskip}.

References

Info: Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Strut (typesetting) — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report