What is the most proper way to write an atomic state as I have tried in the MWE below?
\documentclass{article} \usepackage{amsmath} \begin{document} $5\text{P}_{1/2}$ \end{document}
Best wishes,
Niles.
\documentclass{article} \usepackage{amsmath} \begin{document} $5\text{P}_{1/2}$ \end{document}
\mathrm
instead:
$5\mathrm{P}_{1/2}$
\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage[version=3]{mhchem} \begin{document} \ce{5P_{1/2}} \end{document}
Stefan_K wrote:Hi Niles,
is it a style question, or a LaTeX question? It depends on your writing style.
Depending on your math and text fonts, you could use\mathrm
instead:
$5\mathrm{P}_{1/2}$
Stefan
localghost wrote:I think that's a job for mhchem.
\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage[version=3]{mhchem} \begin{document} \ce{5P_{1/2}} \end{document}
Thorsten
\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage[version=3]{mhchem} \usepackage{chemmacros} \begin{document} % mhchem: \ce{5\!P_{1/2}} % chemmacros 1: \ch[stoich-space=0pt]{5 P_{1/2}} % chemmacros 2: \ch{"5P" _{1/2}} % regular math: $5\mathrm{P}_{1/2}$ \end{document}
cgnieder wrote:Just to mention another possibility:
\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage[version=3]{mhchem} \usepackage{chemmacros} \begin{document} % mhchem: \ce{5\!P_{1/2}} % chemmacros 1: \ch[stoich-space=0pt]{5 P_{1/2}} % chemmacros 2: \ch{"5P" _{1/2}} % regular math: $5\mathrm{P}_{1/2}$ \end{document}
Regards
Users browsing this forum: No registered users and 1 guest