RJournal template and layout: move ERTs to layout

The layout now takes care of \begin{article} and \end{article}
by using \AtBeginDocument and \AtEndDocument.

This cleans up the template a little by removing some ERT. The
user no longer needs to read the two notes explaining why the
ERT boxes were necessary. The user also does not need to think
about why this LaTeX environment exists.
This commit is contained in:
Scott Kostyshak 2013-05-07 23:56:24 -04:00
parent e99a8b7c67
commit 4beba4e8f8
2 changed files with 8 additions and 73 deletions

View File

@ -30,6 +30,14 @@ AddToPreamble
\fancyhead[RO,LE]{\thepage} \fancyhead[RO,LE]{\thepage}
\fancyfoot[L]{The R Journal Vol. X/Y, Month, Year} \fancyfoot[L]{The R Journal Vol. X/Y, Month, Year}
\fancyfoot[R]{ISSN 2073-4859} \fancyfoot[R]{ISSN 2073-4859}
\AtBeginDocument{%
\begin{article}
}
\AtEndDocument{%
\end{article}
}
EndPreamble EndPreamble
InsetLayout "Flex:Abstract" InsetLayout "Flex:Abstract"

View File

@ -63,43 +63,6 @@ knitr
\begin_body \begin_body
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Plain Layout
You have to put the body of your article inside the
\begin_inset Quotes eld
\end_inset
article
\begin_inset Quotes erd
\end_inset
enviroment defined by RJournal.sty.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
begin{article}
\end_layout
\end_inset
\end_layout
\begin_layout Standard \begin_layout Standard
\begin_inset ERT \begin_inset ERT
status open status open
@ -405,42 +368,6 @@ author.b@email
\end_inset \end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
end{article}
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
Note
\backslash
begin{article} in the beginning of this article; now we close the
\begin_inset Quotes eld
\end_inset
article
\begin_inset Quotes erd
\end_inset
environment.
\end_layout
\end_inset
\end_layout \end_layout
\end_body \end_body