Jump to content

ഫലകം:LaTeX/Example

വിക്കിപാഠശാല, ഒരു സ്വതന്ത്ര ഉള്ളടക്കത്തോടുകൂടിയ പാഠശാല.

This template is made to render examples of LaTeX usage in a consistent matter.

Usage: {{LaTeX/Example|code=latex code|render=rendering}} produces a table with LaTeX code on the left and the supplied rendering (either as an image or <math></math> tag) on the right, that looks like this:

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

Both parameters should be filled.

The first parameter (code) 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>}
\]|render=<math>x^2+y^2=z^2|_{x=<0,1>}</math>}}

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

"https://ml.wikibooks.org/w/index.php?title=ഫലകം:LaTeX/Example&oldid=16559" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്