template.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <!DOCTYPE html>
  2. <html$if(lang)$ lang="$lang$" $endif$>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
  7. <meta name="generator" content="pandoc">
  8. $for(author-meta)$
  9. <meta name="author" content="$author-meta$">
  10. $endfor$
  11. $if(date-meta)$
  12. <meta name="dcterms.date" content="$date-meta$">
  13. $endif$
  14. $if(keywords)$
  15. <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
  16. $endif$
  17. <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
  18. <style type="text/css">
  19. code {
  20. white-space: pre;
  21. }
  22. </style>
  23. $if(quotes)$
  24. <style type="text/css">
  25. q {
  26. quotes: "“""”""‘""’";
  27. }
  28. </style>
  29. $endif$
  30. $if(highlighting-css)$
  31. <style type="text/css">
  32. $highlighting-css$
  33. </style>
  34. $endif$
  35. $for(css)$
  36. <link rel="stylesheet" href="$css$">
  37. $endfor$
  38. $if(math)$
  39. $if(mathjax)$
  40. $-- MathJax is handled specially. We need to add the data-external attribute
  41. $-- so it doesn't get inlined (and thus broken) by the --self-contained option.
  42. <script type="text/javascript" id="MathJax-script" async
  43. src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
  44. </script>
  45. <script type="text/x-mathjax-config">
  46. MathJax.Ajax.config.path["mhchem"] = "https://cdnjs.cloudflare.com/ajax/libs/mathjax-mhchem/3.3.2";
  47. MathJax.Hub.Config({
  48. TeX: {
  49. extensions: ["[mhchem]/mhchem.js"]
  50. }
  51. });
  52. </script>
  53. $else$
  54. $math$
  55. $endif$
  56. $endif$
  57. $for(header-includes)$
  58. $header-includes$
  59. $endfor$
  60. </head>
  61. <body>
  62. <div class="wrapper">
  63. $if(project)$
  64. <header>
  65. <div class="navbar-left">
  66. <input type="checkbox" id="navbar-check">
  67. <label for="navbar-check" class="navbar-hamburger">☰</label>
  68. <div class="navbar-items">
  69. <h1 class="header">$title$</h1>
  70. <a class="button" href="manuscript.pdf">Download PDF</a>
  71. <a class="button" href="manuscript-SI.pdf">Download SI PDF</a>
  72. $if(toc)$
  73. <nav id="$idprefix$TOC">
  74. $toc$
  75. </nav>
  76. $endif$
  77. </div>
  78. </div>
  79. </header>
  80. $endif$
  81. <div class="container">
  82. <article typeof="ScholarlyArticle" vocab="http://schema.org/">
  83. <h1 property="headline">$title$</h1>
  84. $if(subtitle)$
  85. <p property="alternativeHeadline" class="subtitle">$subtitle$</p>
  86. $endif$
  87. <p class="author-list">
  88. $for(author)$
  89. $if(author.last)$ $-- not working!
  90. and
  91. $endif$
  92. <span property="author" typeof="Person">$author.name$</span>
  93. <sup>
  94. $if(author.correspondence)$
  95. $if(author.email)$<a href="mailto:$author.email$">✉</a> $endif$
  96. $endif$
  97. $for(author.institute_indices)$
  98. $author.institute_indices$
  99. $sep$,
  100. $endfor$
  101. $if(author.equal_contributor)$,
  102. $if(equal_contributor_symbol)$
  103. $equal_contributor_symbol$
  104. $else$*
  105. $endif$
  106. $endif$
  107. </sup>$sep$,
  108. $endfor$
  109. </p>
  110. <div class="author-affiliations">
  111. $for(institute)$
  112. <div class="affiliation"><sup>$institute.index$</sup>$institute.name$$if(institute.address)$,
  113. $institute.address$$endif$
  114. </div>
  115. $endfor$
  116. </div>
  117. <div class="author-info">
  118. $if(has_equal_contributors)$
  119. <div class="author-contrib">
  120. <sup>$if(equal_contributor_symbol)$$equal_contributor_symbol$$else$*$endif$</sup>These authors contributed
  121. equally to this work
  122. </div>
  123. $endif$
  124. $if(has_correspondence)$
  125. <div class="author-correspondence">
  126. Correspondence: $for(author)$$if(author.correspondence)$$if(author.email)$$author.name$ <a
  127. href="mailto:$author.email$">&lt;$author.email$&gt;</a> $endif$$endif$$endfor$
  128. </div>
  129. $endif$
  130. </div>
  131. $if(abstract)$
  132. <span class="abstract" property="description">$abstract$</span>
  133. $endif$
  134. $if(doi)$<p><a href="https://doi.org/$doi$">doi: $doi$</a></p>$endif$
  135. $for(include-before)$
  136. $include-before$
  137. $endfor$
  138. <div property="articleBody" class="article-body">
  139. $body$
  140. </div>
  141. </article>
  142. </div>
  143. </div>
  144. <!-- Image display zoom modal -->
  145. <div id="img-modal" class="img-modal" onclick="this.style.display='none'">
  146. <span class="button">&times;</span>
  147. <div class="img-modal-content animate-zoom">
  148. <img id="img-modal-inner" style="width:100%">
  149. </div>
  150. </div>
  151. </body>
  152. <!-- Small navigation script -->
  153. <script>
  154. window.onhashchange = function () {
  155. hash = window.location.hash
  156. let target = document.querySelector(hash)
  157. target.scrollIntoView({
  158. behavior: 'smooth',
  159. block: 'start'
  160. })
  161. }
  162. document.querySelectorAll('a[href^="#"]').forEach(anchor => {
  163. anchor.addEventListener('click', function (e) {
  164. let hashval = anchor.getAttribute('href')
  165. let target = document.querySelector(hashval)
  166. target.scrollIntoView({
  167. behavior: 'smooth',
  168. block: 'start'
  169. })
  170. history.pushState(null, null, hashval)
  171. e.preventDefault()
  172. });
  173. });
  174. </script>
  175. <!-- Image highlight script -->
  176. <script>
  177. function onClickImage(element) {
  178. document.getElementById("img-modal-inner").src = element.src;
  179. document.getElementById("img-modal").style.display = "block";
  180. }
  181. </script>
  182. </html>