# Template:Textgather

 {{{1}}} {{{2}}}
Template documentation[view]  [history] [purge]

## Usage

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

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

``` {{textgather|One|[itex]a+b=c[/itex]|Two|[itex]d+e=f[/itex]|Three|[itex]g+h=i[/itex]|Four|[itex]j+k=l[/itex]}}
```

produces:

 One ${\displaystyle a+b=c}$ Two ${\displaystyle d+e=f}$ Three ${\displaystyle g+h=i}$ Four ${\displaystyle j+k=l}$

## Caveats

• Equation width is maximised; this may lead to early line-breaking in the other two arguments if they contain breakable whitespace.

## Limitations

• 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.