Difference between revisions of "Command/vphantom"

From Wiki
Jump to navigation Jump to search
(Initial creation)
 
m
Line 1: Line 1:
 
<cd:commandgroup name="vphantom" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
 
<cd:commandgroup name="vphantom" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
 
<cd:shortdesc><!-- a short command summary goes here -->
 
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\vphantom</tt> is used to create an invisible item that has height but no width.
+
The command <tt>\vphantom</tt> creates an invisible item that has height but no width.
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:variants>
 
<cd:variants>

Revision as of 20:02, 21 August 2021


\vphantom

Summary

The command \vphantom creates an invisible item that has height but no width.

Settings

\vphantom{...}
{...}content

Description

\vphantom typesets the supplied content and then throws it away, leaving a 'phantom' i.e. an invisible item that has zero width but the maximum height of the phantom text. This then influences the height of what follows.

Examples

Aligning the height of square root (radical) signs

\startformula \sqrt[3]{4n} \ne \sqrt[3] {n} \stopformula \startformula \sqrt[3]{4n} \ne \sqrt[3] {\vphantom{4} n} \stopformula

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: