- Notifications
You must be signed in to change notification settings - Fork524
Add template for the MNRAS (Monthly Notices of the Royal Astronomical Society) article.#175
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
c4feaa9e62e17b43129d10fc5a2822e37781f84a398a0912354651bae281eca848978604fee1bFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| #' Monthly Notices of Royal Astronomical Society (MNRAS) Journal format. | ||
| #' | ||
| #' Format for creating an Monthly Notices of Royal Astronomical Society (MNRAS) Journal articles. | ||
| #' Adapted from | ||
| #' \href{https://www.ras.org.uk/news-and-press/2641-new-version-of-the-mnras-latex-package}{https://www.ras.org.uk/news-and-press/2641-new-version-of-the-mnras-latex-package}. | ||
| #' | ||
| #' @inheritParams rmarkdown::pdf_document | ||
| #' @param ... 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 = "mnras_article", package = "rticles") | ||
| #' } | ||
| #' | ||
| #' @export | ||
| mnras_article <- function(..., | ||
| keep_tex = TRUE, | ||
| md_extensions = c(), | ||
| fig_caption = TRUE){ | ||
| pdf_document_format(..., | ||
| keep_tex = keep_tex, | ||
| md_extensions = md_extensions, | ||
| format = "mnras_article", | ||
| template = "template.tex", | ||
| csl = "mnras.csl") | ||
| ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| *.tex |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| % mnras_template.tex | ||
| % | ||
| % LaTeX template for creating an MNRAS paper | ||
| % | ||
| % v3.0 released 14 May 2015 | ||
| % (version numbers match those of mnras.cls) | ||
| % | ||
| % Copyright (C) Royal Astronomical Society 2015 | ||
| % Authors: | ||
| % Keith T. Smith (Royal Astronomical Society) | ||
| % Change log | ||
| % | ||
| % v3.0 May 2015 | ||
| % Renamed to match the new package name | ||
| % Version number matches mnras.cls | ||
| % A few minor tweaks to wording | ||
| % v1.0 September 2013 | ||
| % Beta testing only - never publicly released | ||
| % First version: a simple (ish) template for creating an MNRAS paper | ||
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
| % Basic setup. Most papers should leave these options alone. | ||
| \documentclass[a4paper,fleqn,usenatbib]{mnras} | ||
| % MNRAS is set in Times font. If you don't have this installed (most LaTeX | ||
| % installations will be fine) or prefer the old Computer Modern fonts, comment | ||
| % out the following line | ||
| \usepackage{newtxtext,newtxmath} | ||
| % Depending on your LaTeX fonts installation, you might get better results with one of these: | ||
| %\usepackage{mathptmx} | ||
| %\usepackage{txfonts} | ||
| % Use vector fonts, so it zooms properly in on-screen viewing software | ||
| % Don't change these lines unless you know what you are doing | ||
| \usepackage[T1]{fontenc} | ||
| \usepackage{ae,aecompl} | ||
| %%%%% AUTHORS - PLACE YOUR OWN PACKAGES HERE %%%%% | ||
| % Only include extra packages if you really need them. Common packages are: | ||
| \usepackage{graphicx}% Including figure files | ||
| \usepackage{amsmath}% Advanced maths commands | ||
| \usepackage{amssymb}% Extra maths symbols | ||
| \usepackage{hyperref} | ||
| \usepackage{url} | ||
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
| %%%%% AUTHORS - PLACE YOUR OWN COMMANDS HERE %%%%% | ||
| % Please keep new commands to a minimum, and use \newcommand not \def to avoid | ||
| % overwriting existing commands. Example: | ||
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
| %%%%%%%%%%%%%%%%%%% TITLE PAGE %%%%%%%%%%%%%%%%%%% | ||
| % Title of the paper, and the short title which is used in the headers. | ||
| % Keep the title short and informative. | ||
| $if(title)$ | ||
| \title{$title$} | ||
| $endif$ | ||
| % The list of authors, and the short list which is used in the headers. | ||
| % If you need two or more lines of authors, add an extra line using \newauthor | ||
| \author[et al.]{ | ||
| $for(author)$ | ||
| $author.name$\\ | ||
| $endfor$ | ||
| } | ||
| % These dates will be filled out by the publisher | ||
| \date{Accepted XXX. Received YYY; in original form ZZZ} | ||
| % Enter the current year, for the copyright statements etc. | ||
| \pubyear{2015} | ||
| % Don't change these lines | ||
| \begin{document} | ||
| \label{firstpage} | ||
| \pagerange{\pageref{firstpage}--\pageref{lastpage}} | ||
| $if(title)$ | ||
| \maketitle | ||
| $endif$ | ||
| % Abstract of the paper | ||
| $if(abstract)$ | ||
| \begin{abstract} | ||
| $abstract$ | ||
| \end{abstract} | ||
| $endif$ | ||
| % Select between one and six entries from the list of approved keywords. | ||
| % Don't make up new ones. | ||
| $if(keywords)$ | ||
| \begin{keywords} | ||
| $for(keywords)$$keywords$$sep$ -- $endfor$ | ||
| \end{keywords} | ||
| $endif$ | ||
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
| %%%%%%%%%%%%%%%%% BODY OF PAPER %%%%%%%%%%%%%%%%%% | ||
| $body$ | ||
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
| % Don't change these lines | ||
| \bsp% typesetting comment | ||
| \label{lastpage} | ||
| \end{document} | ||
| % End of mnras_template.tex |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # pandoc-mnras | ||
| A template for building MNRAS Journal articles in pandoc. |
Uh oh!
There was an error while loading.Please reload this page.