mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
e99a8b7c67
commit
4beba4e8f8
@ -30,6 +30,14 @@ AddToPreamble
|
||||
\fancyhead[RO,LE]{\thepage}
|
||||
\fancyfoot[L]{The R Journal Vol. X/Y, Month, Year}
|
||||
\fancyfoot[R]{ISSN 2073-4859}
|
||||
|
||||
\AtBeginDocument{%
|
||||
\begin{article}
|
||||
}
|
||||
|
||||
\AtEndDocument{%
|
||||
\end{article}
|
||||
}
|
||||
EndPreamble
|
||||
|
||||
InsetLayout "Flex:Abstract"
|
||||
|
@ -63,43 +63,6 @@ knitr
|
||||
|
||||
\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_inset ERT
|
||||
status open
|
||||
@ -405,42 +368,6 @@ author.b@email
|
||||
\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_body
|
||||
|
Loading…
Reference in New Issue
Block a user