Guest User

Untitled

a guest
Jan 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. usepackage{forarray}
  2. usepackage{xstring}
  3. newcommand{getIndex}[2]{
  4. ForEach{,}{IfEq{#1}{thislevelitem}. {numberthislevelcountExitForEach}{}}{#2}
  5. }
  6.  
  7. setcounter{secnumdepth}{0}
  8.  
  9. newcommand{getAff}[1]{
  10. getIndex{#1}{$for(address)$$address.code$$sep$,$endfor$}
  11. }
  12.  
  13. $for(author)$
  14. $author.name$textsuperscript{$for(author.affiliation)$getAff{$author.affiliation$}$sep$,$endfor$}$if(author.corresponding)$textsuperscript{*}$endif$$sep$,
  15. $endfor$
  16. \
  17. bigskip
  18. $for(address)$
  19. textbf{getAff{$address.code$}}$address.address$\
  20. $endfor$
  21. bigskip
  22. $for(author)$
  23. $if(author.corresponding)$
  24. * Corresponding author: $author.email$\
  25. $endif$
  26. $endfor$
Add Comment
Please, Sign In to add comment