Text Formattingchemistry

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
odenmkwama
Posts: 1
Joined: Sun Nov 10, 2024 3:10 pm

chemistry

Post by odenmkwama »

\documentclass{article}
\usepackage{amsmath}
\begin{document}

To calculate Q_{sp} for PbCl_2, we use:

\[
Q_{sp} = [\text{Pb}^{2+}] \times [\text{Cl}^{-}]^2
\]

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

chemistry

Post by Stefan Kottwitz »

You need to use math mode:

Code: Select all

To calculate $Q_{sp}$ for $PbCl_2$
Or use the chemformula package:

Code: Select all

\documentclass{article}
\usepackage{chemformula}
\begin{document}
To calculate \ch{Q_{sp}} for \ch{PbCl2}, we use:
\[
\ch{Q_{sp}}	 = [\ch{Pb^{2+}}] \times [\ch{Cl-}]^2
\]
\end{document}
Stefan
LaTeX.org admin
Post Reply