跳至內容

「Template:化学方程式」:修訂間差異

出自锑星百科
化学方程式简便输入
 
增加文档
第1行: 第1行:
{{#tag:math|\mathrm{ {{{1|}}} {{#if:{{{r|}}}|{{#if:{{{cond|}}}|\xleftrightarrow{ {{{cond|}}} }|\longleftrightarrow}}|{{#if:{{{cond|}}}|\xrightarrow{ {{{cond|}}} }|\longrightarrow}}}} {{{2|}}} } }}
{{#tag:math|\mathrm{ {{{1|}}} {{#if:{{{r|}}}|{{#if:{{{cond|}}}|\xleftrightarrow{ {{{cond|}}} }|\longleftrightarrow}}|{{#if:{{{cond|}}}|\xrightarrow{ {{{cond|}}} }|\longrightarrow}}}} {{{2|}}} } }}<noinclude>{{化学方程式/doc}}</noinclude>

於 2020年2月16日 (日) 06:55 的修訂

<math>\mathrm{ \longrightarrow } </math>

這是模板{{化學方程式}}的文檔

使用方法:

{{化學方程式|反應物|生成物|r=是否可逆|cond=反應條件}}

r為空時默認不可逆,其他情況為可逆。
注意本模板參數除r外均為LaTeX命令,不熟悉LaTeX者請先查閱相關資料。

示例:

代碼:
{{化學方程式|2Na+Cl_2|2NaCl}}

效果:

<math>\mathrm{ 2Na+Cl_2 \longrightarrow 2NaCl } </math>
代碼:
{{化學方程式|2NaHCO_3|Na_2CO_3+H_2O+CO_2\uparrow|cond=\Delta}}

效果:

<math>\mathrm{ 2NaHCO_3 \xrightarrow{ \Delta } Na_2CO_3+H_2O+CO_2\uparrow } </math>

Cookies 幫助我們給予服務內容。依您有使用我們的服務,代表您同意我們使用 cookies。