Thực đơn
Bản_mẫu:Tmath Cách sử dụng{{tmath|expression}}
{{tmath|a}}
đưa ra a {\displaystyle a} {{tmath|\pi}}
đưa ra π {\displaystyle \pi } {{tmath|x_0}}
đưa ra x 0 {\displaystyle x_{0}} The template is intended to be used for very short LaTeX mathematical expressions like variables. It is more cumbersome to use for equations or other expressions containing special signs that have to be escaped, like the equal sign =
with {{=}}
and the vertical pipe |
with {{!}}
:
{{tmath|E {{=}} mc^2}}
đưa ra E = m c 2 {\displaystyle E=mc^{2}} {{tmath|x {{=}} {{!}} \vec {{(}} x {{)}} {{!}} }}
đưa ra x = | x → | {\displaystyle x=|{\vec {x}}|} Apart from using the {{(}}
and {{)}}
templates to get {
and }
, you may use the braces {
and }
as long as {
is not preceded or followed by another {
, and }
is not preceded or followed by another }
, e.g.
{{tmath|x {{=}} {{!}} \vec{x} {{!}} }}
đưa ra x = | x → | {\displaystyle x=|{\vec {x}}|} {{tmath|\zeta(2) {{=}} \frac{\pi^2}{6} }}
parses (you added that space!) to ζ ( 2 ) = π 2 6 {\displaystyle \zeta (2)={\frac {\pi ^{2}}{6}}} {{tmath|\zeta(2) {{=}} \frac{\pi^2}{6}}}
fails to parse (you forgot that space!), v.g. Không thể phân tích cú pháp (lỗi cú pháp): {\displaystyle \zeta(2) = \frac{\pi^2}{6}}{{tmath|\frac{1}{ x^{2n+1} } }}
parses (you added all those spaces!) to 1 x 2 n + 1 {\displaystyle {\frac {1}{x^{2n+1}}}} {{tmath|\frac{1}{x^{2n+1}} }}
fails to parse (you forgot some of those spaces!), v.g. Không thể phân tích cú pháp (lỗi cú pháp): {\displaystyle \frac{1}{x^{2n+1} }}Thực đơn
Bản_mẫu:Tmath Cách sử dụngLiên quan
Bản Máy Bản mở rộng Bản Mế Bản Motet Bản Mù Bản mạch chủ Bản mẫu Bản danh sách của Schindler Bảng mã IOC Bản quyền thể thao tại Việt NamTài liệu tham khảo
WikiPedia: Bản_mẫu:Tmath