GeneralHow to right align left superscript with left subscript

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
yoyoimut
Posts: 120
Joined: Mon Oct 19, 2009 6:58 am

How to right align left superscript with left subscript

Post by yoyoimut »

Dear all,

Please see my screenshot below for the detail.

Chemistry.jpg
Chemistry.jpg (61.27 KiB) Viewed 8959 times

Code: Select all

\documentclass{article}
\usepackage{graphicx}

\newcommand{\scale}{15}
\begin{document}

\verb|$_{123}^{~\hfill23}\textrm{U}$|\\[1cm]

\scalebox{\scale}{$_{123}^{~\hfill23}\textrm{U}$}

\end{document}
Thank you in advance.

regards,


yoyo
Last edited by yoyoimut on Thu Oct 28, 2010 1:01 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

How to right align left superscript with left subscript

Post by josephwright »

The usual advice here is to use the mhchem package:

Code: Select all

\documentclass{article}
\usepackage[version=3]{mhchem}
\begin{document}
\ce{^{23}_{123}U}
\end{document}
Joseph Wright
yoyoimut
Posts: 120
Joined: Mon Oct 19, 2009 6:58 am

Re: How to right align left superscript with left subscrip

Post by yoyoimut »

Thank you Joseph!

It is the best solution.


regards,

Yoyo
Post Reply