skeleton.Rmd 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. ---
  2. title: Template for preparing your manuscript submission to Copernicus journals using RMarkdown
  3. journal: "`r rticles::copernicus_journal_abbreviations(journal_name = 'communication')`"
  4. author:
  5. - given_name: Daniel
  6. surname: Nüst
  7. affiliation: 1
  8. email: [email protected]
  9. corresponding: true
  10. - given_name: Josiah
  11. surname: Carberry
  12. affiliation: 2
  13. email: [email protected]
  14. - given_name: Markus
  15. surname: Konkol
  16. affiliation: 1
  17. affiliation:
  18. - code: 1
  19. address: Institute for Geoinformatics, University of Münster, 48149 Münster, Germany
  20. - code: 2
  21. address: Psychoceramics, Wesleyan University, Middletown, CT, United State
  22. abstract: |
  23. The abstract goes here.
  24. It can also be on _multiple lines_.
  25. bibliography: sample.bib
  26. running:
  27. title: RMarkdown Template for Copernicus
  28. author: Nüst et al.
  29. # This section is mandatory even if you declare that no competing interests are present.
  30. competinginterests: |
  31. The authors declare no competing interests.
  32. # OPTIONAL:
  33. algorithms: true
  34. # See https://publications.copernicus.org/for_authors/licence_and_copyright.html, normally used for transferring the copyright, if needed.
  35. copyrightstatement: |
  36. The author's copyright for this publication is transferred to institution/company.
  37. ### The following commands are for the statements about the availability of data sets and/or software code corresponding to the manuscript.
  38. ### It is strongly recommended to make use of these sections in case data sets and/or software code have been part of your research the article is based on.
  39. availability:
  40. #code: |
  41. # use this to add a statement when having only software code available
  42. #data: |
  43. # use this to add a statement when having only data sets available
  44. codedata: |
  45. use this to add a statement when having data sets and software code available
  46. authorcontribution: |
  47. Daniel wrote the package. Josiah thought about poterry. Markus filled in for a second author.
  48. disclaimer: |
  49. We like Copernicus.
  50. acknowledgements: |
  51. Thanks to the rticles contributors!
  52. appendix: |
  53. \section{Figures and tables in appendices}
  54. Regarding figures and tables in appendices, the following two options are possible depending on your general handling of figures and tables in the manuscript environment:
  55. \subsection{Option 1}
  56. If you sorted all figures and tables into the sections of the text, please also sort the appendix figures and appendix tables into the respective appendix sections.
  57. They will be correctly named automatically.
  58. \subsection{Option 2}
  59. If you put all figures after the reference list, please insert appendix tables and figures after the normal tables and figures.
  60. To rename them correctly to A1, A2, etc., please add the following commands in front of them:
  61. `\appendixfigures` needs to be added in front of appendix figures
  62. `\appendixtables` needs to be added in front of appendix tables
  63. Please add `\clearpage` between each table and/or figure. Further guidelines on figures and tables can be found below.
  64. output:
  65. rticles::copernicus_article:
  66. base_format: rmarkdown::pdf_document
  67. ---
  68. \introduction
  69. Introduction text goes here.
  70. You can change the name of the section if neccessary using `\introduction[modified heading]`.
  71. The following settings can or must be configured in the header of this file and are bespoke for Copernicus manuscripts:
  72. - The `journal` you are submitting to using the official abbreviation. You can use the function `rticles::copernicus_journal_abbreviations(name = '...')` to search the existing journals.
  73. - Specific sections of the manuscript:
  74. - `running` with `title` and `author`
  75. - `competinginterests`
  76. - `copyrightstatement` (optional)
  77. - `availability` (strongly recommended if any used), one of `code`, `data`, or `codedata`
  78. - `authorcontribution`
  79. - `disclaimer`
  80. - `acknowledgements`
  81. See the defaults and examples from the skeleton and the official Copernicus documentation for details.
  82. **Important**: Always double-check with the official manuscript preparation guidelines at [https://publications.copernicus.org/for_authors/manuscript_preparation.html](https://publications.copernicus.org/for_authors/manuscript_preparation.html), especially the sections "Technical instructions for LaTeX" and "Manuscript composition".
  83. Please contact Daniel Nüst, `[email protected]`, with any problems.
  84. # Content section one
  85. ## Subsection Heading Here
  86. Subsection text here.
  87. ### Subsubsection Heading Here
  88. Subsubsection text here.
  89. # Content section with citations
  90. See the [R Markdown docs for bibliographies and citations](http://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html).
  91. Copernicus supports biblatex and a sample bibliography is in file `sample.bib`.
  92. Read [@Feynman1963118], and [see @Dirac1953888].
  93. # Content section with R code chunks
  94. ```{r, echo = FALSE}
  95. sum <- 1 + 41
  96. ```
  97. You should always use `echo = FALSE` on R Markdown code blocks as they add formatting and styling not desired by Copernicus.
  98. The hidden workflow results in `r sum`.
  99. You can add verbatim code snippets without extra styles by using ` ``` ` without additional instructions.
  100. ```
  101. sum <- 1 + 41
  102. ```
  103. # Content section with list
  104. If you want to insert a list, you must
  105. - leave
  106. - empty lines
  107. - between each list item
  108. because the `\tightlist` format used by R Markdown is not supported in the Copernicus template. Example:
  109. ```
  110. - leave
  111. - empty lines
  112. - between each list item
  113. ```
  114. # Examples from the official template
  115. ## FIGURES
  116. When figures and tables are placed at the end of the MS (article in one-column style), please add \clearpage between bibliography and first table and/or figure as well as between each table and/or figure.
  117. ### ONE-COLUMN FIGURES
  118. Include a 12cm width figure of Nikolaus Copernicus from [Wikipedia](https://en.wikipedia.org/wiki/File:Nikolaus_Kopernikus.jpg) with caption using R Markdown.
  119. ```{r, out.width = "8.3cm", echo = FALSE, fig.cap = "one column figure"}
  120. knitr::include_graphics("Nikolaus_Kopernikus.jpg")
  121. ```
  122. ### TWO-COLUMN FIGURES
  123. You can also include a larger figure.
  124. ```{r, out.width = "12cm", echo = FALSE, fig.cap = "two column figure"}
  125. knitr::include_graphics("Nikolaus_Kopernikus.jpg")
  126. ```
  127. ## TABLES
  128. You can ad \LaTeX table in an R Markdown document to meet the template requirements.
  129. ### ONE-COLUMN TABLE
  130. \begin{table}[t]
  131. \caption{TEXT}
  132. \begin{tabular}{l c r}
  133. \tophline
  134. a & b & c \\
  135. \middlehline
  136. 1 & 2 & 3 \\
  137. \bottomhline
  138. \end{tabular}
  139. \belowtable{Table Footnotes}
  140. \end{table}
  141. ### TWO-COLUMN TABLE
  142. \begin{table*}[t]
  143. \caption{TEXT}
  144. \begin{tabular}{l c r}
  145. \tophline
  146. a & b & c \\
  147. \middlehline
  148. 1 & 2 & 3 \\
  149. \bottomhline
  150. \end{tabular}
  151. \belowtable{Table footnotes}
  152. \end{table*}
  153. ## MATHEMATICAL EXPRESSIONS
  154. All papers typeset by Copernicus Publications follow the math typesetting regulations given by the IUPAC Green Book (IUPAC: Quantities, Units and Symbols in Physical Chemistry, 2nd Edn., Blackwell Science, available at: http://old.iupac.org/publications/books/gbook/green_book_2ed.pdf, 1993).
  155. Physical quantities/variables are typeset in italic font (t for time, T for Temperature)
  156. Indices which are not defined are typeset in italic font (x, y, z, a, b, c)
  157. Items/objects which are defined are typeset in roman font (Car A, Car B)
  158. Descriptions/specifications which are defined by itself are typeset in roman font (abs, rel, ref, tot, net, ice)
  159. Abbreviations from 2 letters are typeset in roman font (RH, LAI)
  160. Vectors are identified in bold italic font using \vec{x}
  161. Matrices are identified in bold roman font
  162. Multiplication signs are typeset using the LaTeX commands `\times` (for vector products, grids, and exponential notations) or `\cdot`
  163. The character * should not be applied as mutliplication sign
  164. ## EQUATIONS
  165. ### Single-row equation
  166. Unnumbered equations (i.e. using `$$` and getting inline preview in RStudio) are not supported by Copernicus.
  167. \begin{equation}
  168. 1 \times 1 \cdot 1 = 42
  169. \end{equation}
  170. \begin{equation}
  171. A = \pi r^2
  172. \end{equation}
  173. \begin{equation}
  174. x=\frac{2b\pm\sqrt{b^{2}-4ac}}{2c}.
  175. \end{equation}
  176. ### Multiline equation
  177. \begin{align}
  178. & 3 + 5 = 8\\
  179. & 3 + 5 = 8\\
  180. & 3 + 5 = 8
  181. \end{align}
  182. ## MATRICES
  183. $$
  184. \begin{matrix}
  185. x & y & z\\
  186. x & y & z\\
  187. x & y & z\\
  188. \end{matrix}
  189. $$
  190. ## ALGORITHM
  191. If you want to use algorithms, you can either enable the required packages in the header (the default, see `algorithms: true`), or make sure yourself that the \LaTeX packages `algorithms` and `algorithmicx` are installed so that `algorithm.sty` respectively `algorithmic.sty` can be loaded by the Copernicus template.
  192. Copernicus staff will remove all undesirable packages from your LaTeX source code, so please stick to using the header option, which only adds the two acceptable packages.
  193. \begin{algorithm}
  194. \caption{Algorithm Caption}
  195. \label{a1}
  196. \begin{algorithmic}
  197. \STATE $i\gets 10$
  198. \IF {$i\geq 5$}
  199. \STATE $i\gets i-1$
  200. \ELSE
  201. \IF {$i\leq 3$}
  202. \STATE $i\gets i+2$
  203. \ENDIF
  204. \ENDIF
  205. \end{algorithmic}
  206. \end{algorithm}
  207. ## CHEMICAL FORMULAS AND REACTIONS
  208. For formulas embedded in the text, please use `\chem{}`, e.g. \chem{A \rightarrow B}.
  209. The reaction environment creates labels including the letter R, i.e. (R1), (R2), etc.
  210. - `\rightarrow` should be used for normal (one-way) chemical reactions
  211. - `\rightleftharpoons` should be used for equilibria
  212. - `\leftrightarrow` should be used for resonance structures
  213. \begin{reaction}
  214. A \rightarrow B \\
  215. \end{reaction}
  216. \begin{reaction}
  217. Coper \rightleftharpoons nicus \\
  218. \end{reaction}
  219. \begin{reaction}
  220. Publi \leftrightarrow cations
  221. \end{reaction}
  222. ## PHYSICAL UNITS
  223. Please use `\unit{}` (allows to save the math/`$` environment) and apply the exponential notation, for example \( 3.14\,\unit{km\,h^{-1}} \) (using LaTeX mode: `\( 3.14\,\unit{...} \)`) or \unit{0.872\,m\,s^{-1}} (using only `\unit{0.872\,m\,s^{-1}}`).
  224. \conclusions
  225. The conclusion goes here.
  226. You can modify the section name with `\conclusions[modified heading if necessary]`.