Wikia

LaTeX Wiki

UsageTable

Talk0
110pages on
this wiki

Template page

Template documentation (for the above template, sometimes hidden or invisible)

{{UsageTable}} is used to start a LaTeX usage table. Each row of the table is created using {{UsageTable-row}} and the table ends with {{UsageTable-end}}. For example:

{{UsageTable}}
{{UsageTable-row|\int_0^\pi \sin(x) \, \mathrm{d}x||example of integral syntax}}
{{UsageTable-end}}

Provides this table:

LaTeX markup... ...results in: ...is used for:
\int_0^\pi \sin(x) \, \mathrm{d}x \int_0^\pi \sin(x) \, \mathrm{d}x example of integral syntax

If you don't want the third column. then you may explicitly omit it using {{UsageTable|3=}}, and omitting the third parameter of each {{UsageTable-row}}. Also, if the "markup" column is different from the "results" column, each can be specified, as in this example:

{{UsageTable|3=}}
{{UsageTable-row|\int_0^\pi <any function> \mathrm{d}x|\int_0^\pi \sin(x) \, \mathrm{d}x}}
{{UsageTable-end}}

Provides this table:

LaTeX markup... ...results in:
\int_0^\pi <any function> \mathrm{d}x \int_0^\pi \sin(x) \, \mathrm{d}x

If you want to change the titles, include them as parameters of {{UsageTable}}. Note that in the {{UsageTable-row}} template, omitted columns show up without a border, as in this example:

{{UsageTable|column 1 heading|column 2 heading|column 3 heading}}
{{UsageTable-row|\int_0^\pi <any function> \mathrm{d}x|\int_0^\pi \sin(x) \, \mathrm{d}x}}
{{UsageTable-end}}

Provides this table:

column 1 heading column 2 heading column 3 heading
\int_0^\pi <any function> \mathrm{d}x \int_0^\pi \sin(x) \, \mathrm{d}x

Usage notesEdit

Curly braces
Be extra careful of the closing curly braces in mathematical formulas so that no two are consecutive. This means instead of \sqrt{\frac{3}{4}}, you need to write \sqrt{frac{3}{4} }, and if your formula ends with a curly brace, put one more space after it so the only two consecutive curly braces are the ones that end the template invocation.

Visit Template:UsageTable/doc to edit this text! (How does this work?)

Around Wikia's network

Random Wiki