Difference between revisions of "Command/fraction"

From Wiki
Jump to navigation Jump to search
(Create reference page)
 
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=fraction
 
|name=fraction
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>fraction</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 23: Line 24:
  
 
== Description ==  
 
== Description ==  
Displays a fraction. In first bracket pair the numerator is set, in the second the denominator.
+
Displays a fraction. In first bracket pair the numerator is set, in the second the denominator. It is the same as
 +
<texcode>
 +
\frac
 +
</texcode>
 +
== Example ==
 +
<texcode>
 +
$\fraction{x^2}{k+1}$
 +
</texcode>
  
== Example ==
+
<context>
<pre class="example">
 
 
$\fraction{x^2}{k+1}$
 
$\fraction{x^2}{k+1}$
</pre>
+
</context>
  
 +
You can define also a wide version of the fraction bar, in case the numerator or denominator contain a fraction:
  
 +
<texcode>
 +
\definemathfraction
 +
[widefrac]
 +
[margin=.25em]
 +
</texcode>
  
== Example ==
+
and then use it as in
<!-- Please fill in an example if you can -->
+
 
 +
<texcode>
 +
\widefrac{a}{\fraction{b}{c}}
 +
</texcode>
 +
 
 +
which gives
 +
 
 +
<context>
 +
\definemathfraction
 +
[widefrac]
 +
[margin=.25em]
 +
\widefrac{a}{\fraction{b}{c}}
 +
</context>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
<!-- something like {{cmd|goto}} -->
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Reference/en|fraction]]
+
[[Category:Command/Mathematics|fraction]]

Latest revision as of 00:26, 15 November 2019

\fraction

Syntax (autogenerated)


Syntax

\fraction{...}{...}
{...} text
{...} text


Description

Displays a fraction. In first bracket pair the numerator is set, in the second the denominator. It is the same as

\frac

Example

$\fraction{x^2}{k+1}$

You can define also a wide version of the fraction bar, in case the numerator or denominator contain a fraction:

\definemathfraction
 [widefrac]
 [margin=.25em]

and then use it as in

\widefrac{a}{\fraction{b}{c}}

which gives

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: