Code: Select all
1. \documentclass[a4paper,12pt]{article}2. \usepackage{amsmath}3.4. \newcommand\annu[2][]{\ensuremath{_{%5. \def\arraystretch{0}%6. \setlength\arraycolsep{1pt}% adjust these7. \setlength\arrayrulewidth{.2pt}% two settings8. \scriptstyle{#1} \begin{array}{@{}c|}\hline9. \\[\arraycolsep] %10. \scriptstyle{#2} %11. \end{array}%12. }}}13.14.15. \begin{document}16.17. \[18. \overline{A}\annu[ 53: ]{10}^{1} \quad \overline{A}\annu[xxx:]{n}^119. \]20.21. \end{document}
Problems:
1- numbers are not on the same horizon
2- superscript is not exactly over the "1st" item
3- i dont know how to add "[]" to the 1st input
can someone kindly modify the code for me please?
Thanks in advance!
LateXer