template.tex 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. \documentclass[journal=$journal$,manuscript=$type$]{achemso}
  2. \usepackage[version=3]{mhchem}
  3. \usepackage{amsmath}
  4. \newcommand*\mycommand[1]{\texttt{\emph{#1}}}
  5. $for(author)$
  6. \author{$author.name$}
  7. $if(author.aff)$
  8. \affiliation{$author.aff$}
  9. $endif$
  10. $if(author.alsoaff)$
  11. \alsoaffiliation{$author.alsoaff$}
  12. $endif$
  13. $if(author.altaff)$
  14. \altaffiliation{$author.altaff$}
  15. $endif$
  16. $if(author.email)$
  17. $author.email$
  18. $endif$
  19. $if(author.phone)$
  20. \phone{$author.phone$}
  21. $endif$
  22. $if(author.fax)$
  23. \fax{$author.fax$}
  24. $endif$
  25. $endfor$
  26. $if(abbr)$
  27. \abbreviations{$abbr$}
  28. $endif$
  29. $if(keywords)$
  30. \keywords{$keywords$}
  31. $endif$
  32. \title[$title.short$]{$title.formatted$}
  33. \makeatletter
  34. \ifxetex
  35. \usepackage[setpagesize=false, % page size defined by xetex
  36. unicode=false, % unicode breaks when used with xetex
  37. xetex]{hyperref}
  38. \else
  39. \usepackage[unicode=true]{hyperref}
  40. \fi
  41. \hypersetup{breaklinks=true,
  42. bookmarks=true,
  43. pdfauthor={$author-meta$},
  44. pdftitle={$title-meta$},
  45. colorlinks=true,
  46. urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$,
  47. linkcolor=$if(linkcolor)$$linkcolor$$else$magenta$endif$,
  48. pdfborder={0 0 0}}
  49. \urlstyle{same} % don't use monospace font for urls
  50. $if(links-as-notes)$
  51. % Make links footnotes instead of hotlinks:
  52. \renewcommand{\href}[2]{#2\footnote{\url{#1}}}
  53. $endif$
  54. $if(strikeout)$
  55. \usepackage[normalem]{ulem}
  56. % avoid problems with \sout in headers with hyperref:
  57. \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
  58. $endif$
  59. % pandoc header
  60. $for(header-includes)$
  61. $header-includes$
  62. $endfor$
  63. \begin{document}
  64. $for(include-before)$
  65. $include-before$
  66. $endfor$
  67. \begin{abstract}
  68. $abstract$
  69. \end{abstract}
  70. $body$
  71. $for(include-after)$
  72. $include-after$
  73. $endfor$
  74. \end{document}