Difference between revisions of "Command/lohi"

From ConTeXt wiki
m
(fixed the example: alpha particles)
Line 33: Line 33:
 
Today is the 3\high{rd} March 2010. \par
 
Today is the 3\high{rd} March 2010. \par
 
The lethal concentration L\low{50} varies with the temperature.\par  
 
The lethal concentration L\low{50} varies with the temperature.\par  
Alpha particles are \lohi[left]{40}{2}He. \par
+
Alpha particles are \lohi[left]{2}{4}He\high{2+}. \par
 
</context>
 
</context>
  

Revision as of 09:44, 18 October 2012

\lohi, \hilo

Syntax

\lohi[...]{...}{...}, or \hilo[...]{...}{...}
[...] left
{...} text
{...} text

Description

Place a subscript and a superscript above it, instead of one after the other. \lohi expects the subscript first; \hilo is simply a wrapper around \lohi that expects the superscript first. You can provide an optional keyword left, in which case the super- and subscript will be right-aligned to permit placement at the left of a word.

Example

Today is the 3\high{rd} March 2010. \par
The lethal concentration L\low{50} varies with the temperature.\par 
Alpha particles are \lohi[left]{2}{4}He\high{2+}. \par

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: