Difference between revisions of "Command/vphantom"
< Command
Jump to navigation
Jump to search
BruceH2020 (talk | contribs) (Initial creation) |
BruceH2020 (talk | contribs) 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> | + | 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
Contents
\vphantom
Summary
The command \vphantom creates an invisible item that has height but no width.
Settings
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