From 2b21af9a4229e991c50c17b50d628c2d65f347c5 Mon Sep 17 00:00:00 2001 From: Martin Vermeer Date: Thu, 18 Dec 2003 12:42:02 +0000 Subject: [PATCH] AGU header stuff git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8264 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 5 + lib/layouts/agu_stdclass.inc | 2 +- lib/layouts/agu_stdtitle.inc | 183 +++++++++++++++++++++++++++++++++++ src/ChangeLog | 4 + src/output_docbook.C | 2 +- 5 files changed, 194 insertions(+), 2 deletions(-) create mode 100644 lib/layouts/agu_stdtitle.inc diff --git a/lib/ChangeLog b/lib/ChangeLog index d4e5951e3a..1ac7b25190 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2003-12-18 Martin Vermeer + + * agu_stdclass.inc: + * agu_stdtitle.inc: AGU header stuff + 2003-12-15 Jürgen Spitzmüller * examples/Minipage.lyx: fix width units (c% -> text%). diff --git a/lib/layouts/agu_stdclass.inc b/lib/layouts/agu_stdclass.inc index 5a73fcfc83..a67a813fcb 100644 --- a/lib/layouts/agu_stdclass.inc +++ b/lib/layouts/agu_stdclass.inc @@ -100,7 +100,7 @@ End Input agu_stdlists.inc Input agu_stdsections.inc Input db_stdstarsections.inc -Input db_stdtitle.inc +Input agu_stdtitle.inc Input db_stdstruct.inc Input db_lyxmacros.inc Input db_stdlayouts.inc diff --git a/lib/layouts/agu_stdtitle.inc b/lib/layouts/agu_stdtitle.inc new file mode 100644 index 0000000000..1e30a07969 --- /dev/null +++ b/lib/layouts/agu_stdtitle.inc @@ -0,0 +1,183 @@ +# Textclass definition file for agu-dtd. +# Author : José Abílio Oliveira Matos +# Modified Martin Vermeer +# +# This file is the counterpart of stdstyle.inc +# It is desirable, as far as possible, to have the same look and feel for +# related layouts in latex and docbook. + +Input stdtitle.inc + + +Style Header + Margin First_dynamic + LatexType Command + LatexName header + LabelSep xx + LabelType Centered_Top_Environment + LabelString "
" + CommandDepth 2 + KeepEmpty 1 + NextNoIndent 1 + LabelFont + Color green + EndFont +End + + +Style Special-section + CopyStyle Header + LatexName special-section + LabelType Static + LabelString "" + CommandDepth 3 + LabelFont + Color blue + EndFont +End + + +Style AGU-journal + CopyStyle Special-section + LatexName AGU-journal + LabelString "" + CommandDepth 3 +End + + +Style AGU-volume + CopyStyle Special-section + LatexName AGU-volume + LabelString "" + CommandDepth 3 +End + + +Style AGU-issue + CopyStyle Special-section + LatexName AGU-issue + LabelString "" + CommandDepth 3 +End + + +Style Copyright + CopyStyle Special-section + LatexName copyright + LabelString "" + CommandDepth 3 +End + + +Style Indexterms + CopyStyle Special-section + LatexName index-terms + LabelString "" + CommandDepth 3 +End + + +Style Keywords + CopyStyle Special-section + LatexName keywords + LabelString "" + CommandDepth 3 +End + + +Style Affiliation + CopyStyle Special-section + LatexName affiliation + LabelString "" + CommandDepth 3 +End + + +Style Supplementary + CopyStyle Special-section + LatexName sup-mat-ref + LabelString "" + CommandDepth 3 +End + + +Style Author + CopyStyle Special-section + LatexName author + LabelString "" + CommandDepth 3 +End + + +Style Abstract + LatexType Environment + LabelType Centered_Top_Environment + LabelString "Abstract" + CommandDepth 3 +End + + +Style Received + CopyStyle Special-section + LatexName received + LabelString "" + CommandDepth 3 +End + + +Style Revised + CopyStyle Special-section + LatexName revised + LabelString "" + CommandDepth 3 +End + + +Style Accepted + CopyStyle Special-section + LatexName accepted + LabelString "" + CommandDepth 3 +End + + +Style Identline + CopyStyle Special-section + LatexName ident-line + LabelString "" + CommandDepth 3 +End + + +Style Runhead + CopyStyle Special-section + LatexName runhead + LabelString "" + CommandDepth 3 +End + + +Style Date + CopyStyle Special-section + LatexName date + LabelString "" + CommandDepth 3 +End + + +Style Title + CopyStyle Special-section + LatexName title + LabelString "" + CommandDepth 3 +End + + +Style Citation + CopyStyle Special-section + LatexName citation + LabelString "<citation>" + CommandDepth 3 +End + + diff --git a/src/ChangeLog b/src/ChangeLog index bd85f085e8..5d2ee9d980 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-12-18 Martin Vermeer <martin.vermeer@hut.fi> + + * output_docbook.C: header stuff for AGU + 2003-12-17 Alfredo Braunstein <abraunst@lyx.org> * text2.C (redoCursor): remove diff --git a/src/output_docbook.C b/src/output_docbook.C index 8602b67283..cc8e8d670a 100644 --- a/src/output_docbook.C +++ b/src/output_docbook.C @@ -147,7 +147,7 @@ void docbookParagraphs(Buffer const & buf, // more WYSIWYM handling. // This is a hack while paragraphs can't have // attributes, like id in this case. - if (par->isInset(0)) { + if (par->size() && par->isInset(0)) { InsetOld * inset = par->getInset(0); InsetOld::Code lyx_code = inset->lyxCode(); if (lyx_code == InsetOld::LABEL_CODE) { -- 2.39.2