Changes

Jump to navigation Jump to search
m
Text replacement - "</cmd>" to "}}"
==LaTeX== In LaTeX===, it's fairly easy to produce vertically centered boxes, using optional arguments to either the <code>\parbox</code> command or the <code>tabular</code> environment, as in this example. 
<texcode>
\documentclass{article}
</texcode>
==ConTeXt == In ConTeXt:===, the {{cmd|framed}} command can be used to produce similar results. To produce exactly the same output as the LaTeX commands requires the specification of rather more options, but this is mainly because the defaults are different.
<texcode>
{1 2 3}
</texcode>
 
This produces the following pair of results:
<context>
</context>
If you need This is simply a replacement for the vertical centering; to replace a <code>tabular</code> environment that's a proper table (the one above only had with more than one column), use <code>\bTABLE ... \eTABLE</code> or something similar instead of <code>1\\2\\3</code>. See the [[Tables Overview]] for more possibilitiesa discussion of the different methods for doing tables in ConTeXt.  A broken example (for the second box):
<context>\setupTABLE[frame=on[Category:Basics]]\setupTABLE[c][1,2][align=lohiCategory:From LaTeX]\bTABLE\bTR\bTD a midaligned parbox:\eTD\bTD[offset=0pt,width=1em] 1 2 3\eTD\eTR\eTABLE</context>

Navigation menu