LaTeX forum ⇒ GeneralHow to right align left superscript with left subscript

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

How to right align left superscript with left subscript

Postby yoyoimut » Thu Oct 28, 2010 12:12 pm

Dear all,

Please see my screenshot below for the detail.


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


  1. \documentclass{article}
  2. \usepackage{graphicx}
  3.  
  4. \newcommand{\scale}{15}
  5. \begin{document}
  6.  
  7. \verb|$_{123}^{~\hfill23}\textrm{U}$|\\[1cm]
  8.  
  9. \scalebox{\scale}{$_{123}^{~\hfill23}\textrm{U}$}
  10.  
  11. \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.

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

Postby josephwright » Thu Oct 28, 2010 12:33 pm

The usual advice here is to use the mhchem package:
  1. \documentclass{article}
  2. \usepackage[version=3]{mhchem}
  3. \begin{document}
  4. \ce{^{23}_{123}U}
  5. \end{document}
Joseph Wright

yoyoimut
Posts: 120
Joined: Mon Oct 19, 2009 6:58 am

Postby yoyoimut » Thu Oct 28, 2010 1:00 pm

Thank you Joseph!

It is the best solution.


regards,

Yoyo


Return to “General”

Who is online

Users browsing this forum: No registered users and 5 guests