From 5f5a6e777e0d9432126fde987c46878422c46ef7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Tue, 13 Dec 2011 23:04:09 +0000 Subject: [PATCH] - JASA.lyx, jasatex.layout: JasaTeX internally uses natbib but does not allow to use another command than \cite; add a missing command and a note git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40495 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/layouts/jasatex.layout | 23 ++++++++++++++++- lib/templates/JASA.lyx | 52 +++++++++++++++++++++++++++++++++++--- 2 files changed, 70 insertions(+), 5 deletions(-) diff --git a/lib/layouts/jasatex.layout b/lib/layouts/jasatex.layout index dd637971d5..3da64a8958 100644 --- a/lib/layouts/jasatex.layout +++ b/lib/layouts/jasatex.layout @@ -53,7 +53,6 @@ NoStyle Chapter NoCounter chapter NoStyle Chapter* -Provides natbib 1 Style Title Margin Static @@ -234,6 +233,28 @@ Style Acknowledgments End +InsetLayout "Flex:Online citation" + LyxType custom + LatexType command + LatexName onlinecite + LabelString "Online citation" + Font + Color foreground + Size Small + Family Roman + Shape Up + Series Medium + Misc No_Emph + Misc No_Noun + Misc No_Bar + EndFont + LabelFont + Color green + Size Small + EndFont +End + + Style Bibliography Margin First_Dynamic LatexType Bib_Environment diff --git a/lib/templates/JASA.lyx b/lib/templates/JASA.lyx index 4857f74e9a..aa04278645 100644 --- a/lib/templates/JASA.lyx +++ b/lib/templates/JASA.lyx @@ -34,7 +34,7 @@ \use_esint 1 \use_mhchem 1 \use_mathdots 1 -\cite_engine natbib_authoryear +\cite_engine basic \use_bibtopic false \use_indices false \paperorientation portrait @@ -76,6 +76,28 @@ nopreprint \end_inset +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout + +\series bold +Note +\series default +: Using the citation style +\family sans +Natbib +\family default + in the document settings would lead to LaTeX errors, because JasaTeX uses + its own natbib mechanism. +\end_layout + +\end_inset + + \end_layout \begin_layout Preprint number @@ -278,6 +300,28 @@ key "Parkin2005,LComp2004" \end_inset +. +\begin_inset Newline newline +\end_inset + +For larger citation numbers use the style +\family sans +Online citation +\family default +: +\begin_inset Newline newline +\end_inset + +Bla bla, as listed in +\begin_inset Flex Online citation +status open + +\begin_layout Plain Layout +Parkin2005, LComp2004 +\end_layout + +\end_inset + . \end_layout @@ -355,7 +399,7 @@ Appendix, only when needed, inserted behind the acknowledgments but before the bibliography. \end_layout -\begin_layout Section* +\begin_layout Standard ----------------- \end_layout @@ -383,14 +427,14 @@ jasanum \begin_inset CommandInset bibtex LatexCommand bibtex bibfiles "../examples/biblioExample" -options "bibtotoc,jasaauthyear" +options "jasaauthyear" \end_inset \end_layout -\begin_layout Section* +\begin_layout Standard --------------------- \end_layout -- 2.39.5