-
Notifications
You must be signed in to change notification settings - Fork 524
GigaScience rticle support #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
eschen42
wants to merge
21
commits into
rstudio:main
Choose a base branch
from
eschen42:gigascience
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
dff0255
initially add support for GigaScience; not yet thorooughly tested; st…
eschen42 1dd47b8
expose more configuration to through the skeleton file header
eschen42 c08d44a
initial implementation complete
eschen42 d1bdef6
added man/gigascience_article.Rd generated by devtools::document
eschen42 d5a50ff
improved citet and citep explanations
eschen42 b020923
added tlmgr_pkg to assist setup of TexLive prior to running GigaScien…
eschen42 63d1438
added tlmgr_local script to install required TeX*Live packages to sup…
eschen42 78cb880
corrected per yihui's instructions from 2 July 2018
eschen42 1b109f6
merge upstream master
eschen42 bcbf202
devtools::test() passes after 'mkdir tests/testthat; cd tests/testtha…
eschen42 6604452
modifications for pull request
eschen42 665ea85
Merge branch 'master' into gigascience
eschen42 d4e6f26
Merge branch 'master' into eschen42-gigascience
cderv 0b6856f
Use new way to create the format
cderv 802c8db
Store function with the others
cderv 58badb1
Merge branch 'main' into eschen42-gigascience
cderv 701e1c1
Align author in DESCRIPTION
cderv b05ec78
keep new lines
cderv c558975
Missing colon in DESCRIPTION
cderv 0589cb8
Merge branch 'main' into eschen42-gigascience
cderv e0d0c11
Add missing part for Pandoc in templates and reorganize order
cderv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#' GigaScience journal format. | ||
#' | ||
#' Format for creating submissions to the GigaScience journal. Adapted from GigaScience Overleaf template | ||
#' \href{https://www.overleaf.com/latex/templates/template-for-gigascience-journal-manuscript-submissions/shgtrssvbjhs}{https://www.overleaf.com/latex/templates/template-for-gigascience-journal-manuscript-submissions/shgtrssvbjhs}. | ||
#' | ||
#' @inheritParams rmarkdown::pdf_document | ||
#' @param ... Additional arguments to \code{rmarkdown::pdf_document} | ||
#' | ||
#' @return R Markdown output format to pass to | ||
#' \code{\link[rmarkdown:render]{render}} | ||
#' | ||
#' @examples | ||
#' | ||
#' \dontrun{ | ||
#' library(rmarkdown) | ||
#' draft("MyArticle.Rmd", template = "gigascience_article", package = "rticles") | ||
#' } | ||
#' | ||
#' @export | ||
gigascience_article <- function(..., | ||
keep_tex = TRUE, | ||
md_extensions = c("-autolink_bare_uris")) { | ||
inherit_pdf_document(..., | ||
template = find_resource("gigascience_article", "template.tex"), | ||
keep_tex = keep_tex, | ||
md_extensions = md_extensions) | ||
} |
87 changes: 87 additions & 0 deletions
87
inst/rmarkdown/templates/gigascience_article/resources/template.tex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% Please note that whilst this template provides a | ||
% preview of the typeset manuscript for submission, it | ||
% will not necessarily be the final publication layout. | ||
% | ||
\documentclass[$paper$,$reftype$]{$document-class$} | ||
|
||
% declare highlighting-macros if any | ||
$if(highlighting-macros)$ | ||
$highlighting-macros$ | ||
$endif$ | ||
|
||
% include header-includes if any | ||
$for(header-includes)$ | ||
$header-includes$ | ||
$endfor$ | ||
|
||
% before include preamble if any | ||
$preamble$ | ||
% after include preamble if any | ||
|
||
%%% declare packages to be used | ||
\usepackage{forarray} | ||
\usepackage{xstring} | ||
\usepackage{graphicx} | ||
\usepackage{siunitx} | ||
|
||
%%% unpackged commands | ||
\providecommand{\tightlist}{% | ||
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} | ||
|
||
|
||
%%% Flushend: You can add this package to automatically balance the final page, but if things go awry (e.g. section contents appearing out-of-order or entire blocks or paragraphs are coloured), remove it! | ||
% \usepackage{flushend} | ||
|
||
|
||
|
||
\title{$title$} | ||
|
||
%%% Authors | ||
$for(author)$ \author[$for(author.affiliation)$$author.affiliation$$sep$,$endfor$$for(author.note)$,\authfn{$author.note$}$endfor$]{$author.name$} $sep$ | ||
$endfor$ | ||
|
||
%%% Author Affiliations | ||
$for(affiliation)$ \affil[$affiliation.id$]{$affiliation.name$$if(affiliation.address)$, $affiliation.address$$endif$} | ||
$endfor$ | ||
|
||
%%% Use the \authfn to add symbols for additional footnotes, if any. 1 is reserved for correspondence emails; then continuing with 2 etc for contributions. | ||
%%% Author Notes | ||
$for(authnote)$\authnote{\authfn{$authnote.id$}$authnote.note$}$sep$ | ||
$endfor$ | ||
|
||
|
||
%%% Paper category | ||
\papercat{$papercat$} | ||
|
||
%%% "Short" author for running page header | ||
\runningauthor{$runningauthor$} | ||
|
||
%%% Should only be set by an editor | ||
\jvolume{00} | ||
\jnumber{0} | ||
\jyear{2018} | ||
|
||
\begin{document} | ||
\begin{frontmatter} | ||
\maketitle | ||
\begin{abstract} | ||
$abstract$ | ||
\end{abstract} | ||
|
||
\begin{keywords} | ||
$for(keywords)$$keywords$$sep$; $endfor$ | ||
\end{keywords} | ||
\end{frontmatter} | ||
|
||
\begin{keypoints*} | ||
\begin{itemize} | ||
$for(keypoints)$\item{$keypoints$}$sep$ | ||
$endfor$ | ||
\end{itemize} | ||
\end{keypoints*} | ||
|
||
$body$ | ||
|
||
%%% The document ends here | ||
\end{document} |
Binary file added
BIN
+26 KB
inst/rmarkdown/templates/gigascience_article/skeleton/gigascience-logo.pdf
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.