This site is supported by donations to The OEIS Foundation.

Template:LaTeX/Usage

From OeisWiki
Jump to: navigation, search

The {{LaTeX/Usage}} template renders usage of LaTeX code in a consistent manner. It produces a table with highlighted LaTeX code in the inside.

Usage:

{{LaTeX/Usage|code = LaTeX code}}

The parameter must be filled.

The parameter is passed to {{#tag:}} construct so | pipe) characters have to be escaped using the {{!}} template.

Don't try using {{#!:}} construct as it will be passed along (don't know why though).

Examples:

The code

{{LaTeX/Usage
| code = \[ x^2+y^2=z^2{{!}}_{x=<0,1>} \]
}}

yields

\[ x^2+y^2=z^2|_{x=<0,1>} \]