X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Ftemplates%2FJSS-article.lyx;h=f6c2b9fa9e4f05f262e0496c2c93ce849e91b599;hb=0984e113171297e402c88ce048e9ccf1fb3d3619;hp=2978ff2f57286b3def720bf81ca6733a2ddd30c0;hpb=ef9d8927c72df09f065c849ca171f6895462865d;p=lyx.git diff --git a/lib/templates/JSS-article.lyx b/lib/templates/JSS-article.lyx index 2978ff2f57..f6c2b9fa9e 100644 --- a/lib/templates/JSS-article.lyx +++ b/lib/templates/JSS-article.lyx @@ -1,53 +1,16 @@ -#LyX 1.5.5 created this file. For more info see http://www.lyx.org/ -\lyxformat 276 +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 \begin_document \begin_header +\save_transient_properties true +\origin /systemlyxdir/templates/ \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 @@ -59,55 +22,78 @@ %\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 +\use_default_options false +\maintain_unincluded_children false \language english +\language_package default \inputencoding auto -\font_roman default -\font_sans default -\font_typewriter default +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" \font_default_family default +\use_non_tex_fonts false \font_sc false \font_osf false -\font_sf_scale 100 -\font_tt_scale 100 +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true \graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command default +\index_command default \paperfontsize default \spacing single +\use_hyperref false \papersize default \use_geometry false -\use_amsmath 0 -\use_esint 0 -\cite_engine natbib_authoryear +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine natbib +\cite_engine_type authoryear +\biblio_style plainnat \use_bibtopic false +\use_indices false \paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index \secnumdepth 3 \tocdepth 3 \paragraph_separation indent -\defskip medskip -\quotes_language english +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false -\author "" -\author "" +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false \end_header \begin_body @@ -116,25 +102,33 @@ \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. +\begin_layout Plain Layout +This is a template \SpecialChar LyX + file for articles to be submitted to the Journal of + Statistical Software (JSS). + How to install the JSS \SpecialChar LaTeX + class to your \SpecialChar LaTeX + system is explained in +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +https://wiki.lyx.org/Layouts/JSS \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_inset + +. \end_layout -\begin_layout Standard +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout To use the JSS codesnippet, bookreview or softwarereview styles, replace the option \begin_inset Quotes eld @@ -144,9 +138,9 @@ article \begin_inset Quotes erd \end_inset - in Document\SpecialChar \menuseparator -Settings...\SpecialChar \menuseparator -Document Class\SpecialChar \menuseparator + in Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Document Class\SpecialChar menuseparator Options with \begin_inset Quotes eld \end_inset @@ -171,11 +165,12 @@ softwarereview \begin_inset Quotes erd \end_inset - and remove/uncomment the relevant parts in the LaTeX Preamble. + and remove/uncomment the relevant parts in the \SpecialChar LaTeX + Preamble. \end_layout -\begin_layout Standard +\begin_layout Plain Layout If you want to use this JSS article style for a non-JSS article, replace the option \begin_inset Quotes eld @@ -194,13 +189,20 @@ nojss \end_inset . - This will suppress the JSS-specic parts of the layout. + This will suppress the JSS-specific parts of the layout. \end_layout -\begin_layout Standard +\begin_layout Plain Layout 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. + with PDF, i. +\begin_inset space \thinspace{} +\end_inset + +e. +\begin_inset space ~ +\end_inset + +you cannot process it with DVI or PS. However, if the option \begin_inset Quotes eld \end_inset @@ -217,92 +219,124 @@ nojss \end_layout -\begin_layout Section -\begin_inset Note Note -status collapsed +\begin_layout Title +A Capitalized Title: Something about a Package +\begin_inset Flex Pkg +status open -\begin_layout Standard -The opt field provides bookmarks for PDF files +\begin_layout Plain Layout +foo \end_layout \end_inset -\begin_inset OptArg -status collapsed +\end_layout -\begin_layout Standard -About package foo in R +\begin_layout Plain Title +A Capitalized Title: Something about a Package foo +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional \end_layout \end_inset -About package + +\end_layout + +\begin_layout Author +Achim Zeileis +\begin_inset Newline newline +\end_inset + +Universität Innsbruck \begin_inset ERT status collapsed -\begin_layout Standard +\begin_layout Plain Layout \backslash -pkg +And \end_layout \end_inset +Second Author +\begin_inset Newline newline +\end_inset -\begin_inset ERT -status collapsed +Plus Affiliation +\end_layout -\begin_layout Standard +\begin_layout Plain Author +Achim Zeileis, Second Author +\begin_inset Note Note +status open -{ +\begin_layout Plain Layout +optional \end_layout \end_inset -foo -\begin_inset ERT -status collapsed -\begin_layout Standard +\end_layout + +\begin_layout Short Title +\begin_inset Flex Pkg +status open -} +\begin_layout Plain Layout +foo \end_layout \end_inset - in -\begin_inset ERT +: A Capitalized Title +\begin_inset Note Note status collapsed -\begin_layout Standard - - -\backslash -proglang +\begin_layout Plain Layout +only if necessary \end_layout \end_inset -\begin_inset ERT -status collapsed +\end_layout -\begin_layout Standard +\begin_layout Abstract +\noindent +The abstract of the article. + The abstract of the article.The abstract of the article.The abstract of the + article.The abstract of the article.The abstract of the article.The abstract + of the article.The abstract of the article.The abstract of the article.The + abstract of the article.The abstract of the article.The abstract of the article.Th +e abstract of the article.The abstract of the article.The abstract of the + article.The abstract of the article.The abstract of the article. +\end_layout + +\begin_layout Keywords +keywords, comma-separated, not capitalized, +\begin_inset Flex Proglang +status open -{ +\begin_layout Plain Layout +Java \end_layout \end_inset -R -\begin_inset ERT -status collapsed -\begin_layout Standard +\begin_inset Note Note +status open -} +\begin_layout Plain Layout +at least one keyword must be supplied \end_layout \end_inset @@ -310,115 +344,182 @@ status collapsed \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 Plain Keywords +keyword 1, keyword 2, foo, R +\end_layout -\begin_layout Standard +\begin_layout Address +Achim Zeileis +\begin_inset Newline newline +\end_inset +Department of Statistics and Mathematics +\begin_inset Newline newline +\end_inset -\backslash -proglang{R} -\end_layout +Faculty of Economics and Statistics +\begin_inset Newline newline +\end_inset +Universität Innsbruck +\begin_inset Newline newline \end_inset - or -\begin_inset ERT -status collapsed +6020 Innsbruck, Austria +\begin_inset Newline newline +\end_inset -\begin_layout Standard +E-mail: +\begin_inset Flex E-mail +status open +\begin_layout Plain Layout -\backslash -proglang{ +Achim.Zeileis@uibk.ac.at \end_layout \end_inset -R -\begin_inset ERT -status collapsed -\begin_layout Standard +\begin_inset Newline newline +\end_inset -} +URL: +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +http://eeecon.uibk.ac.at/~zeileis/ \end_layout \end_inset - for the names of programming languages, -\begin_inset ERT + +\begin_inset Note Note status open -\begin_layout Standard +\begin_layout Plain Layout +It is also possible to add a telephone and fax number before the e-mail + in the following format: +\begin_inset Newline newline +\end_inset +Telephone: +43/512/507-7103 +\end_layout -\backslash -pkg{foo} +\begin_layout Plain Layout +Fax: +43/512/507-2851 \end_layout \end_inset - or -\begin_inset ERT -status collapsed -\begin_layout Standard +\end_layout +\begin_layout Section +About package +\begin_inset Flex Pkg +status open -\backslash -pkg{ +\begin_layout Plain Layout +foo \end_layout \end_inset -foo -\begin_inset ERT + in +\begin_inset Flex Proglang +status open + +\begin_layout Plain Layout +R +\end_layout + +\end_inset + + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +About package foo in R +\end_layout + +\end_inset + + +\begin_inset Note Note status collapsed +\begin_layout Plain Layout +The short title provides bookmarks for PDF files +\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 \SpecialChar LyX +: +\begin_inset Flex Proglang +status open -} +\begin_layout Plain Layout +R \end_layout \end_inset - for software packages, and -\begin_inset ERT + or +\begin_inset Flex Proglang status open -\begin_layout Standard +\begin_layout Plain Layout +R +\end_layout +\end_inset -\backslash -code{some code} + for the names of programming languages, +\begin_inset Flex Pkg +status open + +\begin_layout Plain Layout +foo \end_layout \end_inset or -\begin_inset ERT -status collapsed - -\begin_layout Standard - +\begin_inset Flex Pkg +status open -\backslash -pkg{ +\begin_layout Plain Layout +foo \end_layout \end_inset + for software packages, and +\begin_inset Flex Code +status open + +\begin_layout Plain Layout some code -\begin_inset ERT -status collapsed +\end_layout -\begin_layout Standard +\end_inset -} + or +\begin_inset Flex Pkg +status open + +\begin_layout Plain Layout +some code \end_layout \end_inset @@ -429,9 +530,9 @@ status collapsed \begin_inset Note Note -status open +status collapsed -\begin_layout Standard +\begin_layout Plain Layout written as \backslash E @@ -445,9 +546,9 @@ E \begin_inset Note Note -status open +status collapsed -\begin_layout Standard +\begin_layout Plain Layout written as \backslash VAR @@ -461,9 +562,9 @@ VAR \begin_inset Note Note -status open +status collapsed -\begin_layout Standard +\begin_layout Plain Layout written as \backslash COV @@ -477,9 +578,9 @@ COV \begin_inset Note Note -status open +status collapsed -\begin_layout Standard +\begin_layout Plain Layout written as \backslash Prob @@ -491,56 +592,28 @@ Prob \end_layout \begin_layout Standard -Writing several lines of code: +Writing several lines of code: \end_layout \begin_layout Standard -\begin_inset ERT +\begin_inset Flex Code Chunk status open -\begin_layout Standard - - -\backslash -begin{CodeChunk} -\end_layout - -\begin_layout Standard - - -\backslash -begin{Code} -\end_layout - -\begin_layout Standard +\begin_layout Code first line of code \end_layout -\begin_layout Standard +\begin_layout Code second line of code \end_layout -\begin_layout Standard +\begin_layout Code third line of code \end_layout -\begin_layout Standard - - -\backslash -end{Code} -\end_layout - -\begin_layout Standard - - -\backslash -end{CodeChunk} -\end_layout - \end_inset @@ -551,87 +624,62 @@ Alternatively, you can distinguish between input and output code: \end_layout \begin_layout Standard -\begin_inset ERT +\begin_inset Flex Code Chunk status open -\begin_layout Standard - - -\backslash -begin{CodeChunk} -\end_layout - -\begin_layout Standard - - -\backslash -begin{CodeInput} -\end_layout - -\begin_layout Standard +\begin_layout Code Input first line of input code \end_layout -\begin_layout Standard +\begin_layout Code Input 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 +\begin_layout Code Output first line of output code \end_layout -\begin_layout Standard +\begin_layout Code Output second line of output code \end_layout -\begin_layout Standard +\begin_layout Code Output third line of output code \end_layout -\begin_layout Standard +\end_inset -\backslash -end{CodeOutput} \end_layout -\begin_layout Standard - - -\backslash -end{CodeChunk} +\begin_layout Section* +Acknowledgments \end_layout -\end_inset +\begin_layout Standard +Here you can write some acknowledgments. +\end_layout +\begin_layout Section +\start_of_appendix +This is the first appendix section +\end_layout +\begin_layout Subsection +A subsection \end_layout -\begin_layout Section* -Acknowledgments +\begin_layout Subsubsection +A subsubsection \end_layout \begin_layout Standard -Here you can write some acknowledgments. +some text \end_layout \end_body