From 189c535fca13cdbff768052375d0c56f69880a84 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sun, 26 Oct 2008 02:50:57 +0000 Subject: [PATCH] - elsarticle.layout: introduce insets for different commands - elsarticle.lyx: use new insets instead of ERT git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27132 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/layouts/elsarticle.layout | 66 +++++++++++++++++++++++++++++++++++ lib/templates/elsarticle.lyx | 44 ++++++++--------------- 2 files changed, 81 insertions(+), 29 deletions(-) diff --git a/lib/layouts/elsarticle.layout b/lib/layouts/elsarticle.layout index 9b56669362..c746dfba61 100644 --- a/lib/layouts/elsarticle.layout +++ b/lib/layouts/elsarticle.layout @@ -68,6 +68,28 @@ Style Title End +InsetLayout Titlenotemark + LyxType custom + LatexType command + LatexName tnoteref + LabelString "Titlenote mark" + 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 "Title footnote" Margin Dynamic LatexType Command @@ -108,6 +130,28 @@ Style Author End +InsetLayout Authormark + LyxType custom + LatexType command + LatexName fnref + LabelString "Author mark" + Font + Color foreground + Size Small + Family Roman + Shape Up + Series Medium + Misc No_Emph + Misc No_Noun + Misc No_Bar + EndFont + LabelFont + Color latex + Size Small + EndFont +End + + Style "Author footnote" CopyStyle "Title footnote" LatexName fntext @@ -115,6 +159,28 @@ Style "Author footnote" End +InsetLayout CorAuthormark + LyxType custom + LatexType command + LatexName corref + LabelString "CorAuthor mark" + Font + Color foreground + Size Small + Family Roman + Shape Up + Series Medium + Misc No_Emph + Misc No_Noun + Misc No_Bar + EndFont + LabelFont + Color blue + Size Small + EndFont +End + + Style "Corresponding author" CopyStyle "Title footnote" LatexName cortext diff --git a/lib/templates/elsarticle.lyx b/lib/templates/elsarticle.lyx index 0877459378..88ef907036 100644 --- a/lib/templates/elsarticle.lyx +++ b/lib/templates/elsarticle.lyx @@ -1,5 +1,5 @@ #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/ -\lyxformat 341 +\lyxformat 344 \begin_document \begin_header \textclass elsarticle @@ -7,6 +7,7 @@ % specify here the journal \journal{Example: Nuclear Physics B} \end_preamble +\use_default_options false \language english \inputencoding auto \font_roman default @@ -99,14 +100,11 @@ starts the front matter \begin_layout Title This is a specimen title -\begin_inset ERT -status collapsed +\begin_inset Flex Titlenotemark +status open \begin_layout Plain Layout - - -\backslash -tnoteref{t1,t2} +t1,t2 \end_layout \end_inset @@ -275,40 +273,31 @@ C.V. \end_inset Radhakrishnan -\begin_inset ERT +\begin_inset Flex Authormark status collapsed \begin_layout Plain Layout - - -\backslash -corref{cor1} +fn1 \end_layout \end_inset -\begin_inset ERT -status collapsed +\begin_inset Flex CorAuthormark +status open \begin_layout Plain Layout - - -\backslash -corref{cor2} +cor1 \end_layout \end_inset -\begin_inset ERT +\begin_inset Flex CorAuthormark status collapsed \begin_layout Plain Layout - - -\backslash -fnref{fn1} +cor2 \end_layout \end_inset @@ -356,14 +345,11 @@ K. \end_inset Bazargan -\begin_inset ERT -status collapsed +\begin_inset Flex Authormark +status open \begin_layout Plain Layout - - -\backslash -fnref{fn2} +fn2 \end_layout \end_inset -- 2.39.2