[Rcpp-commits] r336 - / RJournal

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Jan 11 10:05:21 CET 2010


Author: romain
Date: 2010-01-11 10:05:20 +0100 (Mon, 11 Jan 2010)
New Revision: 336

Added:
   RJournal/
   RJournal/FrancoisEddelbuettel.tex
   RJournal/Makefile
   RJournal/RJournal.sty
   RJournal/RJwrapper.tex
Log:
dump RJournal template

Added: RJournal/FrancoisEddelbuettel.tex
===================================================================
--- RJournal/FrancoisEddelbuettel.tex	                        (rev 0)
+++ RJournal/FrancoisEddelbuettel.tex	2010-01-11 09:05:20 UTC (rev 336)
@@ -0,0 +1,68 @@
+\title{Capitalized Title Here}
+\author{by Romain Franc\c{c}ois and Dirk Eddelbuettel}
+
+\maketitle
+
+\abstract{
+An abstract of less than 150 words.
+}
+
+Introductory section which may include references in parentheses, say
+\citep{R:Ihaka+Gentleman:1996} or cite a reference such as
+\citet{R:Ihaka+Gentleman:1996} in the text.
+
+\section{Section title in sentence case}
+
+This section may contain a figure such as Figure \ref{figure:onecolfig}.
+
+\begin{figure}
+\vspace*{.1in}
+\framebox[\textwidth]{\hfill \raisebox{-.45in}{\rule{0in}{1in}}
+                      A picture goes here \hfill}
+\caption{\label{figure:onecolfig}
+A normal figure only occupies one column.}
+\end{figure}
+
+\section{Another section}
+
+There will likely be several sections, perhaps including code snippets, such
+as
+\begin{example}
+  x <- 1:10
+  result <- myFunction(x)
+\end{example}
+
+\section{Summary}
+
+This file is only a basic article template. For full details of \emph{The R Journal}
+style and information on how to prepare your article for submission, see the
+\href{http://journal.r-project.org/latex/RJauthorguide.pdf}{Instructions for Authors}.
+
+%\bibliography{example}
+
+\begin{thebibliography}{1}
+\expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi
+\expandafter\ifx\csname url\endcsname\relax
+  \def\url#1{{\tt #1}}\fi
+
+\bibitem[Ihaka and Gentleman(1996)]{R:Ihaka+Gentleman:1996}
+R.~Ihaka and R.~Gentleman.
+\newblock R: A language for data analysis and graphics.
+\newblock {\em Journal of Computational and Graphical Statistics}, 5\penalty0
+  (3):\penalty0 299--314, 1996.
+\newblock URL \url{http://www.amstat.org/publications/jcgs/}.
+
+\end{thebibliography}
+
+\address{Romain Fran\c{c}ois\\
+  Professionnal R Enthusiast\\
+  3 rue Emile Bonnet, 34 090 Montpellier\\
+  FRANCE}\\
+\email{francoisromain at free.fr}
+
+\address{Dirk Eddelbuettel\\
+  Affiliation\\
+  Address\\
+  Country}\\
+\email{edd at debian.org}
+

Added: RJournal/Makefile
===================================================================
--- RJournal/Makefile	                        (rev 0)
+++ RJournal/Makefile	2010-01-11 09:05:20 UTC (rev 336)
@@ -0,0 +1,12 @@
+all: clean RJwrapper.pdf
+
+clean:
+	rm -fr RJwrapper.pdf
+	rm -fr RJwrapper.out
+	rm -fr RJwrapper.aux
+	rm -fr RJwrapper.log
+
+RJwrapper.pdf: RJwrapper.tex FrancoisEddelbuettel.tex RJournal.sty
+	pdflatex RJwrapper.tex
+	pdflatex RJwrapper.tex
+

Added: RJournal/RJournal.sty
===================================================================
--- RJournal/RJournal.sty	                        (rev 0)
+++ RJournal/RJournal.sty	2010-01-11 09:05:20 UTC (rev 336)
@@ -0,0 +1,232 @@
+%%
+%% This is file `RJournal.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% RJournal.dtx  (with options: `package')
+%% 
+\def\fileversion{v0.6}
+\def\filename{RJournal}
+\def\filedate{2009/05/05}
+\def\docdate {2009/05/05}
+%%
+%% Package `RJournal' to use with LaTeX2e
+%% Copyright (C) 2009 by the R Foundation
+%% Please report errors to KH or FL
+%%
+%% %% -*- LaTeX -*-
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{\filename}[\filedate\space\fileversion\space
+                        RJournal package]
+\typeout{Package: `\filename\space\fileversion \@spaces <\filedate>'}
+\typeout{English documentation as of <\docdate>}
+\RequirePackage{ifthen}
+\newboolean{RJ at driver}
+\DeclareOption{driver}{\setboolean{RJ at driver}{true}}
+\DeclareOption*{\PackageWarning{\filename}{Unknown option
+    `\CurrentOption'}}
+\ProcessOptions\relax
+\ifthenelse{\boolean{RJ at driver}}{}{
+\RequirePackage{tikz}
+\RequirePackage{multicol,graphicx,color,fancyhdr}
+\RequirePackage{hyperref}
+\RequirePackage{amsmath}
+\definecolor{link}{rgb}{0,0,0.3}
+\hypersetup{
+    colorlinks,%
+    citecolor=link,%
+    filecolor=link,%
+    linkcolor=link,%
+    urlcolor=link
+}
+\IfFileExists{upquote.sty}{\RequirePackage{upquote}}{}
+\newcommand{\volume}[1]{\def\RJ at volume{#1}}
+\newcommand{\volnumber}[1]{\def\RJ at number{#1}}
+\renewcommand{\date}[1]{\def\RJ at date{#1}}
+\setcounter{secnumdepth}{-1}
+\renewcommand{\author}[1]{\def\RJ at author{#1}}
+\renewcommand{\title}[1]{\def\RJ at title{#1}}
+\newcommand{\subtitle}[1]{\def\RJ at subtitle{#1}}
+\newcommand{\sectionhead}[1]{\def\RJ at sectionhead{#1}}
+\newenvironment{article}{%
+  \author{}\title{}\subtitle{}}{\end{multicols}}
+\renewcommand{\maketitle}{
+  \begin{multicols}{2}[\chapter{\RJ at title}\refstepcounter{chapter}][3cm]
+    \ifx\empty\RJ at subtitle\else\noindent\textbf{\RJ at subtitle}
+    \par\nobreak\addvspace{\baselineskip}\fi
+    \ifx\empty\RJ at author\else\noindent\textit{\RJ at author}
+    \par\nobreak\addvspace{\baselineskip}\fi
+    \@afterindentfalse\@nobreaktrue\@afterheading}
+\renewcommand{\abstract}[1]{\begin{center}\begin{minipage}{0.92\linewidth} 
+    \textbf{Abstract } #1 \end{minipage}\end{center} \subsubsection{} \vspace{-12pt}}
+\renewcommand\chapter{\secdef\RJ at chapter\@schapter}
+\providecommand{\nohyphens}{%
+  \hyphenpenalty=10000\exhyphenpenalty=10000\relax}
+\newcommand{\RJ at chapter}{%
+  \edef\name at of@eq{equation.\@arabic{\c at chapter}}%
+  \renewcommand{\@seccntformat}[1]{}%
+  \@startsection{chapter}{0}{0mm}{%
+    -2\baselineskip \@plus -\baselineskip \@minus -.2ex}{\p@}{%
+    \normalfont\Huge\bfseries\raggedright}%
+}
+\renewcommand*\l at chapter{\@dottedtocline{0}{0pt}{1em}}
+\def\@schapter#1{\section*#1}
+\renewenvironment{figure}[1][]{%
+  \def\@captype{figure}
+  \noindent
+  \begin{minipage}{\columnwidth}}{%
+  \end{minipage}\par\addvspace{\baselineskip}}
+\numberwithin{equation}{chapter}
+\renewcommand{\theequation}{\@arabic\c at equation}
+\renewcommand{\thefigure}{\@arabic\c at figure}
+\renewcommand{\thetable}{\@arabic\c at table}
+\renewcommand{\contentsname}{Contents}
+\renewcommand\tableofcontents{%
+\begin{center}
+\vspace{1cm}
+\begin{tikzpicture}
+\node[right,text width=15.5cm, draw=black, rounded corners=20pt,
+fill=white,inner sep=2em, very thick]
+{
+  \begin{minipage}[t][16.5cm][c]{1.0\linewidth}
+  \section*{\contentsname}
+ {
+  \@starttoc{toc}
+ }
+  \end{minipage}
+};
+
+\end{tikzpicture}
+\end{center}}
+\renewcommand{\titlepage}{%
+  \noindent
+  \begin{center}
+    \fontsize{60pt}{60pt}\selectfont
+The \raisebox{-8pt}{\includegraphics[height=77pt]{Rlogo-4}}\hspace{10pt}
+    Journal
+  \end{center}
+{\large\hfill Volume \RJ at volume/\RJ at number, \RJ at date\qquad}
+\\[-.5\baselineskip]
+  \rule{\textwidth}{1pt}
+\begin{center}
+{\Large A peer-reviewed, open-access publication of the R Foundation\\
+for Statistical Computing}
+\end{center}
+  \fancyhf{}
+  \fancyhead[LO,RE]{\textsc{\RJ at sectionhead}}
+  \fancyhead[RO,LE]{\thepage}
+  \fancyfoot[L]{The R Journal Vol. \RJ at volume/\RJ at number, \RJ at date}
+  \fancyfoot[R]{ISSN 2073-4859}
+  \thispagestyle{empty}
+\setcounter{tocdepth}{0}
+\tableofcontents
+\setcounter{tocdepth}{2}
+\clearpage
+}
+\newcommand{\startRnews}{%
+  \newpage\noindent
+  \begin{center}
+    \fontsize{15mm}{1mm}\selectfont
+    \includegraphics[height=15mm]{Rlogo}\hspace{7mm}
+    News
+  \end{center}
+  \rule{\textwidth}{.5pt}
+  \vspace{1cm}
+  \addcontentsline{toc}{chapter}{R News}
+}
+
+\setlength{\textheight}{250mm}
+\setlength{\topmargin}{-10mm}
+\setlength{\textwidth}{17cm}
+\setlength{\oddsidemargin}{-6mm}
+\setlength{\evensidemargin}{-6mm}
+\setlength{\columnseprule}{.1pt}
+\setlength{\columnsep}{20pt}
+%%   sf &  almost european \\
+\RequirePackage{pslatex}
+\RequirePackage{palatino,mathpazo}
+\RequirePackage[T1]{fontenc}
+\definecolor{Red}{rgb}{0.7,0,0}
+\definecolor{Blue}{rgb}{0,0,0.8}
+\definecolor{hellgrau}{rgb}{0.55,0.55,0.55}
+\newcommand{\R}{R}
+\newcommand{\address}[1]{\addvspace{\baselineskip}\noindent\emph{#1}}
+\newcommand{\email}[1]{\href{mailto:#1}{\normalfont\texttt{#1}}}
+\newsavebox{\RJ at box}
+\newlength{\RJ at len}
+\newenvironment{bottombox}{%
+  \begin{figure*}[b]
+    \begin{center}
+      \noindent
+      \begin{lrbox}{\RJ at box}
+        \begin{minipage}{0.99\textwidth}}{%
+        \end{minipage}
+      \end{lrbox}
+      \addtolength{\RJ at len}{\fboxsep}
+      \addtolength{\RJ at len}{\fboxrule}
+      \hspace*{-\RJ at len}\fbox{\usebox{\RJ at box}}
+    \end{center}
+  \end{figure*}}
+\RequirePackage{verbatim}
+\def\boxedverbatim{%
+  \def\verbatim at processline{%
+    {\setbox0=\hbox{\the\verbatim at line}%
+    \hsize=\wd0 \the\verbatim at line\par}}%
+  \@minipagetrue
+  \@tempswatrue
+  \setbox0=\vbox
+  \bgroup\small\verbatim
+}
+\def\endboxedverbatim{%
+  \endverbatim
+  \unskip\setbox0=\lastbox
+  \egroup
+  \fbox{\box0}
+}
+\pagestyle{fancy}
+} % \ifthenelse{\boolean{RJ at driver}}
+\newcommand\code{\bgroup\@codex}
+\def\@codex#1{\texorpdfstring%
+{{\normalfont\ttfamily\hyphenchar\font=-1 #1}}%
+{#1}\egroup}
+\newcommand{\kbd}[1]{{\normalfont\texttt{#1}}}
+\newcommand{\key}[1]{{\normalfont\texttt{\uppercase{#1}}}}
+\newcommand\samp{`\bgroup\@noligs\@sampx}
+\def\@sampx#1{{\normalfont\texttt{#1}}\egroup'}
+\newcommand{\var}[1]{{\normalfont\textsl{#1}}}
+\let\env=\code
+\newcommand{\file}[1]{{`\normalfont\textsf{#1}'}}
+\let\command=\code
+\let\option=\samp
+\newcommand{\dfn}[1]{{\normalfont\textsl{#1}}}
+\newcommand{\acronym}[1]{#1}
+\newcommand{\strong}[1]{\texorpdfstring%
+{{\normalfont\fontseries{b}\selectfont #1}}%
+{#1}}
+\let\pkg=\strong
+\RequirePackage{alltt}
+\newenvironment{example}{\begin{alltt}}{\end{alltt}}
+\newenvironment{smallexample}{\begin{alltt}\small}{\end{alltt}}
+\newenvironment{display}{\list{}{}\item\relax}{\endlist}
+\newenvironment{smallverbatim}{\small\verbatim}{\endverbatim}
+\RequirePackage{fancyvrb}
+\DefineVerbatimEnvironment{Sinput}{Verbatim}{fontsize=\small}
+\DefineVerbatimEnvironment{Soutput}{Verbatim}{fontsize=\small}
+\DefineVerbatimEnvironment{Scode}{Verbatim}{fontsize=\small}
+\DefineVerbatimEnvironment{Sin}{Verbatim}{fontsize=\small}
+\DefineVerbatimEnvironment{Sout}{Verbatim}{fontsize=\small}
+\newenvironment{Schunk}{}{}
+\providecommand{\operatorname}[1]{%
+  \mathop{\operator at font#1}\nolimits}
+\renewcommand{\P}{%
+  \mathop{\operator at font I\hspace{-1.5pt}P\hspace{.13pt}}}
+\newcommand{\E}{%
+  \mathop{\operator at font I\hspace{-1.5pt}E\hspace{.13pt}}}
+\newcommand{\VAR}{\operatorname{var}}
+\newcommand{\COV}{\operatorname{cov}}
+\newcommand{\COR}{\operatorname{cor}}
+\RequirePackage{amsfonts}
+\endinput
+%%
+%% End of file `RJournal.sty'.

Added: RJournal/RJwrapper.tex
===================================================================
--- RJournal/RJwrapper.tex	                        (rev 0)
+++ RJournal/RJwrapper.tex	2010-01-11 09:05:20 UTC (rev 336)
@@ -0,0 +1,22 @@
+\documentclass[a4paper]{report}
+\usepackage{RJournal}
+\usepackage[round]{natbib}
+\bibliographystyle{abbrvnat}
+
+%% load any required packages here
+
+\begin{document}
+
+%% do not edit, for illustration only
+\fancyhf{}
+\fancyhead[LO,RE]{\textsc{Contributed Article}}
+\fancyhead[RO,LE]{\thepage}
+\fancyfoot[L]{The R Journal Vol. X/Y, Month, Year}
+\fancyfoot[R]{ISSN 2073-4859}
+
+%% replace RJtemplate with your article
+\begin{article}
+  \input{FrancoisEddelbuettel}
+\end{article}
+
+\end{document}



More information about the Rcpp-commits mailing list