Modèle:LaTeX/Usage
De LaTeX
Révision de 14 avril 2011 à 11:19 par Nicolas Brouard (discuter | contributions) (Page créée avec « <includeonly>{|style="margin-top: 1.5em; margin-bottom: 1.5em" |- |style="padding-left:3em;"| {{#if:{{{code|}}}|{{#tag:source|{{{code}}}|lang=latex|enclose=none}}|Code missin... »)
This template is made to render usage of LaTeX code in a consistent matter.
Usage: {{LaTeX/Usage|code=latex code}} produces a table with hihlighted LaTeX code in the inside, that looks like this:
|
\[ |
The parameter must be filed.
The parameter is passed to {{#tag}} construct so | pipe) characters have to be escaped using the {{!}} template. This makes the example to be written as such:
{{LaTeX/Example|code=\[
x^2+y^2=z^2{{!}}_{x=<0,1>}
\]}}
Don't try using {{#!:}} construct as it will be passed along (don't know why though).