mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
DocBook: use DocBookItemTag within paragraphs.
This is at least helpful for AAS, even though it slightly resembles a repurposition of that parameter.
This commit is contained in:
parent
1a09086ec2
commit
c417253d0b
@ -5,21 +5,21 @@
|
|||||||
<info>
|
<info>
|
||||||
<title>Collapsed Cores in Globular Clusters, Gauge-Boson Couplings, and AASTeX Examples</title>
|
<title>Collapsed Cores in Globular Clusters, Gauge-Boson Couplings, and AASTeX Examples</title>
|
||||||
<author><personname>S. Djorgovski and Ivan R. King</personname></author>
|
<author><personname>S. Djorgovski and Ivan R. King</personname></author>
|
||||||
<author><affiliation>Astronomy Department, University of California, Berkeley, CA 94720</affiliation></author>
|
<author><affiliation><orgname>Astronomy Department, University of California, Berkeley, CA 94720</orgname></affiliation></author>
|
||||||
<author><affiliation role="alternate">Visiting Astronomer Cerro Tololo Inter-American Observatory.CTIO is operated by AURA Inc. under contract to the National Science Foundation.</affiliation></author>
|
<author><affiliation role="alternate"><orgname>Visiting Astronomer Cerro Tololo Inter-American Observatory.CTIO is operated by AURA Inc. under contract to the National Science Foundation.</orgname></affiliation></author>
|
||||||
<author><affiliation role="alternate">Society of Fellows, Harvard University.</affiliation></author>
|
<author><affiliation role="alternate"><orgname>Society of Fellows, Harvard University.</orgname></affiliation></author>
|
||||||
<author><affiliation role="alternate">present address: Center for Astrophysics60 Garden Street, Cambridge, MA 02138</affiliation></author>
|
<author><affiliation role="alternate"><orgname>present address: Center for Astrophysics60 Garden Street, Cambridge, MA 02138</orgname></affiliation></author>
|
||||||
<author><personname>C. D. Biemesderfer</personname></author>
|
<author><personname>C. D. Biemesderfer</personname></author>
|
||||||
<author><affiliation>National Optical Astronomy Observatories, Tucson, AZ 85719</affiliation></author>
|
<author><affiliation><orgname>National Optical Astronomy Observatories, Tucson, AZ 85719</orgname></affiliation></author>
|
||||||
<author><affiliation role="alternate">Visiting Programmer, Space Telescope Science Institute</affiliation></author>
|
<author><affiliation role="alternate"><orgname>Visiting Programmer, Space Telescope Science Institute</orgname></affiliation></author>
|
||||||
<author><affiliation role="alternate">Patron, Alonso's Bar and Grill</affiliation></author>
|
<author><affiliation role="alternate"><orgname>Patron, Alonso's Bar and Grill</orgname></affiliation></author>
|
||||||
<author><email>aastex-help@aas.org</email></author>
|
<author><email>aastex-help@aas.org</email></author>
|
||||||
<author><personname>R. J. Hanisch</personname></author>
|
<author><personname>R. J. Hanisch</personname></author>
|
||||||
<author><affiliation>Space Telescope Science Institute, Baltimore, MD 21218</affiliation></author>
|
<author><affiliation><orgname>Space Telescope Science Institute, Baltimore, MD 21218</orgname></affiliation></author>
|
||||||
<author><affiliation role="alternate">Patron, Alonso's Bar and Grill</affiliation></author>
|
<author><affiliation role="alternate"><orgname>Patron, Alonso's Bar and Grill</orgname></affiliation></author>
|
||||||
<abstract>
|
<abstract><para>
|
||||||
<para>This is a preliminary report on surface photometry of the major fraction of known globular clusters, to see which of them show the signs of a collapsed core. We also explore some diversionary mathematics and recreational tables. </para>
|
<para>This is a preliminary report on surface photometry of the major fraction of known globular clusters, to see which of them show the signs of a collapsed core. We also explore some diversionary mathematics and recreational tables. </para>
|
||||||
</abstract>
|
</para></abstract>
|
||||||
</info>
|
</info>
|
||||||
<section>
|
<section>
|
||||||
<title>Introduction</title>
|
<title>Introduction</title>
|
||||||
|
@ -155,6 +155,9 @@ Style Author
|
|||||||
Series Medium
|
Series Medium
|
||||||
Shape SmallCaps
|
Shape SmallCaps
|
||||||
EndFont
|
EndFont
|
||||||
|
DocBookTag personname
|
||||||
|
DocBookWrapperTag author
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
@ -172,6 +175,10 @@ Style Affiliation
|
|||||||
Family Roman
|
Family Roman
|
||||||
Size Normal
|
Size Normal
|
||||||
EndFont
|
EndFont
|
||||||
|
DocBookTag affiliation
|
||||||
|
DocBookWrapperTag author
|
||||||
|
DocBookItemTag orgname
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
@ -194,6 +201,11 @@ Style Altaffilation
|
|||||||
LabelFont
|
LabelFont
|
||||||
Color green
|
Color green
|
||||||
EndFont
|
EndFont
|
||||||
|
DocBookTag affiliation
|
||||||
|
DocBookAttr role="alternate"
|
||||||
|
DocBookItemTag orgname
|
||||||
|
DocBookWrapperTag author
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
@ -213,6 +225,9 @@ Style Email
|
|||||||
Size Normal
|
Size Normal
|
||||||
Shape Italic
|
Shape Italic
|
||||||
EndFont
|
EndFont
|
||||||
|
DocBookTag email
|
||||||
|
DocBookWrapperTag author
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
|
@ -191,20 +191,25 @@ namespace {
|
|||||||
|
|
||||||
void openParTag(XMLStream & xs, Layout const & lay)
|
void openParTag(XMLStream & xs, Layout const & lay)
|
||||||
{
|
{
|
||||||
if (lay.docbookwrappertag() != "NONE") {
|
if (lay.docbookwrappertag() != "NONE")
|
||||||
xs << xml::StartTag(lay.docbookwrappertag(), lay.docbookwrapperattr());
|
xs << xml::StartTag(lay.docbookwrappertag(), lay.docbookwrapperattr());
|
||||||
}
|
|
||||||
|
|
||||||
string tag = lay.docbooktag();
|
string tag = lay.docbooktag();
|
||||||
if (tag == "Plain Layout")
|
if (tag == "Plain Layout")
|
||||||
tag = "para";
|
tag = "para";
|
||||||
|
|
||||||
xs << xml::ParTag(tag, lay.docbookattr());
|
xs << xml::ParTag(tag, lay.docbookattr());
|
||||||
|
|
||||||
|
if (lay.docbookitemtag() != "NONE")
|
||||||
|
xs << xml::StartTag(lay.docbookitemtag(), lay.docbookitemattr());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void closeTag(XMLStream & xs, Layout const & lay)
|
void closeTag(XMLStream & xs, Layout const & lay)
|
||||||
{
|
{
|
||||||
|
if (lay.docbookitemtag() != "NONE")
|
||||||
|
xs << xml::EndTag(lay.docbookitemtag());
|
||||||
|
|
||||||
string tag = lay.docbooktag();
|
string tag = lay.docbooktag();
|
||||||
if (tag == "Plain Layout")
|
if (tag == "Plain Layout")
|
||||||
tag = "para";
|
tag = "para";
|
||||||
|
Loading…
Reference in New Issue
Block a user