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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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