Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{article}
- \usepackage{chemnum}
- \RequirePackage{expl3}
- \cs_new:Npn \int_to_lanthanide:n #1
- {
- \int_to_symbols:nnn {#1} { 15 }
- {
- { 1 } { La }
- { 2 } { Ce }
- { 3 } { Pr }
- { 4 } { Nd }
- { 5 } { Pm }
- { 6 } { Sm }
- { 7 } { Eu }
- { 8 } { Gd }
- { 9 } { Tb }
- { 10 } { Dy }
- { 11 } { Ho }
- { 12 } { Er }
- { 13 } { Tm }
- { 14 } { Yb }
- { 15 } { Lu }
- }
- }
- \newcmpdcounterformat{lanthanide}{\int_to_lanthanide:n}
- \begin{document}
- \cmpd{peroxo.meoh}
- \cmpd{DMSOcp}
- \labelcmpd[sub-counter-format=lanthanide]{lnwater.la}
- \cmpd{lnwater.la}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement