inst/howto/final_editing.md

JSS cleanup

General

For the following you will need the R-package jss and some suggested packages. Installation:

sudo apt-get install bibtool
install.packages(c("base64enc", "bibtex", "formatR", "rcrossref", "tm", "tth"))
install.packages("jss", repos = "http://R-Forge.R-project.org")

To make rendering the PDF smooth, it is useful to store jsslogo.jpg and jss.cls in /texmf/tex/latex/jss and jss.bst in /texmf/bibtex/bst/jss. You get these files from this link.

Folder and Names

file ref.bib
file paper.tex

if it does not say that the file is ASCII text, you can find problematic lines in R:

tools::showNonASCII(readLines("ref.bib")) 

Manuscript

\usepackage{thumbpdf,lmodern} 
\graphicspath{{Figures/}}  % folder with figures
\begin{figure}[t!]
    \centering
    \includegraphics[...]{...}
    \caption{...}
    \label{...}
\end{figure}
R> foo(prompt = "R> ", attention = "include spaces in code",
+    continue = "with + and then an indentation with 4 spaces",
+    max_chars_per_line = 76)

Bibliography

@Manual{,
  title = {\pkg{pkgname}: Package Title or Description},
  author = {First Author and Second Author},
  year = {2000},
  note = {\proglang{R}~package version~1.2-3},
  url = {https://CRAN.R-project.org/package=pkgname},
} 
jss::fix_bib("ref.bib")

Code

Rscript -e "library('knitr'); stitch('code.R')"
jss::fix_rscript("code.R")


Try the jss package in your browser

Any scripts or data that you put into this service are public.

jss documentation built on Sept. 9, 2022, 3:09 p.m.