Bản mẫu:LaTeX/Ví dụ

Từ testwiki
Phiên bản vào lúc 17:56, ngày 11 tháng 12 năm 2022 của imported>Alphama (Tạo trang mới với nội dung “<includeonly>{|style="margin-top: 1.5em; margin-bottom: 1.5em" |- |style="border-right:2px black solid;padding-right:3em;"| {{#if:{{{code|}}}|{{#tag:syntaxhighlight|{{{code}}}|lang=latex}}|Code missing!}} |style="padding-left:3em;"| {{#if:{{{render|}}}|{{{render}}}|Rendering missing!}} |}</includeonly>{{BookCat}}<noinclude> This template is made to render examples of LaTeX usage in a consistent matter. Usage: {{nowrap|{{tlx|{{PAGENAME}}|code<nowiki…”)
(khác) ← Phiên bản cũ | Phiên bản mới nhất (khác) | Phiên bản mới → (khác)
Bước tới điều hướng Bước tới tìm kiếm

Bản mẫu:BookCat This template is made to render examples of LaTeX usage in a consistent matter.

Usage: Bản mẫu:Nowrap 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>}
\]

x2+y2=z2|x=<0,1>

Bản mẫu:BookCat

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