mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
DocBook: restore the old DocBook support.
This commit is contained in:
parent
1a86e26841
commit
1a054e4571
@ -1,16 +1,16 @@
|
|||||||
#LyX 2.4 created this file. For more info see http://www.lyx.org/
|
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
||||||
\lyxformat 544
|
\lyxformat 598
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\save_transient_properties true
|
\save_transient_properties true
|
||||||
\origin unavailable
|
\origin unavailable
|
||||||
\textclass docbook
|
\textclass docbook
|
||||||
\use_default_options true
|
\use_default_options true
|
||||||
\maintain_unincluded_children false
|
\maintain_unincluded_children no
|
||||||
\language english
|
\language english
|
||||||
\language_package default
|
\language_package default
|
||||||
\inputencoding auto
|
\inputencoding auto-legacy
|
||||||
\fontencoding global
|
\fontencoding auto
|
||||||
\font_roman "default" "default"
|
\font_roman "default" "default"
|
||||||
\font_sans "default" "default"
|
\font_sans "default" "default"
|
||||||
\font_typewriter "default" "default"
|
\font_typewriter "default" "default"
|
||||||
@ -18,7 +18,9 @@
|
|||||||
\font_default_family default
|
\font_default_family default
|
||||||
\use_non_tex_fonts false
|
\use_non_tex_fonts false
|
||||||
\font_sc false
|
\font_sc false
|
||||||
\font_osf false
|
\font_roman_osf false
|
||||||
|
\font_sans_osf false
|
||||||
|
\font_typewriter_osf false
|
||||||
\font_sf_scale 100 100
|
\font_sf_scale 100 100
|
||||||
\font_tt_scale 100 100
|
\font_tt_scale 100 100
|
||||||
\use_microtype false
|
\use_microtype false
|
||||||
@ -53,6 +55,7 @@
|
|||||||
\justification true
|
\justification true
|
||||||
\use_refstyle 1
|
\use_refstyle 1
|
||||||
\use_minted 0
|
\use_minted 0
|
||||||
|
\use_lineno 0
|
||||||
\index Index
|
\index Index
|
||||||
\shortcut idx
|
\shortcut idx
|
||||||
\color #008000
|
\color #008000
|
||||||
@ -68,11 +71,15 @@
|
|||||||
\papercolumns 1
|
\papercolumns 1
|
||||||
\papersides 1
|
\papersides 1
|
||||||
\paperpagestyle default
|
\paperpagestyle default
|
||||||
|
\tablestyle default
|
||||||
\tracking_changes false
|
\tracking_changes false
|
||||||
\output_changes false
|
\output_changes false
|
||||||
|
\change_bars false
|
||||||
|
\postpone_fragile_content false
|
||||||
\html_math_output 0
|
\html_math_output 0
|
||||||
\html_css_as_file 0
|
\html_css_as_file 0
|
||||||
\html_be_strict false
|
\html_be_strict false
|
||||||
|
\docbook_table_output 0
|
||||||
\end_header
|
\end_header
|
||||||
|
|
||||||
\begin_body
|
\begin_body
|
||||||
@ -98,6 +105,10 @@ Article abstract.
|
|||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
\begin_inset Note Note
|
||||||
|
status collapsed
|
||||||
|
|
||||||
\begin_layout RevisionHistory
|
\begin_layout RevisionHistory
|
||||||
Article revision history.
|
Article revision history.
|
||||||
|
|
||||||
@ -113,9 +124,13 @@ Article revision remark.
|
|||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Verse
|
\end_inset
|
||||||
Literal.
|
|
||||||
|
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
Content.
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\end_body
|
\end_body
|
||||||
|
@ -1,25 +1,20 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- This DocBook file was created by LyX 2.4.0dev
|
<!-- This DocBook file was created by LyX 2.4.0dev
|
||||||
See http://www.lyx.org/ for more information -->
|
See http://www.lyx.org/ for more information -->
|
||||||
<article xml:lang="en_US" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:xi="http://www.w3.org/2001/XInclude" version="5.1">
|
<article xml:lang="en_US" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:xi="http://www.w3.org/2001/XInclude" version="5.2">
|
||||||
|
<info>
|
||||||
<info><title>Article title</title>
|
<title>Article title</title>
|
||||||
|
<author>
|
||||||
<author><personname>Article author
|
<personname>Article author</personname>
|
||||||
</personname></author>
|
</author>
|
||||||
|
<authorgroup>
|
||||||
<author><personname>Article author group
|
<author>Article author group</author>
|
||||||
</personname></author>
|
</authorgroup>
|
||||||
<date>Article date</date>
|
<date>Article date</date>
|
||||||
|
<abstract>
|
||||||
<abstract><para>Article abstract. </para>
|
<para>Article abstract. </para>
|
||||||
</abstract>
|
</abstract>
|
||||||
|
|
||||||
</info>
|
</info>
|
||||||
<RevisionHistory>Article revision history. </RevisionHistory>
|
<para>Content.</para>
|
||||||
<Revision>Article revision. </Revision>
|
|
||||||
<RevisionRemark>Article revision remark. </RevisionRemark>
|
|
||||||
|
|
||||||
<literallayout><para>Literal. </para>
|
|
||||||
</literallayout>
|
|
||||||
|
|
||||||
</article>
|
</article>
|
@ -1,16 +1,16 @@
|
|||||||
#LyX 2.4 created this file. For more info see http://www.lyx.org/
|
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
||||||
\lyxformat 544
|
\lyxformat 598
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\save_transient_properties true
|
\save_transient_properties true
|
||||||
\origin unavailable
|
\origin unavailable
|
||||||
\textclass docbook-book
|
\textclass docbook-book
|
||||||
\use_default_options true
|
\use_default_options true
|
||||||
\maintain_unincluded_children false
|
\maintain_unincluded_children no
|
||||||
\language english
|
\language english
|
||||||
\language_package default
|
\language_package default
|
||||||
\inputencoding auto
|
\inputencoding auto-legacy
|
||||||
\fontencoding global
|
\fontencoding auto
|
||||||
\font_roman "default" "default"
|
\font_roman "default" "default"
|
||||||
\font_sans "default" "default"
|
\font_sans "default" "default"
|
||||||
\font_typewriter "default" "default"
|
\font_typewriter "default" "default"
|
||||||
@ -18,7 +18,9 @@
|
|||||||
\font_default_family default
|
\font_default_family default
|
||||||
\use_non_tex_fonts false
|
\use_non_tex_fonts false
|
||||||
\font_sc false
|
\font_sc false
|
||||||
\font_osf false
|
\font_roman_osf false
|
||||||
|
\font_sans_osf false
|
||||||
|
\font_typewriter_osf false
|
||||||
\font_sf_scale 100 100
|
\font_sf_scale 100 100
|
||||||
\font_tt_scale 100 100
|
\font_tt_scale 100 100
|
||||||
\use_microtype false
|
\use_microtype false
|
||||||
@ -53,6 +55,7 @@
|
|||||||
\justification true
|
\justification true
|
||||||
\use_refstyle 1
|
\use_refstyle 1
|
||||||
\use_minted 0
|
\use_minted 0
|
||||||
|
\use_lineno 0
|
||||||
\index Index
|
\index Index
|
||||||
\shortcut idx
|
\shortcut idx
|
||||||
\color #008000
|
\color #008000
|
||||||
@ -68,11 +71,15 @@
|
|||||||
\papercolumns 1
|
\papercolumns 1
|
||||||
\papersides 1
|
\papersides 1
|
||||||
\paperpagestyle default
|
\paperpagestyle default
|
||||||
|
\tablestyle default
|
||||||
\tracking_changes false
|
\tracking_changes false
|
||||||
\output_changes false
|
\output_changes false
|
||||||
|
\change_bars false
|
||||||
|
\postpone_fragile_content false
|
||||||
\html_math_output 0
|
\html_math_output 0
|
||||||
\html_css_as_file 0
|
\html_css_as_file 0
|
||||||
\html_be_strict false
|
\html_be_strict false
|
||||||
|
\docbook_table_output 0
|
||||||
\end_header
|
\end_header
|
||||||
|
|
||||||
\begin_body
|
\begin_body
|
||||||
@ -98,6 +105,10 @@ Book abstract.
|
|||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
\begin_inset Note Note
|
||||||
|
status collapsed
|
||||||
|
|
||||||
\begin_layout RevisionHistory
|
\begin_layout RevisionHistory
|
||||||
Book revision history.
|
Book revision history.
|
||||||
|
|
||||||
@ -113,9 +124,17 @@ Book revision remark.
|
|||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Verse
|
\end_inset
|
||||||
Literal.
|
|
||||||
|
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Chapter
|
||||||
|
Chapter
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
Content.
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\end_body
|
\end_body
|
||||||
|
@ -1,28 +1,23 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- This DocBook file was created by LyX 2.4.0dev
|
<!-- This DocBook file was created by LyX 2.4.0dev
|
||||||
See http://www.lyx.org/ for more information -->
|
See http://www.lyx.org/ for more information -->
|
||||||
<book xml:lang="en_US" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:xi="http://www.w3.org/2001/XInclude" version="5.1">
|
<book xml:lang="en_US" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:xi="http://www.w3.org/2001/XInclude" version="5.2">
|
||||||
|
<info>
|
||||||
<info><title>Book title</title>
|
<title>Book title</title>
|
||||||
|
<author>
|
||||||
<author><personname>Book author
|
<personname>Book author</personname>
|
||||||
</personname></author>
|
</author>
|
||||||
|
<authorgroup>
|
||||||
<author><personname>Book author group
|
<author>Book author group</author>
|
||||||
</personname></author>
|
</authorgroup>
|
||||||
<date>Book date</date>
|
<date>Book date</date>
|
||||||
|
<abstract>
|
||||||
<abstract><para>Book abstract. </para>
|
<para>Book abstract. </para>
|
||||||
</abstract>
|
</abstract>
|
||||||
|
|
||||||
<abstract><RevisionHistory>Book revision history. </RevisionHistory>
|
|
||||||
</abstract>
|
|
||||||
</info>
|
</info>
|
||||||
<Revision>Book revision. </Revision>
|
<chapter>
|
||||||
<RevisionRemark>Book revision remark. </RevisionRemark>
|
<title>Chapter</title>
|
||||||
|
<para>Content.</para>
|
||||||
|
</chapter>
|
||||||
<info><literallayout><para>Literal. </para>
|
|
||||||
</literallayout>
|
|
||||||
|
|
||||||
</book>
|
</book>
|
39
lib/layouts/db_stdclass.inc
Normal file
39
lib/layouts/db_stdclass.inc
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# Textclass definition file for docbook.
|
||||||
|
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
|
||||||
|
|
||||||
|
# This file is the counterpart of stdclass.inc
|
||||||
|
# It is desirable, as far as possible, to have the same look and feel for
|
||||||
|
# related layouts in latex and docbook.
|
||||||
|
|
||||||
|
Format 84
|
||||||
|
|
||||||
|
Columns 1
|
||||||
|
Sides 1
|
||||||
|
SecNumDepth 3
|
||||||
|
TocDepth 3
|
||||||
|
DefaultStyle Standard
|
||||||
|
|
||||||
|
Style Standard
|
||||||
|
Category MainText
|
||||||
|
Margin Static
|
||||||
|
LatexType Paragraph
|
||||||
|
LatexName para
|
||||||
|
ParIndent MM
|
||||||
|
ParSkip 0.4
|
||||||
|
Align Block
|
||||||
|
LabelType No_Label
|
||||||
|
DocBookTag para
|
||||||
|
End
|
||||||
|
|
||||||
|
Input stdinsets.inc
|
||||||
|
Input db_stdcharstyles.inc
|
||||||
|
# Input db_stdlists.inc
|
||||||
|
# Input db_stdsections.inc
|
||||||
|
Input db_stdstarsections.inc
|
||||||
|
Input db_stdtitle.inc
|
||||||
|
Input db_stdstruct.inc
|
||||||
|
# Input db_lyxmacros.inc
|
||||||
|
# Input db_stdlayouts.inc
|
||||||
|
Input stdcounters.inc
|
||||||
|
# Input db_stdcounters.inc
|
||||||
|
Input stdfloats.inc
|
21
lib/layouts/db_stdstruct.inc
Normal file
21
lib/layouts/db_stdstruct.inc
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Textclass definition file for docbook.
|
||||||
|
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
|
||||||
|
|
||||||
|
# This file is the counterpart of stdstruct.inc
|
||||||
|
# It is desirable, as far as possible, to have the same look and feel for
|
||||||
|
# related layouts in latex and docbook.
|
||||||
|
|
||||||
|
Format 84
|
||||||
|
Input stdstruct.inc
|
||||||
|
|
||||||
|
Style Abstract
|
||||||
|
LatexType Environment
|
||||||
|
LatexName abstract
|
||||||
|
DocBookAbstract true
|
||||||
|
DocBookInInfo always
|
||||||
|
DocBookWrapperTag abstract
|
||||||
|
DocBookWrapperMergeWithPrevious true
|
||||||
|
DocBookTag para
|
||||||
|
End
|
||||||
|
|
||||||
|
NoStyle Bibliography
|
88
lib/layouts/db_stdtitle.inc
Normal file
88
lib/layouts/db_stdtitle.inc
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
# Textclass definition file for docbook.
|
||||||
|
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
|
||||||
|
# Modified Martin Vermeer <martin.vermeer@hut.fi>
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
Format 84
|
||||||
|
Input stdtitle.inc
|
||||||
|
|
||||||
|
|
||||||
|
Style Authorgroup
|
||||||
|
CopyStyle Author
|
||||||
|
LatexType Environment
|
||||||
|
LatexName authorgroup
|
||||||
|
# TODO: missing a DocBookInnerTag to be valid (authorgroup > author > personname).
|
||||||
|
DocBookTag author
|
||||||
|
DocBookTagType paragraph
|
||||||
|
DocBookWrapperTag authorgroup
|
||||||
|
DocBookWrapperTagType paragraph
|
||||||
|
End
|
||||||
|
|
||||||
|
|
||||||
|
Style RevisionHistory
|
||||||
|
Margin Static
|
||||||
|
LatexType Command
|
||||||
|
LatexName revhistory
|
||||||
|
CommandDepth 3
|
||||||
|
InnerTag "!-- --"
|
||||||
|
LeftMargin MMM
|
||||||
|
RightMargin MMM
|
||||||
|
ParIndent MM
|
||||||
|
TopSep 0.7
|
||||||
|
BottomSep 0
|
||||||
|
ParSep 0
|
||||||
|
Align Block
|
||||||
|
KeepEmpty 1
|
||||||
|
LabelType Centered
|
||||||
|
LabelString "Revision History"
|
||||||
|
LabelBottomSep 0.5
|
||||||
|
DocBookTag revhistory
|
||||||
|
DocBookTagType paragraph
|
||||||
|
End
|
||||||
|
|
||||||
|
|
||||||
|
Style Revision
|
||||||
|
Margin Dynamic
|
||||||
|
LatexType Command
|
||||||
|
LatexName revision
|
||||||
|
CommandDepth 4
|
||||||
|
InnerTag revnumber
|
||||||
|
LabelSep xxx
|
||||||
|
ParSkip 0.4
|
||||||
|
TopSep 0.9
|
||||||
|
BottomSep 0.5
|
||||||
|
ParSep 0.5
|
||||||
|
Align Block
|
||||||
|
DocBookTag revision
|
||||||
|
DocBookTagType paragraph
|
||||||
|
End
|
||||||
|
|
||||||
|
|
||||||
|
Style RevisionRemark
|
||||||
|
Margin Static
|
||||||
|
LatexType Paragraph
|
||||||
|
InTitle 1
|
||||||
|
LatexName revremark
|
||||||
|
LabelSep xxx
|
||||||
|
ParIndent MM
|
||||||
|
ParSkip 0.0
|
||||||
|
TopSep 0.0
|
||||||
|
BottomSep 0.0
|
||||||
|
ParSep 1
|
||||||
|
Align Block
|
||||||
|
LabelType No_Label
|
||||||
|
DocBookTag revremark
|
||||||
|
DocBookTagType paragraph
|
||||||
|
End
|
||||||
|
|
||||||
|
|
||||||
|
Style FirstName
|
||||||
|
ObsoletedBy Standard
|
||||||
|
End
|
||||||
|
|
||||||
|
Style Surname
|
||||||
|
ObsoletedBy Standard
|
||||||
|
End
|
@ -1,4 +1,7 @@
|
|||||||
#% Do not delete the line below; configure depends on this
|
#% Do not delete the line below; configure depends on this
|
||||||
|
# \DeclareLaTeXClass[docbook5_book]{DocBook Book (XML)}
|
||||||
|
# \DeclareCategory{Books}
|
||||||
|
#% Do not delete the line below; configure depends on this
|
||||||
# \DeclareDocBookClass[book]{DocBook Book (XML)}
|
# \DeclareDocBookClass[book]{DocBook Book (XML)}
|
||||||
# \DeclareCategory{Books (DocBook)}
|
# \DeclareCategory{Books (DocBook)}
|
||||||
# DocBook textclass definition file.
|
# DocBook textclass definition file.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#% Do not delete the line below; configure depends on this
|
#% Do not delete the line below; configure depends on this
|
||||||
# \DeclareDocBookClass[chapter]{DocBook Chapter (XML)}
|
# \DeclareLaTeXClass[docbook5_chapter]{DocBook Chapter (XML)}
|
||||||
# \DeclareCategory{Books (DocBook)}
|
# \DeclareCategory{Books}
|
||||||
# DocBook textclass definition file.
|
# DocBook textclass definition file.
|
||||||
# Author : Jose' Matos <jamatos@lyx.org>
|
# Author : Jose' Matos <jamatos@lyx.org>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#% Do not delete the line below; configure depends on this
|
#% Do not delete the line below; configure depends on this
|
||||||
# \DeclareDocBookClass[section]{DocBook Section (XML)}
|
# \DeclareLaTeXClass[docbook5_section]{DocBook Section (XML)}
|
||||||
# \DeclareCategory{Books (DocBook)}
|
# \DeclareCategory{Books}
|
||||||
# DocBook textclass definition file.
|
# DocBook textclass definition file.
|
||||||
# Author : Jose' Matos <jamatos@lyx.org>
|
# Author : Jose' Matos <jamatos@lyx.org>
|
||||||
|
|
||||||
|
14
lib/layouts/docbook.layout
Normal file
14
lib/layouts/docbook.layout
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#% Do not delete the line below; configure depends on this
|
||||||
|
# \DeclareLaTeXClass[docbook]{DocBook Article (XML)}
|
||||||
|
# \DeclareCategory{Articles}
|
||||||
|
# DocBook textclass definition file.
|
||||||
|
# Author : Jose' Matos <jamatos@lyx.org>
|
||||||
|
|
||||||
|
Format 84
|
||||||
|
Input db_stdclass.inc
|
||||||
|
|
||||||
|
# Exclude higher, or equal, sections:
|
||||||
|
NoStyle Part
|
||||||
|
NoCounter part
|
||||||
|
NoStyle Chapter
|
||||||
|
NoCounter chapter
|
Loading…
Reference in New Issue
Block a user