1. Gói lệnh chemarrow.sty - biểu diễn phương
trình hóa học
Nguyễn Hữu Điển
Khoa Toán - Cơ - Tin học
ĐHKHTN Hà Nội, ĐHQGHN
1 Giới thiệu gói lệnh
Biểu diễn phương trình hóa học có gói lệnh chemarrow.sty với cách sử dụng đưa vào
usepackage{chemarrow} gói này kết hợp với amsmath.sty để dóng công thức hóa học. Nghĩa
là với biến đổi công thức hóa học nhiều dòng ta có thể các môi trường toán và đánh số cho
công thức. Gói lệnh có tại
http://tug.ctan.org/tex-archive/macros/latex/contrib/chemarrow/
Sau đây là các lệnh trong gói lệnh.
2 Cách sử dụng
1. Ký hiệu dấu đẳng thức với lệnh arro
{arrosymbol{65}}
{arrosymbol{66}}
{arrosymbol{67}}
{arrosymbol{68}}
{arrosymbol{69}}
{arrosymbol{70}}
{arrosymbol{71}}
A B C D E F G
{Huge
{arrosymbol{65}}
{arrosymbol{66}}
{arrosymbol{67}}
{arrosymbol{68}}
{arrosymbol{69}}
{arrosymbol{70}}
{arrosymbol{71}}
}
A B C D E F G
Ta có thể định nghĩa các công thức chất hóa học
newcommand{aqua}{ensuremath{text{H}_{text{2}}text{O}}}
newcommand{acid}{ensuremath{text{H}_{text{3}}text{O}^{text{+}}}}
newcommand{base}{ensuremath{text{OH}^{text{$-$}}}}
1
2. http://nhdien.wordpress.com - Nguyễn Hữu Điển 2
và sử dụng chúng trong các công thức sau
2. Lệnh chemarrow mũi tên và công thức dùng trong môi trường toán đánh số hoặc không
như
begin{equation*}
aqua + aqua chemarrow acid + base
end{equation*}
H2O + H2O A H3O+
+ OH−
và đánh số công thức (1) ở dưới
begin{equation}label{ct:hoa1}
aqua + aqua chemarrow acid + base
end{equation}
H2O + H2O A H3O+
+ OH−
(1)
3. Lệnh rarrowfill {2.5em} mũi tên phải có độ dài
begin{equation*}
aqua + aqua rarrowfill{2.5em} acid + base
end{equation*}
H2O + H2O GGGGGA H3O+
+ OH−
4. Lệnh larrowfill {2.5em} mũi tên trái có độ dài
begin{equation*}
aqua + aqua larrowfill{2.5em} acid + base
end{equation*}
H2O + H2O D GGGGG H3O+
+ OH−
5. Lệnh rightleftharpoonsfill {2.5em} nửa mũi tên phải và trái.
begin{equation*}
aqua + aqua rightleftharpoonsfill{2.5em} acid + base
end{equation*}
H2O + H2O GGGGBF GGGG H3O+
+ OH−
6. Lệnh leftrightharpoonsfill {2.5em} nửa mũi tên trái và phải.
begin{equation*}
aqua + aqua leftrightharpoonsfill{2.5em} acid + base
end{equation*}
H2O + H2O E GGGGGGGGC H3O+
+ OH−
7. Lệnh autorightleftharpoons mũi tên có điều kiện
3. http://nhdien.wordpress.com - Nguyễn Hữu Điển 3
begin{equation*}
aqua + aqua autorightleftharpoons{$k_a$}{$k_b$} acid + base
end{equation*}
H2O + H2O
ka
GGGGGGBF GGGGGG
kb
H3O+
+ OH−
8. Lệnh autoleftrightharpoons
begin{equation*}
aqua + aqua autoleftrightharpoons{$k_a$}{$k_b$} acid + base
end{equation*}
H2O + H2O
ka
E GGGGGGGGGGGGC
kb
H3O+
+ OH−
9. Lệnh autorightarrow
begin{equation*}
aqua + aqua autorightarrow{$k_a$}{$k_b$} acid + base
end{equation*}
H2O + H2O
ka
GGGGGGA
kb
H3O+
+ OH−
10. Lệnh autoleftarrow
begin{equation*}
aqua + aqua autoleftarrow{$k_a$}{$k_b$} acid + base
end{equation*}
H2O + H2O
ka
D GGGGGG
kb
H3O+
+ OH−
11. Ta có thể sắp xếp nhiều công thức một lúc
begin{align*}
aqua + aqua &leftrightharpoonsfill{2.5em} acid + base
aqua + aqua &autoleftarrow{$k_a$}{$k_b$} acid + base
end{align*}
H2O + H2O E GGGGGGGGC H3O+
+ OH−
H2O + H2O
ka
D GGGGGG
kb
H3O+
+ OH−