template.tex 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. % Template for PLoS
  2. % Version 3.4 January 2017
  3. \documentclass[10pt,letterpaper]{article}
  4. \usepackage[top=0.85in,left=2.75in,footskip=0.75in]{geometry}
  5. % amsmath and amssymb packages, useful for mathematical formulas and symbols
  6. \usepackage{amsmath,amssymb}
  7. % Use adjustwidth environment to exceed column width (see example table in text)
  8. \usepackage{changepage}
  9. % Use Unicode characters when possible
  10. \usepackage[utf8x]{inputenc}
  11. % textcomp package and marvosym package for additional characters
  12. \usepackage{textcomp,marvosym}
  13. % cite package, to clean up citations in the main text. Do not remove.
  14. % \usepackage{cite}
  15. % Use nameref to cite supporting information files (see Supporting Information section for more info)
  16. \usepackage{nameref,hyperref}
  17. % line numbers
  18. \usepackage[right]{lineno}
  19. % ligatures disabled
  20. \usepackage{microtype}
  21. \DisableLigatures[f]{encoding = *, family = * }
  22. % color can be used to apply background shading to table cells only
  23. \usepackage[table]{xcolor}
  24. % array package and thick rules for tables
  25. \usepackage{array}
  26. % create "+" rule type for thick vertical lines
  27. \newcolumntype{+}{!{\vrule width 2pt}}
  28. % create \thickcline for thick horizontal lines of variable length
  29. \newlength\savedwidth
  30. \newcommand\thickcline[1]{%
  31. \noalign{\global\savedwidth\arrayrulewidth\global\arrayrulewidth 2pt}%
  32. \cline{#1}%
  33. \noalign{\vskip\arrayrulewidth}%
  34. \noalign{\global\arrayrulewidth\savedwidth}%
  35. }
  36. % \thickhline command for thick horizontal lines that span the table
  37. \newcommand\thickhline{\noalign{\global\savedwidth\arrayrulewidth\global\arrayrulewidth 2pt}%
  38. \hline
  39. \noalign{\global\arrayrulewidth\savedwidth}}
  40. % Remove comment for double spacing
  41. %\usepackage{setspace}
  42. %\doublespacing
  43. % Text layout
  44. \raggedright
  45. \setlength{\parindent}{0.5cm}
  46. \textwidth 5.25in
  47. \textheight 8.75in
  48. % Bold the 'Figure #' in the caption and separate it from the title/caption with a period
  49. % Captions will be left justified
  50. \usepackage[aboveskip=1pt,labelfont=bf,labelsep=period,justification=raggedright,singlelinecheck=off]{caption}
  51. \renewcommand{\figurename}{Fig}
  52. % Use the PLoS provided BiBTeX style
  53. % \bibliographystyle{plos2015}
  54. % Remove brackets from numbering in List of References
  55. \makeatletter
  56. \renewcommand{\@biblabel}[1]{\quad#1.}
  57. \makeatother
  58. % Leave date blank
  59. \date{}
  60. % Header and Footer with logo
  61. \usepackage{lastpage,fancyhdr,graphicx}
  62. \usepackage{epstopdf}
  63. \pagestyle{myheadings}
  64. \pagestyle{fancy}
  65. \fancyhf{}
  66. \setlength{\headheight}{27.023pt}
  67. \lhead{\includegraphics[width=2.0in]{PLOS-submission.eps}}
  68. \rfoot{\thepage/\pageref{LastPage}}
  69. \renewcommand{\footrule}{\hrule height 2pt \vspace{2mm}}
  70. \fancyheadoffset[L]{2.25in}
  71. \fancyfootoffset[L]{2.25in}
  72. \lfoot{\sf PLOS}
  73. %% Include all macros below
  74. \newcommand{\lorem}{{\bf LOREM}}
  75. \newcommand{\ipsum}{{\bf IPSUM}}
  76. $if(highlighting-macros)$
  77. $highlighting-macros$
  78. $endif$
  79. $for(header-includes)$
  80. $header-includes$
  81. $endfor$
  82. $preamble$
  83. \usepackage{forarray}
  84. \usepackage{xstring}
  85. \newcommand{\getIndex}[2]{
  86. \ForEach{,}{\IfEq{#1}{\thislevelitem}{\number\thislevelcount\ExitForEach}{}}{#2}
  87. }
  88. \setcounter{secnumdepth}{0}
  89. \newcommand{\getAff}[1]{
  90. \getIndex{#1}{$for(address)$$address.code$$sep$,$endfor$}
  91. }
  92. \providecommand{\tightlist}{%
  93. \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
  94. \begin{document}
  95. \vspace*{0.2in}
  96. % Title must be 250 characters or less.
  97. \begin{flushleft}
  98. {\Large
  99. \textbf\newline{$title$} % Please use "sentence case" for title and headings (capitalize only the first word in a title (or heading), the first word in a subtitle (or subheading), and any proper nouns).
  100. }
  101. \newline
  102. \\
  103. $for(author)$
  104. $author.name$\textsuperscript{$for(author.affiliation)$\getAff{$author.affiliation$}$sep$, $endfor$}$if(author.corresponding)$\textsuperscript{*}$endif$$sep$,
  105. $endfor$
  106. \\
  107. \bigskip
  108. $for(address)$
  109. \textbf{\getAff{$address.code$}}$address.address$\\
  110. $endfor$
  111. \bigskip
  112. $for(author)$
  113. $if(author.corresponding)$
  114. * Corresponding author: $author.email$\\
  115. $endif$
  116. $endfor$
  117. \end{flushleft}
  118. % Please keep the abstract below 300 words
  119. $if(abstract)$
  120. \section*{Abstract}
  121. $abstract$
  122. $endif$
  123. % Please keep the Author Summary between 150 and 200 words
  124. % Use first person. PLOS ONE authors please skip this step.
  125. % Author Summary not valid for PLOS ONE submissions.
  126. $if(author_summary)$
  127. \section*{Author summary}
  128. $author_summary$
  129. $endif$
  130. \linenumbers
  131. % Use "Eq" instead of "Equation" for equation citations.
  132. $body$
  133. \nolinenumbers
  134. $if(biblio-files)$
  135. \bibliography{$biblio-files$}
  136. $endif$
  137. \end{document}