Template:Textgather
Appearance
{{{1}}} | {{{2}}} |
Usage
[edit]This template may be used to gather several equations with left-flushed text.
{{textgather|text1|eq1 [ |text2|eq2 [ |text3|eq3 … ] ] }}
The template has an even number of arguments.
- The odd arguments produce left-flushed text.
- The even arguments produce centred equations.
Currently, the template supports up to four lines of equations, but this may easily be expanded. NOTE: providing up to 4 lines of equations right now; add more if you need more
Effects
[edit]The odd arguments, the texts, are displayed flushed-left. The even arguments, the equations, are displayed centred at full width. The text arguments may be empty. One odd argument and the following even arguments produce one line of text.
Example
[edit]{{textgather|One|<math>a+b=c</math>|Two|<math>d+e=f</math>|Three|<math>g+h=i</math>|Four|<math>j+k=l</math>}}
produces:
One | ||
Two | ||
Three | ||
Four |
Caveats
[edit]- Equation width is maximised; this may lead to early line-breaking in the other two arguments if they contain breakable whitespace.
Limitations
[edit]- If the total length of all arguments is too great, unintended line-breaking and overlapping may occur.
- Currently, only up to four equations (eight parameters) are supported, but more may be added easily.