From ef9d8927c72df09f065c849ca171f6895462865d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sun, 1 Jun 2008 08:58:25 +0000 Subject: [PATCH] * New layout and template files for the Journal of Statistical Software (JSS), contributed by Andreas Karlsson git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25045 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/scons/scons_manifest.py | 2 + lib/Makefile.am | 2 + lib/doc/LaTeXConfig.lyx | 41 ++ lib/layouts/jss.layout | 11 + lib/templates/JSS-article.lyx | 638 ++++++++++++++++++++++++++++ 5 files changed, 694 insertions(+) create mode 100644 lib/layouts/jss.layout create mode 100644 lib/templates/JSS-article.lyx diff --git a/development/scons/scons_manifest.py b/development/scons/scons_manifest.py index 7f9eaadaed..66023136dc 100644 --- a/development/scons/scons_manifest.py +++ b/development/scons/scons_manifest.py @@ -1285,6 +1285,7 @@ lib_templates_files = Split(''' ijmpc.lyx ijmpd.lyx iop-article.lyx + JSS-article.lyx kluwer.lyx koma-letter2.lyx latex8.lyx @@ -2549,6 +2550,7 @@ lib_layouts_files = Split(''' jreport.layout jsarticle.layout jsbook.layout + jss.layout kluwer.layout latex8.layout letter.layout diff --git a/lib/Makefile.am b/lib/Makefile.am index 6377f4a467..c233ab7ef8 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -998,6 +998,7 @@ dist_layouts_DATA =\ layouts/jreport.layout \ layouts/jsarticle.layout \ layouts/jsbook.layout \ + layouts/jss.layout \ layouts/kluwer.layout \ layouts/latex8.layout \ layouts/letter.layout \ @@ -1111,6 +1112,7 @@ dist_templates_DATA = \ templates/ijmpc.lyx \ templates/ijmpd.lyx \ templates/iop-article.lyx \ + templates/JSS-article.lyx \ templates/kluwer.lyx \ templates/koma-letter2.lyx \ templates/latex8.lyx \ diff --git a/lib/doc/LaTeXConfig.lyx b/lib/doc/LaTeXConfig.lyx index 2142cf03b1..01ce738726 100644 --- a/lib/doc/LaTeXConfig.lyx +++ b/lib/doc/LaTeXConfig.lyx @@ -2124,6 +2124,47 @@ report . \end_layout +\begin_layout Subsection +jss +\end_layout + +\begin_layout Description +Found: +\begin_inset Info +type "textclass" +arg "jss" +\end_inset + + +\end_layout + +\begin_layout Description +CTAN: N/A +\end_layout + +\begin_layout Description +WWW: available from +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.jstatsoft.org/downloads/JSSstyle.zip +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Description +Notes: The document class +\family sans +jss +\family default + can be used to write articles for the Journal of Statistical Software (JSS). +\end_layout + \begin_layout Subsection kluwer \end_layout diff --git a/lib/layouts/jss.layout b/lib/layouts/jss.layout new file mode 100644 index 0000000000..6c3ebb7b9c --- /dev/null +++ b/lib/layouts/jss.layout @@ -0,0 +1,11 @@ +#% Do not delete the line below; configure depends on this +# \DeclareLaTeXClass[jss]{article (Journal of Statistical Software)} +# Journal of Statistical Software (JSS) article textclass definition file +# Author: Andreas Karlsson +# License: GNU GPL version 2 or later +# JSS LaTeX files can be downloaded from http://www.jstatsoft.org/JSSstyle.zip + +Format 4 + +# Read the definitions from article.layout +Input article.layout \ No newline at end of file diff --git a/lib/templates/JSS-article.lyx b/lib/templates/JSS-article.lyx new file mode 100644 index 0000000000..2978ff2f57 --- /dev/null +++ b/lib/templates/JSS-article.lyx @@ -0,0 +1,638 @@ +#LyX 1.5.5 created this file. For more info see http://www.lyx.org/ +\lyxformat 276 +\begin_document +\begin_header +\textclass jss +\begin_preamble +%the following commands are used only for articles and codesnippets + +\author{First Author\\Affiliation of the first author \And + Second Author\\Affiliation of the second author \AND + Third Author\\Affiliation of the third author} +\title{Article About the Use of Package \pkg{foo} in \proglang{R}} + +% the same as above, without any formatting +\Plainauthor{First Author, Second Author, Third author} +\Plaintitle{Article About the Use of Package foo in R} +%if necessary, provide a short title +\Shorttitle{Package foo in R} + +\Abstract{This is the abstract of the article.} +%at least one keyword is needed +\Keywords{keyword 1, keyword 2, \pkg{foo}, \proglang{R}} +%the same as above, without any formatting +\Plainkeywords{keyword 1, keyword 2, foo, R} + +%the following commands are used only for book or software reviews + +%\Reviewer{Some Author\\University of Somewhere} +%\Plainreviewer{Some Author} + +%the following commands are used only for book reviews +%\Booktitle{LyX and \proglang{R}: Secrets of the LyX Master} +%\Bookauthor{Book Author} +%\Pubyear{2008} +%\ISBN{0-12345-678-9} +%\Pages{500} + +%the following command is used only for software reviews +%\Softwaretitle{\proglang{gretl 1.7.4}} + +%the following commands are used only for book or software reviews +%\Publisher{LyX Publishing Inc.} +%\Pubaddress{LyX City} +%\Price{USD 59.95 (P), USD 99.95 (H)} +%\URL{http://www.lyx.org/} + +%without any formatting +%\Plaintitle{LyX and R: Secrets of the LyX Master} +%\Shorttitle{LyX and R} + +%the following commands are used for articles, codesnippets, book reviews and software reviews + +%publication information +%do not use these commands before the article has been accepted +%\Volume{00} +%\Issue{0} +%\Month{Month} +%\Year{2000} +%\Submitdate{2000-00-00} +%\Acceptdate{2000-00-00} + +%The address of at least one author should be given in the following format +\Address{ + First Author\\ + Department of Statistics\\ + University of Somewhere\\ + Somewhere, Somecountry\\ + E-mail: \email{first.author@lyx.org}\\ + URL: \url{http://www.lyx.org} +} +%you can add a telephone and fax number before the e-mail in the format +%Telephone: +12/3/4567-89 +%Fax: +12/3/4567-89 + +%if you use Sweave, include the following line (with % symbols): +%% need no \usepackage{Sweave.sty} +\end_preamble +\options article +\language english +\inputencoding auto +\font_roman default +\font_sans default +\font_typewriter default +\font_default_family default +\font_sc false +\font_osf false +\font_sf_scale 100 +\font_tt_scale 100 +\graphics default +\paperfontsize default +\spacing single +\papersize default +\use_geometry false +\use_amsmath 0 +\use_esint 0 +\cite_engine natbib_authoryear +\use_bibtopic false +\paperorientation portrait +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\defskip medskip +\quotes_language english +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\author "" +\author "" +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Standard +This is a template LyX file for an article written using the Journal of + Statistical Software (JSS) LaTeX style file, which can be downloaded from + http://www.jstatsoft.org/downloads/JSSstyle.zip. + These files have to be installed before this template can be used. + Consult chapter 5.1 in the LyX Customization manual. + See also the documentation included with the JSS LaTeX style file. +\end_layout + +\begin_layout Standard +Note that title, author, address, abstract, keywords etc for this article + style are written in the LaTeX preamble (accessed from Document\SpecialChar \menuseparator +Settings...\SpecialChar \menuseparator +LaTeX + Preamble). + +\end_layout + +\begin_layout Standard +To use the JSS codesnippet, bookreview or softwarereview styles, replace + the option +\begin_inset Quotes eld +\end_inset + +article +\begin_inset Quotes erd +\end_inset + + in Document\SpecialChar \menuseparator +Settings...\SpecialChar \menuseparator +Document Class\SpecialChar \menuseparator +Options with +\begin_inset Quotes eld +\end_inset + +codesnippet +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +bookreview +\begin_inset Quotes erd +\end_inset + + or +\begin_inset Quotes eld +\end_inset + +softwarereview +\begin_inset Quotes erd +\end_inset + + and remove/uncomment the relevant parts in the LaTeX Preamble. + +\end_layout + +\begin_layout Standard +If you want to use this JSS article style for a non-JSS article, replace + the option +\begin_inset Quotes eld +\end_inset + +article +\begin_inset Quotes erd +\end_inset + + with +\begin_inset Quotes eld +\end_inset + +nojss +\begin_inset Quotes erd +\end_inset + +. + This will suppress the JSS-specic parts of the layout. +\end_layout + +\begin_layout Standard +To include the JSS-specific parts of the layout, the article has to be processed + with PDF, i.e. + you cannot process it with DVI or PS. + However, if the option +\begin_inset Quotes eld +\end_inset + +nojss +\begin_inset Quotes erd +\end_inset + + is used, it can be processed with DVI or PS. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +\begin_inset Note Note +status collapsed + +\begin_layout Standard +The opt field provides bookmarks for PDF files +\end_layout + +\end_inset + + +\begin_inset OptArg +status collapsed + +\begin_layout Standard +About package foo in R +\end_layout + +\end_inset + +About package +\begin_inset ERT +status collapsed + +\begin_layout Standard + + +\backslash +pkg +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Standard + +{ +\end_layout + +\end_inset + +foo +\begin_inset ERT +status collapsed + +\begin_layout Standard + +} +\end_layout + +\end_inset + + in +\begin_inset ERT +status collapsed + +\begin_layout Standard + + +\backslash +proglang +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Standard + +{ +\end_layout + +\end_inset + +R +\begin_inset ERT +status collapsed + +\begin_layout Standard + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The special JSS style commands related to software and mathematical formulas + are written as follows in LyX: +\begin_inset ERT +status open + +\begin_layout Standard + + +\backslash +proglang{R} +\end_layout + +\end_inset + + or +\begin_inset ERT +status collapsed + +\begin_layout Standard + + +\backslash +proglang{ +\end_layout + +\end_inset + +R +\begin_inset ERT +status collapsed + +\begin_layout Standard + +} +\end_layout + +\end_inset + + for the names of programming languages, +\begin_inset ERT +status open + +\begin_layout Standard + + +\backslash +pkg{foo} +\end_layout + +\end_inset + + or +\begin_inset ERT +status collapsed + +\begin_layout Standard + + +\backslash +pkg{ +\end_layout + +\end_inset + +foo +\begin_inset ERT +status collapsed + +\begin_layout Standard + +} +\end_layout + +\end_inset + + for software packages, and +\begin_inset ERT +status open + +\begin_layout Standard + + +\backslash +code{some code} +\end_layout + +\end_inset + + or +\begin_inset ERT +status collapsed + +\begin_layout Standard + + +\backslash +pkg{ +\end_layout + +\end_inset + +some code +\begin_inset ERT +status collapsed + +\begin_layout Standard + +} +\end_layout + +\end_inset + + for code; +\begin_inset Formula $\E$ +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Standard +written as +\backslash +E +\end_layout + +\end_inset + + for expectations, +\begin_inset Formula $\VAR$ +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Standard +written as +\backslash +VAR +\end_layout + +\end_inset + + for variances, +\begin_inset Formula $\COV$ +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Standard +written as +\backslash +COV +\end_layout + +\end_inset + + for covariances, and +\begin_inset Formula $\Prob$ +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Standard +written as +\backslash +Prob +\end_layout + +\end_inset + + for probabilities. +\end_layout + +\begin_layout Standard +Writing several lines of code: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Standard + + +\backslash +begin{CodeChunk} +\end_layout + +\begin_layout Standard + + +\backslash +begin{Code} +\end_layout + +\begin_layout Standard + +first line of code +\end_layout + +\begin_layout Standard + +second line of code +\end_layout + +\begin_layout Standard + +third line of code +\end_layout + +\begin_layout Standard + + +\backslash +end{Code} +\end_layout + +\begin_layout Standard + + +\backslash +end{CodeChunk} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Alternatively, you can distinguish between input and output code: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Standard + + +\backslash +begin{CodeChunk} +\end_layout + +\begin_layout Standard + + +\backslash +begin{CodeInput} +\end_layout + +\begin_layout Standard + +first line of input code +\end_layout + +\begin_layout Standard + +second line of input code +\end_layout + +\begin_layout Standard + + +\backslash +end{CodeInput} +\end_layout + +\begin_layout Standard + + +\backslash +begin{CodeOutput} +\end_layout + +\begin_layout Standard + +first line of output code +\end_layout + +\begin_layout Standard + +second line of output code +\end_layout + +\begin_layout Standard + +third line of output code +\end_layout + +\begin_layout Standard + + +\backslash +end{CodeOutput} +\end_layout + +\begin_layout Standard + + +\backslash +end{CodeChunk} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section* +Acknowledgments +\end_layout + +\begin_layout Standard +Here you can write some acknowledgments. +\end_layout + +\end_body +\end_document -- 2.39.2