Guest User

Untitled

a guest
Sep 25th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. ---
  2. date: "`r Sys.Date()`"
  3. author: "Author Name"
  4. title: "OfficeDown Master"
  5. output:
  6. officedown::rdocx_document:
  7. reference_docx: styles/JBO-Neuro_Word_template.docx # This is the template that will style my document when its knit
  8. link-citations: yes
  9. linkcolor: red
  10. citecolor: blue
  11. bibliography: G:/My Drive/ZoteroRPlugin/My Library.bib # you will need to export your own bibliography
  12. zotero: TRUE
  13. csl: styles/Citation Styles/spectroscopy-letters.csl # This sets the style of formatting for references
  14. ---
  15.  
  16. ```{r setup, include=FALSE, cache=FALSE, echo=FALSE}
  17. if (!require("pacman")) install.packages("pacman")
  18. pacman::p_load(apastats,tidyverse, officedown, officer)
  19.  
  20. knitr::opts_chunk$set(fig.cap = TRUE,
  21. fig.path = 'images/',
  22. echo = FALSE,
  23. warning = FALSE,
  24. message = FALSE,
  25. include = TRUE,
  26. dpi = 300,
  27. crop = TRUE # This will remove the whitespace surrounding an image see here: https://bookdown.org/yihui/rmarkdown-cookbook/crop-plot.html
  28. # The following chunks only work with PDF outputs
  29. #fig.pos = 'H', # only works with PDFs
  30. #fig.align = 'center', # only works with PDFs
  31. #out.height="100%", out.width="100%") # only works with PDFs
  32. )
  33.  
  34. # Start loading data into the environment
  35. load("data/analyzedData.RData") #load our saved data
  36. use_betterbiblatex = TRUE
  37. ```
  38.  
  39. # Table of content
  40.  
  41. <!---BLOCK_TOC--->
  42.  
  43. ## List of figures
  44.  
  45. <!---BLOCK_TOC{seq_id: 'fig'}--->
  46.  
  47. ## List of tables
  48.  
  49. <!---BLOCK_TOC{seq_id: 'tab'}--->
  50.  
  51. \pagebreak
  52.  
  53. ::: {custom-style="Article Title"}
  54. Sample manuscript showing style and formatting specifications for *Journal of Biomedical Optics and Neurophotonics* journal papers
  55. :::
  56.  
  57. ::: {custom-style="Author Names"}
  58. First Author,^a^ Second Author,^a^ Third Author,^b^ Fourth Author^a,b,\*^
  59. :::
  60.  
  61. <div custom-style="Author Affiliations">
  62.  
  63. ^a^ University Name, Faculty Group, Department, City, Country
  64.  
  65. ^b^ Company Name, City, Country
  66. </div>
  67.  
  68. ::: {custom-style = "Corresponding Author Footnote"}
  69. **\***Fourth Author**,** E-mail: <myemail@university.edu>
  70. :::
  71.  
  72.  
  73. `r officer::run_linebreak()`
  74.  
  75. \pagebreak
  76.  
  77. # Introduction
  78. This document shows the suggested format and appearance of a manuscript prepared for SPIE’s Journal of Biomedical Optics and Neurophotonics. Accepted papers will be professionally typeset. This template is intended to be a tool to improve manuscript clarity for the reviewers. The final layout of the typeset paper will not match this template layout.
  79.  
  80. ## Use of This Template
  81. Authors may use this Microsoft (MS) Word template by employing the relevant styles from the Styles and Formatting list (which is accessed from the Styles group in the Home ribbon, Fig. \@ref(fig:figure1))
  82.  
  83.  
  84. ```{r figure1, fig.cap = "MS Word 2010 Home ribbon. Red arrow indicates where to access Styles window.", fig.asp=2550/3300, fig.height=6.5}
  85. knitr::include_graphics("images/figure1.png")
  86. ```
  87.  
  88. To view which style is being used in any part of this document, place the cursor on the line and look in the style list (Fig. \@ref(fig:figure2)):
  89.  
  90. ```{r figure2, fig.cap = "Styles window", fig.asp=2550/3300, fig.height=6.5}
  91. knitr::include_graphics("images/figure2.png")
  92. ```
  93.  
  94. Fig. 1 MS Word 2010 Home ribbon. Red arrow indicates where to access Styles window.
  95. To view which style is being used in any part of this document, place the cursor on the line and look in the style list (Fig. 2):
  96.  
  97.  
  98. # Results
  99.  
  100. There was a significant effect of service on the average journey time `r describe.aov(model, "service", sstype = 2)`. Descriptive statistics were run and are shown in Table \@ref(tab:journey-time) below
  101.  
  102. ```{r tab.id="journey-time", tab.cap="Descriptives"}
  103. journeyTime
  104. ```
  105.  
  106. A plot is shown in Figure \@ref(fig:myFigure)
  107.  
  108. ```{r myFigure, fig.cap = "Caption for my Figure", fig.asp=2550/3300, fig.height=6.5}
  109. knitr::include_graphics("images/plot1.png")
  110. ```
Add Comment
Please, Sign In to add comment