Merge branch 'feature/docbook' into master

This commit is contained in:
Thibaut Cuvelier 2020-09-19 20:44:16 +02:00
commit 968f7e8cac
113 changed files with 11925 additions and 1401 deletions

View File

@ -6,6 +6,11 @@
cmake_minimum_required(VERSION 3.1.0)
set(CMAKE_CXX_STANDARD 20)
set(GNUWIN32_DIR D:/LyX/lyx-unstable/lyx-windows-deps-msvc2017)
set(LYX_USE_QT "QT5")
set(LYX_REQUIRE_SPELLCHECK true)
set(LYX_PROJECT LyX)
# Instruct cmake to not use gnu extensions,

View File

@ -0,0 +1,192 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 598
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass a0poster
\begin_preamble
% Adjust padding in boxes
\setlength\fboxsep{12pt}
% Added by lyx2lyx
\setlength{\parskip}{\bigskipamount}
\setlength{\parindent}{0pt}
\end_preamble
\options a0,portrait
\use_default_options false
\maintain_unincluded_children no
\language english
\language_package default
\inputencoding utf8
\fontencoding auto
\font_roman "palatino" "default"
\font_sans "default" "default"
\font_typewriter "courier" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_roman_osf false
\font_sans_osf false
\font_typewriter_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures false
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\use_lineno 0
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1cm
\topmargin 1cm
\rightmargin 1cm
\bottommargin 1cm
\secnumdepth 0
\tocdepth 0
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle empty
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\docbook_table_output 0
\end_header
\begin_body
\begin_layout Standard
\align center
\begin_inset Box Shadowbox
position "c"
hor_pos "c"
has_inner_box 1
inner_pos "c"
use_parbox 1
use_makebox 0
width "98col%"
special "none"
height "5cm"
height_special "none"
thickness "0.4pt"
separation "3pt"
shadowsize "4pt"
framecolor "black"
backgroundcolor "none"
status open
\begin_layout Plain Layout
\noindent
\align center
\series bold
\noun on
\begin_inset Flex Most Giant Snippet
status open
\begin_layout Plain Layout
\noindent
\series bold
\noun on
Poster Heading
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Box Boxed
position "t"
hor_pos "c"
has_inner_box 1
inner_pos "t"
use_parbox 0
use_makebox 0
width "98col%"
special "none"
height "1in"
height_special "totalheight"
thickness "0.4pt"
separation "3pt"
shadowsize "4pt"
framecolor "black"
backgroundcolor "none"
status open
\begin_layout Section
Summary
\end_layout
\begin_layout Itemize
For multiple columns, use the
\begin_inset Quotes eld
\end_inset
Multiple Columns
\begin_inset Quotes erd
\end_inset
module as documented in
\family sans
Help\SpecialChar menuseparator
Additional Features
\family default
.
\end_layout
\end_inset
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
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.2">
<sidebar role='shadowbox'>
Poster Heading
</sidebar>
<sidebar role='boxed'>
<title>Summary</title>
<itemizedlist>
<listitem>
<para>For multiple columns, use the &#8220;Multiple Columns&#8221; module as documented in <emphasis role='sans'>Help&#x21D2;Additional Features</emphasis>.</para>
</listitem>
</itemizedlist>
</sidebar>
</article>

View File

@ -0,0 +1,535 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 598
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrbook
\begin_preamble
% DO NOT ALTER THIS PREAMBLE!!!
%
% This preamble is designed to ensure that the manual prints
% out as advertised. If you mess with this preamble,
% parts of the manual may not print out as expected. If you
% have problems LaTeXing this file, please contact
% the documentation team
% email: lyx-docs@lists.lyx.org
% the pages of the TOC are numbered roman
% and a PDF-bookmark for the TOC is added
\pagenumbering{roman}
\let\myTOC\tableofcontents
\renewcommand{\tableofcontents}{%
\pdfbookmark[1]{\contentsname}{}
\myTOC
\cleardoublepage
\pagenumbering{arabic}}
% extra space for tables
\newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
\end_preamble
\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
\use_default_options false
\begin_modules
logicalmkup
theorems-ams
theorems-ams-extended
multicol
shapepar
\end_modules
\maintain_unincluded_children no
\language english
\language_package default
\inputencoding utf8
\fontencoding auto
\font_roman "lmodern" "default"
\font_sans "lmss" "default"
\font_typewriter "lmtt" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_roman_osf false
\font_sans_osf false
\font_typewriter_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 12
\spacing single
\use_hyperref true
\pdf_title "LyX's Additional Features manual"
\pdf_author "LyX Team"
\pdf_subject "LyX's additional features documentation"
\pdf_keywords "LyX, Documentation, Additional"
\pdf_bookmarks true
\pdf_bookmarksnumbered true
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks true
\pdf_backref false
\pdf_pdfusetitle false
\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
\papersize a4
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\use_lineno 0
\notefontcolor #0000ff
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 1
\math_indentation default
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle headings
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0
\html_css_as_file 0
\html_be_strict true
\docbook_table_output 0
\end_header
\begin_body
\begin_layout Title
Additional \SpecialChar LyX
Features
\end_layout
\begin_layout Subtitle
Version 2.3.x
\end_layout
\begin_layout Author
by the \SpecialChar LyX
Team
\begin_inset Foot
status collapsed
\begin_layout Plain Layout
\noindent
Principal maintainer of this file is
\noun on
Richard Heck
\noun default
.
If you have comments or error corrections, please send them to the \SpecialChar LyX
Documentati
on mailing list,
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
<lyx-docs@lists.lyx.org>
\end_layout
\end_inset
.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset toc
LatexCommand tableofcontents
\end_inset
\end_layout
\begin_layout Chapter
\begin_inset CommandInset label
LatexCommand label
name "sec:Inserting-TeX-Code"
\end_inset
Inserting \SpecialChar TeX
Code into \SpecialChar LyX
Documents
\end_layout
\begin_layout Standard
Anything you can do in \SpecialChar LaTeX
you can do in \SpecialChar LyX
, for a very simple reason: You can
always insert \SpecialChar TeX
code into any \SpecialChar LyX
document.
\SpecialChar LyX
cannot, and will never be able to, display every possible \SpecialChar LaTeX
construct.
If ever you need to insert \SpecialChar LaTeX
commands into your \SpecialChar LyX
document, you can use the
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\SpecialChar TeX
Code
\end_layout
\end_inset
box, which you can insert into your document with
\begin_inset Flex Noun
status collapsed
\begin_layout Plain Layout
Insert\SpecialChar menuseparator
\family sans
TeX
\family default
Code
\end_layout
\end_inset
or the keyboard shortcut
\begin_inset Info
type "shortcut"
arg "ert-insert"
\end_inset
.
\end_layout
\begin_layout Standard
Here's an example of inserting \SpecialChar LaTeX
commands in a \SpecialChar LyX
document.
The code looks like this:
\end_layout
\begin_layout LyX-Code
\backslash
begin{tabular}{ll}
\begin_inset Newline newline
\end_inset
\backslash
begin{minipage}{5cm}
\begin_inset Newline newline
\end_inset
This is an example of a minipage environment.
You
\begin_inset Newline newline
\end_inset
can put nearly everything in it, even (non-floating)
\begin_inset Newline newline
\end_inset
figures and tables.
\begin_inset Newline newline
\end_inset
\backslash
end{minipage}
\begin_inset Newline newline
\end_inset
&
\begin_inset Newline newline
\end_inset
\backslash
begin{minipage}{5cm}
\begin_inset Newline newline
\end_inset
\backslash
begin{verbatim}
\begin_inset Newline newline
\end_inset
\backslash
begin{minipage}{5cm}
\begin_inset Newline newline
\end_inset
This ...
\begin_inset Newline newline
\end_inset
\backslash
end{minipage}
\begin_inset Newline newline
\end_inset
\backslash
end{verbatim}
\begin_inset Newline newline
\end_inset
\backslash
end{minipage}
\begin_inset Newline newline
\end_inset
\backslash
end{tabular}
\end_layout
\begin_layout Section
Cross-References Between Files
\end_layout
\begin_layout Standard
\begin_inset Box Shadowbox
position "t"
hor_pos "c"
has_inner_box 1
inner_pos "t"
use_parbox 0
use_makebox 0
width "100col%"
special "none"
height "1in"
height_special "totalheight"
thickness "0.4pt"
separation "3pt"
shadowsize "4pt"
framecolor "black"
backgroundcolor "none"
status open
\begin_layout Plain Layout
This section is somewhat out of date.
Need to describe default master documents and how children are opened when
the master is.
[[FIXME]]
\end_layout
\end_inset
\end_layout
\begin_layout Section
AMS \SpecialChar LaTeX
\end_layout
\begin_layout Standard
These same environments are provided only in the starred versions by the
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
Theorems (Starred)
\end_layout
\end_inset
module:
\end_layout
\begin_layout Theorem
This is typically used for the statements of major results.
\end_layout
\begin_layout Corollary*
This is used for statements which follow fairly directly from previous statement
s.
Again, these can be major results.
\end_layout
\begin_layout Lemma
These are smaller results needed to prove other statements.
\end_layout
\begin_layout Proposition
These are less major results which (hopefully) add to the general theory
being discussed.
\end_layout
\begin_layout Conjecture
These are statements provided without justification, which the author does
not know how to prove, but which seem to be true (to the author, at least).
\end_layout
\begin_layout Definition*
Guess what this is for.
The font is different for this environment than for the previous ones.
\end_layout
\begin_layout Example*
Used for examples illustrating proven results.
\end_layout
\begin_layout Problem
It's not really known what this is for.
You should figure it out.
\end_layout
\begin_layout Exercise*
Write a description for this one.
\end_layout
\begin_layout Remark
This environment is also a type of theorem, usually a lesser sort of observation.
\end_layout
\begin_layout Claim*
Often used in the course of giving a proof of a larger result.
\end_layout
\begin_layout Case
Generally, these are used to break up long arguments, using specific instances
of some condition.
\end_layout
\begin_layout Case
The numbering scheme for cases is on its own, not together with other numbered
statements.
\end_layout
\begin_layout Proof
At the end of this environment, a QED symbol (usually a square, but it can
vary with different styles) is placed.
If you want to have other environments within this one—for example, Case
environments—and have the QED symbol appear only after them, then the other
environments need to be nested within the proof environment.
See the section
\emph on
Nesting Environments
\emph default
of the
\emph on
User's Guide
\emph default
for information on nesting.
\end_layout
\begin_layout Standard
And these environments are provided by
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
Theorems (AMS-Extended)
\end_layout
\end_inset
:
\end_layout
\begin_layout Criterion*
A required condition.
\end_layout
\begin_layout Algorithm*
A general procedure to be used.
\end_layout
\begin_layout Axiom*
This is a property or statement taken as true within the system being discussed.
\end_layout
\begin_layout Condition*
Sometimes used to state a condition assumed within the present context of
discussion.
\end_layout
\begin_layout Note*
Similar to a Remark.
\end_layout
\begin_layout Notation*
Used for the explanation of, yes, notation.
\end_layout
\begin_layout Summary
Do we really need to tell you?
\end_layout
\begin_layout Acknowledgement*
Acknowledgement.
\end_layout
\begin_layout Conclusion*
Sometimes used at the end of a long train of argument.
\end_layout
\begin_layout Fact
Used in a way similar to Proposition, though perhaps lower on the scale.
\end_layout
\begin_layout Standard
In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
and AMS fonts
packages.
They need to be available on your system in order to use these environments.
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
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.2">
<info>
<title>Additional LyX Features</title>
<subtitle>Version 2.3.x</subtitle>
<author>
<personname>by the LyX Team<footnote>
<para>Principal maintainer of this file is<personname> Richard Heck</personname>. If you have comments or error corrections, please send them to the LyX Documentation mailing list, <code>&lt;lyx-docs@lists.lyx.org&gt;</code>.</para>
</footnote></personname>
</author>
</info>
<chapter xml:id="sec.Inserting-TeX-Code">
<title>Inserting TeX Code into LyX Documents</title>
<para>Anything you can do in LaTeX you can do in LyX, for a very simple reason: You can always insert TeX code into any LyX document. LyX cannot, and will never be able to, display every possible LaTeX construct. If ever you need to insert LaTeX commands into your LyX document, you can use the <code>TeX Code</code> box, which you can insert into your document with <personname>Insert&#x21D2;TeX Code</personname> or the keyboard shortcut <keycap>Ctrl+L</keycap>.</para>
<para>Here's an example of inserting LaTeX commands in a LyX document. The code looks like this:</para>
<programlisting language='lyx'>\begin{tabular}{ll}
\begin{minipage}{5cm}
This is an example of a minipage environment. You
can put nearly everything in it, even (non-floating)
figures and tables.
\end{minipage}
&amp;
\begin{minipage}{5cm}
\begin{verbatim}
\begin{minipage}{5cm}
This ...
\end{minipage}
\end{verbatim}
\end{minipage}
\end{tabular}</programlisting>
<section>
<title>Cross-References Between Files</title>
<sidebar role='shadowbox'>
<para>This section is somewhat out of date. Need to describe default master documents and how children are opened when the master is. [[FIXME]]</para>
</sidebar>
</section>
<section>
<title>AMS LaTeX</title>
<para>These same environments are provided only in the starred versions by the <code>Theorems (Starred)</code> module:</para>
<para role='theorem'>This is typically used for the statements of major results. </para>
<para role='corollary'>This is used for statements which follow fairly directly from previous statements. Again, these can be major results. </para>
<para role='lemma'>These are smaller results needed to prove other statements.</para>
<para role='proposition'>These are less major results which (hopefully) add to the general theory being discussed.</para>
<para role='conjecture'>These are statements provided without justification, which the author does not know how to prove, but which seem to be true (to the author, at least).</para>
<para role='definition'>Guess what this is for. The font is different for this environment than for the previous ones. </para>
<informalexample>
<para>Used for examples illustrating proven results.</para>
</informalexample>
<para role='problem'>It's not really known what this is for. You should figure it out.</para>
<para role='exercise'>Write a description for this one.</para>
<note role='theorem'>
<para>This environment is also a type of theorem, usually a lesser sort of observation.</para>
</note>
<para role='claim'>Often used in the course of giving a proof of a larger result.</para>
<para role='cases'>Generally, these are used to break up long arguments, using specific instances of some condition. The numbering scheme for cases is on its own, not together with other numbered statements. </para>
<para role='proof'>At the end of this environment, a QED symbol (usually a square, but it can vary with different styles) is placed. If you want to have other environments within this one—for example, Case environments—and have the QED symbol appear only after them, then the other environments need to be nested within the proof environment. See the section <emphasis>Nesting Environments</emphasis> of the <emphasis>User's Guide</emphasis> for information on nesting.</para>
<para>And these environments are provided by <code>Theorems (AMS-Extended)</code>:</para>
<para role='criterion'>A required condition.</para>
<para role='algorithm'>A general procedure to be used.</para>
<para role='axiom'>This is a property or statement taken as true within the system being discussed.</para>
<para role='condition'>Sometimes used to state a condition assumed within the present context of discussion.</para>
<note role='theorem'>
<para>Similar to a Remark.</para>
</note>
<para role='notation'>Used for the explanation of, yes, notation.</para>
<para role='summary'>Do we really need to tell you? </para>
<para role='acknowledgement'>Acknowledgement.</para>
<para role='conclusion'>Sometimes used at the end of a long train of argument.</para>
<para role='fact'>Used in a way similar to Proposition, though perhaps lower on the scale.</para>
<para>In addition, the AMS classes automatically provide the AMS LaTeX and AMS fonts packages. They need to be available on your system in order to use these environments.</para>
</section>
</chapter>
</book>

View File

@ -6,7 +6,7 @@
<subtitle>Version 2.3.x</subtitle>
<section>
<title>File formats</title>
<section xml:id="sec.When-is-an-0">
<section xml:id="sec.When-is-an">
<title>When is an update of the .lyx file format number needed?</title>
<para>When you are working on a new feature you may ask yourself whether it needs an update of the .lyx file format number. Whether an update is needed or not is not always obvious. Rule of thumb: </para>
<blockquote>
@ -17,30 +17,30 @@
<varlistentry>
<term>New&#xA0;document&#xA0;setting</term>
<listitem>
<para> Whenever you introduce a new setting that is stored in the document header, a file format update is needed.</para>
<para>Whenever you introduce a new setting that is stored in the document header, a file format update is needed.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Removed&#xA0;document&#xA0;setting</term>
<listitem>
<para> If a certain setting becomes obsolete and gets removed, a file format update is needed.</para>
<para>If a certain setting becomes obsolete and gets removed, a file format update is needed.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>New&#xA0;valid&#xA0;value&#xA0;for&#xA0;an&#xA0;existing&#xA0;setting,</term>
<listitem>
<para> e.&#x2009;g.</para>
<para>e.&#x2009;g.</para>
<variablelist>
<varlistentry>
<term>Automatically&#xA0;loaded&#xA0;math&#xA0;package</term>
<listitem>
<para> The reason for this is that there is no true ERT inset for math formulas: Each command is parsed, and if a user happens to define a local command with the same name as a command that triggers an automatic load of a package, they need to be able to switch off the automatic loading of that package. This switch is stored by the use_package header setting.</para>
<para>The reason for this is that there is no true ERT inset for math formulas: Each command is parsed, and if a user happens to define a local command with the same name as a command that triggers an automatic load of a package, they need to be able to switch off the automatic loading of that package. This switch is stored by the use_package header setting.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>New&#xA0;language</term>
<listitem>
<para> that is stored in \language. </para>
<para>that is stored in \language. </para>
</listitem>
</varlistentry>
</variablelist>
@ -49,49 +49,49 @@
<varlistentry>
<term>New&#xA0;inset</term>
<listitem>
<para> Of course a new inset requires a file format update.</para>
<para>Of course a new inset requires a file format update.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>New&#xA0;style</term>
<listitem>
<para> If a new style or inset layout is added to any layout file or module shipped with LyX, then a new file format is needed in the master (development) branch. It is possible to backport new styles to the stable version without a file format change.</para>
<para>If a new style or inset layout is added to any layout file or module shipped with LyX, then a new file format is needed in the master (development) branch. It is possible to backport new styles to the stable version without a file format change.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Removed&#xA0;style</term>
<listitem>
<para> If a style or inset layout is removed in any layout file or module shipped with LyX, a new file format is required.</para>
<para>If a style or inset layout is removed in any layout file or module shipped with LyX, a new file format is required.</para>
</listitem>
</varlistentry>
</variablelist>
<para>However, <emphasis role='bold'>new</emphasis> layouts and modules do <emphasis role='bold'>not</emphasis> require a file format update (changed 03/16). </para>
<para>If you are still unsure, please ask on the development list.</para>
<section xml:id="par.export-test-output-formats-1">
<section xml:id="par.export-test-output-formats">
<title>Output formats</title>
<para>The following output formats are currently tested for each sample document:</para>
<variablelist>
<varlistentry>
<term>LyX:</term>
<listitem>
<para />
<variablelist>
<varlistentry>
<term>lyx16</term>
<listitem>
<para> LyX 1.6 file format (lyx2lyx)</para>
<para>LyX 1.6 file format (lyx2lyx)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>lyx21</term>
<listitem>
<para> LyX 2.1 file format (lyx2lyx)</para>
<para>LyX 2.1 file format (lyx2lyx)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>xhtml</term>
<listitem>
<para> LyXHTML (native LyX HTML export)</para>
<para>LyXHTML (native LyX HTML export)</para>
</listitem>
</varlistentry>
</variablelist>
@ -100,54 +100,54 @@
<varlistentry>
<term>LyX&#xA0;+&#xA0;LaTeX:</term>
<listitem>
<para />
<variablelist>
<varlistentry>
<term>dvi</term>
<listitem>
<para> DVI (8-bit latex)</para>
<para>DVI (8-bit latex)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>dvi3_texF</term>
<listitem>
<para> DVI (LuaTeX with 8-bit TeX fonts)</para>
<para>DVI (LuaTeX with 8-bit TeX fonts)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>dvi3_systemF</term>
<listitem>
<para> DVI (LuaTeX with Unicode fonts)</para>
<para>DVI (LuaTeX with Unicode fonts)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>pdf2</term>
<listitem>
<para> PDF (pdflatex)</para>
<para>PDF (pdflatex)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>pdf4_texF</term>
<listitem>
<para> PDF (XeTeX with 8-bit TeX fonts)</para>
<para>PDF (XeTeX with 8-bit TeX fonts)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>pdf4_systemF</term>
<listitem>
<para> PDF (XeTeX with Unicode fonts)</para>
<para>PDF (XeTeX with Unicode fonts)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>pdf5_texF</term>
<listitem>
<para> PDF (LuaTeX with 8-bit TeX fonts)</para>
<para>PDF (LuaTeX with 8-bit TeX fonts)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>pdf5_systemF</term>
<listitem>
<para> PDF (LuaTeX with Unicode fonts)</para>
<para>PDF (LuaTeX with Unicode fonts)</para>
</listitem>
</varlistentry>
</variablelist>
@ -156,18 +156,18 @@
<varlistentry>
<term>LyX&#xA0;+&#xA0;LaTeX&#xA0;+&#xA0;postprocessing:</term>
<listitem>
<para />
<variablelist>
<varlistentry>
<term>pdf</term>
<listitem>
<para> DVI -&gt; PS (dvips) -&gt; PDF (ps2pdf)</para>
<para>DVI -&gt; PS (dvips) -&gt; PDF (ps2pdf)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>pdf3</term>
<listitem>
<para> DVI -&gt; PDF (dvipdfm)</para>
<para>DVI -&gt; PDF (dvipdfm)</para>
</listitem>
</varlistentry>
</variablelist>
@ -176,90 +176,90 @@
<varlistentry>
<term>not&#xA0;tested:</term>
<listitem>
<para> (or only if set as default output format in the document source)</para>
<para>(or only if set as default output format in the document source)</para>
<variablelist>
<varlistentry>
<term>latex</term>
<listitem>
<para> LaTeX (plain)</para>
<para>LaTeX (plain)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>luatex</term>
<listitem>
<para> LaTeX (LuaTeX)</para>
<para>LaTeX (LuaTeX)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>dviluatex</term>
<listitem>
<para> LaTeX (dviluatex)</para>
<para>LaTeX (dviluatex)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>pdflatex</term>
<listitem>
<para> LaTeX (pdflatex)</para>
<para>LaTeX (pdflatex)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>platex</term>
<listitem>
<para> LaTeX (pLaTeX)</para>
<para>LaTeX (pLaTeX)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>xetex</term>
<listitem>
<para> LaTeX (XeTeX) </para>
<para>LaTeX (XeTeX) </para>
</listitem>
</varlistentry>
<varlistentry>
<term>eps3</term>
<listitem>
<para> EPS (encapsulated Postscript) (cropped)</para>
<para>EPS (encapsulated Postscript) (cropped)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>ps</term>
<listitem>
<para> DVI -&gt; Postscript (dvips)</para>
<para>DVI -&gt; Postscript (dvips)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>odf</term>
<listitem>
<para> </para>
<para />
</listitem>
</varlistentry>
<varlistentry>
<term>text</term>
<listitem>
<para> (nor text2, ..., text4)</para>
<para>(nor text2, ..., text4)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>textparagraph</term>
<listitem>
<para> </para>
<para />
</listitem>
</varlistentry>
<varlistentry>
<term>word</term>
<listitem>
<para> </para>
<para />
</listitem>
</varlistentry>
<varlistentry>
<term>word2</term>
<listitem>
<para> </para>
<para />
</listitem>
</varlistentry>
<varlistentry>
<term>wordhtml</term>
<listitem>
<para> </para>
<para />
</listitem>
</varlistentry>
</variablelist>
@ -269,5 +269,4 @@
</section>
</section>
</section>
</article>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,337 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
See http://www.lyx.org/ for more information -->
<article xml:lang="de_DE" 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>
<title>Linguistische Arbeiten mit LyX</title>
<author>
<personname>Jürgen Spitzmüller<emphasis role='size_large'><link xlink:href="spitz@lyx.org"></link></emphasis></personname>
</author>
<date>21.04.2015</date>
<abstract>
<para>In diesem Text werden einige Funktionen von LyX vorgestellt, die spezifisch auf die Bedürfnisse von Linguistinnen und Linguisten ausgerichtet sind. Es wird gezeigt, wie nummerierte Beispiele, Interlinear-Glossierung, OT-Tableaux, semantische Auszeichnung, Strukturbäume, Diskursrepräsentationsstrukturen und phonetische Notation (IPA) erzeugt werden können.</para>
</abstract>
</info>
<section>
<title>Voraussetzungen und Ziele</title>
<para>Die meisten der hier beschriebenen Funktionen werden vom &#8222;Linguistik&#8220;-Modul bereitgestellt, das seit Version 1.6.0 mit LyX mitgeliefert wird. &#8222;Module&#8220; das Konzept wurde ebenfalls mit LyX 1.6.0 eingeführt sind Ergänzungsdateien, welche die von der Dokumentklasse bereitgestellten Möglichkeiten zumeist für sehr spezifische Aufgaben erweitern und die für jedes Dokument (egal welcher Klasse) einfach ausgewählt werden können. Um das Linguistik-Modul zu verwenden, gehen sie zu <emphasis role='sans'>Dokument&#x21D2;Einstellungen&#x21D2;Module</emphasis>, wählen Sie &#8222;Linguistik&#8220; aus der Liste der verfügbaren Module und drücken auf den Knopf <emphasis role='sans'>Hinzufügen</emphasis> (so wie es für dieses Dokument bereits getan wurde).</para>
<para>Grundsätzlich sollte das Modul in jeder von LyX unterstützten Dokumentklasse funktionieren (falls nicht, informieren Sie bitte den Autor dieses Textes). Allerdings müssen Sie, um alle Features nutzen zu können, die folgenden LaTeX-Pakete installiert haben:</para>
<orderedlist>
<listitem>
<para><emphasis>covington.sty</emphasis> <biblioref endterm="covington" />: Dieses Paket wird benötigt, um nummerierte Beispiele, Glossen und semantische Auszeichnungen zu erzeugen. Beachten Sie, dass mindestens Version 2.3 des Pakets erforderlich ist, um alle Funktionen zu nutzen.</para>
<itemizedlist>
<listitem>
<para>Auf Ihrem System installiert: nein.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para><emphasis>csquotes.sty</emphasis> <biblioref endterm="csquotes" />: Voraussetzung für den Textstil <emphasis>Bedeutung</emphasis> und für Glossen. Das Paket erlaubt es, kontextsensible Anführungszeichen zu generieren (bspw. je nach aktuell verwendeter Sprache).</para>
<itemizedlist>
<listitem>
<para>Auf Ihrem System installiert: nein.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para><emphasis>drs.sty</emphasis> <biblioref endterm="drs" />: Voraussetzung für Diskursrepräsentationsstrukturen. Beachten Sie, dass mindestens Version 2.3 des Pakets <emphasis>covington</emphasis> erforderlich ist, um dies mit anderen Funktionen gemeinsam zu nutzen.</para>
<itemizedlist>
<listitem>
<para>Auf Ihrem System installiert: nein.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para><emphasis>float.sty</emphasis> <biblioref endterm="float" />: Dieses Paket brauchen wir für die OT-Tableaux und das Tableaux-Verzeichnis. Es sollte Bestandteil jeder LaTeX-Distribution sein.</para>
<itemizedlist>
<listitem>
<para>Auf Ihrem System installiert: nein.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para><emphasis>forest.sty</emphasis> <biblioref endterm="forest" />: Dieses Paket wird zur Erzeugung von Strukturbäumen verwendet.</para>
<itemizedlist>
<listitem>
<para>Auf Ihrem System installiert: nein.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para><emphasis>pict2e.sty</emphasis> <biblioref endterm="pict2e" />: Voraussetzung für <emphasis>Duplex-Bedingungs-DRS</emphasis>.</para>
<itemizedlist>
<listitem>
<para>Auf Ihrem System installiert: nein.</para>
</listitem>
</itemizedlist>
</listitem>
</orderedlist>
</section>
<section>
<title>Nummerierte Beispiele</title>
<para>Nummerierte Beispiele werden über die Absatzstil-Auswahlliste in der Werkzeugleiste eingefügt. Es gibt drei Varianten:</para>
<informalexample role='numbered'>
<para>Das ist ein mehrzeiliges Beispiel [Stil <emphasis>Nummeriertes Beispiel (mehrere Zeilen)</emphasis>]</para>
<para>Wie der Name sagt, kann es mehrere Absätze enthalten</para>
</informalexample>
<informalexample role='consecutive'>
<para>Das ist ein einzeiliges Beispiel<anchor xml:id="exa.Beispiel-einzeilig" /> [Stil <emphasis>Nummeriertes Beispiel (konsekutiv)</emphasis>]Jeder Absatz wird in diesem Stil neu nummeriert</para>
</informalexample>
<informalexample role='consecutive'>
<para>Dies ist ein Unterbeispiel<anchor xml:id="subsec.Unterbeispiel" /> [Stil <emphasis>Unterbeispiel</emphasis>]Und hier noch eines</para>
</informalexample>
<para>Querverweise auf Beispiele erzeugen Sie wie gewohnt: Sie fügen im Beispiel eine Marke ein, und an der Stelle, an der der Querverweis erscheinen soll, einen Verweis mittels <emphasis role='sans'>Einfügen&#x21D2;Querverweis&#x2026;</emphasis> </para>
<para>Als kleine Demonstration verweisen wir hier auf die Beispiele <xref linkend="exa.Beispiel-einzeilig" /> und <xref linkend="subsec.Unterbeispiel" />.</para>
<para>Wenn Sie die Nummerierung für einzelne Beispiele ändern möchten, verwenden Sie <emphasis role='sans'>Einfügen&#x21D2;Benutzerdef. Nummerierung</emphasis>. Für globale Anpassungen bietet <emphasis>covington</emphasis> selbst Möglichkeiten. Bitte konsultieren Sie das Handbuch des Pakets <biblioref endterm="covington" /> für Einzelheiten.</para>
<para>Ab Version 2.3 bietet <emphasis>covingtons</emphasis> subexamples-Umgebung ein optionales Argument (mit dem man Text zwischen der Hauptnummer und dem ersten Unterbeispiel einfügen kann). Dieses können Sie über <emphasis role='sans'>Einfügen&#x21D2;Optionen für Unterbeispiele</emphasis> eingeben. Bitte konsultieren Sie auch hier das Handbuch des Pakets <biblioref endterm="covington" /> für Einzelheiten.</para>
</section>
<section>
<title>Interlinear-Glossierung</title>
<para>Das Linguistikmodul stellt zwei Arten von Glossen zur Verfügung. Beide sind über <emphasis role='sans'>Einfügen&#x21D2;Spezifische Einfügung</emphasis> zugänglich. Die <emphasis>Interlinear-Glosse (2&#xA0;Zeilen)</emphasis> besteht aus zwei Zeilen für das Glossenpaar (bestehend aus der Darstellung in der zu beschreibenden Sprache und einer interlinearen Wort-zu-Wort-Übersetzung) sowie einer weiteren Zeile für die freie Übersetzung, die <emphasis>Interlinear-Glosse (3&#xA0;Zeilen)</emphasis> bietet eine zusätzliche Zeile für Interlinear-Glossierung (diese dritte Zeile wird zumeist für morphologische oder phonologische Angaben verwendet). Die freie Übersetzung kann länger sein als eine Zeile, sie wird dann einfach automatisch und korrekt umbrochen. Die Version in der zu beschreibenden Sprache (erste Zeile der Glosse) wird direkt in die Glosse-Einfügung geschrieben, alle anderen Teile der Glosse in spezifische Unter-Einfügungen (<emphasis role='sans'>Interlinear-Glosse</emphasis>, bzw. mit dreizeiligen Glossen: <emphasis role='sans'>Interlinear-Glosse (Zeile&#xA0;1)</emphasis> und <emphasis role='sans'>Interlinear-Glosse (Zeile&#xA0;2)</emphasis>, sowie <emphasis role='sans'>Glossen-Übersetzung</emphasis>). LyX fügt diese Unter-Einfügungen automatisch ein, wenn Sie eine neue Glosse einfügen. Sie können aber auch manuell eingefügt werden, und zwar über <emphasis role='sans'>Einfügen&#x21D2;Glossen-Übersetzung</emphasis> und <emphasis role='sans'>Einfügen&#x21D2;Interlinear-Glosse</emphasis>. Ungeachtet wo Sie diese Untereinfügungen innerhalb der Glosse einfügen, wird alles in der richtigen Reihenfolge ausgegeben. Schließlich können Sie über <emphasis role='sans'>Einfügen&#x21D2;Glossen-Optionen</emphasis> auch Glossen-Optionen eingeben. Diese Optionen erlauben es Ihnen, die Darstellung der einzelnen Zeilen zu verändern, eine Nummerierung oder vorangestellten Text hinzuzufügen. Bitte konsultieren Sie das Handbuch des Pakets <emphasis>covington </emphasis><biblioref endterm="covington" /> für Einzelheiten.<footnote>
<para>Bitte beachten Sie, dass die Unterstützung für Glossen für LyX 2.4 komplett überarbeitet wurde. Nun werden die neuen und verbesserten Glossen-Makros verwendet, die <emphasis>covington</emphasis> seit der Version 2.0 anbietet. Wegen der erheblichen Veränderungen können alte Glossen leider nicht in die neuen konvertiert werden. Statt dessen werden sie in ihrer ursprünglichen Form importiert (und als <emphasis role='sans'>Lokales Format</emphasis> im Dokument gespeichert). Umgekehrt werden neue Glossen in TeX-Code exportier, wenn Sie in eine ältere LyX-Version exportieren.</para>
</footnote></para>
<para>Hier ist ein einfaches Beispiel für eine zweizeilige Glosse:</para>
<para>C'est un exemple simple</para>
<para>Verwenden Sie <emphasis role='sans'>Bearbeiten&#x21D2;Textstil&#x21D2;Glossierte Wortgruppen</emphasis>, um Mehrwortelemente zusammenzuhalten (alternativ können Sie auch im TeX-Modus <!-- { -->
diese Wörter geschweift einklammern<!-- } -->
). Beachten Sie, dass Sie im LyX-Fenster mehrere Leerzeichen nacheinander einfügen können, um die Glossen dort schöner auszurichten. Die Ausgabe wird davon nicht berührt.</para>
<para>Hier ist eine dreizeilige Glosse. Sie wird analog erzeugt:</para>
<para>Hoc est aliud exemplum</para>
<para>Beachten Sie, wie wir hier mit Hilfe der Glossen-Optionen die zweite Zeile in Kapitälchen ausgeben lassen.</para>
<para>Wenn Sie nummerierte Glossen benötigen, fügen Sie die Glosse entweder einfach in einen Absatz mit dem Format <emphasis>Nummeriertes Beispiel</emphasis> ein, so wie hier:</para>
<informalexample role='consecutive'>
<para>Mein Luftkissenfahrzeug ist voller Aale</para>
</informalexample>
<para>oder verwenden Sie die Glossen-Option <emphasis>ex</emphasis>:</para>
<para>Mein Luftkissenfahrzeug ist voller Aale</para>
<bridgehead renderas="sect2">Tipps &amp; Tricks</bridgehead>
<bridgehead renderas="sect3">Seitenumbrüche innerhalb von Glossen vermeiden</bridgehead>
<para>In der Standardeinstellung können innerhalb von Glossen Seiten umbrochen werden, was natürlich nicht erwünscht ist. Um dies zu umgehen, können Sie in <emphasis role='sans'>Dokument&#x21D2;Einstellungen&#x2026;&#x21D2;Dokumentklasse&#x21D2;Klassenoptionen&#x21D2;Benutzerdefiniert</emphasis> die Option <emphasis>noglossbreaks</emphasis> eingeben; dies wird die meisten Umbrüche verhindern. Wenn trotzdem welche vorkommen, können Sie Glossen in Boxen packen (über <emphasis role='sans'>Einfügen&#x21D2;Box&#x21D2;Rahmenlos</emphasis>).</para>
<bridgehead renderas="sect3">Fußnoten in Glossen</bridgehead>
<para>Sie können zwar eine Fußnote in eine <emphasis>Glosse </emphasis>einfügen, dies führt aber zu einem LaTeX-Fehler. Wenn Sie Fußnoten benötigen, schreiben Sie an der Stelle, an der das Fußnotenzeichen erscheinen soll, im TeX-Modus <code>\footnotemark</code> in die Glosse. Direkt nach (und außerhalb) der Glosse schreiben Sie, ebenfalls im TeX-Modus,<code> \footnotetext{Die Fußnote ...}</code>. Sollten Sie mehrere Fußnoten brauchen, geben Sie einfach mehrere dieser Befehlspaare ein.</para>
<bridgehead renderas="sect3">Glossen (und Beispiele) in Beamer-Präsentationen</bridgehead>
<para>Wenn Sie das Linguistik-Modul in einer Beamer-Präsentation verwenden wollen, beachten Sie bitte folgendes:</para>
<itemizedlist>
<listitem>
<para>Für Glossen müssen Sie in Beamer immer einen &#8222;fragilen&#8220; Rahmen verwenden. </para>
</listitem>
<listitem>
<para>Ältere Versionen des Pakets <emphasis>covington</emphasis> und die <emphasis>Beamer</emphasis>-Klasse arbeiten von Haus aus nicht gut zusammen, da beide die Befehle <code>\example</code> und <code>\examples</code> zu definieren versuchen, was in diesen älteren Versionen eine LaTeX-Fehlermeldung erzeugt, sobald sie Glossen oder Beispiele einfügen. Sie können das Problem beheben, indem Sie in <emphasis role='sans'>Dokument&#x21D2;Einstellungen&#x21D2;Lokales Format</emphasis> folgenden Code kopieren:</para>
<blockquote>
<para><programlisting>Provides covington 1
AddToPreamble
\let\example\relax
\let\endexample\relax
\let\examples\relax
\let\endexamples\relax
\usepackage{covington}
EndPreamble</programlisting>
</para>
</blockquote>
<para>Drücken Sie &#8222;Validieren&#8220; und dann &#8222;OK&#8220;. Dies hat den Effekt, dass die Beispiel-Umgebungen von Beamer deaktiviert werden (und also nicht mehr verwendet werden können), dafür können Sie dann aber die des Linguistik-Moduls verwenden.</para>
<para>Ab <emphasis>covington</emphasis> 1.1 besteht dieses Problem nicht mehr.</para>
</listitem>
</itemizedlist>
</section>
<section>
<title>Tableaux für Optimalitätstheorie</title>
<para>Die OT-Tableaux selbst können natürlich einfach als normale Tabellen eingegeben werden (Spezifika wie gestrichelte Tabellenlinien und schattierte Tabellenzellen, die man hierfür manchmal braucht, sind in <emphasis role='sans'>Hilfe&#x21D2;Eingebettete Objekt</emphasis>e beschrieben). </para>
<para>Wenn Sie allerdings Ihre Tableaux durch das Dokument hindurch nummerieren und ein eigenes Tableaux-Verzeichnis einrichten möchten, reichen die Bordmittel von LyX nicht aus. Auch hier hilft das Linguistikmodul. Wenn es ausgewählt ist, finden Sie unter <emphasis role='sans'>Einfügen&#x21D2;Gleitobjekte</emphasis> zusätzlich ein Tableau-Gleitobjekt (siehe Tableau&#xA0;<xref linkend="tab.Beispiel-Tableau" /> für ein Beispiel).</para>
<table xml:id="tab.Beispiel-Tableau">
<caption>Beispiel-Tableau</caption>
<tbody>
<tr>
<td align='right' valign='top'>/atikap/</td>
<td align='center' valign='top'>Onset</td>
<td align='center' valign='top'>NoCoda</td>
<td align='center' valign='top'>Dep</td>
<td align='center' valign='top'>Max</td>
</tr>
<tr>
<td align='right' valign='top'><inlineequation>
<alt role='tex'>\mbox{☞}</alt>
<m:math>
<m:mrow>
<m:mstyle class='mathbox'>
</m:mstyle>
</m:mrow>
</m:math>
</inlineequation> <inlineequation>
<alt role='tex'>\mbox{\textipa{P}}</alt>
<m:math>
<m:mrow>
<m:mstyle class='mathbox'>P
</m:mstyle>
</m:mrow>
</m:math>
</inlineequation>a.ti.ka</td>
<td align='center' valign='top'></td>
<td align='center' valign='top'></td>
<td align='center' valign='top'>*</td>
<td align='center' valign='top'>*</td>
</tr>
<tr>
<td align='right' valign='top'>a.ti.ka</td>
<td align='center' valign='top'>*!</td>
<td align='center' valign='top'></td>
<td align='center' valign='top'></td>
<td align='center' valign='top'>*</td>
</tr>
<tr>
<td align='right' valign='top'><inlineequation>
<alt role='tex'>\mbox{\textipa{P}}</alt>
<m:math>
<m:mrow>
<m:mstyle class='mathbox'>P
</m:mstyle>
</m:mrow>
</m:math>
</inlineequation>a.ti.kap</td>
<td align='center' valign='top'></td>
<td align='center' valign='top'>*!</td>
<td align='center' valign='top'>*</td>
<td align='center' valign='top'></td>
</tr>
<tr>
<td align='right' valign='top'>a.ti.kap</td>
<td align='center' valign='top'>*!</td>
<td align='center' valign='top'>*!</td>
<td align='center' valign='top'></td>
<td align='center' valign='top'></td>
</tr>
</tbody>
</table>
<para>Bitte beachten Sie, dass die Legende in der Standardeinstellung immer unter dem Tableau ausgegeben wird, egal, wohin Sie sie im LyX-Arbeitsfenster setzen. Um die Legende über das Tableau zu setzen, müssen Sie den folgenden Code in <emphasis role='sans'>Dokument&#x21D2;Einstellungen&#x21D2;Präambel </emphasis>eingeben:</para>
<blockquote>
<para><programlisting language="[LaTeX]TeX">\floatstyle{plaintop}
\restylefloat{tableau}</programlisting>
</para>
</blockquote>
<para>Wenn Sie eine KOMA-Klasse verwenden, nehmen Sie statt dessen das Folgende (welches im Kontext der KOMA-Klassen bessere Abstände erzeugt):</para>
<blockquote>
<para><programlisting language="[LaTeX]TeX">\floatstyle{komaabove}
\restylefloat{tableau}</programlisting>
</para>
</blockquote>
<para>Ein Verzeichnis der Tableaux geben Sie, wie bei normalen Tabellen auch, über <emphasis role='sans'>Einfügen&#x21D2;Liste&#x2044;Inhaltsverzeichnis</emphasis> ein. Dies sieht dann so aus:</para>
</section>
<section>
<title>Semantische Auszeichnung (Textstile)</title>
<para>Das Linguistikmodul stellt einige Textstile zur Verfügung, die in linguistischen Arbeiten allgemein gebräuchlich sind:</para>
<orderedlist>
<listitem>
<para>Konzept (in Kapitälchen): Konzept </para>
</listitem>
<listitem>
<para>Ausdruck (hervorgehoben): Ausdruck</para>
</listitem>
<listitem>
<para>Bedeutung (in einfachen Anführungszeichen): Bedeutung</para>
</listitem>
</orderedlist>
<para>Diese Textstile finden Sie unter <emphasis role='sans'>Bearbeiten&#x21D2;Textstil</emphasis>. Der Vorteil solcher Stile gegenüber direkter Hervorhebung und Auszeichnung ist vor allem der, dass sie alle (und nur die) damit markierten Textteile leicht global verändern können. Wenn Sie (oder Ihr Verlag) also etwa Ausdrücke doch fett gesetzt haben wollen, geben Sie einfach den folgenden Code in <emphasis role='sans'>Dokument&#x21D2;Einstellungen&#x21D2;Präambel</emphasis> ein:</para>
<blockquote>
<para><programlisting language="[LaTeX]TeX">\renewcommand\lexp[1]{\textbf{#1}}</programlisting>
</para>
</blockquote>
<para>Auf ähnliche Weise kann auch das Aussehen von <emphasis>Konzept</emphasis> (<code>\lcon</code>) und <emphasis>Bedeutung</emphasis> (<code>\lmean</code>) verändert werden. Bitte konsultieren Sie das Handbuch des Pakets <emphasis>covington</emphasis> <biblioref endterm="covington" /> für Einzelheiten.</para>
</section>
<section>
<title>Linguistische Strukturbäume</title>
<para>Mittlerweile gibt es mehrere LaTeX-Pakete, die bei der Erstellung von Strukturbäumen helfen. LyX unterstützt das Paket <emphasis role='sans'>forest</emphasis>, welches hohe Flexibilität und Mächtigkeit mit einer intuitiven Syntax vereint. Das Linguistik-Modul enthält eine Strukturbaum-Einfügung, die unter <emphasis role='sans'>Einfügen&#x21D2;Spezifische Einfügung</emphasis> zu finden ist. Innerhalb dieser Einfügung können Sie die Klammernotation verwenden, die das Paket <emphasis role='sans'>forest</emphasis> (wie auch andere Pakete, z.&#x2009;B. <emphasis role='sans'>qtree</emphasis>) anbietet.</para>
<para>Hier ist ein einfaches Beispiel:</para>
<para>[VP [DP[Hans]] [V' [V[schickt]] [DP[Maria]] [DP[D[einen]][NP[Brief]]] ] ]</para>
<para>Wenn Sie die PDF-Ausgabe ansehen, sehen Sie, dass die Notation</para>
<blockquote>
<para><code><emphasis role='size_footnote'>[VP [DP[Hans]] [V' [V[schickt]] [DP[Maria]] [DP[D[einen]][NP[Brief]]]]]</emphasis></code></para>
</blockquote>
<para>als Strukturbaum ausgegeben wird. Um das Ergebnis bereits im LyX<!-- "= -->
Eingabefenster zu sehen, können Sie die Strukturbaum-Einfügung einfach in eine Vorschau-Einfügung (<emphasis role='sans'>Einfügen&#x21D2;Vorschau</emphasis>) einbetten. Wenn &#8222;Sofortige Vorschau&#8220; richtig eingerichtet und aktiviert ist, sollten Sie den Baum sofort sehen (zur Bearbeitung klicken Sie einfach auf das Bild):</para>
<para>[VP [DP[Maria]] [V' [V[schickt]] [DP[Hans]] [DP[D[eine]][NP[Antwort]]] ] ]</para>
<para>Dächer (&#8222;roofs&#8220;) können mittels der Option &#8222;roof&#8220;<footnote>
<para>Bitte beachten Sie, dass die Option &#8222;roof&#8220; erst ab Version 2.0 des Pakets <emphasis role='sans'>forest</emphasis> verfügbar ist. Für frühere Versionen haben wir in den Vorspann dieses Dokuments Code eingefügt, die die Verwendung dennoch gestattet. Wenn Ihre Version des Pakets <emphasis role='sans'>forest</emphasis> kleiner ist als 2.0 und Sie &#8222;roof&#8220; verwenden wollen, müssen Sie diesen Code in den Vorspann Ihres Dokuments kopieren. Statt dessen können Sie auch die alte Option &#8222;triangle&#8220; (statt &#8222;roof&#8220;) verwenden.</para>
</footnote> erzeugt werden (beachten Sie, dass Kommata eine spezielle Bedeutung haben; sie markieren Optionen):</para>
<para>[VP [DP[Hans]] [V' [V[schickt]] [DP[Maria]] [DP[einen weiteren Brief, roof]] ] ]</para>
<para>Um die Knoten des Baums besser auszurichten, verwenden Sie die Option &#8222;tier&#8220;. Alle Knoten, denen dieselbe &#8222;tier&#8220; (Ebene) zugewiesen wurde, werden in einer vertikalen Linie ausgerichtet. Hier ist ein Beispiel:</para>
<para>[VP [DP[Hans, tier=word]] [V' [V[schickt, tier=word]] [DP[Maria, tier=word]] [DP[D[einen, tier=word]][NP[Brief, tier=word]]] ] ]</para>
<para>Das Paket bietet viel mehr Möglichkeiten, wie bspw. Bewegungspfeile und Dekorationen. Sie können hier nicht eingehend besprochen werden. Bitte konsultieren Sie die ausführliche Dokumentation des Pakets <biblioref endterm="forest" />.</para>
</section>
<section>
<title>Diskursrepräsentationsstrukturen</title>
<para>Das Linguistik-Modul stellt auch Einfügungen zur Erzeugung von Diskursrepräsentationsstrukturen (DRSen) in der Box-Notation von <personname>Hans Kamps</personname> <emphasis>Diskursrepräsentationstheorie</emphasis> zur Verfügung. Diese Einfügungen finden Sie unter <emphasis role='sans'>Einfügen&#x21D2;Spezifische Einfügung</emphasis>.</para>
<para>Eine einfache DRS erzeugen Sie mit der Einfügung <emphasis role='sans'>Diskursrepräsentationsstruktur</emphasis>. Eine DRS besteht aus (Diskurs-)<emphasis>Bedingungen</emphasis>, die direkt in die Einfügung geschrieben werden, uns den (u.&#x2009;U. leeren) (Diskurs-)<emphasis>Referenten</emphasis> (bzw., im DRT-Jargon, dem <emphasis>Universum</emphasis>), welche in die (automatisch eingefügte) Untereinfügung <emphasis>Referenten</emphasis> geschrieben werden.<footnote>
<para>Sollte diese nicht eingefügt werden, finden Sie sie unter <emphasis role='sans'>Einfügen&#x21D2;DRS-Referenten</emphasis>. </para>
</footnote> Zeilenwechsel müssen mittels <keycap>Ctrl+Return</keycap> eingefügt werden. Hier ist ein einfaches Beispiel:</para>
<para>
Esel(x)grün(x)</para>
<para>DRSen sind durch spezifische Layout-Anpassungen so gestaltet, dass Sie gut auf der Seite platziert werden. Die Variante <emphasis role='sans'>Diskursrepräsentationsstruktur (einfach)</emphasis> unterdrückt diese Anpassungen. </para>
<para>Zusätzlich zu diesen einfachen DRSen werden die folgenden konditionalen DRSen unterstützt (sie werden in der Regel in einfache eingebettet):</para>
<orderedlist>
<listitem>
<para>Die <emphasis role='sans'>Implikative DRS</emphasis> repräsentiert eine konditionale (implikative) Satzkonstruktion der Form <emphasis>wenn S<subscript>1</subscript>, dann S</emphasis><subscript>2</subscript>:</para>
<para>Joseph(x)Esel(y)besitzen(x,y)</para>
</listitem>
<listitem>
<para>Die <emphasis role='sans'>Konditionale DRS</emphasis> ist eine allgemeinere Variante, bei der Sie selbst eine beliebige Bedingung (statt der implikativen) spezifizieren können. In die Untereinfügung <emphasis role='sans'>Bedingung</emphasis> können Sie ein beliebiges Symbol eingeben:</para>
<para>Joseph(x)Esel(y)besitzen(x,y)</para>
</listitem>
<listitem>
<para>Die <emphasis role='sans'>Duplex-Bedingungs-DRS</emphasis> können Sie für sog. <emphasis>Duplex-Bedingungen</emphasis> verwenden:</para>
<para>x <inlineequation>
<alt role='tex'>\in</alt>
<m:math>
<m:mrow><m:mo>&#x2208;</m:mo>
</m:mrow>
</m:math>
</inlineequation> X</para>
</listitem>
<listitem>
<para>Die <emphasis role='sans'>Negierte DRS</emphasis> fügt eine DRS ein, der ein Negationszeichen vorangestellt ist:</para>
<para>Esel(x)grün(x)</para>
</listitem>
</orderedlist>
<para><emphasis role='sans'>DRS mit Satz oberhalb</emphasis> schließlich tut, was es verspricht: Es setzt einen Satz über die Box-Repräsentation:</para>
<para>
Esel(x)grün(x)
</para>
<para>Das Paket <emphasis>drs</emphasis> bietet einige Möglichkeiten, um das Erscheinungsbild der DRS-Modelle anzupassen. Bitte konsultieren Sie das Handbuch des Pakets <biblioref endterm="drs" /> für Einzelheiten.</para>
</section>
<section>
<title>Phonetische Notation (IPA)</title>
<para>Um phonetische Zeichen einzugeben, brauchen Sie das Linguistikmodul nicht. IPA-Unterstützung ist mittlerweile eine Grundfunktion von LyX. Da IPA aber von Linguistinnen und Linguisten sehr häufig gebraucht wird, wird die Verwendung der IPA-Funktion hier trotzdem (kurz) beschrieben.</para>
<para>Um LyX' IPA-Funktion mit klassischem LaTeX oder PDFLaTeX zu benutzen, müssen Sie das Paket <emphasis>tipa</emphasis> <biblioref endterm="tipa" /> installiert haben. Es wird von LyX automatisch geladen, wenn Sie dem unten beschriebenen Vorgehen folgen. Wenn Sie XeTeX oder LuaTeX verwenden (und &#8222;Nicht-TeX-Schriften verwenden&#8220; in <emphasis role='sans'>Dokument&#x21D2;Einstellungen&#x21D2;Schriften</emphasis> aktiviert haben), wird statt dessen das Paket <emphasis>xunicode</emphasis> geladen, da <emphasis>tipa</emphasis> in diesem Fall nicht funktioniert. Das Paket <emphasis>xunicode</emphasis> emuliert die Ausgabe von <emphasis>tipa</emphasis>, ist aber nicht perfekt, so dass die Ausgabe möglicherweise nicht wie erwartet ist. Außerdem müssen Sie in diesem Fall darauf achten, dass die Nicht-TeX-Schrift die IPA-Symbole auch enthält (empfehlenswert sind Schriften wie <emphasis>CMU Serif</emphasis> oder <emphasis>SIL Doulos</emphasis>). Sie können auch eine Schrift nur für IPA definieren, indem sie das Folgende in <emphasis role='sans'>Dokument&#x21D2;Einstellungen&#x21D2;LaTeX-Vorspann</emphasis> eingeben:</para>
<para><programlisting language="[LaTeX]TeX">\AtBeginDocument{%
\newfontfamily{\ipafont}{CMU Serif}% oder eine ander Schriftart
\def\useTIPAfont{\ipafont}
}</programlisting>
Für eine direkte Vorschau der IPA-Symbole im Arbeitsfenster sollten Sie weiterhin (egal, welche der oben beschriebenen Ausgabeformate Sie verwenden) das <emphasis>preview-latex</emphasis>-Paket <biblioref endterm="preview" /> installiert haben.</para>
<para>Phonetische Zeichen werden in eine spezielle Umgebung eingegeben, die Sie über <emphasis role='sans'>Einfügen&#x21D2;Sonderzeichen&#x21D2;Phonetische Symbole </emphasis>aktivieren. Es wird ein kleiner umrahmter Eingabebereich eingefügt, in den Sie einzelne Zeichen, Wörter und Wortfolgen sowie auch mehrere Absätze mit phonetischer Notation eingeben können. Wenn Sie in dem Eingabebereich sind, wird eine Symbolleiste aktiviert, die die wichtigsten IPA-Symbole (nach den IPA-Kategorien sortiert) bereitstellt.<footnote>
<para>Es fehlt ein Symbol: der (2005 in das IPA aufgenommene) labiodentale Flap. Dieses Zeichen unterstützt das <emphasis>Tipa-</emphasis>Paket noch nicht; daher kann es auch nicht von LyX unterstützt werden.</para>
</footnote> Jeder Symbolbereich dieser Symbolleiste kann durch Klicken auf die gestrichelte Linie abgetrennt werden. Dadurch kann phonetische Notation recht komfortabel eingegeben werden: [ˈɛtva zo:].<footnote>
<para>Wenn Sie ein diakritisches Zeichen einfügen möchten, müssen Sie das Diakritikum <emphasis>nach</emphasis> dem Basiszeichen einfügen. Das heißt, für [d̥] geben Sie zuerst <code>&lt;d&gt;</code> ein und dann direkt danach das Diakritikum <code>&lt;Stimmlos&gt;</code> von der Symbolleiste. Wenn Sie nur ein Diakritikum eingeben möchten, können Sie das direkt nach einem Leerzeichen tun, so wie hier: ̼ (<code>=&#xA0;&lt;Leerzeichen&gt;+&lt;Lingolabial&gt;</code>).</para>
</footnote> Wenn<emphasis> preview-latex</emphasis> installiert ist und Sie außerdem in<emphasis role='sans'> Werkzeuge&#x21D2;Einstellungen&#x2026;&#x21D2;Grafik</emphasis> &#8222;Sofortige Vorschau&#8220; aktiviert haben, zeigt LyX eine WYSIWYG-Vorschau der Notation an, sobald der Cursor den IPA-Bereich verlässt. Alternativ zur Symbolleiste können Sie die Zeichen auch direkt mithilfe der Kurznotation eingeben können, die im <emphasis>tipa</emphasis>-Handbuch erläutert wird: hier eine [kOst"pro:b@] (<emphasis>tipa</emphasis>-Kurznotation: <code>[kOst"pro:b@</code>]). Alternativ können Sie die meisten IPA-Zeichen auch über <emphasis role='sans'>Einfügen&#x21D2;Sonderzeichen&#x21D2;Symbole&#x2026;</emphasis> in das Eingabefeld eingeben oder sie aus einem anderen Dokument kopieren und dort einfügen. Die Ausgabe sollte immer identisch sein, egal welche Eingabemethode Sie wählen.</para>
<para>Bitte beachten Sie, dass Sie die meisten IPA-Zeichen über die zuletzt genannten Methoden auch außerhalb des IPA-Eingabebereichs einfügen können: [zoː viː hiːɐ̯]. In der Ausgabe werden diese Zeichen dann ebenfalls direkt in die korrekten <emphasis>tipa</emphasis>-Makros umgewandelt (lassen Sie es uns wissen, falls das nicht der Fall ist). Dieses Verfahren hat aber gravierende Nachteile gegenüber der IPA-Umgebung, denn die direkte Eingabe resultiert in der Regel in unerwünschter Schriftmischung (die lateinischen Buchstaben werden aus der Grundschrift, die speziellen IPA-Zeichen aber aus der IPA-Schrift genommen, und diese beiden Schriften passen nicht notwendigerweise zusammen). Innerhalb der IPA-Eingabeumgebung wird dagegen für alle Zeichen dieselbe Schrift verwendet. Deshalb sollten Sie, wenn Sie nicht nur Einzelzeichen eingeben, unbedingt den IPA-Eingabebereich verwenden.</para>
</section>
<section>
<title>Weitere Informationen</title>
<para>Mehr und ausführlichere Informationen über die Möglichkeiten des Einsatzes von LyX für linguistische Zwecke finden Sie auf der (englischsprachigen) <emphasis>LinguistLyX</emphasis>-Seite auf dem LyX-Wiki <biblioref endterm="linguistlyx" />. Sie sind übrigens herzlich eingeladen, dort aktiv mitzuschreiben!</para>
</section>
<bibliography>
<bibliomixed xml:id='covington'>Das covington-Paket: <link xlink:href="http://www.ctan.org/tex-archive/macros/latex/contrib/covington/">http://www.ctan.org/tex-archive/macros/latex/contrib/covington/</link>.</bibliomixed>
<bibliomixed xml:id='csquotes'>Das csquotes-Paket: <link xlink:href="http://www.ctan.org/tex-archive/macros/latex/contrib/csquotes/">http://www.ctan.org/tex-archive/macros/latex/contrib/csquotes/</link>.</bibliomixed>
<bibliomixed xml:id='drs'> Das drs-Paket: <link xlink:href="https://ctan.org/tex-archive/macros/latex/contrib/drs">https://ctan.org/tex-archive/macros/latex/contrib/drs</link>.</bibliomixed>
<bibliomixed xml:id='enumitem'>Das enumitem-Paket: <link xlink:href="http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem/">http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem/</link>.</bibliomixed>
<bibliomixed xml:id='float'>Das float-Paket: <link xlink:href="http://www.ctan.org/tex-archive/macros/latex/contrib/float/">http://www.ctan.org/tex-archive/macros/latex/contrib/float/</link>.</bibliomixed>
<bibliomixed xml:id='forest'>Das forest-Paket: <link xlink:href="http://www.ctan.org/tex-archive/graphics/pgf/contrib/forest">http://www.ctan.org/tex-archive/graphics/pgf/contrib/forest</link>.</bibliomixed>
<bibliomixed xml:id='linguistlyx'>Maria Gouskova, Stacia Hartleben und Jürgen Spitzmüller: Using LyX for Linguistic Papers. <link xlink:href="https://wiki.lyx.org/LyX/LinguistLyX">https://wiki.lyx.org/LyX/LinguistLyX</link>.</bibliomixed>
<bibliomixed xml:id='pict2e'>Das pict2e-Paket: <link xlink:href="https://ctan.org/tex-archive/macros/latex/contrib/pict2e">https://ctan.org/tex-archive/macros/latex/contrib/pict2e</link></bibliomixed>
<bibliomixed xml:id='preview'>Das preview-latex-Paket: <link xlink:href="http://www.ctan.org/tex-archive/macros/latex/contrib/preview/">http://www.ctan.org/tex-archive/macros/latex/contrib/preview/</link>.</bibliomixed>
<bibliomixed xml:id='tipa'>Das tipa-Paket und die zugehörigen Schriften: <link xlink:href="http://www.ctan.org/tex-archive/fonts/tipa/">http://www.ctan.org/tex-archive/fonts/tipa/</link>.</bibliomixed>
</bibliography>
</article>

View File

@ -0,0 +1,867 @@
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin /systemlyxdir/templates/Posters/
\textclass sciposter
\begin_preamble
%% Comment this out and adapt if you want a poster background
%\usepackage{wallpaper}
%\CenterWallPaper{1.1}{poster-background}
% Set all margins to 1cm
\setmargins[1cm]
% Set up column layout
\setlength\columnseprule{0pt}
\setlength\columnsep{4.5pc}
% Color settings:
\usepackage{sectionbox}
% a.) background color
%\definecolor{mainCol}{RGB}{255,237,208}
% b.) text color (mainly subsection headers)
\definecolor{TextCol}{RGB}{128,0,0}
% c.) section header color
\definecolor{SectionCol}{RGB}{0,0,255}
% d.) color of section boxes
\definecolor{sectboxfillcol}{RGB}{255,220,168}
\definecolor{subsectboxfillcol}{RGB}{255,245,198}
% Large section titles
\renewcommand{\sectionsize}{\Large}
\end_preamble
\options landscape,a0,largefonts,plainsections
\use_default_options false
\begin_modules
multicol
sectionbox
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures false
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine natbib
\cite_engine_type numerical
\biblio_style plainnat
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 0
\tocdepth -1
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Title
Poster Title
\end_layout
\begin_layout Author
Author One and Author Two
\end_layout
\begin_layout Institute
The University, Some address, Postal Code
\end_layout
\begin_layout E-Mail
author1@somewhere and author2@elsewhere
\end_layout
\begin_layout Conference
The Conference
\begin_inset Note Note
status open
\begin_layout Plain Layout
appears in footer
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Section*
Some advices
\end_layout
\begin_layout Subsubsection*
Appearance
\end_layout
\begin_layout Itemize
See
\family sans
Document\SpecialChar menuseparator
Settings\SpecialChar menuseparator
\SpecialChar LaTeX
Preamble
\family default
for some possibilities to adjust the appearance of your poster.
Also check
\family sans
Document\SpecialChar menuseparator
Settings\SpecialChar menuseparator
Document Class\SpecialChar menuseparator
Class Options
\family default
for some general settings.
Please refer to the
\family sans
sciposter
\family default
manual for possible values.
\end_layout
\begin_layout Subsubsection*
Logo
\end_layout
\begin_layout Itemize
You can use the
\family sans
LeftLogo
\family default
and
\family sans
RightLogo
\family default
style to insert graphic logos in the header of your poster.
The logos need to be given as file names (with our without extension) and
with full path, if the files are not in the TEXMF directory.
\end_layout
\begin_layout Itemize
Note that the logos only appear if you do not specify a
\begin_inset Quotes eld
\end_inset
Conference
\begin_inset Quotes erd
\end_inset
(i.
\begin_inset space \thinspace{}
\end_inset
e., no foot line).
\end_layout
\begin_layout Subsubsection*
Columns and Boxes
\end_layout
\begin_layout Itemize
The
\family sans
Columns
\family default
and
\family sans
(Section) Box
\family default
insets can be found at
\family sans
Insert\SpecialChar menuseparator
Custom Insets.
\end_layout
\begin_layout Itemize
Instead of the Section Boxes, you can also use the differently looking Color
Boxes via the
\begin_inset Quotes eld
\end_inset
Color Boxes
\begin_inset Quotes erd
\end_inset
module.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Flex Multiple Columns
status open
\begin_layout Plain Layout
\begin_inset Argument 1
status open
\begin_layout Plain Layout
3
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Flex SectionBox
status open
\begin_layout Plain Layout
\begin_inset Argument 2
status collapsed
\begin_layout Plain Layout
Abstract
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\size small
\emph on
This is my special abstract This is my special abstract This is my special
abstract This is my special abstract This is my special abstract This is
my special abstract This is my special abstract This is my special abstract
This is my special abstract This is my special abstract.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Flex SectionBox
status open
\begin_layout Plain Layout
\begin_inset Argument 2
status collapsed
\begin_layout Plain Layout
Background
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
This is the background and our hypothesis.
This is the background and our hypothesis.
This is the background and our hypothesis.
This is the background and our hypothesis.
This is the background and our hypothesis.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\size small
\begin_inset Flex SectionBox
status open
\begin_layout Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
label "One/Two(2010)"
key "key-1"
literal "true"
\end_inset
Author One & Author Two (2010): Our Great Book.
Somewhere.
\end_layout
\begin_layout Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
label "Two/One(2011)"
key "key-2"
literal "true"
\end_inset
Author Two & Author One (2011): Our Even Greater Book.
Somewhere.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
columnbreak
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Flex SectionBox
status open
\begin_layout Plain Layout
\begin_inset Argument 2
status collapsed
\begin_layout Plain Layout
Findings
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Flex SubsectionBox
status open
\begin_layout Plain Layout
\begin_inset Argument 2
status collapsed
\begin_layout Plain Layout
Some evidence
\end_layout
\end_inset
\end_layout
\begin_layout Itemize
point one
\end_layout
\begin_layout Itemize
point two
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Flex SubsectionBox
status open
\begin_layout Plain Layout
\begin_inset Argument 2
status collapsed
\begin_layout Plain Layout
More evidence
\end_layout
\end_inset
\end_layout
\begin_layout Itemize
point three
\end_layout
\begin_layout Itemize
point four
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Flex SubsectionBox
status open
\begin_layout Plain Layout
\begin_inset Argument 2
status collapsed
\begin_layout Plain Layout
Other issues
\end_layout
\end_inset
\end_layout
\begin_layout Itemize
Really have to fill in this
\end_layout
\begin_layout Itemize
Really have to fill in this
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
columnbreak
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Flex SectionBox
status open
\begin_layout Plain Layout
\begin_inset Argument 2
status collapsed
\begin_layout Plain Layout
Experiment
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
This is the experiment.
This is the experiment.
This is the experiment.
This is the experiment.
This is the experiment.
This is the experiment.
This is the experiment.
This is the experiment.
This is the experiment.
This is the experiment.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Flex SectionBox
status open
\begin_layout Plain Layout
\begin_inset Argument 2
status collapsed
\begin_layout Plain Layout
Results
\end_layout
\end_inset
\end_layout
\begin_layout Itemize
result
\end_layout
\begin_layout Itemize
result
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Flex SectionBox
status open
\begin_layout Plain Layout
\begin_inset Argument 2
status collapsed
\begin_layout Plain Layout
Conclusions
\end_layout
\end_inset
\end_layout
\begin_layout Enumerate
first conclusion
\end_layout
\begin_layout Enumerate
second conclusion
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Flex SectionBox
status open
\begin_layout Plain Layout
\begin_inset Argument 2
status collapsed
\begin_layout Plain Layout
Available font size (and corresponding
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
LaTeX
\backslash
\end_layout
\end_inset
commands)
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\paragraph_spacing single
\begin_inset Note Note
status open
\begin_layout Plain Layout
The extra sizes (
\begin_inset Quotes eld
\end_inset
Giant
\begin_inset Quotes erd
\end_inset
etc.) are available at
\family sans
Insert\SpecialChar menuseparator
Custom Insets
\family default
.
For small inline snippets, there are variants at
\family sans
Edit\SpecialChar menuseparator
Text Style.
\end_layout
\begin_layout Plain Layout
Note that for some paper sizes and font settings,
\begin_inset Quotes eld
\end_inset
More Giant
\begin_inset Quotes erd
\end_inset
and
\begin_inset Quotes eld
\end_inset
Most Giant
\begin_inset Quotes erd
\end_inset
are equal.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\size tiny
Tiny (
\family typewriter
\backslash
tiny
\family default
)
\end_layout
\begin_layout Plain Layout
\size scriptsize
Smallest (
\family typewriter
\backslash
scriptsize
\family default
)
\end_layout
\begin_layout Plain Layout
\size footnotesize
Smaller (
\family typewriter
\backslash
footnotesize
\family default
)
\end_layout
\begin_layout Plain Layout
\size normal
Normal (
\family typewriter
\size default
\backslash
normalsize
\family default
\size normal
)
\end_layout
\begin_layout Plain Layout
\size large
Large (
\family typewriter
\backslash
large
\family default
)
\end_layout
\begin_layout Plain Layout
\size larger
Larger (
\family typewriter
\backslash
Large
\family default
)
\end_layout
\begin_layout Plain Layout
\size largest
Largest (
\family typewriter
\backslash
LARGE
\family default
)
\end_layout
\begin_layout Plain Layout
\size huge
Huge (
\family typewriter
\backslash
huge
\family default
)
\end_layout
\begin_layout Plain Layout
\size giant
Huger (
\family typewriter
\backslash
Huge
\family default
)
\end_layout
\begin_layout Plain Layout
\begin_inset Flex Giant
status open
\begin_layout Plain Layout
Giant (
\family typewriter
\backslash
veryHuge
\family default
)
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Flex More Giant
status open
\begin_layout Plain Layout
More Giant (
\family typewriter
\backslash
VeryHuge
\family default
)
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Flex Most Giant
status open
\begin_layout Plain Layout
Most Giant (
\family typewriter
\backslash
VERYHuge
\family default
)
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
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.2">
<info>
<title>Poster Title</title>
<author>
<personname>Author One and Author Two</personname>
</author><author>
<personname>The University, Some address, Postal Code</personname>
</author><author>
<personname>author1@somewhere and author2@elsewhere</personname>
</author><author>
<personname>The Conference</personname>
</author>
</info>
<para>This is my special abstract This is my special abstract This is my special abstract This is my special abstract This is my special abstract This is my special abstract This is my special abstract This is my special abstract This is my special abstract This is my special abstract.This is the background and our hypothesis. This is the background and our hypothesis. This is the background and our hypothesis. This is the background and our hypothesis. This is the background and our hypothesis.<bibliography>
<bibliomixed xml:id='key-1'>Author One &amp; Author Two (2010): Our Great Book. Somewhere.</bibliomixed>
<bibliomixed xml:id='key-2'>Author Two &amp; Author One (2011): Our Even Greater Book. Somewhere.</bibliomixed>
</bibliography>
<!-- \columnbreak -->
<itemizedlist>
<listitem>
<para>point one</para>
</listitem>
<listitem>
<para>point two</para>
</listitem>
</itemizedlist>
<itemizedlist>
<listitem>
<para>point three</para>
</listitem>
<listitem>
<para>point four</para>
</listitem>
</itemizedlist>
<itemizedlist>
<listitem>
<para>Really have to fill in this</para>
</listitem>
<listitem>
<para>Really have to fill in this</para>
</listitem>
</itemizedlist>
<!-- \columnbreak -->
This is the experiment. This is the experiment. This is the experiment. This is the experiment. This is the experiment. This is the experiment. This is the experiment. This is the experiment. This is the experiment. This is the experiment. <itemizedlist>
<listitem>
<para>result</para>
</listitem>
<listitem>
<para>result</para>
</listitem>
</itemizedlist>
<orderedlist>
<listitem>
<para>first conclusion</para>
</listitem>
<listitem>
<para>second conclusion</para>
</listitem>
</orderedlist>
</para>
<para>Tiny (\tiny)Smallest (\scriptsize)Smaller (\footnotesize)Normal (\normalsize)Large (\large)Larger (\Large)Largest (\LARGE)Huge (\huge)Huger (\Huge)Giant (\veryHuge)More Giant (\VeryHuge)Most Giant (\VERYHuge)</para>
</article>

View File

@ -3,37 +3,46 @@
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.2">
<info>
<title>Tufte Examples</title>
<author>
<personname>Fake Author</personname>
</author>
</info>
<chapter>
<title>The Features of the Tufte-book Class</title>
<title>
The Features of the Tufte-book Class
</title>
<para>In this document, it was endeavored to show some of the features of the <emphasis role='sans'>Tufte-book</emphasis> class. In the first chapter, their use is outlined. In the second chapter, their use through a handout that was created in a calculus class is demonstrated.</para>
<section>
<title>Working with Text</title>
<para>One of the most prominent and distinctive features of this style is the extensive use of sidenotes. There is a wide margin to provide ample room for sidenotes and small figures. Any footnotes will automatically be converted to sidenotes.<footnote><para>This is a sidenote that was entered using a <code>footnote</code>.</para>
</footnote> Alternatively, you can also use the <code>Sidenote</code> inset directly; you'll find it in the <emphasis role='sans'>Insert&#x21D2;Custom Insets</emphasis> menu.This is a sidenote that was entered using a <code>sidenote</code>.</para>
<title>
Working with Text
</title>
<para>One of the most prominent and distinctive features of this style is the extensive use of sidenotes. There is a wide margin to provide ample room for sidenotes and small figures. Any footnotes will automatically be converted to sidenotes.<footnote>
<para>This is a sidenote that was entered using a <code>footnote</code>.</para>
</footnote> Alternatively, you can also use the <code>Sidenote</code> inset directly; you'll find it in the <emphasis role='sans'>Insert&#x21D2;Custom Insets</emphasis> menu.This is a sidenote that was entered using a sidenote.</para>
<para>If you like to place ancillary information in the margin without the sidenote mark (the superscript number), you can use the <code>Marginnote</code> inset. This is Tufte's margin note. Notice that there isn't a number preceding the note, and there is no number in the main text where this note was written. The normal margin note will work as well, but it will look rather odd.<sidebar role="margin">
&lt;?dbfo float-type="margin.note"?&gt;<sidebar role="margin">This is a normal margin note. Don't use it.</sidebar></sidebar></para>
<para>Another useful innovation is Tufte's <code>NewThought</code> character style (<emphasis role='sans'>Edit&#x21D2;TextStyle&#x21D2;NewThought</emphasis>). It introduces new thoughts by means of small caps, as demonstrated in this paragraph. </para>
<?dbfo float-type="margin.note"?>
<para>This is a normal margin note. Don't use it.</para></sidebar></para>
<para><emphasis role='newthought'>Another useful</emphasis> innovation is Tufte's <code>NewThought</code> character style (<emphasis role='sans'>Edit&#x21D2;TextStyle&#x21D2;NewThought</emphasis>). It introduces new thoughts by means of small caps, as demonstrated in this paragraph. </para>
<para>The Tufte document classes include two new character styles and some improvements on existing commands for letterspacing.</para>
<para>When setting strings of <emphasis role='allcaps'>ALL CAPS</emphasis> or small caps, the letterspacing—that is, the spacing between the letters—should be increased slightly.<biblioref endterm="Bringhurst2005" /> The <emphasis>AllCaps</emphasis> character style (<emphasis role='sans'>Edit&#x21D2;TextStyle&#x21D2;AllCaps</emphasis>) has proper letterspacing for strings of <emphasis role='allcaps'>FULL CAPITAL LETTERS</emphasis>, and the <emphasis>SmallCaps</emphasis> character style (<emphasis role='sans'>Edit&#x21D2;TextStyle&#x21D2;SmallCaps</emphasis>) has letterspacing for small capital letters. These commands will also automatically convert the case of the text to upper- or lowercase, respectively.</para>
<para>When setting strings of <emphasis role='allcaps'>ALL CAPS</emphasis> or <emphasis role='smallcaps'>small caps</emphasis>, the letterspacing—that is, the spacing between the letters—should be increased slightly.<biblioref endterm="Bringhurst2005" /> The <emphasis>AllCaps</emphasis> character style (<emphasis role='sans'>Edit&#x21D2;TextStyle&#x21D2;AllCaps</emphasis>) has proper letterspacing for strings of <emphasis role='allcaps'>FULL CAPITAL LETTERS</emphasis>, and the <emphasis>SmallCaps</emphasis> character style (<emphasis role='sans'>Edit&#x21D2;TextStyle&#x21D2;SmallCaps</emphasis>) has letterspacing for <emphasis role='smallcaps'>small capital letters</emphasis>. These commands will also automatically convert the case of the text to upper- or lowercase, respectively.</para>
<para>The normal <emphasis>Small Caps</emphasis> shape has also been redefined to include letterspacing. Its case is left as is, however. This allows one to use both uppercase and lowercase letters: <emphasis role='smallcaps'>The Initial Letters Of The Words In This Sentence Are Capitalized.</emphasis></para>
<para>Finally, the<emphasis> Full Width</emphasis> paragraph environment provides a paragraph layout that stretches across the main text block and the sidenotes area:</para>
<Full Width>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Curabitur auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.
</Full Width>
<para role='fullwidth'>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Curabitur auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.</para>
</section>
</chapter>
<bibliography>
<title>References</title>
<biblioentry xml:id="Bringhurst2005">
<title>The Elements of Typographic Style</title><edition>3.1</edition><bibliomisc role="type">book</bibliomisc>
<title>The Elements of Typographic Style</title>
<edition>3.1</edition>
<bibliomisc role="type">book</bibliomisc>
<publisher>
<publishername>Hartley &amp; Marks</publishername>
</publisher>
<pubdate>2005</pubdate>
<authorgroup><author>
<authorgroup>
<author>
<personname>
<firstname>Robert</firstname>
<surname>Bringhurst</surname>

View File

@ -1,5 +1,5 @@
#LyX 2.4 created this file. For more info see http://www.lyx.org/
\lyxformat 544
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 598
\begin_document
\begin_header
\save_transient_properties true
@ -9,11 +9,11 @@
\newcommand{\testmacro}{\ensuremath{\operatorname{testmacro}}}
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\maintain_unincluded_children no
\language english
\language_package default
\inputencoding auto
\fontencoding global
\inputencoding auto-legacy
\fontencoding auto
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
@ -21,7 +21,9 @@
\font_default_family default
\use_non_tex_fonts 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_tt_scale 100 100
\use_microtype false
@ -56,6 +58,7 @@
\justification true
\use_refstyle 1
\use_minted 0
\use_lineno 0
\index Index
\shortcut idx
\color #008000
@ -75,11 +78,15 @@
\papercolumns 1
\papersides 1
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\docbook_table_output 0
\end_header
\begin_body
@ -139,6 +146,10 @@ I am a quote
\end_layout
\begin_layout Standard
Now, we're outside quotes.
\end_layout
\begin_layout Standard
\begin_inset Formula
\[
@ -174,7 +185,7 @@ noprefix "false"
\begin_layout Standard
Also, a formula with an user-defined macro that outputs well in LaTeX but
cannot in MathML (hence replaced by picture):
cannot in MathML:
\begin_inset Formula $\testmacro$
\end_inset
@ -386,6 +397,8 @@ Now, three tables:
\begin_layout Standard
\begin_inset Float table
placement document
alignment document
wide false
sideways false
status open
@ -511,6 +524,8 @@ I am a table caption below the table.
\begin_layout Standard
\begin_inset Float table
placement document
alignment document
wide false
sideways false
status open
@ -636,6 +651,8 @@ Col 3, row 2
\begin_layout Standard
\begin_inset Float table
placement document
alignment document
wide false
sideways false
status open
@ -753,6 +770,8 @@ Then, one figure:
\begin_layout Standard
\begin_inset Float figure
placement document
alignment document
wide false
sideways false
status open

View File

@ -1,69 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
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">
<info><title>I am a title</title>
<author><personname>I am an author</personname></author>
<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>
<title>I am a title</title>
<author>
<personname>I am an author</personname>
</author>
<date>I am a date</date>
<abstract><para>I am an abstract</para>
<abstract>
<para>I am an abstract</para>
<para>I am also an abstract</para>
</abstract>
</info>
<para>I am a standard paragraph. </para>
<section xml:id="sec.Sec-1-0">
<section xml:id="sec.Sec-1">
<title>I am the first section </title>
<para>I am the first paragraph of the first section. </para>
<para>I am the second paragraph of the first section. </para>
<blockquote><para>I am a quote
<inlineequation>
<m:math>
<m:alt role='tex'>\,with\,a\,formula</m:alt>
<blockquote>
<para>I am a quote<inlineequation>
<alt role='tex'>\,with\,a\,formula</alt>
<m:math>
<m:mrow>
<m:mrow>
<m:mspace width="6px"/><m:mi>w</m:mi><m:mi>i</m:mi><m:mi>t</m:mi><m:mi>h</m:mi>
<m:mspace width="6px"/><m:mi>a</m:mi>
<m:mspace width="6px"/><m:mi>f</m:mi><m:mi>o</m:mi><m:mi>r</m:mi><m:mi>m</m:mi><m:mi>u</m:mi><m:mi>l</m:mi><m:mi>a</m:mi>
<m:mrow><m:mspace width="6px" /><m:mi>w</m:mi><m:mi>i</m:mi><m:mi>t</m:mi><m:mi>h</m:mi><m:mspace width="6px" /><m:mi>a</m:mi><m:mspace width="6px" /><m:mi>f</m:mi><m:mi>o</m:mi><m:mi>r</m:mi><m:mi>m</m:mi><m:mi>u</m:mi><m:mi>l</m:mi><m:mi>a</m:mi>
</m:mrow>
</m:mrow>
</m:math>
</inlineequation>. </para>
</m:math>
</inlineequation>. </para>
</blockquote>
<para>
<informalequation>
<m:math>
<m:alt role='tex'>Formula!</m:alt>
<para>Now, we're outside quotes.</para>
<informalequation>
<alt role='tex'>Formula!</alt>
<m:math>
<m:mrow>
<m:mrow><m:mi>F</m:mi><m:mi>o</m:mi><m:mi>r</m:mi><m:mi>m</m:mi><m:mi>u</m:mi><m:mi>l</m:mi><m:mi>a</m:mi><m:mo>!</m:mo>
</m:mrow>
</m:mrow>
</m:math>
</informalequation>
<informalequation xml:id='eq.EQ.-1'>
<m:math>
<m:alt role='tex'>\text{I am a formula with a ref.}\label{eq:EQ.}</m:alt>
</m:math>
</informalequation>
<informalequation xml:id="eq.EQ.">
<alt role='tex'>\text{I am a formula with a ref.}\label{eq:EQ.}</alt>
<m:math>
<m:mrow>
<m:mstyle mathvariant='normal'>
<m:mrow><m:mi>I</m:mi>&#0160;<m:mi>a</m:mi><m:mi>m</m:mi>&#0160;<m:mi>a</m:mi>&#0160;<m:mi>f</m:mi><m:mi>o</m:mi><m:mi>r</m:mi><m:mi>m</m:mi><m:mi>u</m:mi><m:mi>l</m:mi><m:mi>a</m:mi>&#0160;<m:mi>w</m:mi><m:mi>i</m:mi><m:mi>t</m:mi><m:mi>h</m:mi>&#0160;<m:mi>a</m:mi>&#0160;<m:mi>r</m:mi><m:mi>e</m:mi><m:mi>f</m:mi><m:mn>.</m:mn>
</m:mrow>
</m:mstyle>
</m:mrow>
</m:math>
</informalequation></para>
<para>See <xref linkend="sec.Sec-2kqgsdiflhqsdlifgjuzer-povtuizmvnuer-t-vmsrmfli--uh--a--rtpfuo----rtpc.m-ca-rgifzapeu-tvgz-2" />.</para>
<para>Also, a formula with an user-defined macro that outputs well in LaTeX but cannot in MathML (hence replaced by picture):
<inlineequation>
<m:math>
<m:alt role='tex'>\testmacro</m:alt>
</m:math>
</inlineequation>. </para>
<!-- \latexCommandThatShouldBeCommented --><section>
</m:math>
</informalequation>
<para>See <xref linkend="sec.Sec-2kqgsdiflhqsdlifgjuzer-povtuizmvnuer-t-vmsrmfli--uh--a--rtpfuo----rtpc.m-ca-rgifzapeu-tvgz" />.</para>
<para>Also, a formula with an user-defined macro that outputs well in LaTeX but cannot in MathML: <inlineequation>
<alt role='tex'>\testmacro</alt>
<mathphrase>MathML export failed. Please report this as a bug.</mathphrase>
</inlineequation>. </para>
<!-- \latexCommandThatShouldBeCommented -->
<section>
<title>I am the first subsection</title>
<para>I am the only paragraph of the first subsection. </para>
</section>
@ -72,174 +69,168 @@
<para>I am the only paragraph of the second subsection. </para>
</section>
</section>
<section xml:id="sec.Sec-2kqgsdiflhqsdlifgjuzer-povtuizmvnuer-t-vmsrmfli--uh--a--rtpfuo----rtpc.m-ca-rgifzapeu-tvgz-2">
<section xml:id="sec.Sec-2kqgsdiflhqsdlifgjuzer-povtuizmvnuer-t-vmsrmfli--uh--a--rtpfuo----rtpc.m-ca-rgifzapeu-tvgz">
<title>I am the second section </title>
<para>I am the only paragraph of the second section. <link xlink:href="http://example.org">Hyperlink.</link> &#8220;Text between quotes.&#8221;</para>
<para>See <xref linkend="sec.Sec-1-0" />.</para>
<para>See <xref linkend="sec.Sec-1" />.</para>
</section>
<section>
<title>I am the third section and I have fun with lists</title>
<orderedlist><listitem><para>First item. </para>
<orderedlist>
<listitem>
<para>First item. </para>
<para>Second line of the first item, after a line break. </para>
</listitem>
<listitem><para>Second item. </para>
<listitem>
<para>Second item. </para>
</listitem>
</orderedlist>
<itemizedlist><listitem><para>Item has no order (1). </para>
<itemizedlist>
<listitem>
<para>Item has no order (1). </para>
</listitem>
<listitem><para>Item has no order (2). </para>
<listitem>
<para>Item has no order (2). </para>
</listitem>
</itemizedlist>
<variablelist><varlistentry><term>Word</term>
<listitem><para> description</para>
</listitem></varlistentry>
<varlistentry><term>Sentence</term>
<listitem><para> meaning</para>
</listitem></varlistentry>
<variablelist>
<varlistentry>
<term>Word</term>
<listitem>
<para>description</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Sentence</term>
<listitem>
<para>meaning</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<section>
<title>I am the fourth section and I deal with formatting. </title>
<para>The following paragraph should be code. </para>
<para><programlisting>I am some code.
I am a second line of code. </programlisting>I am no more code. </para>
<para>This line has inline code. <code>This has typewriter font</code><footnote><para>I repeat that in a footnote.</para>
I am a second line of code.
</programlisting>I am no more code. </para>
<para>This line has inline code. <code>This has typewriter font</code><footnote>
<para>I repeat that in a footnote.</para>
</footnote>. </para>
<para>On the other hand, <footnote><para>this footnote</para>
<para>On the other hand, <footnote>
<para>this footnote</para>
<para>has multiple </para>
<para>paragraphs.</para>
</footnote>. </para>
</section>
<section>
<title>I am the fifth section and I deal with floats</title>
<para>Now, three tables: </para>
<table><caption>I am a table caption below the table.</caption>
<tbody><tr><td align='center' valign='top'>Table 1</td>
<table>
<caption>I am a table caption below the table.</caption>
<tbody>
<tr>
<td align='center' valign='top'>Table 1</td>
<td align='center' valign='top'>Table 2</td>
<td align='center' valign='top'>Table 3</td>
</tr>
<tr><td align='center' valign='top'>Row 1</td>
<tr>
<td align='center' valign='top'>Row 1</td>
<td align='center' valign='top'></td>
<td align='center' valign='top'>Col 3, row 1</td>
</tr>
<tr><td align='center' valign='top'>Row 2</td>
<tr>
<td align='center' valign='top'>Row 2</td>
<td align='center' valign='top'></td>
<td align='center' valign='top'>Col 3, row 2</td>
</tr></tbody>
</tr>
</tbody>
</table>
<table><caption>I am a table caption above the table.</caption>
<tbody><tr><td align='center' valign='top'>Table 1</td>
<table>
<caption>I am a table caption above the table.</caption>
<tbody>
<tr>
<td align='center' valign='top'>Table 1</td>
<td align='center' valign='top'>Table 2</td>
<td align='center' valign='top'>Table 3</td>
</tr>
<tr><td align='center' valign='top'>Row 1</td>
<tr>
<td align='center' valign='top'>Row 1</td>
<td align='center' valign='top'></td>
<td align='center' valign='top'>Col 3, row 1</td>
</tr>
<tr><td align='center' valign='top'>Row 2</td>
<tr>
<td align='center' valign='top'>Row 2</td>
<td align='center' valign='top'></td>
<td align='center' valign='top'>Col 3, row 2</td>
</tr></tbody>
</tr>
</tbody>
</table>
<informaltable><tbody><tr><td align='center' valign='top'>Table that has no caption 1</td>
<informaltable>
<tbody>
<tr>
<td align='center' valign='top'>Table that has no caption 1</td>
<td align='center' valign='top'>Table that has no caption 2</td>
<td align='center' valign='top'>Table that has no caption 3</td>
</tr>
<tr><td align='center' valign='top'>Row 1</td>
<tr>
<td align='center' valign='top'>Row 1</td>
<td align='center' valign='top'></td>
<td align='center' valign='top'>Col 3, row 1</td>
</tr>
<tr><td align='center' valign='top'>Row 2</td>
<tr>
<td align='center' valign='top'>Row 2</td>
<td align='center' valign='top'></td>
<td align='center' valign='top'>Col 3, row 2</td>
</tr></tbody>
</tr>
</tbody>
</informaltable>
<para>Then, one figure: </para>
<figure><title>Caption.</title>
<mediaobject><imageobject><imagedata fileref="0_mnt_d_Thibaut_LyX_autotests_export_docbook_lyx-logo.png" />
<figure>
<title>Caption.</title>
<mediaobject>
<imageobject>
<imagedata fileref="D:/LyX/lyx-unstable/autotests/export/docbook/lyx-logo.png" />
</imageobject>
</mediaobject>
</figure>
</section>
<section>
<title>I am the sixth section and I really like bibliographies</title>
<para>This text has references. First reference: <biblioref endterm="big" />. Second reference: <biblioref endterm="small" />. Both at the same time: <biblioref endterm="big" />, <biblioref endterm="small" />. A book: <biblioref endterm="Gro60" />. </para>
<para>Many things, just testing for completeness: <biblioref endterm="article" />, <biblioref endterm="book" />, <biblioref endterm="booklet" />, <biblioref endterm="conference" />, <biblioref endterm="inbook" />, <biblioref endterm="incollection" />. </para>
</section>
<section>
<title>I am the seventh section and I deal with indices</title>
<para>First, a term to index: <indexterm type="idx"><primary>Term to index</primary></indexterm>. Then a term to add to the second index: <indexterm type="oth"><primary>Term to add to the second index</primary></indexterm>. </para>
<para>Then several terms for the first index: <indexterm type="idx"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary></indexterm>. </para>
<para>With a see: <indexterm type="idx"><primary>Term</primary><see>index</see></indexterm>. With a see also: <indexterm type="idx"><primary>Term</primary><seealso>index</seealso></indexterm>. </para>
<para>Several terms with a see: <indexterm type="idx"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary><see>index</see></indexterm>. Several terms with a see also: <indexterm type="idx"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary><seealso>index</seealso></indexterm>. </para>
<para>A start of range: <indexterm type="idx" class="startofrange" xml:id="Term-to-index-3"><primary>Term to index</primary></indexterm>. The corresponding end of range: <indexterm type="idx" class="endofrange" startref="Term-to-index-3"><primary>Term to index</primary></indexterm>.</para>
<para>Several terms with a start of range: <indexterm type="idx" class="startofrange" xml:id="Term.to.index-4"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary></indexterm>. The corresponding end of range: <indexterm type="idx" class="endofrange" startref="Term.to.index-4"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary></indexterm>.</para>
<para>These terms already appeared before! Start of range: <indexterm type="idx" class="startofrange" xml:id="Term.to.index-0-5"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary></indexterm>. The corresponding end of range: <indexterm type="idx" class="endofrange" startref="Term.to.index-0-5"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary></indexterm>.</para>
<para>A start of range: <indexterm type="idx" class="startofrange" xml:id="Term-to-index"><primary>Term to index</primary></indexterm>. The corresponding end of range: <indexterm class="endofrange" startref="Term-to-index" />.</para>
<para>Several terms with a start of range: <indexterm type="idx" class="startofrange" xml:id="Term.to.index"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary></indexterm>. The corresponding end of range: <indexterm class="endofrange" startref="Term.to.index" />.</para>
<para>These terms already appeared before! Start of range: <indexterm type="idx" class="startofrange" xml:id="Term.to.index-0"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary></indexterm>. The corresponding end of range: <indexterm class="endofrange" startref="Term.to.index-0" />.</para>
</section>
<section>
<title>I am the eight section and I deal with star sections</title>
<bridgehead renderas="part">Star part</bridgehead>
<bridgehead renderas='other' otherrenderas='part'>Star part</bridgehead>
<bridgehead renderas="sect1">Star section (sect1)</bridgehead>
<bridgehead renderas="sect2">Star subsection (sect2)</bridgehead>
<bridgehead renderas="sect3">Star subsubsection (sect3)</bridgehead>
<bridgehead renderas="sect4">Star paragraph (sect4)</bridgehead>
<bridgehead renderas="sect5">Star subparagraph (sect5)</bridgehead>
</section>
<bibliography><title>References</title>
<biblioentry xml:id="article"><title>The title of the work</title><volumenum>4</volumenum><artpagenums>201-213</artpagenums><bibliomisc role="type">article</bibliomisc>
<bibliography>
<title>References</title>
<biblioentry xml:id="article">
<title>The title of the work</title><volumenum>4</volumenum><artpagenums>201-213</artpagenums><bibliomisc role="type">article</bibliomisc>
<pubdate>1993</pubdate>
<biblioset relation="journal"><title>The name of the journal</title>
<biblioset relation="journal">
<title>The name of the journal</title>
</biblioset>
<authorgroup><author><personname><firstname>Peter</firstname>
<authorgroup><author>
<personname>
<firstname>Peter</firstname>
<surname>Adams</surname>
</personname>
</author>
@ -247,123 +238,122 @@ I am a second line of code. </programlisting>I am no more code. </para>
<biblioid class="pubsnumber">2</biblioid>
<bibliomisc role="note">An optional note</bibliomisc>
</biblioentry>
<biblioentry xml:id="book"><title>The title of the work</title><volumenum>4</volumenum><edition>3</edition><bibliomisc role="type">book</bibliomisc>
<publisher><publishername>The name of the publisher</publishername>
<biblioentry xml:id="book">
<title>The title of the work</title><volumenum>4</volumenum><edition>3</edition><bibliomisc role="type">book</bibliomisc>
<publisher>
<publishername>The name of the publisher</publishername>
<address>The address</address></publisher>
<pubdate>1993</pubdate>
<authorgroup><author><personname><firstname>Peter</firstname>
<authorgroup><author>
<personname>
<firstname>Peter</firstname>
<surname>Babington</surname>
</personname>
</author>
</authorgroup>
<bibliomisc role="note">An optional note</bibliomisc>
</biblioentry>
<biblioentry xml:id="booklet"><title>The title of the work</title><bibliomisc role="type">booklet</bibliomisc>
<biblioentry xml:id="booklet">
<title>The title of the work</title><bibliomisc role="type">booklet</bibliomisc>
<pubdate>1993</pubdate>
<authorgroup><author><personname><firstname>Peter</firstname>
<authorgroup><author>
<personname>
<firstname>Peter</firstname>
<surname>Caxton</surname>
</personname>
</author>
</authorgroup>
</biblioentry>
<biblioentry xml:id="conference"><title>The title of the work</title><artpagenums>213</artpagenums><bibliomisc role="type">conference</bibliomisc>
<publisher><publishername>The publisher</publishername>
<biblioentry xml:id="conference">
<title>The title of the work</title><artpagenums>213</artpagenums><bibliomisc role="type">conference</bibliomisc>
<publisher>
<publishername>The publisher</publishername>
</publisher>
<pubdate>1993</pubdate>
<authorgroup><author><personname><firstname>Peter</firstname>
<authorgroup><author>
<personname>
<firstname>Peter</firstname>
<surname>Draper</surname>
</personname>
</author>
</authorgroup>
</biblioentry>
<biblioentry xml:id="inbook"><title>The title of the work</title><artpagenums>201-213</artpagenums><bibliomisc role="type">inbook</bibliomisc>
<publisher><publishername>The name of the publisher</publishername>
<biblioentry xml:id="inbook">
<title>The title of the work</title><artpagenums>201-213</artpagenums><bibliomisc role="type">inbook</bibliomisc>
<publisher>
<publishername>The name of the publisher</publishername>
</publisher>
<pubdate>1993</pubdate>
<authorgroup><author><personname><firstname>Peter</firstname>
<authorgroup><author>
<personname>
<firstname>Peter</firstname>
<surname>Eston</surname>
</personname>
</author>
</authorgroup>
</biblioentry>
<biblioentry xml:id="incollection"><title>The title of the work</title><volumenum>4</volumenum><edition>3</edition><artpagenums>201-213</artpagenums><bibliomisc role="type">incollection</bibliomisc>
<publisher><publishername>The name of the publisher</publishername>
<biblioentry xml:id="incollection">
<title>The title of the work</title><volumenum>4</volumenum><edition>3</edition><artpagenums>201-213</artpagenums><bibliomisc role="type">incollection</bibliomisc>
<publisher>
<publishername>The name of the publisher</publishername>
<address>The address of the publisher</address></publisher>
<pubdate>1993</pubdate>
<biblioset relation="book"><title>The title of the book</title>
<biblioset relation="book">
<title>The title of the book</title>
</biblioset>
<authorgroup><author><personname><firstname>Peter</firstname>
<authorgroup><author>
<personname>
<firstname>Peter</firstname>
<surname>Farindon</surname>
</personname>
</author>
</authorgroup>
<bibliomisc role="note">An optional note</bibliomisc>
</biblioentry>
<biblioentry xml:id="small"><title>A small paper</title><volumenum>-1</volumenum><bibliomisc role="type">article</bibliomisc>
<biblioentry xml:id="small">
<title>A small paper</title><volumenum>-1</volumenum><bibliomisc role="type">article</bibliomisc>
<pubdate>1997</pubdate>
<biblioset relation="journal"><title>The journal of small papers</title>
<biblioset relation="journal">
<title>The journal of small papers</title>
</biblioset>
<authorgroup><author><personname><surname>Freely</surname>
<authorgroup><author>
<personname>
<surname>Freely</surname>
<othername role="suffix">I. P.</othername>
</personname>
</author>
<author><personname><firstname>Ditto</firstname>
<author>
<personname>
<firstname>Ditto</firstname>
<surname>Johannes</surname>
</personname>
</author>
</authorgroup>
<bibliomisc role="note">to appear</bibliomisc>
</biblioentry>
<biblioentry xml:id="Gro60."><title>Éléments de géométrie algébrique</title><bibliomisc role="type">book</bibliomisc>
<biblioentry xml:id="Gro60">
<title>Éléments de géométrie algébrique</title><bibliomisc role="type">book</bibliomisc>
<pubdate>1960</pubdate>
<authorgroup><author><personname><firstname>Alexander</firstname>
<authorgroup><author>
<personname>
<firstname>Alexander</firstname>
<surname>Grothendieck</surname>
</personname>
</author>
</authorgroup>
</biblioentry>
<biblioentry xml:id="big"><title>A big paper</title><volumenum>MCMXCVII</volumenum><bibliomisc role="type">article</bibliomisc>
<biblioentry xml:id="big">
<title>A big paper</title><volumenum>MCMXCVII</volumenum><bibliomisc role="type">article</bibliomisc>
<pubdate>7991</pubdate>
<biblioset relation="journal"><title>The journal of big papers</title>
<biblioset relation="journal">
<title>The journal of big papers</title>
</biblioset>
<authorgroup><author><personname><firstname>Hugh</firstname>
<authorgroup><author>
<personname>
<firstname>Hugh</firstname>
<surname>Jass</surname>
</personname>
</author>
</authorgroup>
</biblioentry>
</bibliography>
</article>
</bibliography></article>

View File

@ -1,12 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
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">
<info><title>Book title</title>
<author><personname>Book author</personname></author>
<abstract><para>Book abstract in info. </para>
<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>
<title>Book title</title>
<author>
<personname>Book author</personname>
</author>
<abstract>
<para>Book abstract in info. </para>
</abstract>
</info>
<chapter>
@ -15,8 +17,8 @@
</chapter>
<part>
<title>First part</title>
<partintro><para>Part intro. </para>
<partintro>
<para>Part intro. </para>
</partintro>
<chapter>
<title>First chapter of first part</title>
@ -29,8 +31,8 @@
</part>
<part>
<title>Second part</title>
<partintro><para>Part 2 intro. </para>
<partintro>
<para>Part 2 intro. </para>
</partintro>
<chapter>
<title>First chapter of second part</title>
@ -41,5 +43,4 @@
<para>Paragraph. </para>
</chapter>
</part>
</book>

View File

@ -5,11 +5,10 @@
<title>William Shakespeare</title>
<section>
<title>Publications</title>
</section>
<bibliography>
<bibliomixed xml:id='first'>First Folio. </bibliomixed>
<bibliomixed xml:id='second'>Second Folio. </bibliomixed>
<bibliomixed xml:id='third'>Third Folio. </bibliomixed>
</bibliography>
</section>
</article>

View File

@ -3,6 +3,51 @@
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.2">
<info>
<title>Collapsed Cores in Globular Clusters, Gauge-Boson Couplings, and AASTeX Examples</title>
<author>
<personname>S. Djorgovski and Ivan R. King</personname>
<affiliation>
<orgname>Astronomy Department, University of California, Berkeley, CA 94720</orgname>
</affiliation>
<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>
<affiliation role="alternate">
<orgname>Society of Fellows, Harvard University.</orgname>
</affiliation>
<affiliation role="alternate">
<orgname>present address: Center for Astrophysics60 Garden Street, Cambridge, MA 02138</orgname>
</affiliation>
</author>
<author>
<personname>C. D. Biemesderfer</personname>
<affiliation>
<orgname>National Optical Astronomy Observatories, Tucson, AZ 85719</orgname>
</affiliation>
<affiliation role="alternate">
<orgname>Visiting Programmer, Space Telescope Science Institute</orgname>
</affiliation>
<affiliation role="alternate">
<orgname>Patron, Alonso's Bar and Grill</orgname>
</affiliation>
<email>aastex-help@aas.org</email>
</author>
<author>
<personname>R. J. Hanisch</personname>
<affiliation>
<orgname>Space Telescope Science Institute, Baltimore, MD 21218</orgname>
</affiliation>
<affiliation role="alternate">
<orgname>Patron, Alonso's Bar and Grill</orgname>
</affiliation>
</author>
<keywordset>
<keyword>clusters: globular, peanut—bosons: bozos</keyword>
</keywordset>
<abstract>
<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>
</info>
<section>
<title>Introduction</title>
@ -89,7 +134,8 @@
</section>
<section>
<title>Helicity Amplitudes</title>
<para>It has been realized that helicity amplitudes provide a convenient means for Feynman diagram<footnote><para>Footnotes can be inserted like this.</para>
<para>It has been realized that helicity amplitudes provide a convenient means for Feynman diagram<footnote>
<para>Footnotes can be inserted like this.</para>
</footnote> evaluations. These amplitude-level techniques are particularly convenient for calculations involving many Feynman diagrams, where the usual trace techniques for the amplitude squared becomes unwieldy. Our calculations use the helicity techniques developed by other authors <biblioref endterm="hag86" />; we briefly summarize below.</para>
<section>
<title>Formalism</title>
@ -115,7 +161,8 @@
</m:mrow>
</m:mrow>
</m:math>
</inlineequation> collisions can be expressed in terms of fermion strings of the form <informalequation>
</inlineequation> collisions can be expressed in terms of fermion strings of the form
<informalequation>
<alt role='tex'>\bar{v}(p_{2},\sigma_{2})P_{-\tau}\hat{a}_{1}\hat{a}_{2}\cdots\hat{a}_{n}u(p_{1},\sigma_{1}),</alt>
<m:math>
@ -334,7 +381,7 @@
</m:mrow>
</m:math>
</inlineequation> may be formed from particle four-momenta, gauge-boson polarization vectors or fermion strings with an uncontracted Lorentz index associated with final-state fermions.</para>
<NoteToEditor>Figures 1 and 2 should appear side-by-side in print</NoteToEditor>
<remark role='to-editor'>Figures 1 and 2 should appear side-by-side in print</remark>
<para>In the chiral representation the <inlineequation>
<alt role='tex'>\gamma</alt>
<m:math>
@ -358,7 +405,8 @@
<m:mrow><m:mi>&#x3C3;</m:mi>
</m:mrow>
</m:math>
</inlineequation> and the unit matrix 1 as <informalequation>
</inlineequation> and the unit matrix 1 as
<informalequation>
<alt role='tex'>\gamma^{\mu} &amp; = &amp; \left(\begin{array}{cc}
0 &amp; \sigma_{+}^{\mu}\\
\sigma_{-}^{\mu} &amp; 0
@ -468,7 +516,8 @@
</m:mtr>
</m:mtable>
</m:math>
</informalequation> giving <informalequation>
</informalequation> giving
<informalequation>
<alt role='tex'>\hat{a}=\left(\begin{array}{cc}
0 &amp; (\hat{a})_{+}\\
(\hat{a})_{-} &amp; 0
@ -546,11 +595,13 @@
</m:mrow>
</m:mrow>
</m:math>
</informalequation> The spinors are expressed in terms of two-component Weyl spinors as <informalequation>
</informalequation> The spinors are expressed in terms of two-component Weyl spinors as
<informalequation>
<alt role='tex'>u=\left(\begin{array}{c}
(u)_{-}\\
(u)_{+}
\end{array}\right),v={\textbf{(}}\vdag_{+}{\textbf{,}}\vdag_{-}{\textbf{)}}.</alt>MathML export failed. Please report this as a bug.
\end{array}\right),v={\textbf{(}}\vdag_{+}{\textbf{,}}\vdag_{-}{\textbf{)}}.</alt>
<mathphrase>MathML export failed. Please report this as a bug.</mathphrase>
</informalequation></para>
<para>The Weyl spinors are given in terms of helicity eigenstates <inlineequation>
<alt role='tex'>\chi_{\lambda}(p)</alt>
@ -580,7 +631,6 @@
</m:mrow>
</m:math>
</inlineequation> by </para>
<MathLetters>
<informalequation>
<alt role='tex'>u(p,\lambda)_{\pm} &amp; = &amp; (E\pm\lambda|{\textbf{p}}|)^{1/2}\chi_{\lambda}(p),\\
v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi_{-\lambda}(p)
@ -670,13 +720,12 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
</m:mtr>
</m:mtable>
</m:math>
</informalequation>
</MathLetters>
</section>
</informalequation></section>
</section>
<section>
<title>Floating material and so forth</title>
<para>Consider a task that computes profile parameters for a modified Lorentzian of the form <informalequation>
<para>Consider a task that computes profile parameters for a modified Lorentzian of the form
<informalequation>
<alt role='tex'>I=\frac{1}{1+d_{1}^{P(1+d_{2})}}</alt>
<m:math>
@ -714,7 +763,8 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
</m:mrow>
</m:mrow>
</m:math>
</informalequation> where <informalequation>
</informalequation> where
<informalequation>
<alt role='tex'>d_{1}=\sqrt{\left(\begin{array}{c}
\frac{x_{1}}{R_{maj}}\end{array}\right)^{2}+\left(\begin{array}{c}
\frac{y_{1}}{R_{min}}\end{array}\right)^{2}}</alt>
@ -799,11 +849,14 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
</m:mrow>
</m:mrow>
</m:math>
</informalequation><informalequation>
</informalequation>
<informalequation>
<alt role='tex'>d_{2}=\sqrt{\left(\begin{array}{c}
\frac{x_{1}}{PR_{maj}}\end{array}\right)^{2}+\left(\begin{array}{c}
\case{y_{1}}{PR_{min}}\end{array}\right)^{2}}</alt>MathML export failed. Please report this as a bug.
</informalequation><informalequation>
\case{y_{1}}{PR_{min}}\end{array}\right)^{2}}</alt>
<mathphrase>MathML export failed. Please report this as a bug.</mathphrase>
</informalequation>
<informalequation>
<alt role='tex'>x_{1}=(x-x_{0})\cos\Theta+(y-y_{0})\sin\Theta</alt>
<m:math>
@ -840,7 +893,8 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
</m:mrow>
</m:mrow>
</m:math>
</informalequation><informalequation>
</informalequation>
<informalequation>
<alt role='tex'>y_{1}=-(x-x_{0})\sin\Theta+(y-y_{0})\cos\Theta</alt>
<m:math>
@ -933,7 +987,8 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
</m:msub>
</m:mrow>
</m:math>
</inlineequation>, but the assumption is that the alternate results should be less than 90° out of phase with previous values. We have no observations of <!-- \ion{Ca}{2} -->. Roughly <inlineequation>
</inlineequation>, but the assumption is that the alternate results should be less than 90° out of phase with previous values. We have no observations of <!-- \ion{Ca}{2} -->
. Roughly <inlineequation>
<alt role='tex'>\nicefrac{4}{5}</alt>
<m:math>
@ -947,24 +1002,37 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
</m:mrow>
</m:math>
</inlineequation> of the electronically submitted abstracts for AAS meetings are error-free. </para>
<acknowledgement><para>We are grateful to V. Barger, T. Han, and R. J. N. Phillips for doing the math in section&#xA0;<xref linkend="bozomath" />. More information on the AASTeX macros package are available at <link xlink:href="http://www.aas.org/publications/aastex">http://www.aas.org/publications/aastex</link> or the <link xlink:href="ftp://www.aas.org/pubs/AAS ftp site">AAS ftp site</link>.</para></acknowledgement>
<para><application>IRAF, AIPS, Astropy, ...</application></para>
<Appendix></Appendix>
<acknowledgements>
<para>We are grateful to V. Barger, T. Han, and R. J. N. Phillips for doing the math in section&#xA0;<xref linkend="bozomath" />. More information on the AASTeX macros package are available at <link xlink:href="http://www.aas.org/publications/aastex">http://www.aas.org/publications/aastex</link> or the <link xlink:href="ftp://www.aas.org/pubs/AAS ftp site">AAS ftp site</link>.</para>
</acknowledgements>
<remark role='software'>IRAF, AIPS, Astropy, ...</remark>
</section>
<bibliography>
<bibliomixed xml:id='aur82'>Aurière, M. 1982, <!-- \aap -->, 109, 301 </bibliomixed>
<bibliomixed xml:id='can78'>Canizares, C. R., Grindlay, J. E., Hiltner, W. A., Liller, W., and McClintock, J. E. 1978, <!-- \apj -->, 224, 39 </bibliomixed>
<bibliomixed xml:id='djo84'>Djorgovski, S., and King, I. R. 1984, <!-- \apjl -->, 277, L49 </bibliomixed>
<bibliomixed xml:id='aur82'>Aurière, M. 1982, <!-- \aap -->
, 109, 301 </bibliomixed>
<bibliomixed xml:id='can78'>Canizares, C. R., Grindlay, J. E., Hiltner, W. A., Liller, W., and McClintock, J. E. 1978, <!-- \apj -->
, 224, 39 </bibliomixed>
<bibliomixed xml:id='djo84'>Djorgovski, S., and King, I. R. 1984, <!-- \apjl -->
, 277, L49 </bibliomixed>
<bibliomixed xml:id='hag86'>Hagiwara, K., and Zeppenfeld, D. 1986, Nucl.Phys., 274, 1 </bibliomixed>
<bibliomixed xml:id='har84'>Harris, W. E., and van den Bergh, S. 1984, <!-- \aj -->, 89, 1816 </bibliomixed>
<bibliomixed xml:id='har84'>Harris, W. E., and van den Bergh, S. 1984, <!-- \aj -->
, 89, 1816 </bibliomixed>
<bibliomixed xml:id='hen61'>Hénon, M. 1961, Ann.d'Ap., 24, 369 </bibliomixed>
<bibliomixed xml:id='kin66'>King, I. R. 1966, <!-- \aj -->, 71, 276 </bibliomixed>
<bibliomixed xml:id='kin66'>King, I. R. 1966, <!-- \aj -->
, 71, 276 </bibliomixed>
<bibliomixed xml:id='kin75'>King, I. R. 1975, Dynamics of Stellar Systems, A. Hayli, Dordrecht: Reidel, 1975, 99 </bibliomixed>
<bibliomixed xml:id='kin68'>King, I. R., Hedemann, E., Hodge, S. M., and White, R. E. 1968, <!-- \aj -->, 73, 456 </bibliomixed>
<bibliomixed xml:id='kro84'>Kron, G. E., Hewitt, A. V., and Wasserman, L. H. 1984, <!-- \pasp -->, 96, 198 </bibliomixed>
<bibliomixed xml:id='lyn68'>Lynden-Bell, D., and Wood, R. 1968, <!-- \mnras -->, 138, 495 </bibliomixed>
<bibliomixed xml:id='new78'>Newell, E. B., and O'Neil, E. J. 1978, <!-- \apjs -->, 37, 27 </bibliomixed>
<bibliomixed xml:id='ort85'>Ortolani, S., Rosino, L., and Sandage, A. 1985, <!-- \aj -->, 90, 473 </bibliomixed>
<bibliomixed xml:id='pet76'>Peterson, C. J. 1976, <!-- \aj -->, 81, 617 </bibliomixed>
<bibliomixed xml:id='kin68'>King, I. R., Hedemann, E., Hodge, S. M., and White, R. E. 1968, <!-- \aj -->
, 73, 456 </bibliomixed>
<bibliomixed xml:id='kro84'>Kron, G. E., Hewitt, A. V., and Wasserman, L. H. 1984, <!-- \pasp -->
, 96, 198 </bibliomixed>
<bibliomixed xml:id='lyn68'>Lynden-Bell, D., and Wood, R. 1968, <!-- \mnras -->
, 138, 495 </bibliomixed>
<bibliomixed xml:id='new78'>Newell, E. B., and O'Neil, E. J. 1978, <!-- \apjs -->
, 37, 27 </bibliomixed>
<bibliomixed xml:id='ort85'>Ortolani, S., Rosino, L., and Sandage, A. 1985, <!-- \aj -->
, 90, 473 </bibliomixed>
<bibliomixed xml:id='pet76'>Peterson, C. J. 1976, <!-- \aj -->
, 81, 617 </bibliomixed>
<bibliomixed xml:id='spi85'>Spitzer, L. 1985, Dynamics of Star Clusters, J. Goodman and P. Hut, Dordrecht: Reidel, 109 </bibliomixed>
</bibliography>
<table xml:id="tbl-2">
@ -1062,7 +1130,7 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
<m:mrow><m:mi>P</m:mi>
</m:mrow>
</m:math>
</inlineequation>a</td>
</inlineequation><remark role='tablenotemark'>a</remark></td>
<td align='right' valign='top'> <inlineequation>
<alt role='tex'>PR_{maj}</alt>
<m:math>
@ -1106,11 +1174,12 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
<m:mrow><m:mo>&#x398;</m:mo>
</m:mrow>
</m:math>
</inlineequation>b</td>
</inlineequation><remark role='tablenotemark'>b</remark></td>
<td align='center' valign='top'>Ref.</td>
</tr>
<tr>
<td align='center' valign='top'><!-- \tableline\tableline -->1 </td>
<td align='center' valign='top'><!-- \tableline\tableline -->
1 </td>
<td align='right' valign='top'>33472.5 </td>
<td align='right' valign='top'>-0.1 </td>
<td align='right' valign='top'>0.4 </td>
@ -1157,7 +1226,7 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
<tr>
<td align='center' valign='top'> 4 </td>
<td align='right' valign='top'>32733.8 </td>
<td align='right' valign='top'>-1.2c</td>
<td align='right' valign='top'>-1.2<remark role='tablenotemark'>c</remark></td>
<td align='right' valign='top'>-0.5 </td>
<td align='right' valign='top'>41 </td>
<td align='right' valign='top'>54.8 </td>
@ -1176,7 +1245,7 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
<td align='right' valign='top'>-0.4 </td>
<td align='right' valign='top'>60 </td>
<td align='right' valign='top'>1.4 </td>
<td align='right' valign='top'>1.669c</td>
<td align='right' valign='top'>1.669<remark role='tablenotemark'>c</remark></td>
<td align='right' valign='top'>1.574 </td>
<td align='right' valign='top'>2.343 </td>
<td align='right' valign='top'>8.0 </td>
@ -1200,12 +1269,14 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
<td align='center' valign='top'>8</td>
</tr>
</tbody>
<Table note>a<!-- }{ -->Sample footnote for table&#xA0;<xref linkend="tbl-2" /> that was generated with the LaTeX table environment</Table note>
<Table note>b<!-- }{ -->Yet another sample footnote for table&#xA0;<xref linkend="tbl-2" /></Table note>
<Table note>c<!-- }{ -->Another sample footnote for table&#xA0;<xref linkend="tbl-2" /></Table note>
<TableComments>We can also attach a long-ish paragraph of explanatory material to a table. Use \tablerefs to append a list of references. The following references were from a different table: I've patched them in here to show how they look, but don't take them too seriously—I certainly have not.</TableComments>
<TableRefs>(1) Barbuy, Spite, &amp; Spite 1985; (2) Bond 1980; (3) Carbon et al. 1987; (4) Hobbs &amp; Duncan 1987; (5) Gilroy et al. 1988: (6) Gratton &amp; Ortolani 1986; (7) Gratton &amp; Sneden 1987; (8) Gratton &amp; Sneden (1988); (9) Gratton &amp; Sneden 1991; (10) Kraft et al. 1982; (11) LCL, or Laird, 1990; (12) Leep &amp; Wallerstein 1981; (13) Luck &amp; Bond 1981; (14) Luck &amp; Bond 1985; (15) Magain 1987; (16) Magain 1989; (17) Peterson 1981; (18) Peterson, Kurucz, &amp; Carney 1990; (19) RMB; (20) Schuster &amp; Nissen 1988; (21) Schuster &amp; Nissen 1989b; (22) Spite et al. 1984; (23) Spite &amp; Spite 1986; (24) Hobbs &amp; Thorburn 1991; (25) Hobbs et al. 1991; (26) Olsen 1983.</TableRefs>
</table>
</section>
<remark role='tablenote'>a<!-- }{ -->
Sample footnote for table&#xA0;<xref linkend="tbl-2" /> that was generated with the LaTeX table environment</remark>
<remark role='tablenote'>b<!-- }{ -->
Yet another sample footnote for table&#xA0;<xref linkend="tbl-2" /></remark>
<remark role='tablenote'>c<!-- }{ -->
Another sample footnote for table&#xA0;<xref linkend="tbl-2" /></remark>
<remark role='tablecomments'>We can also attach a long-ish paragraph of explanatory material to a table. Use \tablerefs to append a list of references. The following references were from a different table: I've patched them in here to show how they look, but don't take them too seriously—I certainly have not.</remark>
<remark role='tablerefs'>(1) Barbuy, Spite, &amp; Spite 1985; (2) Bond 1980; (3) Carbon et al. 1987; (4) Hobbs &amp; Duncan 1987; (5) Gilroy et al. 1988: (6) Gratton &amp; Ortolani 1986; (7) Gratton &amp; Sneden 1987; (8) Gratton &amp; Sneden (1988); (9) Gratton &amp; Sneden 1991; (10) Kraft et al. 1982; (11) LCL, or Laird, 1990; (12) Leep &amp; Wallerstein 1981; (13) Luck &amp; Bond 1981; (14) Luck &amp; Bond 1985; (15) Magain 1987; (16) Magain 1989; (17) Peterson 1981; (18) Peterson, Kurucz, &amp; Carney 1990; (19) RMB; (20) Schuster &amp; Nissen 1988; (21) Schuster &amp; Nissen 1989b; (22) Spite et al. 1984; (23) Spite &amp; Spite 1986; (24) Hobbs &amp; Thorburn 1991; (25) Hobbs et al. 1991; (26) Olsen 1983.</remark>
</table>
</article>

View File

@ -6,22 +6,19 @@
<variablelist>
<varlistentry>
<term>New&#xA0;valid&#xA0;value&#xA0;for&#xA0;an&#xA0;existing&#xA0;setting,</term>
<listitem>
<para> e.&#x2009;g.</para>
<para>e.&#x2009;g.</para>
<variablelist>
<varlistentry>
<term>Automatically&#xA0;loaded&#xA0;math&#xA0;package</term>
<listitem>
<para> The reason </para>
<para>The reason </para>
</listitem>
</varlistentry>
<varlistentry>
<term>New&#xA0;language</term>
<listitem>
<para> that is stored</para>
<para>that is stored</para>
</listitem>
</varlistentry>
</variablelist>
@ -29,11 +26,9 @@
</varlistentry>
<varlistentry>
<term>New&#xA0;inset</term>
<listitem>
<para> Of course a new inset requires a file format update.</para>
<para>Of course a new inset requires a file format update.</para>
</listitem>
</varlistentry>
</variablelist>
</article>

View File

@ -5,12 +5,19 @@
<info>
<title>Erweiterte LyX Features</title>
<subtitle>Version 2.3.x</subtitle>
<author><personname>vom LyX-Team<footnote>Übersetzung und Bearbeitung: Hartmut<person> Haase (<person>HHa, bis März 2010),Jürgen Spitzmüller (Version 2.3.x, 2017)</person></person></footnote></personname></author>
<author>
<personname>vom LyX-Team<footnote>
<para>Übersetzung und Bearbeitung: Hartmut<person> </person>Haase (<person>HHa</person>, bis März 2010),</para>
<para>Jürgen Spitzmüller (Version 2.3.x, 2017)</para>
</footnote></personname>
</author>
</info>
<chapter>
<chapter>Einleitung</chapter>
<para>Wählen Sie hierfür <emphasis role='sans'>Dokument&#x21D2;Einstellungen&#x21D2;LaTeX-Vorspann. Dies öffnet ein Editierfenster, in das Sie Ihre bevorzugten Befehle schreiben können.<footnote><para>Das Editierverhalten in diesem Fenster ist spezifisch, also erwarten Sie nicht, dass die LyX<!-- &#8222;= -->Tastenkombinationen darin funktionieren.</para>
</footnote> LyX fügt alles im <emphasis role='sans'>LaTeX-Vorspann-Fenster zu seinem eingebauten Vorspann hinzu. Bevor Sie Ihre eigenen Deklarationen zum Vorspann hinzufügen, sollten Sie prüfen, ob LyX das nicht bereits unterstützt (Erinnern Sie sich, was wir über das Rad noch einmal erfinden sagten?). Außerdem: <emphasis>stellen Sie sicher, dass Ihre Vorspannzeilen richtig sind. LyX prüft das nicht. Wenn der Vorspann fehlerhaft ist, bekommen Sie sehr wahrscheinlich die Fehlermeldung Missing \begin{document}. Sollten Sie diese jemals bekommen, prüfen Sie Ihren Vorspann!. <!-- -&#45; --></emphasis></emphasis></emphasis></para>
<title>Einleitung</title>
<para>Wählen Sie hierfür <emphasis role='sans'>Dokument&#x21D2;Einstellungen&#x21D2;LaTeX-Vorspann.</emphasis> Dies öffnet ein Editierfenster, in das Sie Ihre bevorzugten Befehle schreiben können.<footnote>
<para>Das Editierverhalten in diesem Fenster ist spezifisch, also erwarten Sie nicht, dass die LyX<!-- &#8222;= -->
Tastenkombinationen darin funktionieren.</para>
</footnote> LyX fügt alles im <emphasis role='sans'>LaTeX-Vorspann</emphasis>-Fenster zu seinem eingebauten Vorspann hinzu. Bevor Sie Ihre eigenen Deklarationen zum Vorspann hinzufügen, sollten Sie prüfen, ob LyX das nicht bereits unterstützt (Erinnern Sie sich, was wir über das Rad noch einmal erfinden sagten?). Außerdem: <emphasis>stellen Sie sicher, dass Ihre Vorspannzeilen richtig sind</emphasis>. LyX prüft das nicht. Wenn der Vorspann fehlerhaft ist, bekommen Sie sehr wahrscheinlich die Fehlermeldung Missing \begin{document}. Sollten Sie diese jemals bekommen, prüfen Sie Ihren Vorspann!. <!-- -&#45; -->
</para>
</chapter>
</book>

View File

@ -0,0 +1,253 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 598
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\begin_preamble
\newcommand{\testmacro}{\ensuremath{\operatorname{testmacro}}}
\end_preamble
\use_default_options true
\maintain_unincluded_children no
\language english
\language_package default
\inputencoding auto-legacy
\fontencoding auto
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_roman_osf false
\font_sans_osf false
\font_typewriter_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices true
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\use_minted 0
\use_lineno 0
\index Index
\shortcut idx
\color #008000
\end_index
\index Other index
\shortcut oth
\color #cc0000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\docbook_table_output 0
\end_header
\begin_body
\begin_layout Title
I am a title
\end_layout
\begin_layout Author
I am an author
\end_layout
\begin_layout Date
I am a date
\end_layout
\begin_layout Abstract
I am an abstract
\end_layout
\begin_layout Abstract
I am also an abstract
\end_layout
\begin_layout Section
I am the first section
\begin_inset CommandInset label
LatexCommand label
name "sec:Sec-1"
\end_inset
\end_layout
\begin_layout Standard
I am the first paragraph of the first section.
\end_layout
\begin_layout Standard
I am the second paragraph of the first section.
\end_layout
\begin_layout Quote
I am a quote
\begin_inset Formula $\,with\,a\,formula$
\end_inset
.
\end_layout
\begin_layout Standard
\begin_inset Formula
\[
Formula!
\]
\end_inset
\end_layout
\begin_layout Subsection
I am the first subsection
\end_layout
\begin_layout Standard
I am the only paragraph of the first subsection.
\end_layout
\begin_layout Subsection
I am the second subsection
\end_layout
\begin_layout Standard
I am the only paragraph of the second subsection.
\end_layout
\begin_layout Section
I am the second section
\end_layout
\begin_layout Standard
I am the only paragraph of the second section.
\begin_inset CommandInset href
LatexCommand href
name "Hyperlink."
target "http://example.org"
literal "false"
\end_inset
\begin_inset Quotes eld
\end_inset
Text between quotes.
\begin_inset Quotes erd
\end_inset
\end_layout
\begin_layout Standard
See
\begin_inset CommandInset ref
LatexCommand ref
reference "sec:Sec-1"
plural "false"
caps "false"
noprefix "false"
\end_inset
.
\end_layout
\begin_layout Section
I am the third section and I deal with star sections
\end_layout
\begin_layout Part*
Star part
\end_layout
\begin_layout Section*
Star section (sect1)
\end_layout
\begin_layout Subsection*
Star subsection (sect2)
\end_layout
\begin_layout Subsubsection*
Star subsubsection (sect3)
\end_layout
\begin_layout Paragraph*
Star paragraph (sect4)
\end_layout
\begin_layout Subparagraph*
Star subparagraph (sect5)
\end_layout
\begin_layout Standard
\begin_inset CommandInset bibtex
LatexCommand bibtex
bibfiles "basic"
options "plain"
\end_inset
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
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.2">
<info>
<title>I am a title</title>
<author>
<personname>I am an author</personname>
</author>
<date>I am a date</date>
<abstract>
<para>I am an abstract</para>
<para>I am also an abstract</para>
</abstract>
</info>
<section xml:id="sec.Sec-1">
<title>I am the first section </title>
<para>I am the first paragraph of the first section. </para>
<para>I am the second paragraph of the first section. </para>
<blockquote>
<para>I am a quote<inlineequation>
<alt role='tex'>\,with\,a\,formula</alt>
<m:math>
<m:mrow>
<m:mrow><m:mspace width="6px" /><m:mi>w</m:mi><m:mi>i</m:mi><m:mi>t</m:mi><m:mi>h</m:mi><m:mspace width="6px" /><m:mi>a</m:mi><m:mspace width="6px" /><m:mi>f</m:mi><m:mi>o</m:mi><m:mi>r</m:mi><m:mi>m</m:mi><m:mi>u</m:mi><m:mi>l</m:mi><m:mi>a</m:mi>
</m:mrow>
</m:mrow>
</m:math>
</inlineequation>. </para>
</blockquote>
<informalequation>
<alt role='tex'>Formula!</alt>
<m:math>
<m:mrow>
<m:mrow><m:mi>F</m:mi><m:mi>o</m:mi><m:mi>r</m:mi><m:mi>m</m:mi><m:mi>u</m:mi><m:mi>l</m:mi><m:mi>a</m:mi><m:mo>!</m:mo>
</m:mrow>
</m:mrow>
</m:math>
</informalequation><section>
<title>I am the first subsection</title>
<para>I am the only paragraph of the first subsection. </para>
</section>
<section>
<title>I am the second subsection</title>
<para>I am the only paragraph of the second subsection. </para>
</section>
</section>
<section>
<title>I am the second section </title>
<para>I am the only paragraph of the second section. <link xlink:href="http://example.org">Hyperlink.</link> &#8220;Text between quotes.&#8221;</para>
<para>See <xref linkend="sec.Sec-1" />.</para>
</section>
<section>
<title>I am the third section and I deal with star sections</title>
<bridgehead renderas='other' otherrenderas='part'>Star part</bridgehead>
<bridgehead renderas="sect1">Star section (sect1)</bridgehead>
<bridgehead renderas="sect2">Star subsection (sect2)</bridgehead>
<bridgehead renderas="sect3">Star subsubsection (sect3)</bridgehead>
<bridgehead renderas="sect4">Star paragraph (sect4)</bridgehead>
<bridgehead renderas="sect5">Star subparagraph (sect5)</bridgehead>
</section>
<bibliography>
<title>References</title>
<!-- No entry in the bibliography. -->
</bibliography>
</article>

View File

@ -0,0 +1,288 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 598
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrbook
\begin_preamble
% that links to image floats jumps
% to the beginning of the float and
% not to its caption
\usepackage[figure]{hypcap}
% the pages of the TOC are numbered roman
% and a PDF-bookmark for the TOC is added
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
\frontmatter
\pdfbookmark[1]{\contentsname}{}
\myTOC
\mainmatter }
% provides caption formatting
\usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
% provides commands to set caption
% beside tables/images
\newcommand{\TabBesBeg}[1][1.0]{%
\let\MyTable\table
\let\MyEndtable\endtable
\renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
\newcommand{\TabBesEnd}{%
\let\table\MyTable
\let\endtable\MyEndtable}
\newcommand{\FigBesBeg}[1][1.0]{%
\let\MyFigure\figure
\let\MyEndfigure\endfigure
\renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
\newcommand{\FigBesEnd}{%
\let\figure\MyFigure
\let\endfigure\MyEndfigure}
% enables calculation of values,
\usepackage{calc}
% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}
% avoids that floats are placed before their
% corresponding section starts
\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
% speed up the longtable calculation
\setcounter{LTchunksize}{100}
% used for colored tables
\@ifundefined{textcolor}
{\usepackage{color}}{}
\definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
\definecolor{lightgrey}{gray}{0.8}
% check for package colortbl
% used for colored table cells
\newboolean{colortbl}
\IfFileExists{colortbl.sty}
{\usepackage{colortbl}
\setboolean{colortbl}{true}}
{\setboolean{colortbl}{false}}
% used to have extra space in table cells
\@ifundefined{extrarowheight}
{\usepackage{array}}{}
\setlength{\extrarowheight}{2pt}
% used for customized tables
% ---
\newcolumntype{M}[1]
{>{\centering\hspace{0pt}}m{#1}}
\newcolumntype{S}[2]
{>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
\newcolumntype{K}[1]
{>{\columncolor{#1}\hspace{0pt}}c}
\newcolumntype{V}{!{\vrule width 1.5pt}}
\newcolumntype{W}{!{\color{green}\vline}}
% ---
% insert additional vertical space of
% 1.5 mm between footnotes
\let\myFoot\footnote
\renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
% number algorithm floats within chapters
\numberwithin{algorithm}{chapter}
% ------------------------------------
% used to check for needed LaTeX packages
\usepackage{ifthen}
% check for package arydshln
% used for tables with dashed lines
\newboolean{arydshln}
\IfFileExists{arydshln.sty}
{\usepackage{arydshln}
\setboolean{arydshln}{true}}
{\setboolean{arydshln}{false}}
% check for package marginnote
% used for margin notes
\newboolean{marginnote}
\IfFileExists{marginnote.sty}
{\usepackage{marginnote}
\let\marginpar\marginnote
\setboolean{marginnote}{true}}
{\setboolean{marginnote}{false}}
% check for package sidecap
% used for captions on the side
\newboolean{sidecap}
\IfFileExists{sidecap.sty}
{\usepackage{sidecap}
\setboolean{sidecap}{true}}
{\setboolean{sidecap}{false}}
% check for picinpar
% used for surrounded fixed objects
\newboolean{picinpar}
\IfFileExists{picinpar.sty}
{\usepackage{picinpar}
\setboolean{picinpar}{true}}
{\setboolean{picinpar}{false}}
% check for lettrine
\newboolean{lettrine}
\IfFileExists{lettrine.sty}
{\usepackage{lettrine}
\setboolean{lettrine}{true}}
{\setboolean{lettrine}{false}}
% check for diagbox
\newboolean{diagbox}
\IfFileExists{diagbox.sty}
{\usepackage{diagbox}
\setboolean{diagbox}{true}}
{\setboolean{diagbox}{false}}
% Added by lyx2lyx
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\end_preamble
\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
\use_default_options false
\begin_modules
initials
graphicboxes
varwidth
\end_modules
\maintain_unincluded_children no
\language english
\language_package default
\inputencoding utf8
\fontencoding auto
\font_roman "lmodern" "default"
\font_sans "lmss" "default"
\font_typewriter "lmtt" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_roman_osf false
\font_sans_osf false
\font_typewriter_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command default
\index_command makeindex
\paperfontsize 12
\spacing single
\use_hyperref true
\pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
\pdf_author "LyX Team, Uwe Stöhr"
\pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
\pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
\pdf_bookmarks true
\pdf_bookmarksnumbered true
\pdf_bookmarksopen true
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks true
\pdf_backref false
\pdf_pdfusetitle false
\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\use_lineno 0
\notefontcolor #0000ff
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\docbook_table_output 0
\end_header
\begin_body
\begin_layout Title
\SpecialChar LyX
's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
\end_layout
\begin_layout Chapter
Floats
\end_layout
\begin_layout Standard
can be created using these commands in the document preamble:
\end_layout
\begin_layout Standard
\series bold
\backslash
usepackage[tableposition=top]{caption}
\series default
\begin_inset Newline newline
\end_inset
\series bold
\backslash
captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
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.2">
<title>LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material manual</title>
<chapter>
<title>Floats</title>
<para>can be created using these commands in the document preamble:</para>
<para><emphasis role='bold'>\usepackage[tableposition=top]{caption}</emphasis></para>
<para><emphasis role='bold'>\captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%</emphasis></para>
</chapter>
</book>

View File

@ -3,5 +3,4 @@
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.2">
<para><emphasis role='bold'>Fett </emphasis><emphasis>hervorgehoben</emphasis> <code>monospace</code><emphasis role='underline'> unterstrichen.</emphasis></para>
</article>

View File

@ -4,9 +4,10 @@
<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>
<title>Title</title>
<author><personname>Author</personname></author>
<author>
<personname>Author</personname>
</author>
<date>Date</date>
</info>
<para>Content</para>
</article>

View File

@ -5,7 +5,8 @@
<title>William Shakespeare</title>
<section>
<title>Publications</title>
<bibliography>First Folio. Me. 1623..</bibliography>
</section>
<bibliography>
<bibliomixed xml:id='firstref'>First Folio. Me. 1623..</bibliomixed>
</bibliography>
</article>

View File

@ -7,22 +7,19 @@
<variablelist>
<varlistentry>
<term>LyX:</term>
<listitem>
<para />
<variablelist>
<varlistentry>
<term>lyx16</term>
<listitem>
<para> LyX 1.6 file format (lyx2lyx)</para>
<para>LyX 1.6 file format (lyx2lyx)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>lyx21</term>
<listitem>
<para> </para>
<para />
</listitem>
</varlistentry>
</variablelist>
@ -30,27 +27,23 @@
</varlistentry>
<varlistentry>
<term>LyX:</term>
<listitem>
<para />
<variablelist>
<varlistentry>
<term>lyx16</term>
<listitem>
<para> LyX 1.6 file format (lyx2lyx)</para>
<para>LyX 1.6 file format (lyx2lyx)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>lyx21</term>
<listitem>
<para> </para>
<para />
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
</variablelist>
</article>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
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">
<title>Test document</title>
<itemizedlist>
<listitem>
@ -9,5 +9,4 @@
<para>Content.</para>
</listitem>
</itemizedlist>
</article>
</article>

View File

@ -5,6 +5,5 @@
<title>Test document</title>
<para>This is a programlisting: </para>
<programlisting>First line of programlisting
Second line of programlisting
</programlisting>
Second line of programlisting</programlisting>
</article>

View File

@ -87,7 +87,127 @@ Test document
\end_layout
\begin_layout Standard
A list:
A simple list:
\end_layout
\begin_layout Itemize
First item
\end_layout
\begin_layout Itemize
Second item on two lines
\begin_inset Newline newline
\end_inset
I'm the second line
\end_layout
\begin_layout Itemize
Third item
\end_layout
\begin_layout Standard
A simple enumerated list:
\end_layout
\begin_layout Enumerate
First item
\end_layout
\begin_layout Enumerate
Second item on two lines
\begin_inset Newline newline
\end_inset
I'm the second line
\end_layout
\begin_layout Standard
A simple description list:
\end_layout
\begin_layout Description
Word description
\end_layout
\begin_layout Description
Sentence meaning
\end_layout
\begin_layout Standard
Nested lists:
\end_layout
\begin_layout Itemize
First item
\end_layout
\begin_deeper
\begin_layout Itemize
First first item
\end_layout
\begin_layout Itemize
First second item
\end_layout
\end_deeper
\begin_layout Itemize
Second item
\end_layout
\begin_deeper
\begin_layout Itemize
Second first item
\end_layout
\begin_layout Itemize
Second second item
\end_layout
\end_deeper
\begin_layout Standard
A complex list:
\end_layout
\begin_layout Itemize
First item
\end_layout
\begin_deeper
\begin_layout Itemize
First first item
\end_layout
\begin_layout Itemize
First second item
\end_layout
\begin_layout Standard
Text after first item
\end_layout
\end_deeper
\begin_layout Itemize
Second item
\end_layout
\begin_deeper
\begin_layout Itemize
Second first item
\end_layout
\begin_layout Itemize
Second second item
\end_layout
\begin_layout Standard
Text after second item
\end_layout
\end_deeper
\begin_layout Standard
A very complex list:
\end_layout
\begin_layout Itemize
@ -125,6 +245,28 @@ Second second item
Text after second item
\end_layout
\end_deeper
\begin_layout Standard
Nested description lists:
\end_layout
\begin_layout Description
LyX:
\end_layout
\begin_deeper
\begin_layout Description
lyx16 LyX 1.6 file format (lyx2lyx)
\end_layout
\begin_layout Description
lyx21 LyX 2.1 file format (lyx2lyx)
\end_layout
\begin_layout Description
xhtml LyXHTML (native LyX HTML export)
\end_layout
\end_deeper
\end_body
\end_document

View File

@ -3,7 +3,97 @@
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.2">
<title>Test document</title>
<para>A list:</para>
<para>A simple list: </para>
<itemizedlist>
<listitem>
<para>First item</para>
</listitem>
<listitem>
<para>Second item on two lines</para>
<para>I'm the second line</para>
</listitem>
<listitem>
<para>Third item</para>
</listitem>
</itemizedlist>
<para>A simple enumerated list: </para>
<orderedlist>
<listitem>
<para>First item</para>
</listitem>
<listitem>
<para>Second item on two lines</para>
<para>I'm the second line</para>
</listitem>
</orderedlist>
<para>A simple description list: </para>
<variablelist>
<varlistentry>
<term>Word</term>
<listitem>
<para>description</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Sentence</term>
<listitem>
<para>meaning</para>
</listitem>
</varlistentry>
</variablelist>
<para>Nested lists:</para>
<itemizedlist>
<listitem>
<para>First item</para>
<itemizedlist>
<listitem>
<para>First first item</para>
</listitem>
<listitem>
<para>First second item</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>Second item</para>
<itemizedlist>
<listitem>
<para>Second first item</para>
</listitem>
<listitem>
<para>Second second item</para>
</listitem>
</itemizedlist>
</listitem>
</itemizedlist>
<para>A complex list:</para>
<itemizedlist>
<listitem>
<para>First item</para>
<itemizedlist>
<listitem>
<para>First first item</para>
</listitem>
<listitem>
<para>First second item</para>
</listitem>
</itemizedlist>
<para>Text after first item</para>
</listitem>
<listitem>
<para>Second item</para>
<itemizedlist>
<listitem>
<para>Second first item</para>
</listitem>
<listitem>
<para>Second second item</para>
</listitem>
</itemizedlist>
<para>Text after second item</para>
</listitem>
</itemizedlist>
<para>A very complex list:</para>
<itemizedlist>
<listitem>
<para>First item</para>
@ -30,5 +120,33 @@
<para>Text after second item</para>
</listitem>
</itemizedlist>
<para>Nested description lists: </para>
<variablelist>
<varlistentry>
<term>LyX:</term>
<listitem>
<para />
<variablelist>
<varlistentry>
<term>lyx16</term>
<listitem>
<para>LyX 1.6 file format (lyx2lyx)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>lyx21</term>
<listitem>
<para>LyX 2.1 file format (lyx2lyx)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>xhtml</term>
<listitem>
<para>LyXHTML (native LyX HTML export)</para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
</variablelist>
</article>

View File

@ -4,7 +4,8 @@
<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">
<title>LyX</title>
<para>Some text before.</para>
<informalequation><alt role='tex'>\cfrac[l]{A}{B+C}\,,\,\cfrac{A}{B+C}\,,\,\cfrac[r]{A}{B+C}</alt>
<informalequation>
<alt role='tex'>\cfrac[l]{A}{B+C}\,,\,\cfrac{A}{B+C}\,,\,\cfrac[r]{A}{B+C}</alt>
<m:math>
<m:mrow>
@ -35,6 +36,7 @@
</m:mfrac>
</m:mrow>
</m:mrow>
</m:math></informalequation><para>Some text after.</para>
</m:math>
</informalequation>
<para>Some text after.</para>
</article>

View File

@ -1,21 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
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">
<title>Test document</title>
<para>A formula:
<informalequation>
<m:math>
<m:alt role='tex'>\Vert,\vert</m:alt>
<informalequation>
<alt role='tex'>\Vert,\vert</alt>
<m:math>
<m:mrow>
<m:mrow><m:mi>&#x2225;</m:mi><m:mo>,</m:mo><m:mi>&#x007C;</m:mi>
</m:mrow>
</m:mrow>
</m:math>
</informalequation>A second formula:
<informalequation>
<m:math>
<m:alt role='tex'>\left\Vert \mathbf{a^{T}\,x}\right\Vert _{2}\leq x_{0}</m:alt>
</m:math>
</informalequation>
A second formula:
<informalequation>
<alt role='tex'>\left\Vert \mathbf{a^{T}\,x}\right\Vert _{2}\leq x_{0}</alt>
<m:math>
<m:mrow>
<m:mrow>
<m:msub>
@ -45,7 +48,7 @@
</m:msub>
</m:mrow>
</m:mrow>
</m:math>
</informalequation></para>
</article>
</m:math>
</informalequation>
</para>
</article>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
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">
<title>Test document</title>
<para>Formalgroup with two images: </para>
<formalgroup>
@ -10,7 +10,7 @@
<title>Subfigure a.</title>
<mediaobject>
<imageobject>
<imagedata fileref="C:/Users/Thibaut/Documents/GitHub/Apprentissage_automatique/01_manus_lyx/lyx-logo.png" />
<imagedata fileref="D:/LyX/lyx-unstable/autotests/export/docbook/lyx-logo.png" />
</imageobject>
</mediaobject>
</figure>
@ -18,7 +18,7 @@
<title>Subfigure b.</title>
<mediaobject>
<imageobject>
<imagedata fileref="C:/Users/Thibaut/Documents/GitHub/Apprentissage_automatique/01_manus_lyx/lyx-logo.png" />
<imagedata fileref="D:/LyX/lyx-unstable/autotests/export/docbook/lyx-logo.png" />
</imageobject>
</mediaobject>
</figure>
@ -29,7 +29,7 @@
<title>Subfigure a.</title>
<mediaobject>
<imageobject>
<imagedata fileref="C:/Users/Thibaut/Documents/GitHub/Apprentissage_automatique/01_manus_lyx/lyx-logo.png" />
<imagedata fileref="D:/LyX/lyx-unstable/autotests/export/docbook/lyx-logo.png" />
</imageobject>
</mediaobject>
</figure>
@ -37,11 +37,12 @@
<title>Subfigure b.</title>
<mediaobject>
<imageobject>
<imagedata fileref="C:/Users/Thibaut/Documents/GitHub/Apprentissage_automatique/01_manus_lyx/lyx-logo.png" />
<imagedata fileref="D:/LyX/lyx-unstable/autotests/export/docbook/lyx-logo.png" />
</imageobject>
</mediaobject>
</figure>
</formalgroup>
<para>Formalgroup with two tables: </para>
<formalgroup>
<title>Formalgroup, tables above.</title>
@ -51,10 +52,12 @@
<tr>
<td align='center' valign='top'>a</td>
<td align='center' valign='top'>b</td>
</tr><tr>
</tr>
<tr>
<td align='center' valign='top'>c</td>
<td align='center' valign='top'>d</td>
</tr></tbody>
</tr>
</tbody>
</table>
<table>
<caption>Subtable b.</caption>
@ -62,7 +65,8 @@
<tr>
<td align='center' valign='top'>a</td>
<td align='center' valign='top'>b</td>
</tr><tr>
</tr>
<tr>
<td align='center' valign='top'>c</td>
<td align='center' valign='top'>d</td>
</tr>
@ -77,10 +81,12 @@
<tr>
<td align='center' valign='top'>a</td>
<td align='center' valign='top'>b</td>
</tr><tr>
</tr>
<tr>
<td align='center' valign='top'>c</td>
<td align='center' valign='top'>d</td>
</tr></tbody>
</tr>
</tbody>
</table>
<table>
<caption>Subtable b.</caption>
@ -88,11 +94,12 @@
<tr>
<td align='center' valign='top'>a</td>
<td align='center' valign='top'>b</td>
</tr><tr>
</tr>
<tr>
<td align='center' valign='top'>c</td>
<td align='center' valign='top'>d</td>
</tr></tbody>
</tr>
</tbody>
</table>
</formalgroup>
</article>
</article>

View File

@ -0,0 +1,444 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 598
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrbook
\begin_preamble
% that links to image floats jumps
% to the beginning of the float and
% not to its caption
\usepackage[figure]{hypcap}
% the pages of the TOC are numbered roman
% and a PDF-bookmark for the TOC is added
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
\frontmatter
\pdfbookmark[1]{\contentsname}{}
\myTOC
\mainmatter }
% provides caption formatting
\usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
% provides commands to set caption
% beside tables/images
\newcommand{\TabBesBeg}[1][1.0]{%
\let\MyTable\table
\let\MyEndtable\endtable
\renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
\newcommand{\TabBesEnd}{%
\let\table\MyTable
\let\endtable\MyEndtable}
\newcommand{\FigBesBeg}[1][1.0]{%
\let\MyFigure\figure
\let\MyEndfigure\endfigure
\renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
\newcommand{\FigBesEnd}{%
\let\figure\MyFigure
\let\endfigure\MyEndfigure}
% enables calculation of values,
\usepackage{calc}
% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}
% avoids that floats are placed before their
% corresponding section starts
\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
% speed up the longtable calculation
\setcounter{LTchunksize}{100}
% used for colored tables
\@ifundefined{textcolor}
{\usepackage{color}}{}
\definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
\definecolor{lightgrey}{gray}{0.8}
% check for package colortbl
% used for colored table cells
\newboolean{colortbl}
\IfFileExists{colortbl.sty}
{\usepackage{colortbl}
\setboolean{colortbl}{true}}
{\setboolean{colortbl}{false}}
% used to have extra space in table cells
\@ifundefined{extrarowheight}
{\usepackage{array}}{}
\setlength{\extrarowheight}{2pt}
% used for customized tables
% ---
\newcolumntype{M}[1]
{>{\centering\hspace{0pt}}m{#1}}
\newcolumntype{S}[2]
{>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
\newcolumntype{K}[1]
{>{\columncolor{#1}\hspace{0pt}}c}
\newcolumntype{V}{!{\vrule width 1.5pt}}
\newcolumntype{W}{!{\color{green}\vline}}
% ---
% insert additional vertical space of
% 1.5 mm between footnotes
\let\myFoot\footnote
\renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
% number algorithm floats within chapters
\numberwithin{algorithm}{chapter}
% ------------------------------------
% used to check for needed LaTeX packages
\usepackage{ifthen}
% check for package arydshln
% used for tables with dashed lines
\newboolean{arydshln}
\IfFileExists{arydshln.sty}
{\usepackage{arydshln}
\setboolean{arydshln}{true}}
{\setboolean{arydshln}{false}}
% check for package marginnote
% used for margin notes
\newboolean{marginnote}
\IfFileExists{marginnote.sty}
{\usepackage{marginnote}
\let\marginpar\marginnote
\setboolean{marginnote}{true}}
{\setboolean{marginnote}{false}}
% check for package sidecap
% used for captions on the side
\newboolean{sidecap}
\IfFileExists{sidecap.sty}
{\usepackage{sidecap}
\setboolean{sidecap}{true}}
{\setboolean{sidecap}{false}}
% check for picinpar
% used for surrounded fixed objects
\newboolean{picinpar}
\IfFileExists{picinpar.sty}
{\usepackage{picinpar}
\setboolean{picinpar}{true}}
{\setboolean{picinpar}{false}}
% check for lettrine
\newboolean{lettrine}
\IfFileExists{lettrine.sty}
{\usepackage{lettrine}
\setboolean{lettrine}{true}}
{\setboolean{lettrine}{false}}
% check for diagbox
\newboolean{diagbox}
\IfFileExists{diagbox.sty}
{\usepackage{diagbox}
\setboolean{diagbox}{true}}
{\setboolean{diagbox}{false}}
% Added by lyx2lyx
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\end_preamble
\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
\use_default_options false
\begin_modules
initials
graphicboxes
varwidth
\end_modules
\maintain_unincluded_children no
\language english
\language_package default
\inputencoding utf8
\fontencoding auto
\font_roman "lmodern" "default"
\font_sans "lmss" "default"
\font_typewriter "lmtt" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_roman_osf false
\font_sans_osf false
\font_typewriter_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command default
\index_command makeindex
\paperfontsize 12
\spacing single
\use_hyperref true
\pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
\pdf_author "LyX Team, Uwe Stöhr"
\pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
\pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
\pdf_bookmarks true
\pdf_bookmarksnumbered true
\pdf_bookmarksopen true
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks true
\pdf_backref false
\pdf_pdfusetitle false
\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\use_lineno 0
\notefontcolor #0000ff
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\docbook_table_output 0
\end_header
\begin_body
\begin_layout Title
\SpecialChar LyX
's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
\end_layout
\begin_layout Chapter
Figures
\end_layout
\begin_layout Section
Figure Floats
\end_layout
\begin_layout Standard
Normally only one image is inserted to a figure float, but sometimes you
might want to use two images with separate subcaptions.
This can be done by inserting image floats into existing image floats.
Note that only the main caption of the float is added to the List of Figures.
Figure
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:Two-distorted-images"
\end_inset
is an example of a figure float with two images set side by side.
You can also set the images one below the other.
Figure
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:Pink-object"
\end_inset
and
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:A-star"
\end_inset
are the subfigures.
\end_layout
\begin_layout Standard
\begin_inset Float figure
placement document
alignment document
wide false
sideways false
status open
\begin_layout Plain Layout
\begin_inset space \hfill{}
\end_inset
\begin_inset Float figure
placement document
alignment document
wide false
sideways false
status open
\begin_layout Plain Layout
\begin_inset Caption Standard
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig:Pink-object"
\end_inset
Pink object.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Graphics
filename ../../../lib/doc/clipart/3D-structure-distort.pdf
width 45col%
scaleBeforeRotation
groupId distorted
\end_inset
\end_layout
\end_inset
\begin_inset space \hfill{}
\end_inset
\begin_inset Float figure
placement document
alignment document
wide false
sideways false
status open
\begin_layout Plain Layout
\begin_inset Caption Standard
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig:A-star"
\end_inset
A star.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Graphics
filename ../../../lib/doc/clipart/Star-structure.pdf
width 45col%
scaleBeforeRotation
groupId distorted
\end_inset
\end_layout
\end_inset
\begin_inset space \hfill{}
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Caption Standard
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig:Two-distorted-images"
\end_inset
Two distorted images.
Both images are in the image settings group named
\begin_inset Quotes eld
\end_inset
distorted
\begin_inset Quotes erd
\end_inset
.
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
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.2">
<title>LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material manual</title>
<chapter>
<title>Figures</title>
<section>
<title>Figure Floats</title>
<para>Normally only one image is inserted to a figure float, but sometimes you might want to use two images with separate subcaptions. This can be done by inserting image floats into existing image floats. Note that only the main caption of the float is added to the List of Figures. Figure&#xA0;<xref linkend="fig.Two-distorted-images" /> is an example of a figure float with two images set side by side. You can also set the images one below the other. Figure&#xA0;<xref linkend="fig.Pink-object" /> and <xref linkend="fig.A-star" /> are the subfigures.</para>
<formalgroup xml:id="fig.Two-distorted-images">
<title>Two distorted images. Both images are in the image settings group named &#8220;distorted&#8221;.</title>
<figure xml:id="fig.Pink-object">
<title>Pink object.</title>
<mediaobject>
<imageobject>
<imagedata fileref="D:/LyX/lyx-unstable/lib/doc/clipart/3D-structure-distort.pdf" width="45%" />
</imageobject>
</mediaobject>
</figure>
<figure xml:id="fig.A-star">
<title>A star.</title>
<mediaobject>
<imageobject>
<imagedata fileref="D:/LyX/lyx-unstable/lib/doc/clipart/Star-structure.pdf" width="45%" />
</imageobject>
</mediaobject>
</figure>
</formalgroup>
</section>
</chapter>
</book>

View File

@ -0,0 +1,420 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 598
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrbook
\begin_preamble
% that links to image floats jumps
% to the beginning of the float and
% not to its caption
\usepackage[figure]{hypcap}
% the pages of the TOC are numbered roman
% and a PDF-bookmark for the TOC is added
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
\frontmatter
\pdfbookmark[1]{\contentsname}{}
\myTOC
\mainmatter }
% provides caption formatting
\usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
% provides commands to set caption
% beside tables/images
\newcommand{\TabBesBeg}[1][1.0]{%
\let\MyTable\table
\let\MyEndtable\endtable
\renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
\newcommand{\TabBesEnd}{%
\let\table\MyTable
\let\endtable\MyEndtable}
\newcommand{\FigBesBeg}[1][1.0]{%
\let\MyFigure\figure
\let\MyEndfigure\endfigure
\renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
\newcommand{\FigBesEnd}{%
\let\figure\MyFigure
\let\endfigure\MyEndfigure}
% enables calculation of values,
\usepackage{calc}
% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}
% avoids that floats are placed before their
% corresponding section starts
\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
% speed up the longtable calculation
\setcounter{LTchunksize}{100}
% used for colored tables
\@ifundefined{textcolor}
{\usepackage{color}}{}
\definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
\definecolor{lightgrey}{gray}{0.8}
% check for package colortbl
% used for colored table cells
\newboolean{colortbl}
\IfFileExists{colortbl.sty}
{\usepackage{colortbl}
\setboolean{colortbl}{true}}
{\setboolean{colortbl}{false}}
% used to have extra space in table cells
\@ifundefined{extrarowheight}
{\usepackage{array}}{}
\setlength{\extrarowheight}{2pt}
% used for customized tables
% ---
\newcolumntype{M}[1]
{>{\centering\hspace{0pt}}m{#1}}
\newcolumntype{S}[2]
{>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
\newcolumntype{K}[1]
{>{\columncolor{#1}\hspace{0pt}}c}
\newcolumntype{V}{!{\vrule width 1.5pt}}
\newcolumntype{W}{!{\color{green}\vline}}
% ---
% insert additional vertical space of
% 1.5 mm between footnotes
\let\myFoot\footnote
\renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
% number algorithm floats within chapters
\numberwithin{algorithm}{chapter}
% ------------------------------------
% used to check for needed LaTeX packages
\usepackage{ifthen}
% check for package arydshln
% used for tables with dashed lines
\newboolean{arydshln}
\IfFileExists{arydshln.sty}
{\usepackage{arydshln}
\setboolean{arydshln}{true}}
{\setboolean{arydshln}{false}}
% check for package marginnote
% used for margin notes
\newboolean{marginnote}
\IfFileExists{marginnote.sty}
{\usepackage{marginnote}
\let\marginpar\marginnote
\setboolean{marginnote}{true}}
{\setboolean{marginnote}{false}}
% check for package sidecap
% used for captions on the side
\newboolean{sidecap}
\IfFileExists{sidecap.sty}
{\usepackage{sidecap}
\setboolean{sidecap}{true}}
{\setboolean{sidecap}{false}}
% check for picinpar
% used for surrounded fixed objects
\newboolean{picinpar}
\IfFileExists{picinpar.sty}
{\usepackage{picinpar}
\setboolean{picinpar}{true}}
{\setboolean{picinpar}{false}}
% check for lettrine
\newboolean{lettrine}
\IfFileExists{lettrine.sty}
{\usepackage{lettrine}
\setboolean{lettrine}{true}}
{\setboolean{lettrine}{false}}
% check for diagbox
\newboolean{diagbox}
\IfFileExists{diagbox.sty}
{\usepackage{diagbox}
\setboolean{diagbox}{true}}
{\setboolean{diagbox}{false}}
% Added by lyx2lyx
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\end_preamble
\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
\use_default_options false
\begin_modules
initials
graphicboxes
varwidth
\end_modules
\maintain_unincluded_children no
\language english
\language_package default
\inputencoding utf8
\fontencoding auto
\font_roman "lmodern" "default"
\font_sans "lmss" "default"
\font_typewriter "lmtt" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_roman_osf false
\font_sans_osf false
\font_typewriter_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command default
\index_command makeindex
\paperfontsize 12
\spacing single
\use_hyperref true
\pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
\pdf_author "LyX Team, Uwe Stöhr"
\pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
\pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
\pdf_bookmarks true
\pdf_bookmarksnumbered true
\pdf_bookmarksopen true
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks true
\pdf_backref false
\pdf_pdfusetitle false
\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\use_lineno 0
\notefontcolor #0000ff
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\docbook_table_output 0
\end_header
\begin_body
\begin_layout Title
\SpecialChar LyX
's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
\end_layout
\begin_layout Chapter
Floats
\end_layout
\begin_layout Section
Floats Side by Side
\end_layout
\begin_layout Standard
To place floats side by side, as in Figures
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:Float-left"
\end_inset
and
\begin_inset CommandInset ref
LatexCommand ref
reference "fig:Float-right"
\end_inset
, only
\emph on
one
\emph default
float is used.
In it two minipage boxes are inserted.
\end_layout
\begin_layout Standard
\begin_inset Float figure
placement document
alignment document
wide false
sideways false
status open
\begin_layout Plain Layout
\begin_inset Box Frameless
position "b"
hor_pos "c"
has_inner_box 1
inner_pos "t"
use_parbox 0
use_makebox 0
width "45col%"
special "none"
height "1in"
height_special "totalheight"
thickness "0.4pt"
separation "3pt"
shadowsize "4pt"
framecolor "black"
backgroundcolor "none"
status open
\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename ../../../lib/doc/clipart/2D-intensity-plot.pdf
width 100col%
scaleBeforeRotation
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Caption Standard
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig:Float-left"
\end_inset
Float on the left side.
\end_layout
\end_inset
\end_layout
\end_inset
\begin_inset space \hfill{}
\end_inset
\begin_inset Box Frameless
position "b"
hor_pos "c"
has_inner_box 1
inner_pos "t"
use_parbox 0
use_makebox 0
width "45col%"
special "none"
height "1in"
height_special "totalheight"
thickness "0.4pt"
separation "3pt"
shadowsize "4pt"
framecolor "black"
backgroundcolor "none"
status open
\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename ../../../lib/doc/clipart/Star-structure.pdf
width 100col%
scaleBeforeRotation
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Caption Standard
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig:Float-right"
\end_inset
Float on the right side.
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.4.0dev
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.2">
<title>LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material manual</title>
<chapter>
<title>Floats</title>
<section>
<title>Floats Side by Side</title>
<para>To place floats side by side, as in Figures&#xA0;<xref linkend="fig.Float-left" /> and <xref linkend="fig.Float-right" />, only <emphasis>one</emphasis> float is used. In it two minipage boxes are inserted. </para>
<formalgroup>
<title>No caption</title>
<figure xml:id="fig.Float-left">
<title>Float on the left side.</title>
<mediaobject>
<imageobject>
<imagedata fileref="D:/LyX/lyx-unstable/lib/doc/clipart/2D-intensity-plot.pdf" width="100%" />
</imageobject>
</mediaobject>
</figure>
<figure xml:id="fig.Float-right">
<title>Float on the right side.</title>
<mediaobject>
<imageobject>
<imagedata fileref="D:/LyX/lyx-unstable/lib/doc/clipart/Star-structure.pdf" width="100%" />
</imageobject>
</mediaobject>
</figure>
</formalgroup>
</section>
</chapter>
</book>

View File

@ -0,0 +1,192 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 598
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass a0poster
\begin_preamble
% Adjust padding in boxes
\setlength\fboxsep{12pt}
% Added by lyx2lyx
\setlength{\parskip}{\bigskipamount}
\setlength{\parindent}{0pt}
\end_preamble
\options a0,portrait
\use_default_options false
\maintain_unincluded_children no
\language english
\language_package default
\inputencoding utf8
\fontencoding auto
\font_roman "palatino" "default"
\font_sans "default" "default"
\font_typewriter "courier" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_roman_osf false
\font_sans_osf false
\font_typewriter_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures false
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\use_lineno 0
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1cm
\topmargin 1cm
\rightmargin 1cm
\bottommargin 1cm
\secnumdepth 0
\tocdepth 0
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle empty
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\docbook_table_output 0
\end_header
\begin_body
\begin_layout Standard
\align center
\begin_inset Box Shadowbox
position "c"
hor_pos "c"
has_inner_box 1
inner_pos "c"
use_parbox 1
use_makebox 0
width "98col%"
special "none"
height "5cm"
height_special "none"
thickness "0.4pt"
separation "3pt"
shadowsize "4pt"
framecolor "black"
backgroundcolor "none"
status open
\begin_layout Plain Layout
\noindent
\align center
\series bold
\noun on
\begin_inset Flex Most Giant Snippet
status open
\begin_layout Plain Layout
\noindent
\series bold
\noun on
Poster Heading
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Box Boxed
position "t"
hor_pos "c"
has_inner_box 1
inner_pos "t"
use_parbox 0
use_makebox 0
width "98col%"
special "none"
height "1in"
height_special "totalheight"
thickness "0.4pt"
separation "3pt"
shadowsize "4pt"
framecolor "black"
backgroundcolor "none"
status open
\begin_layout Section
Summary
\end_layout
\begin_layout Itemize
For multiple columns, use the
\begin_inset Quotes eld
\end_inset
Multiple Columns
\begin_inset Quotes erd
\end_inset
module as documented in
\family sans
Help\SpecialChar menuseparator
Additional Features
\family default
.
\end_layout
\end_inset
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="GENERATOR" content="LyX 2.4.0dev" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<title>LyX Document</title>
<style type='text/css'>
/* Layout-provided Styles */
dfn.lyxnoun {
font-variant: small-caps;
}
div.standard {
margin-bottom: 2ex;
}
div.plain_layout {
text-align: left;
}
h2.section {
font-weight: bold;
font-size: x-large;
margin-top: 1.3ex;
margin-bottom: 0.7ex;
text-align: left;
}
ul.itemize {
margin-top: 0.7ex;
margin-bottom: 0.7ex;
margin-left: 3ex;
text-align: left;
}
div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
span.flex_most_giant_snippet {
font-size: xx-large;
}
div.Boxed {
border: solid thick black;
padding: 0.5ex;
}
</style>
</head>
<body dir="auto">
<div class="standard" style='text-align: center;' id='magicparlabel-1'><div class='Shadowbox' style='width: 98%; height: 5cm; '><div class="plain_layout" style='text-align: center;' id='magicparlabel-5'><dfn class='lyxnoun'><b><span class="flex_most_giant_snippet"><dfn class='lyxnoun'><b>Poster Heading</b></dfn></span></b></dfn></div>
</div></div>
<div class="standard" id='magicparlabel-10'><div class='Boxed' style='width: 98%; '><section>
<h2 class="section" id='magicparlabel-14'><span class="section_label"></span> Summary</h2>
<ul class="itemize" id='magicparlabel-15'>
<li class="itemize_item">For multiple columns, use the &ldquo;Multiple Columns&rdquo; module as documented in <span style='font-family:sans-serif;'>Help&rArr;Additional Features</span>.</li>
</ul>
</section>
</div></div>
</body>
</html>

View File

@ -0,0 +1,974 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 598
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass book
\begin_preamble
% Chinese localization
\@ifpackageloaded{fontspec}%
{\usepackage{ctex}}% ctex with non-TeX fonts
{%\usepackage[UTF8]{ctex}% error with font setup (missing font?)
}
\end_preamble
\options cjk
\use_default_options true
\maintain_unincluded_children no
\language chinese-simplified
\language_package default
\inputencoding utf8-cjk
\fontencoding auto
\font_roman "lmodern" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_roman_osf false
\font_sans_osf false
\font_typewriter_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\font_cjk gbsn
\use_microtype false
\use_dash_ligatures false
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\float_placement th
\float_alignment class
\paperfontsize 12
\spacing onehalf
\use_hyperref true
\pdf_title "The LyX Tutorial"
\pdf_author "LyX Team"
\pdf_subject "LyX-documentation Tutorial"
\pdf_keywords "LyX, documentation"
\pdf_bookmarks true
\pdf_bookmarksnumbered true
\pdf_bookmarksopen true
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks true
\pdf_backref section
\pdf_pdfusetitle false
\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true,pdfstartview=XYZ, plainpages=false"
\papersize a4
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\use_lineno 0
\index 索引
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\docbook_table_output 0
\end_header
\begin_body
\begin_layout Title
The \SpecialChar LyX
Tutorial
\end_layout
\begin_layout Chapter
介绍
\end_layout
\begin_layout Section
欢迎来到 \SpecialChar LyX
!
\end_layout
\begin_layout Standard
这个文档是为那些不知道 \SpecialChar LaTeX
或知之甚少的人准备的。不必担心,使用 \SpecialChar LyX
不必学习 \SpecialChar LaTeX
。\SpecialChar LyX
的目标就是提供一个所见即所得的 \SpecialChar LaTeX
应用。为了高效的使用 \SpecialChar LyX
,还是需要学习一些东西的
\end_layout
\begin_layout Standard
你会发现在其它字处理软件中常用的排版方式在 \SpecialChar LyX
中都不能使用了,比如:在“.”后边输入两个空格,在段间输入三个空行。你以前使用的软件允许手动调整间距、字体等东西,所
以你不得不即录入又排版。\SpecialChar LyX
会做好排版的事情的,而你只需要转注于重要的东西:你正在写的内容。
\end_layout
\begin_layout Standard
继续读下去,了解更多 \SpecialChar LyX
。读完这篇教程,你会觉得物有所值的。
\end_layout
\begin_layout Section
本教程简介
\end_layout
\begin_layout Standard
在开始之前建议您先读一下 Introduction那里解释了本文使用的注释方式。当你了解了各种字体的意义之后我们先来说说本篇教程是干什么的。
\end_layout
\begin_layout Subsection
学习方式
\end_layout
\begin_layout Standard
本教程包含了例子和练习。学习中您应该试着输入我们让你输入的东西,完成所有练习,看看您是不是得到了正确的东西。为了方便,将本文档打印出来会是一个好选择。
\end_layout
\begin_layout Standard
如果对 \SpecialChar LaTeX
比较熟悉的话,你将能够较快的阅读本教程,因为 \SpecialChar LyX
的思想就是 \SpecialChar LaTeX
思想的一种包装。\SpecialChar LyX
自身也有很多特性是你想了解的。就算不想继续读下去,你也应该看看
\begin_inset CommandInset ref
LatexCommand ref
reference "sec:LaTeX-用户必读"
\end_inset
,它是专门写给熟练的 \SpecialChar LaTeX
用户的。
\end_layout
\begin_layout Subsection
本教程没有的
\end_layout
\begin_layout Itemize
\SpecialChar LyX
全部特性的详细解释。
\end_layout
\begin_deeper
\begin_layout Standard
需要的话,请阅读 the
\emph on
User's Guide。
\end_layout
\end_deeper
\begin_layout Itemize
\SpecialChar LaTeX
的详细解释。
\end_layout
\begin_deeper
\begin_layout Standard
没必要这样做。要想知道用 \SpecialChar LaTeX
在 \SpecialChar LyX
中能做些什么,可以看看 the
\emph on
Embedded
\begin_inset space ~
\end_inset
Objects
\emph default
manual。
\end_layout
\end_deeper
\begin_layout Standard
现在是开始你的第一个文档的时候了。
\end_layout
\begin_layout Chapter
初识 \SpecialChar LyX
\end_layout
\begin_layout Section
第一个 \SpecialChar LyX
文档
\end_layout
\begin_layout Standard
开始之前说几件事情,这会使本教程发挥更大的作用。
\end_layout
\begin_layout Standard
由于本教程不会提供所有信息,所以你需要找到其它的帮助文件。这很简单:启动 \SpecialChar LyX
,在帮助菜单中就有 the
\emph on
User's Guide。
\shape italic
在写自己的文件时就可以读到它们了(它们本身就是很好的例子)。注意,当打开多个文件时,可以通过 View 菜单或文档标签进行切换。
\end_layout
\begin_layout Standard
我们假设你已经有了全功能的 \SpecialChar LyX
和 \SpecialChar LaTeX
,包括 DVI、PDF 文件浏览器。一般来说,在各种操作系统上,在安装 \SpecialChar LyX
的时候就已经做好了。
\end_layout
\begin_layout Standard
最后,我们提供了一个文件
\family typewriter
example_raw.lyx
\family default
给你练习使用。假想这个文件是由一个完全不知道 \SpecialChar LyX
特性的人写的在学习的过程中我们会建议你修改这个文件的。example_raw.lyx 中也包含了修改的提示信息
。为了对比,我们还提供了一份 \SpecialChar LyX
高手写的同样内容的文档example_lyxified.lyx。
\end_layout
\begin_layout Standard
示例文档存在于 \SpecialChar LyX
安装路径的 examples 目录下。打开示例文档,另存到自己的目录下,修改后输出到 DVI 文件看效果。
\end_layout
\begin_layout Standard
另外examples 目录中还有很多其它的示例文件,它们将向您展示 \SpecialChar LyX
的强大功能。当你忘记了某个功能怎么使用的时候,也可以回来看看这些文档。
\end_layout
\begin_layout Subsection
录入、查看、输出
\end_layout
\begin_layout Itemize
使用菜单
\family sans
File\SpecialChar menuseparator
New 打开新文件。
\end_layout
\begin_layout Itemize
输入一个句子:
\family typewriter
This is my first \SpecialChar LyX
document!
\end_layout
\begin_layout Itemize
使用菜单
\family sans
File\SpecialChar menuseparator
Save
\begin_inset space ~
\end_inset
As 保存文件。
\end_layout
\begin_layout Itemize
运行 \SpecialChar LaTeX
生成 DVI 文件,使用菜单
\family sans
Document\SpecialChar menuseparator
View
\family default
或 工具栏按钮
\begin_inset Info
type "icon"
arg "buffer-view"
\end_inset
。 \SpecialChar LyX
将打开 DVI-viewer 程序显示文档打印时的样子。
\begin_inset Foot
status collapsed
\begin_layout Plain Layout
保持 DVI-viewer在后台运行会节省时间。以后可以点击
\family sans
Document\SpecialChar menuseparator
Update\SpecialChar menuseparator
DVI
\family default
或工具栏按钮
\begin_inset Info
type "icon"
arg "buffer-update"
\end_inset
,等 \SpecialChar LyX
运算完成后切换到 DVI-viewer即可。
\end_layout
\end_inset
\end_layout
\begin_layout Itemize
使用菜单
\family sans
File\SpecialChar menuseparator
Export
\family default
将文档输出成希望的格式。
\end_layout
\begin_layout Standard
恭喜!你已经写出了第一个 \SpecialChar LyX
文档。其余的细节,你会在其它手册中读到。
\end_layout
\begin_layout Subsection
简单操作
\end_layout
\begin_layout Standard
\SpecialChar LyX
能够做到其它软件能做的绝大部分事情,如:自动换行、段落缩进……以下是几个简单操作的使用方法。
\end_layout
\begin_layout Description
撤消 \SpecialChar LyX
有多级撤消功能,你可以使用
\family sans
Edit\SpecialChar menuseparator
Undo
\family default
(或工具拦按钮
\begin_inset Info
type "icon"
arg "undo"
\end_inset
)来撤消本次编辑会话开始以来的所有操作。如果撤消过头了,可以选择
\family sans
Edit\SpecialChar menuseparator
Redo
\family default
(或工具栏按钮
\begin_inset Info
type "icon"
arg "redo"
\end_inset
)恢复。
\end_layout
\begin_deeper
\begin_layout Standard
目前撤消操作支持100步而且撤消也不是能够支持所有更改的比如对文档布局的更改就不能被撤消这的确是一个 bug。
\end_layout
\end_deeper
\begin_layout Description
剪切/粘贴/复制 使用
\family sans
Edit\SpecialChar menuseparator
Cut
\family default
(工具栏按钮
\begin_inset Info
type "icon"
arg "cut"
\end_inset
\family sans
Edit\SpecialChar menuseparator
Copy
\family default
(工具栏按钮
\begin_inset Info
type "icon"
arg "copy"
\end_inset
),和
\family sans
Edit\SpecialChar menuseparator
Paste
\family default
(工具栏按钮
\begin_inset Info
type "icon"
arg "paste"
\end_inset
来实现剪切、复制和粘贴操作。或者也可通过鼠标中键来粘贴选中的文本(包括其它程序中选定的文本)。
\end_layout
\begin_layout Description
查找/替换 点击
\family sans
Edit\SpecialChar menuseparator
Find
\begin_inset space ~
\end_inset
&
\begin_inset space ~
\end_inset
Replace
\family default
(工具栏按钮
\begin_inset Info
type "icon"
arg "dialog-show findreplace"
\end_inset
,在出现的对话框中点击按钮“
\family sans
Find
\begin_inset space ~
\end_inset
Next”
\family default
进行搜索,点击按钮“
\family sans
Replace”替换搜到的字词。
\family default
\begin_inset Foot
status open
\begin_layout Plain Layout
完成后关闭窗口,如果觉得方便的话也可一直开着它。\SpecialChar LyX
中的大部分窗口都可以这样。使用时注意焦点的切换即可。
\end_layout
\end_inset
你还可以指定区分大小写或全字匹配,当然也可以反向搜索文档。
\end_layout
\begin_layout Description
字符格式 用
\family sans
Edit\SpecialChar menuseparator
Text
\begin_inset space ~
\end_inset
Style
\family default
对话框中的 toggle buttons ,可以
\shape italic
强调
\shape default
(默认斜体)、加粗或设置为
\noun on
无格式(
\noun default
字体一般较小,用于人名)。
\end_layout
\begin_layout Description
工具栏 菜单支边的工具栏提供了一些常用功能的按钮,例如:粘贴、打印。
\end_layout
\begin_layout Standard
当然,目前还没有输入足够多的内容以使所有这些功能可用。
\end_layout
\begin_layout Subsection
所见即所想:\SpecialChar LyX
中的空白
\end_layout
\begin_layout Standard
对新用户来说,最难理解的是 \SpecialChar LyX
处理空白的方式。敲多次回车只能得到一个空行;敲多次空格只能得到一个空格。在空白行上,连一个空格都无法得到。按下 Tab
键也不会移动一个 Tab 位;实际上就没有 Tab 位!在页面上方也没有标尺可供设置 Tab 位和边距。
\end_layout
\begin_layout Standard
很多字处理软件建立在 WYSIWYG 理念之上,也就是:看到的就是得到的(所见即所得)。\SpecialChar LyX
不同,它建立在 WYSIWYM (所想即所得)的理念之上。你想什么就输
入什么,\SpecialChar LyX
会处理排版的问题这样保证了输出文件的美观。回车分段空格断词没理由在一行中输入好几次空格。Tab 根本就没有语法意义,所以 \SpecialChar LyX
不支持它。使用
\SpecialChar LyX
,你将花费更多的时间去考虑文档的
\series bold
内容
\series default
,而不是它的
\series bold
格式
\series default
。更多关于 WYSIWYM 的解释参见
\emph on
Introduction。
\end_layout
\begin_layout Standard
\SpecialChar LyX
的确也有不少精细调整文档格式的方法。毕竟 \SpecialChar LyX
可能不会 100% 精确的按照你想的去排版。
\emph on
User's Guide
\emph default
包含了调整文档格式的详细方法包括水平填充HFills和垂直距离它们比空格、回车更加强大灵活设置字体大小 、样式的方法;调整段落对齐方式的手段。你只
需要专心写你的文档,在最后细调一下文档格式就好了。使用普通的字处理软件,你会在写文档的整个过程中都被格式排版所困扰。
\begin_inset Foot
status open
\begin_layout Plain Layout
译注:连 AbiWord 这样轻量级的字处理软件都有样式了,就不要说 MS Word、OOo 了。
\end_layout
\end_inset
\end_layout
\begin_layout Section
环境
\end_layout
\begin_layout Standard
文档的不同部分有不同的作用,我们称这些部分为“环境”(
\emph on
environments
\emph default
)。标题告诉读者新的话题(子话题)将会开始。某些文档含有特殊的环境,比如:期刊会有摘要和题目;书信就没有摘要和题目,但它有地址。
\end_layout
\begin_layout Standard
环境是 \SpecialChar LyX
所见即所得哲学的重要部分。一个环境需要具体的定义:字体大小、样式、缩进、行间距等等。这个问题非常重要,因为一个给定环境的具体定义会随着文档类型的变化而
变化。比如某期刊要求标题是黑体、18pt、居中而另一个可能要求斜体、15pt、左对齐不同的语言也有不同的缩进标准参考文献的格式就变化更大了。\SpecialChar LyX
会把你从这些格式中间拯救出来。
\end_layout
\begin_layout Standard
你可以使用工具栏上的环境下拉菜单
\begin_inset Graphics
filename ../../../lib/doc/clipart/ToolbarEnvBox.png
scale 50
groupId In line
\end_inset
来选择环境它也能告诉你当前的环境是什么其中“Standard”是文本的默认环境。现在我们将在你的新文档中添加几个环境来看看它们是怎么工作的吧。
\end_layout
\begin_layout Subsection
节(
\family sans
Section
\family default
与子节Subsection
\end_layout
\begin_layout Standard
在 \SpecialChar LyX
文档的第一行输入“
\family typewriter
Introduction
\family default
”,在环境下拉菜单中设为“节”(
\family sans
Section
\family default
\begin_inset Foot
status collapsed
\begin_layout Plain Layout
设定环境不需要选择整行(段),光标停留其中即可。若想一次改变多行的环境,则需要选定之。
\end_layout
\end_inset
确定你选择了“节”(
\family sans
Section
\family default
)而不是“节
\family sans
*
\family default
”(
\family sans
Section*
\family default
)。\SpecialChar LyX
将在前边加上“1”并把字体调大。现在敲回车环境将从“节”
\family sans
Section
\family default
变回“标准”Standard。和多数环境类似敲回车后环境将终止。输入文本
\end_layout
\begin_layout LyX-Code
This is an introduction to my first \SpecialChar LyX
document.
\end_layout
\begin_layout Standard
再次回车,选择“节”(
\family sans
Section
\family default
)环境,\SpecialChar LyX
将写上“2”并等待输入。现在输入“
\family typewriter
More Stuff
\family default
”,\SpecialChar LyX
会把它设置成节(
\family sans
Section
\family default
)标题的样式。
\end_layout
\begin_layout Standard
将光标定位到节 1 Section
\begin_inset space ~
\end_inset
1末尾敲回车再次设置为“节”
\family sans
Section
\family default
\SpecialChar LyX
会写上“2”并等待输入。输入“
\family typewriter
About This Document
\family default
”。刚才的节 2 Section
\begin_inset space ~
\end_inset
2“More Stuff”现在已经被改成了节 3 Section
\begin_inset space ~
\end_inset
3。你只需要确定哪些文字是节
\family sans
Section
\family default
)标题,\SpecialChar LyX
会处理编号和排版格式的这就是所见即所想WYSIWYM的风格。
\end_layout
\begin_layout Standard
敲回车回到“标准”Standard环境输入下边 5 行文字:
\end_layout
\begin_layout LyX-Code
Sections and subsections are described below.
\end_layout
\begin_layout LyX-Code
Section Description
\end_layout
\begin_layout LyX-Code
Sections are bigger than subsections.
\end_layout
\begin_layout LyX-Code
Subsection description
\end_layout
\begin_layout LyX-Code
Subsections are smaller than sections.
\end_layout
\begin_layout Standard
点击第二行在环境下拉菜单中设为“子节”Subsection。\SpecialChar LyX
将会在前边加上“2.1”并把字体调整的比正文大比节Section标题小。接着把第
4 行也设置成为“子节”Subsection\SpecialChar LyX
将在它前边加上“2.2”。如果在节 2 Section 2前边加上了别的节节 2 将会自动变为节
3Section 3后边的子节也会跟着变成“3.1”和“3.2”。
\end_layout
\begin_layout Standard
文档的层级结构还有次子节 ( Subsubsection )、段 ( Paragraph ) 和子段 ( Subparagraph ),这些就由读者自行把玩吧。
段和子段的标题默认是不编号的,而且子段还有缩进,参阅
\emph on
User's Guide
\emph default
得到更多解释以及如何改变它们。章Chapter是文档层级结构中最高的一级只能在某些特定的 \SpecialChar LyX
文档类型中才能使用它(见
\begin_inset CommandInset ref
LatexCommand ref
reference "sec:文档类"
\end_inset
)。
\end_layout
\begin_layout Standard
你可能还希望一些节和子节是不编号的,\SpecialChar LyX
有专门的环境实现这个功能。当把节的标题环境改为“节*
\begin_inset Quotes erd
\end_inset
Section*)后,\SpecialChar LyX
还将对它使用相同的字体,只是不再对它进行编号。相应的也有带“星”的子节和次子节环境。试着把一些节或子节的标题环境改为带星的,同时看看其
它的编号怎么随之改变。
\end_layout
\begin_layout Standard
练习:修改 example_raw.lyx 中的节和子节标题。
\end_layout
\begin_layout Subsection
列表Lists和子列表sublists
\end_layout
\begin_layout Standard
\SpecialChar LyX
有好几种列表环境,在写提纲或者重新排序一个已有的列表时,这些列表环境会帮上大忙。不同的文档类型需要不同的列表环境:
\end_layout
\begin_layout Itemize
幻灯片使用带圆点的条目环境(
\family sans
Itemize
\family default
)。
\end_layout
\begin_layout Itemize
大纲使用带编号的枚举环境(
\family sans
Enumerate
\family default
)。
\end_layout
\begin_layout Itemize
名词解释常用描述环境(
\family sans
Description
\family default
)。
\end_layout
\begin_layout Itemize
列表环境(
\family sans
List
\family default
)和描述环境(
\family sans
Description
\family default
)差不多,只是对齐方式稍有不同。
\end_layout
\begin_layout Standard
现在我们写一个 \SpecialChar LyX
有关优点的列表。在文档中输入:
\end_layout
\begin_layout Standard
\family typewriter
\SpecialChar LyX
is better than other word processors because:
\end_layout
\begin_layout Standard
然后敲回车,并在环境下拉列表中选择条目环境(
\family sans
Itemize
\family default
)。\SpecialChar LyX
会在行首加上圆点。继续输入:
\end_layout
\begin_layout LyX-Code
Typesetting is done for you.
\end_layout
\begin_layout LyX-Code
Math is WYSIWYG
\end_layout
\begin_layout LyX-Code
Lists are very easy to create!
\end_layout
\begin_layout Standard
和标题不同,列表环境在敲回车时不会终止,\SpecialChar LyX
会认为你将继续写下一个条目。所以上边的输入将会产生三个列表项。重新选择标准环境(
\family sans
Standard
\family default
)或使用快捷键
\family sans
Alt+P
\begin_inset space ~
\end_inset
S
\family default
才能退出列表环境。要在一个列表项中使用多个段落,可使用保护性中断(
\family sans
Protected
\begin_inset space ~
\end_inset
Break
\family default
),按下 Ctrl + 回车即可。
\end_layout
\begin_layout Standard
你已经得到了一个漂亮的条目列表,你是不是已经迫不及待的想运行 \SpecialChar LaTeX
看看它们打印出来的样子了?可如果您想给它们加上编号呢?你只需要选定整个列表
\begin_inset Foot
status collapsed
\begin_layout Plain Layout
如果不连前边一段也一起选上的话,你是无法选上第一个条目前边的圆点的;类似的,你也无法选定章节编号。这是有意如此的,因为随着文档类型和文字位置的不同,这些圆点和编
号也会发生变化。
\end_layout
\end_inset
,然后选择枚举环境(
\family sans
Enumerate
\family default
)即可。如果你增删条目的话,\SpecialChar LyX
会自动修改枚举编号的。
\end_layout
\begin_layout Standard
现在列表项还是处于被选定状态的,你可以再试试描述(
\family sans
Description
\family default
)和列表(
\family sans
List
\family default
两种环境。这两种环境都是名词加定义的形式描述环境前边的名词用黑体列表环境的名词和后边的定义由“Tab”
\begin_inset Foot
status collapsed
\begin_layout Plain Layout
这里的Tab是排版Tab它会自适应到最长的名词长度而不是定长的打字机Tab。
\end_layout
\end_inset
分隔。前边的名词如果多于一个词的话,需要使用保护性空格(
\family sans
Protected
\begin_inset space ~
\end_inset
Blank
\family default
s将它们分开。
\end_layout
\begin_layout Standard
练习:排版
\family typewriter
example_raw.lyx
\family default
中的列表。
\end_layout
\begin_layout Standard
这些列表环境还可以嵌套使用,提纲就是最常见的例子。带编号或圆点的列表在子列表中会有不同的表现形式。更多详情参见
\emph on
User's Guide
\emph default
\end_layout
\begin_layout Subsection
其它环境:诗、引用和更多
\end_layout
\begin_layout Standard
有两种引用环境:短一点的引用使用引用环境(
\family sans
Quote
\family default
);长一点的引用使用引文环境(
\family sans
Quotation
\family default
)。计算机代码使用代码环境(
\family sans
\SpecialChar LyX
-Code
\family default
),该环境使用
\family typewriter
typewriter
\family default
字体,而且这里是 \SpecialChar LyX
中唯一允许使用多个空格的地方。你还可以使用诗环境(
\family sans
Verse
\family default
来写诗回车分节Ctrl + 回车断行。对所有环境的完整描述参见
\emph on
User's Guide
\emph default
\end_layout
\begin_layout Standard
练习:修改
\family typewriter
example_raw.lyx
\family default
中的引用、代码、诗环境。
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,256 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="GENERATOR" content="LyX 2.4.0dev" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<title>The LyX Tutorial</title>
<style type='text/css'>
/* Layout-provided Styles */
dfn.lyxnoun {
font-variant: small-caps;
}
h1.title {
font-size: x-large;
margin-bottom: 1ex;
text-align: center;
}
h1.chapter {
font-weight: bold;
font-size: xx-large;
margin-top: 2ex;
margin-bottom: 0.8ex;
text-align: left;
}
h2.section {
font-weight: bold;
font-size: x-large;
margin-top: 1.3ex;
margin-bottom: 0.7ex;
text-align: left;
}
div.standard {
margin-bottom: 2ex;
}
h3.subsection {
font-weight: bold;
font-size: large;
margin-top: 0.9ex;
margin-bottom: 0.5ex;
text-align: left;
}
ul.itemize {
margin-top: 0.7ex;
margin-bottom: 0.7ex;
margin-left: 3ex;
text-align: left;
}
div.plain_layout {
text-align: left;
}
dl.description dt { font-weight: bold; }
div.lyx_code {
font-family: monospace;
margin-top: 0.5ex;
margin-bottom: 0.5ex;
margin-left: 3ex;
margin-right: 3ex;
text-align: left;
}
span.info { font-family: sans-serif; }
span.foot_label {
vertical-align: super;
font-size: smaller;
font-weight: bold;
text-decoration: underline;
}
div.foot {
display: inline;
font-size: small;
font-weight: medium;
font-family: serif;
font-variant: normal;
font-style: normal;
}
div.foot_inner { display: none; }
div.foot:hover div.foot_inner {
display: block;
border: 1px double black;
margin: 0em 1em;
padding: 1em;
}
</style>
</head>
<body dir="auto">
<h1 class="title" id='magicparlabel-1'>The LyX Tutorial</h1>
<section>
<h1 class="chapter" id='magicparlabel-2'><span class="chapter_label">第 1 章</span> 介绍</h1>
<section>
<h2 class="section" id='magicparlabel-3'><span class="section_label">1.1</span> 欢迎来到 LyX!</h2>
<div class="standard" id='magicparlabel-4'>这个文档是为那些不知道 LaTeX 或知之甚少的人准备的。不必担心,使用 LyX 不必学习 LaTeX。LyX 的目标就是提供一个所见即所得的 LaTeX 应用。为了高效的使用 LyX还是需要学习一些东西的。</div>
<div class="standard" id='magicparlabel-5'>你会发现在其它字处理软件中常用的排版方式在 LyX 中都不能使用了,比如:在“.”后边输入两个空格在段间输入三个空行。你以前使用的软件允许手动调整间距、字体等东西所以你不得不即录入又排版。LyX会做好排版的事情的而你只需要转注于重要的东西你正在写的内容。</div>
<div class="standard" id='magicparlabel-6'>继续读下去,了解更多 LyX。读完这篇教程你会觉得物有所值的。</div>
</section>
<section>
<h2 class="section" id='magicparlabel-7'><span class="section_label">1.2</span> 本教程简介</h2>
<div class="standard" id='magicparlabel-8'>在开始之前建议您先读一下 Introduction那里解释了本文使用的注释方式。当你了解了各种字体的意义之后我们先来说说本篇教程是干什么的。</div>
<section>
<h3 class="subsection" id='magicparlabel-9'><span class="subsection_label">1.2.1</span> 学习方式</h3>
<div class="standard" id='magicparlabel-10'>本教程包含了例子和练习。学习中您应该试着输入我们让你输入的东西,完成所有练习,看看您是不是得到了正确的东西。为了方便,将本文档打印出来会是一个好选择。</div>
<div class="standard" id='magicparlabel-11'>如果对 LaTeX 比较熟悉的话,你将能够较快的阅读本教程,因为 LyX 的思想就是 LaTeX 思想的一种包装。LyX 自身也有很多特性是你想了解的。就算不想继续读下去,你也应该看看 <a href="#sec_LaTeX_____">sec:LaTeX-用户必读</a>,它是专门写给熟练的 LaTeX 用户的。</div>
</section>
<section>
<h3 class="subsection" id='magicparlabel-12'><span class="subsection_label">1.2.2</span> 本教程没有的</h3>
<ul class="itemize" id='magicparlabel-13'>
<li class="itemize_item">LyX 全部特性的详细解释。
<div class="standard" id='magicparlabel-14'>需要的话,请阅读 the <em>User's Guide。</em></div>
</li><li class="itemize_item">LaTeX 的详细解释。
<div class="standard" id='magicparlabel-16'>没必要这样做。要想知道用 LaTeX 在 LyX 中能做些什么,可以看看 the <em>Embedded&nbsp;Objects</em> manual。</div>
</li></ul>
<div class="standard" id='magicparlabel-17'>现在是开始你的第一个文档的时候了。</div>
</section>
</section>
</section>
<section>
<h1 class="chapter" id='magicparlabel-18'><span class="chapter_label">第 2 章</span> 初识 LyX</h1>
<section>
<h2 class="section" id='magicparlabel-19'><span class="section_label">2.1</span> 第一个 LyX 文档</h2>
<div class="standard" id='magicparlabel-20'>开始之前说几件事情,这会使本教程发挥更大的作用。</div>
<div class="standard" id='magicparlabel-21'>由于本教程不会提供所有信息,所以你需要找到其它的帮助文件。这很简单:启动 LyX在帮助菜单中就有 the <em>User's Guide。<i>在写自己的文件时就可以读到它们了(它们本身就是很好的例子)。注意,当打开多个文件时,可以通过 View 菜单或文档标签进行切换。</i></em></div>
<div class="standard" id='magicparlabel-22'>我们假设你已经有了全功能的 LyX 和 LaTeX包括 DVI、PDF 文件浏览器。一般来说,在各种操作系统上,在安装 LyX 的时候就已经做好了。</div>
<div class="standard" id='magicparlabel-23'>最后,我们提供了一个文件 <span style='font-family:monospace;'>example_raw.lyx</span>给你练习使用。假想这个文件是由一个完全不知道 LyX 特性的人写的在学习的过程中我们会建议你修改这个文件的。example_raw.lyx 中也包含了修改的提示信息。为了对比,我们还提供了一份 LyX 高手写的同样内容的文档example_lyxified.lyx。</div>
<div class="standard" id='magicparlabel-24'>示例文档存在于 LyX 安装路径的 examples 目录下。打开示例文档,另存到自己的目录下,修改后输出到 DVI 文件看效果。</div>
<div class="standard" id='magicparlabel-25'>另外examples 目录中还有很多其它的示例文件,它们将向您展示 LyX 的强大功能。当你忘记了某个功能怎么使用的时候,也可以回来看看这些文档。</div>
<section>
<h3 class="subsection" id='magicparlabel-26'><span class="subsection_label">2.1.1</span> 录入、查看、输出</h3>
<ul class="itemize" id='magicparlabel-27'>
<li class="itemize_item">使用菜单 <span style='font-family:sans-serif;'>File&rArr;New 打开新文件。</span></li>
<li class="itemize_item">输入一个句子: <span style='font-family:monospace;'>This is my first LyX document!</span></li>
<li class="itemize_item">使用菜单 <span style='font-family:sans-serif;'>File&rArr;Save&nbsp;As 保存文件。</span></li>
<li class="itemize_item">运行 LaTeX 生成 DVI 文件,使用菜单 <span style='font-family:sans-serif;'>Document&rArr;View</span> 或 工具栏按钮 <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/buffer-view.svgz' alt='image: ' /></span>。 LyX 将打开 DVI-viewer 程序显示文档打印时的样子。 <div class="foot"><span class="foot_label">1</span><div class="foot_inner"><div class="plain_layout" id='magicparlabel-35'>保持 DVI-viewer在后台运行会节省时间。以后可以点击 <span style='font-family:sans-serif;'>Document&rArr;Update&rArr;DVI</span> 或工具栏按钮 <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/buffer-update.svgz' alt='image: ' /></span>,等 LyX 运算完成后切换到 DVI-viewer即可。</div>
</div></div></li>
<li class="itemize_item">使用菜单 <span style='font-family:sans-serif;'>File&rArr;Export</span> 将文档输出成希望的格式。</li>
</ul>
<div class="standard" id='magicparlabel-38'>恭喜!你已经写出了第一个 LyX 文档。其余的细节,你会在其它手册中读到。</div>
</section>
<section>
<h3 class="subsection" id='magicparlabel-39'><span class="subsection_label">2.1.2</span> 简单操作</h3>
<div class="standard" id='magicparlabel-40'>LyX 能够做到其它软件能做的绝大部分事情,如:自动换行、段落缩进……以下是几个简单操作的使用方法。</div>
<dl class='description' id='magicparlabel-41'>
<dt class="description_label">撤消</dt>
<dd class="description_item"> LyX 有多级撤消功能,你可以使用 <span style='font-family:sans-serif;'>Edit&rArr;Undo</span> (或工具拦按钮 <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/undo.svgz' alt='image: ' /></span>)来撤消本次编辑会话开始以来的所有操作。如果撤消过头了,可以选择 <span style='font-family:sans-serif;'>Edit&rArr;Redo</span> (或工具栏按钮 <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/redo.svgz' alt='image: ' /></span>)恢复。
<div class="standard" id='magicparlabel-44'>目前撤消操作支持100步而且撤消也不是能够支持所有更改的比如对文档布局的更改就不能被撤消这的确是一个 bug。</div>
</dd><dt class="description_label">剪切/粘贴/复制</dt>
<dd class="description_item"> 使用 <span style='font-family:sans-serif;'>Edit&rArr;Cut</span> (工具栏按钮 <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/cut.svgz' alt='image: ' /></span> <span style='font-family:sans-serif;'>Edit&rArr;Copy</span> (工具栏按钮 <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/copy.svgz' alt='image: ' /></span>),和 <span style='font-family:sans-serif;'>Edit&rArr;Paste</span> (工具栏按钮 <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/paste.svgz' alt='image: ' /></span> 来实现剪切、复制和粘贴操作。或者也可通过鼠标中键来粘贴选中的文本(包括其它程序中选定的文本)。</dd>
<dt class="description_label">查找/替换</dt>
<dd class="description_item"> 点击 <span style='font-family:sans-serif;'>Edit&rArr;Find&nbsp;&amp;&nbsp;Replace</span> (工具栏按钮 <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/dialog-show_findreplace.svgz' alt='image: ' /></span> ,在出现的对话框中点击按钮“<span style='font-family:sans-serif;'>Find&nbsp;Next”</span> 进行搜索,点击按钮“ <span style='font-family:sans-serif;'>Replace”替换搜到的字词。</span><div class="foot"><span class="foot_label">2</span><div class="foot_inner"><div class="plain_layout" id='magicparlabel-54'>完成后关闭窗口如果觉得方便的话也可一直开着它。LyX 中的大部分窗口都可以这样。使用时注意焦点的切换即可。</div>
</div></div> 你还可以指定区分大小写或全字匹配,当然也可以反向搜索文档。</dd>
<dt class="description_label">字符格式</dt>
<dd class="description_item"><span style='font-family:sans-serif;'>Edit&rArr;Text&nbsp;Style</span> 对话框中的 toggle buttons ,可以<i>强调</i>(默认斜体)、加粗或设置为<dfn class='lyxnoun'>无格式(</dfn>字体一般较小,用于人名)。</dd>
<dt class="description_label">工具栏</dt>
<dd class="description_item"> 菜单支边的工具栏提供了一些常用功能的按钮,例如:粘贴、打印。</dd>
</dl>
<div class="standard" id='magicparlabel-57'>当然,目前还没有输入足够多的内容以使所有这些功能可用。</div>
</section>
<section>
<h3 class="subsection" id='magicparlabel-58'><span class="subsection_label">2.1.3</span> 所见即所想LyX 中的空白</h3>
<div class="standard" id='magicparlabel-59'>对新用户来说,最难理解的是 LyX 处理空白的方式。敲多次回车只能得到一个空行;敲多次空格只能得到一个空格。在空白行上,连一个空格都无法得到。按下 Tab 键也不会移动一个 Tab 位;实际上就没有 Tab 位!在页面上方也没有标尺可供设置 Tab 位和边距。</div>
<div class="standard" id='magicparlabel-60'>很多字处理软件建立在 WYSIWYG 理念之上也就是看到的就是得到的所见即所得。LyX 不同,它建立在 WYSIWYM 所想即所得的理念之上。你想什么就输入什么LyX 会处理排版的问题这样保证了输出文件的美观。回车分段空格断词没理由在一行中输入好几次空格。Tab 根本就没有语法意义,所以 LyX 不支持它。使用 LyX你将花费更多的时间去考虑文档的<b>内容</b>,而不是它的<b>格式</b>。更多关于 WYSIWYM 的解释参见 <em>Introduction。</em></div>
<div class="standard" id='magicparlabel-61'>LyX 的确也有不少精细调整文档格式的方法。毕竟 LyX 可能不会 100% 精确的按照你想的去排版。<em>User's Guide</em> 包含了调整文档格式的详细方法包括水平填充HFills和垂直距离它们比空格、回车更加强大灵活设置字体大小 、样式的方法;调整段落对齐方式的手段。你只需要专心写你的文档,在最后细调一下文档格式就好了。使用普通的字处理软件,你会在写文档的整个过程中都被格式排版所困扰。<div class="foot"><span class="foot_label">3</span><div class="foot_inner"><div class="plain_layout" id='magicparlabel-65'>译注:连 AbiWord 这样轻量级的字处理软件都有样式了,就不要说 MS Word、OOo 了。</div>
</div></div></div>
</section>
</section>
<section>
<h2 class="section" id='magicparlabel-66'><span class="section_label">2.2</span> 环境</h2>
<div class="standard" id='magicparlabel-67'>文档的不同部分有不同的作用,我们称这些部分为“环境”(<em>environments</em>)。标题告诉读者新的话题(子话题)将会开始。某些文档含有特殊的环境,比如:期刊会有摘要和题目;书信就没有摘要和题目,但它有地址。</div>
<div class="standard" id='magicparlabel-68'>环境是 LyX 所见即所得哲学的重要部分。一个环境需要具体的定义字体大小、样式、缩进、行间距等等。这个问题非常重要因为一个给定环境的具体定义会随着文档类型的变化而变化。比如某期刊要求标题是黑体、18pt、居中而另一个可能要求斜体、15pt、左对齐不同的语言也有不同的缩进标准参考文献的格式就变化更大了。LyX 会把你从这些格式中间拯救出来。</div>
<div class="standard" id='magicparlabel-69'>你可以使用工具栏上的环境下拉菜单<img style='width:50%;' src='59dc5fa2c4be2dbbd812749fb08fd5394d0b655a4cf83a012745159aab4ec6af_ToolbarEnvBox_png.png' alt='image: 59dc5fa2c4be2dbbd812749fb08fd5394d0b655a4cf83a012745159aab4ec6af_ToolbarEnvBox_png.png' />来选择环境它也能告诉你当前的环境是什么其中“Standard”是文本的默认环境。现在我们将在你的新文档中添加几个环境来看看它们是怎么工作的吧。</div>
<section>
<h3 class="subsection" id='magicparlabel-70'><span class="subsection_label">2.2.1</span> 节(<span style='font-family:sans-serif;'>Section</span>与子节Subsection</h3>
<div class="standard" id='magicparlabel-71'>在 LyX 文档的第一行输入“<span style='font-family:monospace;'>Introduction</span>”,在环境下拉菜单中设为“节”(<span style='font-family:sans-serif;'>Section</span><div class="foot"><span class="foot_label">4</span><div class="foot_inner"><div class="plain_layout" id='magicparlabel-75'>设定环境不需要选择整行(段),光标停留其中即可。若想一次改变多行的环境,则需要选定之。</div>
</div></div> 确定你选择了“节”(<span style='font-family:sans-serif;'>Section</span>)而不是“节<span style='font-family:sans-serif;'>*</span>”(<span style='font-family:sans-serif;'>Section*</span>。LyX 将在前边加上“1”并把字体调大。现在敲回车环境将从“节”<span style='font-family:sans-serif;'>Section</span>变回“标准”Standard。和多数环境类似敲回车后环境将终止。输入文本</div>
<div class="lyx_code" id='magicparlabel-76'>
<div class="lyx_code_item">This&nbsp;is&nbsp;an&nbsp;introduction&nbsp;to&nbsp;my&nbsp;first&nbsp;LyX&nbsp;document.</div>
</div>
<div class="standard" id='magicparlabel-77'>再次回车,选择“节”(<span style='font-family:sans-serif;'>Section</span>环境LyX 将写上“2”并等待输入。现在输入“<span style='font-family:monospace;'>More Stuff</span>LyX 会把它设置成节(<span style='font-family:sans-serif;'>Section</span>)标题的样式。</div>
<div class="standard" id='magicparlabel-78'>将光标定位到节 1 Section&nbsp;1末尾敲回车再次设置为“节”<span style='font-family:sans-serif;'>Section</span>LyX 会写上“2”并等待输入。输入“<span style='font-family:monospace;'>About This Document</span>”。刚才的节 2 Section&nbsp;2“More Stuff”现在已经被改成了节 3 Section&nbsp;3。你只需要确定哪些文字是节<span style='font-family:sans-serif;'>Section</span>标题LyX 会处理编号和排版格式的这就是所见即所想WYSIWYM的风格。</div>
<div class="standard" id='magicparlabel-79'>敲回车回到“标准”Standard环境输入下边 5 行文字:</div>
<div class="lyx_code" id='magicparlabel-80'>
<div class="lyx_code_item">Sections&nbsp;and&nbsp;subsections&nbsp;are&nbsp;described&nbsp;below.</div>
<div class="lyx_code_item">Section&nbsp;Description</div>
<div class="lyx_code_item">Sections&nbsp;are&nbsp;bigger&nbsp;than&nbsp;subsections.</div>
<div class="lyx_code_item">Subsection&nbsp;description</div>
<div class="lyx_code_item">Subsections&nbsp;are&nbsp;smaller&nbsp;than&nbsp;sections.</div>
</div>
<div class="standard" id='magicparlabel-85'>点击第二行在环境下拉菜单中设为“子节”Subsection。LyX 将会在前边加上“2.1”并把字体调整的比正文大比节Section标题小。接着把第 4 行也设置成为“子节”SubsectionLyX 将在它前边加上“2.2”。如果在节 2 Section 2前边加上了别的节节 2 将会自动变为节 3Section 3后边的子节也会跟着变成“3.1”和“3.2”。</div>
<div class="standard" id='magicparlabel-86'>文档的层级结构还有次子节 ( Subsubsection )、段 ( Paragraph ) 和子段 ( Subparagraph ),这些就由读者自行把玩吧。段和子段的标题默认是不编号的,而且子段还有缩进,参阅 <em>User's Guide</em> 得到更多解释以及如何改变它们。章Chapter是文档层级结构中最高的一级只能在某些特定的 LyX 文档类型中才能使用它(见 <a href="#sec____">sec:文档类</a>)。</div>
<div class="standard" id='magicparlabel-87'>你可能还希望一些节和子节是不编号的LyX 有专门的环境实现这个功能。当把节的标题环境改为“节*&rdquo;Section*LyX 还将对它使用相同的字体,只是不再对它进行编号。相应的也有带“星”的子节和次子节环境。试着把一些节或子节的标题环境改为带星的,同时看看其它的编号怎么随之改变。</div>
<div class="standard" id='magicparlabel-88'>练习:修改 example_raw.lyx 中的节和子节标题。</div>
</section>
<section>
<h3 class="subsection" id='magicparlabel-89'><span class="subsection_label">2.2.2</span> 列表Lists和子列表sublists</h3>
<div class="standard" id='magicparlabel-90'>LyX 有好几种列表环境,在写提纲或者重新排序一个已有的列表时,这些列表环境会帮上大忙。不同的文档类型需要不同的列表环境:</div>
<ul class="itemize" id='magicparlabel-91'>
<li class="itemize_item">幻灯片使用带圆点的条目环境(<span style='font-family:sans-serif;'>Itemize</span>)。</li>
<li class="itemize_item">大纲使用带编号的枚举环境(<span style='font-family:sans-serif;'>Enumerate</span>)。</li>
<li class="itemize_item">名词解释常用描述环境(<span style='font-family:sans-serif;'>Description</span>)。</li>
<li class="itemize_item">列表环境(<span style='font-family:sans-serif;'>List</span>)和描述环境(<span style='font-family:sans-serif;'>Description</span>)差不多,只是对齐方式稍有不同。</li>
</ul>
<div class="standard" id='magicparlabel-95'>现在我们写一个 LyX 有关优点的列表。在文档中输入:</div>
<div class="standard" id='magicparlabel-96'><span style='font-family:monospace;'>LyX is better than other word processors because: </span></div>
<div class="standard" id='magicparlabel-97'>然后敲回车,并在环境下拉列表中选择条目环境(<span style='font-family:sans-serif;'>Itemize</span>。LyX 会在行首加上圆点。继续输入:</div>
<div class="lyx_code" id='magicparlabel-98'>
<div class="lyx_code_item">Typesetting&nbsp;is&nbsp;done&nbsp;for&nbsp;you.</div>
<div class="lyx_code_item">Math&nbsp;is&nbsp;WYSIWYG</div>
<div class="lyx_code_item">Lists&nbsp;are&nbsp;very&nbsp;easy&nbsp;to&nbsp;create!</div>
</div>
<div class="standard" id='magicparlabel-101'>和标题不同列表环境在敲回车时不会终止LyX 会认为你将继续写下一个条目。所以上边的输入将会产生三个列表项。重新选择标准环境(<span style='font-family:sans-serif;'>Standard</span>)或使用快捷键 <span style='font-family:sans-serif;'>Alt+P&nbsp;S</span> 才能退出列表环境。要在一个列表项中使用多个段落,可使用保护性中断(<span style='font-family:sans-serif;'>Protected&nbsp;Break</span>),按下 Ctrl + 回车即可。</div>
<div class="standard" id='magicparlabel-102'>你已经得到了一个漂亮的条目列表,你是不是已经迫不及待的想运行 LaTeX 看看它们打印出来的样子了?可如果您想给它们加上编号呢?你只需要选定整个列表<div class="foot"><span class="foot_label">5</span><div class="foot_inner"><div class="plain_layout" id='magicparlabel-106'>如果不连前边一段也一起选上的话,你是无法选上第一个条目前边的圆点的;类似的,你也无法选定章节编号。这是有意如此的,因为随着文档类型和文字位置的不同,这些圆点和编号也会发生变化。</div>
</div></div>,然后选择枚举环境(<span style='font-family:sans-serif;'>Enumerate</span>即可。如果你增删条目的话LyX 会自动修改枚举编号的。</div>
<div class="standard" id='magicparlabel-107'>现在列表项还是处于被选定状态的,你可以再试试描述(<span style='font-family:sans-serif;'>Description</span>)和列表(<span style='font-family:sans-serif;'>List</span>两种环境。这两种环境都是名词加定义的形式描述环境前边的名词用黑体列表环境的名词和后边的定义由“Tab”<div class="foot"><span class="foot_label">6</span><div class="foot_inner"><div class="plain_layout" id='magicparlabel-111'>这里的Tab是排版Tab它会自适应到最长的名词长度而不是定长的打字机Tab。</div>
</div></div>分隔。前边的名词如果多于一个词的话,需要使用保护性空格(<span style='font-family:sans-serif;'>Protected&nbsp;Blank</span>s将它们分开。</div>
<div class="standard" id='magicparlabel-112'>练习:排版 <span style='font-family:monospace;'>example_raw.lyx</span> 中的列表。</div>
<div class="standard" id='magicparlabel-113'>这些列表环境还可以嵌套使用,提纲就是最常见的例子。带编号或圆点的列表在子列表中会有不同的表现形式。更多详情参见 <em>User's Guide</em></div>
</section>
<section>
<h3 class="subsection" id='magicparlabel-114'><span class="subsection_label">2.2.3</span> 其它环境:诗、引用和更多</h3>
<div class="standard" id='magicparlabel-115'>有两种引用环境:短一点的引用使用引用环境(<span style='font-family:sans-serif;'>Quote</span>);长一点的引用使用引文环境(<span style='font-family:sans-serif;'>Quotation</span>)。计算机代码使用代码环境(<span style='font-family:sans-serif;'>LyX-Code</span>),该环境使用<span style='font-family:monospace;'>typewriter</span> 字体,而且这里是 LyX 中唯一允许使用多个空格的地方。你还可以使用诗环境(<span style='font-family:sans-serif;'>Verse</span>来写诗回车分节Ctrl + 回车断行。对所有环境的完整描述参见<em> User's Guide</em></div>
<div class="standard" id='magicparlabel-116'>练习:修改 <span style='font-family:monospace;'>example_raw.lyx</span> 中的引用、代码、诗环境。</div>
</section>
</section>
</section>
</body>
</html>

41
development/DocBookToDo Normal file
View File

@ -0,0 +1,41 @@
Things specific to layouts
==========================
AASTeX
------
No support for table notes. They could be implemented through <footnoteref>, but it becomes a nightmare to ensure xml:id uniqueness (the only ID available here is in the inset; mix it with the table ID?). Anyway, it would require a lot of specific code to make it work, probably not worth the effort right now.
Related parts of the layout:
Style "Table note"
InsetLayout "Flex:tablenotemark"
Alreayd used in the following test:
bibliography_precooked_aastex.lyx
Notion of MathLetters: a group of equations. No good mapping in DocBook, maybe an informalgroup? To discuss with DocBook TC.
TableRefs, TableComments: no mapping in DocBook, not really a way to add these things. To discuss with DocBook TC.
Clearly, with this kind of template, we're reaching the limits of such a system! Having a really good converter for all these cases would require a lot of very specific code.
More general: what the heck with appendices? It's not handled in the LyX way (Document > Start Appendix Here), but in a custom way. Making this work would solve some correctness issues with this template.
Things specific to modules
==========================
AMS
---
Theorems and the like do not have counter parts in DocBook. Maybe a <formalpara> could do the trick, but I'd need to find a way to shoehorn a title through the styles (i.e. a first complete tag):
LyX:
Theorem: Bla bla
DocBook:
<formalpara>
<title>Theorem</title>
<para>Bla bla</para>
</formalpara>
This would also only be a solution for single-paragraph things, as formalpara only allows one paragraph. Or a sidebar, but it's semantically very remote.

View File

@ -1265,26 +1265,6 @@ def checkConverterEntries():
''')
def checkDocBook():
''' Check docbook '''
path, DOCBOOK = checkProg('SGML-tools 2.x (DocBook), db2x scripts or xsltproc', ['sgmltools', 'db2dvi', 'xsltproc'],
rc_entry = [
r'''\converter docbook dvi "sgmltools -b dvi $$i" ""
\converter docbook html "sgmltools -b html $$i" ""
\converter docbook ps "sgmltools -b ps $$i" ""''',
r'''\converter docbook dvi "db2dvi $$i" ""
\converter docbook html "db2html $$i" ""''',
r'''\converter docbook dvi "" ""
\converter docbook html "" ""''',
r'''\converter docbook dvi "" ""
\converter docbook html "" ""'''])
#
if DOCBOOK:
return ('yes', 'true', '\\def\\hasdocbook{yes}')
else:
return ('no', 'false', '')
def checkOtherEntries():
''' entries other than Format and Converter '''
checkProg('ChkTeX', ['chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38'],
@ -1331,7 +1311,7 @@ def _checkForClassExtension(x):
return x.strip()
def processLayoutFile(file):
''' process layout file and get a line of result
""" process layout file and get a line of result
Declare lines look like this:
@ -1356,38 +1336,36 @@ def processLayoutFile(file):
"article" "article" "article" "false" "article.cls" "Articles"
"scrbook" "scrbook" "book (koma-script)" "false" "scrbook.cls" "Books"
"svjog" "svjour" "article (Springer - svjour/jog)" "false" "svjour.cls,svjog.clo" ""
'''
"""
classname = file.split(os.sep)[-1].split('.')[0]
# return ('LaTeX', '[a,b]', 'a', ',b,c', 'article') for \DeclareLaTeXClass[a,b,c]{article}
p = re.compile('\s*#\s*\\\\Declare(LaTeX|DocBook)Class\s*(\[([^,]*)(,.*)*\])*\s*{(.*)}\s*$')
# return ('[a,b]', 'a', ',b,c', 'article') for \DeclareLaTeXClass[a,b,c]{article}
p = re.compile('\s*#\s*\\\\DeclareLaTeXClass\s*(\[([^,]*)(,.*)*])*\s*{(.*)}\s*$')
q = re.compile('\s*#\s*\\\\DeclareCategory{(.*)}\s*$')
classdeclaration = ""
categorydeclaration = '""'
for line in open(file, 'r', encoding='utf8').readlines():
res = p.match(line)
qres = q.match(line)
if res != None:
(classtype, optAll, opt, opt1, desc) = res.groups()
avai = {'LaTeX': 'false', 'DocBook': 'true'}[classtype]
if opt == None:
if res is not None:
(optAll, opt, opt1, desc) = res.groups()
if opt is None:
opt = classname
prereq_latex = _checkForClassExtension(classname)
prereq = _checkForClassExtension(classname)
else:
prereq_list = optAll[1:-1].split(',')
prereq_list = list(map(_checkForClassExtension, prereq_list))
prereq_latex = ','.join(prereq_list)
prereq = {'LaTeX': prereq_latex, 'DocBook': ''}[classtype]
prereq = ','.join(prereq_list)
classdeclaration = ('"%s" "%s" "%s" "%s" "%s"'
% (classname, opt, desc, avai, prereq))
% (classname, opt, desc, 'false', prereq))
if categorydeclaration != '""':
return classdeclaration + " " + categorydeclaration
if qres != None:
categorydeclaration = '"%s"' % (qres.groups()[0])
if classdeclaration:
return classdeclaration + " " + categorydeclaration
if qres is not None:
categorydeclaration = '"%s"' % (qres.groups()[0])
if classdeclaration:
return classdeclaration + " " + categorydeclaration
if classdeclaration:
return classdeclaration + " " + categorydeclaration
logger.warning("Layout file " + file + " has no \DeclareXXClass line. ")
logger.warning("Layout file " + file + " has no \\DeclareLaTeXClass line. ")
return ""
@ -1454,7 +1432,7 @@ def checkLatexConfig(check_config):
# Construct the list of classes to test for.
# build the list of available layout files and convert it to commands
# for chkconfig.ltx
declare = re.compile('\\s*#\\s*\\\\Declare(LaTeX|DocBook)Class\\s*(\[([^,]*)(,.*)*\])*\\s*{(.*)}\\s*$')
declare = re.compile('\\s*#\\s*\\\\DeclareLaTeXClass\\s*(\[([^,]*)(,.*)*\])*\\s*{(.*)}\\s*$')
category = re.compile('\\s*#\\s*\\\\DeclareCategory{(.*)}\\s*$')
empty = re.compile('\\s*$')
testclasses = list()
@ -1475,10 +1453,10 @@ def checkLatexConfig(check_config):
nodeclaration = True
# A class, but no category declaration. Just break.
break
if declare.match(line) != None:
if declare.match(line) is not None:
decline = "\\TestDocClass{%s}{%s}" % (classname, line[1:].strip())
testclasses.append(decline)
elif category.match(line) != None:
elif category.match(line) is not None:
catline = ("\\DeclareCategory{%s}{%s}"
% (classname, category.match(line).groups()[0]))
testclasses.append(catline)

View File

@ -27208,13 +27208,24 @@ Labels are rarely output, as they are redundant in DocBook: this information
\begin_layout Subsection
\change_inserted -970929547 1496610966
\change_inserted 1075283030 1597699417
\begin_inset CommandInset label
LatexCommand label
name "subsec:Paragraph-Style-DocBook"
\end_inset
\change_deleted 1075283030 1597699417
\begin_inset CommandInset label
LatexCommand label
name "subsec:Paragraph-Style-XHTML-1"
\end_inset
\change_inserted -970929547 1496610966
Paragraph styles
\end_layout
@ -27454,6 +27465,264 @@ tag
in the example above.
The default is the name of the float and always needs to be changed, as
DocBook provides no generic tag.
\change_inserted 1075283030 1597698868
\end_layout
\begin_layout Description
\change_inserted 1075283030 1597699399
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597698872
DocBookTagType
\change_unchanged
\end_layout
\end_inset
[
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597700585
block, paragraph, inline
\change_unchanged
\end_layout
\end_inset
] The new-line policy for this tag, see Section
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "subsec:DocBook-New-line-policy"
plural "false"
caps "false"
noprefix "false"
\end_inset
for the details.
\change_unchanged
\end_layout
\begin_layout Subsection
\change_inserted 1075283030 1597699385
New-line policy
\begin_inset CommandInset label
LatexCommand label
name "subsec:DocBook-New-line-policy"
\end_inset
\end_layout
\begin_layout Standard
\change_inserted 1075283030 1597698993
For all tags, there are three possible policies for outputting new lines
(given in the
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597698987
DocBook*TagType
\change_unchanged
\end_layout
\end_inset
attribute):
\end_layout
\begin_layout Itemize
\change_inserted 1075283030 1597699279
\begin_inset Quotes eld
\end_inset
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699012
block
\change_unchanged
\end_layout
\end_inset
\begin_inset Quotes erd
\end_inset
: the opening and closing tags are on their own lines (i.e.
a line feed after and before the opening and the closing tags).
Typical elements are floats.
For instance:
\end_layout
\begin_layout LyX-Code
\change_inserted 1075283030 1597699194
Content before
\end_layout
\begin_layout LyX-Code
\change_inserted 1075283030 1597699194
<blocktag>
\end_layout
\begin_layout LyX-Code
\change_inserted 1075283030 1597699098
Contents of the block.
\end_layout
\begin_layout LyX-Code
\change_inserted 1075283030 1597699196
</blocktag>
\end_layout
\begin_layout LyX-Code
\change_inserted 1075283030 1597699198
Content after
\end_layout
\begin_layout Itemize
\change_inserted 1075283030 1597699289
\begin_inset Quotes eld
\end_inset
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699113
paragraph
\change_unchanged
\end_layout
\end_inset
\begin_inset Quotes erd
\end_inset
: the opening and closing tags are on the same, new line; a line feed is
output before the opening tag and after the closing tag.
Typical elements are paragraphs and list items.
For instance:
\end_layout
\begin_layout LyX-Code
\change_inserted 1075283030 1597699186
Content before
\end_layout
\begin_layout LyX-Code
\change_inserted 1075283030 1597699357
<paratag>Contents of the paragraph.</paratag>
\end_layout
\begin_layout LyX-Code
\change_inserted 1075283030 1597699231
Content after
\end_layout
\begin_layout Itemize
\change_inserted 1075283030 1597699343
\begin_inset Quotes eld
\end_inset
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699307
inline
\change_unchanged
\end_layout
\end_inset
\begin_inset Quotes erd
\end_inset
: the opening and closing tags are on the same line as the rest of the content.
No line feeds are output.
Typical elements are fonts.
For instance:
\end_layout
\begin_layout LyX-Code
\change_inserted 1075283030 1597699585
Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
\end_layout
\begin_layout Standard
\change_inserted 1075283030 1597699585
The default value is always
\begin_inset Quotes eld
\end_inset
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699585
block
\change_unchanged
\end_layout
\end_inset
\begin_inset Quotes erd
\end_inset
.
\change_unchanged
\end_layout
@ -28158,6 +28427,82 @@ NONE
This parameter only makes sense when itemising layouts are used, such as
lists.
\change_inserted 1075283030 1598469472
The most likely value is
\begin_inset Quotes eld
\end_inset
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1598469476
para
\end_layout
\end_inset
\begin_inset Quotes erd
\end_inset
.
\begin_inset Newline newline
\end_inset
When a list item is split using a new line, the item inner tag will be repeated
for each part of the paragraph, parts being separated by new lines.
\end_layout
\begin_layout Description
\change_inserted 1075283030 1597699866
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699853
DocBookItemInnerTagType
\change_unchanged
\end_layout
\end_inset
[
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699866
block, paragraph, inline
\change_unchanged
\end_layout
\end_inset
] The new-line policy for this tag, see Section
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "subsec:DocBook-New-line-policy"
plural "false"
caps "false"
noprefix "false"
\end_inset
for the details.
\change_unchanged
\end_layout
@ -28277,6 +28622,56 @@ itemlabeltag
This parameter only makes sense when itemising layouts are used with a
notion of labels, such as definition lists.
\change_inserted 1075283030 1597699874
\end_layout
\begin_layout Description
\change_inserted 1075283030 1597699874
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699880
DocBookItemLabelTagType
\change_unchanged
\end_layout
\end_inset
[
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699874
block, paragraph, inline
\change_unchanged
\end_layout
\end_inset
] The new-line policy for this tag, see Section
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "subsec:DocBook-New-line-policy"
plural "false"
caps "false"
noprefix "false"
\end_inset
for the details.
\change_unchanged
\end_layout
@ -28352,6 +28747,58 @@ NONE
This parameter only makes sense when itemising layouts are used, such as
lists.
\change_inserted 1075283030 1597699890
\end_layout
\begin_layout Description
\change_inserted 1075283030 1597699890
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699890
DocBookItemTagType
\change_unchanged
\end_layout
\end_inset
[
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699890
block, paragraph, inline
\change_unchanged
\end_layout
\end_inset
] The new-line policy for this tag, see Section
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "subsec:DocBook-New-line-policy"
plural "false"
caps "false"
noprefix "false"
\end_inset
for the details.
\change_unchanged
\end_layout
\begin_layout Description
@ -28487,6 +28934,56 @@ NONE
This parameter only makes sense when itemising layouts are used, such as
lists.
\change_inserted 1075283030 1597699897
\end_layout
\begin_layout Description
\change_inserted 1075283030 1597699897
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699900
DocBookItemWrapperTagType
\change_unchanged
\end_layout
\end_inset
[
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699897
block, paragraph, inline
\change_unchanged
\end_layout
\end_inset
] The new-line policy for this tag, see Section
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "subsec:DocBook-New-line-policy"
plural "false"
caps "false"
noprefix "false"
\end_inset
for the details.
\change_unchanged
\end_layout
@ -28618,6 +29115,58 @@ NONE
, indicating that there is no inner tag: content is directly output without
it.
\change_inserted 1075283030 1597699904
\end_layout
\begin_layout Description
\change_inserted 1075283030 1597699904
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699904
DocBookInnerTagType
\change_unchanged
\end_layout
\end_inset
[
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699904
block, paragraph, inline
\change_unchanged
\end_layout
\end_inset
] The new-line policy for this tag, see Section
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "subsec:DocBook-New-line-policy"
plural "false"
caps "false"
noprefix "false"
\end_inset
for the details.
\change_unchanged
\end_layout
\begin_layout Description
@ -28668,7 +29217,11 @@ section
\end_inset
, and is only overridden when DocBook uses something else for sectioning
(parts and chapters of a book).
(
\change_inserted 1075283030 1597699921
typically,
\change_inserted -970929547 1515110753
parts and chapters of a book).
\change_unchanged
@ -28729,6 +29282,58 @@ tag
in the example above.
The default is the name of the float and always needs to be changed, as
DocBook provides no generic inset tag.
\change_inserted 1075283030 1597699924
\end_layout
\begin_layout Description
\change_inserted 1075283030 1597699924
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699924
DocBookTagType
\change_unchanged
\end_layout
\end_inset
[
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699924
block, paragraph, inline
\change_unchanged
\end_layout
\end_inset
] The new-line policy for this tag, see Section
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "subsec:DocBook-New-line-policy"
plural "false"
caps "false"
noprefix "false"
\end_inset
for the details.
\change_unchanged
\end_layout
\begin_layout Description
@ -28858,7 +29463,57 @@ NONE
, indicating that there is no wrapper tag: tag and content are directly
output without it.
\change_deleted -970929547 1515111523
\change_inserted 1075283030 1597699929
\end_layout
\begin_layout Description
\change_inserted 1075283030 1597699929
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699932
DocBookWrapperTagType
\change_unchanged
\end_layout
\end_inset
[
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597699929
block, paragraph, inline
\change_unchanged
\end_layout
\end_inset
] The new-line policy for this tag, see Section
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "subsec:DocBook-New-line-policy"
plural "false"
caps "false"
noprefix "false"
\end_inset
for the details.
\change_unchanged
\end_layout
@ -29024,9 +29679,63 @@ Bibliography formatting
\begin_layout Standard
\change_deleted 1075283030 1597699984
The
\change_inserted 1075283030 1597699985
Included
\change_inserted -970929547 1515110187
The bibliography cannot be formatted: all fields are always output in the
database-like DocBook format (equivalent to a BibTeX file).
bibliograph
\change_deleted 1075283030 1597699987
y
\change_inserted 1075283030 1597699987
ies
\change_inserted -970929547 1515110187
cannot be formatted: all fields are always output in the database-like
DocBook format (equivalent to a BibTeX file)
\change_inserted 1075283030 1597700117
, using the
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597700120
biblioentry
\change_unchanged
\end_layout
\end_inset
tag
\change_inserted -970929547 1515110187
.
\change_inserted 1075283030 1597700092
\end_layout
\begin_layout Standard
\change_inserted 1075283030 1597700112
When the bibliographic entries are manually inserted into the LyX document
as Bibliography Items, the user deals with formatting themself: there is
no attempt of parsing what the user wrote, the string is directly used
(with the
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted 1075283030 1597700076
bibliomixed
\change_unchanged
\end_layout
\end_inset
tag).
\change_unchanged
\end_layout

View File

@ -650,7 +650,7 @@ contributors = [
"Re: Patches to improve compatibility with modern C++ standard",
"m=158862338815864",
"4 May 2020",
u"Windows compatibility patches, Docbook backend"),
u"Windows compatibility patches, DocBook backend"),
contributor(u"Matthias Kalle Dalheimer",
"kalle () kdab ! net",

View File

@ -155,6 +155,9 @@ Style Author
Series Medium
Shape SmallCaps
EndFont
DocBookTag personname
DocBookWrapperTag author
DocBookInInfo always
End
@ -172,6 +175,12 @@ Style Affiliation
Family Roman
Size Normal
EndFont
DocBookTag affiliation
DocBookWrapperTag author
DocBookWrapperMergeWithPrevious true
DocBookItemTag orgname
DocBookItemTagType paragraph
DocBookInInfo always
End
@ -194,6 +203,13 @@ Style Altaffilation
LabelFont
Color green
EndFont
DocBookTag affiliation
DocBookAttr role='alternate'
DocBookWrapperTag author
DocBookWrapperMergeWithPrevious true
DocBookItemTag orgname
DocBookItemTagType paragraph
DocBookInInfo always
End
@ -213,6 +229,11 @@ Style Email
Size Normal
Shape Italic
EndFont
DocBookTag email
DocBookTagType paragraph
DocBookWrapperTag author
DocBookWrapperMergeWithPrevious true
DocBookInInfo always
End
@ -264,6 +285,11 @@ Style Abstract
Series Bold
Size Normal
EndFont
DocBookAbstract true
DocBookInInfo always
DocBookWrapperTag abstract
DocBookWrapperMergeWithPrevious true
DocBookTag para
End
@ -313,6 +339,10 @@ Style Keywords
Shape Italic
Size Normal
EndFont
DocBookTag keyword
DocBookTagType paragraph
DocBookWrapperTag keywordset
DocBookInInfo always
End
@ -335,7 +365,7 @@ Style Acknowledgements
Shape Italic
EndFont
DocBookTag para
DocBookWrapperTag acknowledgement
DocBookWrapperTag acknowledgements
End
@ -408,6 +438,7 @@ Style MathLetters
Font
Size Normal
EndFont
DocBookTag NONE
End
@ -471,6 +502,9 @@ Style NoteToEditor
Size Normal
Shape Italic
EndFont
DocBookTag remark
DocBookTagType paragraph
DocBookAttr role='to-editor'
End
@ -491,6 +525,9 @@ Style TableRefs
Family Roman
Size Normal
EndFont
DocBookTag remark
DocBookTagType paragraph
DocBookAttr role='tablerefs'
End
@ -511,6 +548,9 @@ Style TableComments
Family Roman
Size Normal
EndFont
DocBookTag remark
DocBookTagType paragraph
DocBookAttr role='tablecomments'
End
@ -526,6 +566,9 @@ Style "Table note"
LabelFont
Color magenta
EndFont
DocBookTag remark
DocBookTagType paragraph
DocBookAttr role='tablenote'
End
@ -548,6 +591,9 @@ InsetLayout "Flex:tablenotemark"
Color magenta
Size Small
EndFont
DocBookTag remark
DocBookTagType paragraph
DocBookAttr role='tablenotemark'
End

View File

@ -67,8 +67,11 @@ Style Software
LabelFont
Shape Italic
EndFont
DocBookWrapperTag para
DocBookTag application
DocBookTag remark
DocBookAttr role='software'
# Override what's taken from Keywords, but not really wanted.
DocBookWrapperTag NONE
DocBookInInfo never
End
# other new commands are mainly for the user preamble

View File

@ -78,8 +78,11 @@ Style Software
LabelFont
Shape Italic
EndFont
DocBookWrapperTag para
DocBookTag application
DocBookTag remark
DocBookAttr role='software'
# Override what's taken from Keywords, but not really wanted.
DocBookWrapperTag NONE
DocBookInInfo never
End
# other new commands are mainly for the user preamble

View File

@ -234,6 +234,7 @@ Style Description
DocBookItemTag listitem
DocBookItemInnerTag para
DocBookItemLabelTag term
DocBookItemLabelTagType paragraph
End
@ -1407,6 +1408,9 @@ Style LyX-Code
Font
Family Typewriter
EndFont
DocBookTag programlisting
DocBookTagType paragraph
DocBookAttr language='lyx'
End
Style NoteItem

View File

@ -269,6 +269,7 @@ Style Description
DocBookItemTag listitem
DocBookItemInnerTag para
DocBookItemLabelTag term
DocBookItemLabelTagType paragraph
End
@ -733,6 +734,9 @@ Style LyX-Code
Font
Family Typewriter
EndFont
DocBookTag programlisting
DocBookTagType paragraph
DocBookAttr language='lyx'
End

View File

@ -142,6 +142,7 @@ Style Description
DocBookItemTag listitem
DocBookItemInnerTag para
DocBookItemLabelTag term
DocBookItemLabelTagType paragraph
End

View File

@ -82,6 +82,10 @@ Style Numbered_Example_(multiline)
EndFont
Requires covington
Category Linguistics
DocBookWrapperTag informalexample
DocBookWrapperAttr role='numbered'
DocBookWrapperMergeWithPrevious true
DocBookTag para
End
@ -107,6 +111,10 @@ Style Numbered_Examples_(consecutive)
LabelString "Custom Numbering|s"
Tooltip "Customize the numeration"
EndArgument
DocBookWrapperTag informalexample
DocBookWrapperAttr role='consecutive'
DocBookWrapperMergeWithPrevious true
DocBookTag para
End

View File

@ -27,6 +27,8 @@ InsetLayout Flex:Noun
EndHTMLStyle
ResetsFont true
CustomPars false
DocBookTag personname
DocBookTagType inline
End
@ -42,6 +44,8 @@ InsetLayout Flex:Emph
HTMLTag em
ResetsFont true
CustomPars false
DocBookTag emphasis
DocBookTagType inline
End
@ -60,6 +64,9 @@ InsetLayout Flex:Strong
HTMLTag strong
ResetsFont true
CustomPars false
DocBookTag personname
DocBookAttr role='bold'
DocBookTagType inline
End
@ -79,4 +86,6 @@ InsetLayout Flex:Code
ResetsFont true
CustomPars false
Spellcheck false
DocBookTag code
DocBookTagType inline
End

View File

@ -38,6 +38,9 @@ Style LyX-Code
Font
Family Typewriter
EndFont
DocBookTag programlisting
DocBookTagType paragraph
DocBookAttr language='lyx'
End

View File

@ -26,7 +26,9 @@ Style Part
Font
Size Larger
EndFont
DocBookTag part
DocBookTag title
DocBookTagType paragraph
DocBookSectionTag part
End
Style Part*
@ -36,5 +38,7 @@ Style Part*
Font
Size Larger
EndFont
DocBookTag part
DocBookTag title
DocBookTagType paragraph
DocBookSectionTag part
End

View File

@ -18,7 +18,9 @@ NoStyle Abstract
Style Chapter
LabelString "\thechapter"
TocLevel 0
DocBookTag chapter
DocBookTag title
DocBookTagType paragraph
DocBookSectionTag chapter
End

View File

@ -69,6 +69,7 @@ Style Labeling
DocBookItemTag listitem
DocBookItemInnerTag para
DocBookItemLabelTag term
DocBookItemLabelTagType paragraph
End
Input stdsections.inc

View File

@ -35,41 +35,51 @@ Style "CD label"
ParSkip 0.4
Align Block
LabelType No_Label
DocBookWrapperTag sidebar
DocBookWrapperAttr role='cd-label'
DocBookTag para
End
Style "Circle"
CopyStyle "CD label"
LatexName circlepar
DocBookWrapperAttr role='circle'
End
Style "Diamond"
CopyStyle "CD label"
LatexName diamondpar
DocBookWrapperAttr role='diamond'
End
Style "Heart"
CopyStyle "CD label"
LatexName heartpar
DocBookWrapperAttr role='heart'
End
Style "Hexagon"
CopyStyle "CD label"
LatexName hexagonpar
DocBookWrapperAttr role='hexagon'
End
Style "Nut"
CopyStyle "CD label"
LatexName nutpar
DocBookWrapperAttr role='nut'
End
Style "Square"
CopyStyle "CD label"
LatexName squarepar
DocBookWrapperAttr role='square'
End
Style "Star"
CopyStyle "CD label"
LatexName starpar
DocBookWrapperAttr role='star'
End
# now the shapes defined in the .def files
@ -77,41 +87,49 @@ End
Style "Candle"
CopyStyle "CD label"
LatexName shapepar{\candle}
DocBookWrapperAttr role='candle'
End
Style "Drop down"
CopyStyle "CD label"
LatexName droppar
DocBookWrapperAttr role='drop-down'
End
Style "Drop up"
CopyStyle "CD label"
LatexName dropuppar
DocBookWrapperAttr role='drop-up'
End
Style "TeX"
CopyStyle "CD label"
LatexName shapepar{\TeXshape}
DocBookWrapperAttr role='tex'
End
Style "Triangle up"
CopyStyle "CD label"
LatexName triangleuppar
DocBookWrapperAttr role='triangle-up'
End
Style "Triangle down"
CopyStyle "CD label"
LatexName triangledownpar
DocBookWrapperAttr role='triangle-down'
End
Style "Triangle left"
CopyStyle "CD label"
LatexName triangleleftpar
DocBookWrapperAttr role='triangle-left'
End
Style "Triangle right"
CopyStyle "CD label"
LatexName trianglerightpar
DocBookWrapperAttr role='triangle-right'
End
# finally the low-level commands

View File

@ -54,6 +54,7 @@ Style Section
IsTocCaption 1
EndArgument
DocBookTag title
DocBookTagType paragraph
DocBookSectionTag section
End
@ -176,6 +177,7 @@ Style Title
EndFont
HTMLTitle true
DocBookTag title
DocBookTagType paragraph
DocBookInInfo maybe
End

View File

@ -20,7 +20,6 @@ Float
UsesFloatPkg false
ListCommand listoftables
RefPrefix tab
DocBookTag table
End
@ -36,7 +35,6 @@ Float
UsesFloatPkg false
ListCommand listoffigures
RefPrefix fig
DocBookTag figure
End
@ -51,7 +49,6 @@ Float
IsPredefined false
UsesFloatPkg true
RefPrefix alg
DocBookTag figure # TODO: No DocBook tag really corresponds...
End

View File

@ -44,8 +44,7 @@ InsetLayout Marginal
EndHTMLStyle
AddToToc marginalnote
IsTocCaption true
DocBookTag sidebar
DocBookAttr role="margin"
DocBookTag para
End
InsetLayout Foot
@ -435,6 +434,8 @@ InsetLayout Box
Size Small
EndFont
MultiPar true
DocBookWrapperTag sidebar
DocBookTag para
End
InsetLayout Box:Frameless
@ -442,6 +443,9 @@ InsetLayout Box:Frameless
HTMLStyle
div.Frameless { margin: 1em; }
EndHTMLStyle
DocBookWrapperTag sidebar
DocBookTag para
DocBookWrapperAttr role='frameless'
End
InsetLayout Box:Shaded
@ -453,6 +457,9 @@ InsetLayout Box:Shaded
padding: 0.5ex;
}
EndHTMLStyle
DocBookWrapperTag sidebar
DocBookTag para
DocBookWrapperAttr role='shaded'
End
InsetLayout Box:Boxed
@ -463,6 +470,9 @@ InsetLayout Box:Boxed
padding: 0.5ex;
}
EndHTMLStyle
DocBookWrapperTag sidebar
DocBookTag para
DocBookWrapperAttr role='boxed'
End
InsetLayout Box:Framed
@ -473,6 +483,9 @@ InsetLayout Box:Framed
padding: 0.5ex;
}
EndHTMLStyle
DocBookWrapperTag sidebar
DocBookTag para
DocBookWrapperAttr role='framed'
End
InsetLayout Box:ovalbox
@ -483,6 +496,9 @@ InsetLayout Box:ovalbox
padding: 0.5ex;
}
EndHTMLStyle
DocBookWrapperTag sidebar
DocBookTag para
DocBookWrapperAttr role='ovalbox'
End
InsetLayout Box:Ovalbox
@ -493,6 +509,9 @@ InsetLayout Box:Ovalbox
padding: 0.5ex;
}
EndHTMLStyle
DocBookWrapperTag sidebar
DocBookTag para
DocBookWrapperAttr role='ovalbox-var'
End
InsetLayout Box:Shadowbox
@ -500,6 +519,9 @@ InsetLayout Box:Shadowbox
HTMLStyle
div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
EndHTMLStyle
DocBookWrapperTag sidebar
DocBookTag para
DocBookWrapperAttr role='shadowbox'
End
InsetLayout Box:Doublebox
@ -510,6 +532,9 @@ InsetLayout Box:Doublebox
padding: 0.5ex;
}
EndHTMLStyle
DocBookWrapperTag sidebar
DocBookTag para
DocBookWrapperAttr role='doublebox'
End
InsetLayout Float
@ -610,6 +635,8 @@ InsetLayout Info:menu
HTMLStyle
span.menu { font-family: sans-serif; }
EndHTMLStyle
DocBookTag guimenu
DocBookTagType inline
End
InsetLayout Info:shortcut
@ -627,6 +654,10 @@ InsetLayout Info:shortcut
HTMLStyle
span.shortcut { font-family: sans-serif; }
EndHTMLStyle
DocBookWrapperTag keycombo
DocBookWrapperTagType inline
DocBookTag keycap
DocBookTagType inline
End
InsetLayout Info:shortcuts
@ -644,6 +675,10 @@ InsetLayout Info:shortcuts
HTMLStyle
span.shortcuts { font-family: sans-serif; }
EndHTMLStyle
DocBookWrapperTag keycombo
DocBookWrapperTagType inline
DocBookTag keycap
DocBookTagType inline
End
InsetLayout Caption:Standard

View File

@ -7,7 +7,7 @@
# quotations and such.
Format 82
Format 84
Style Quotation
Category MainText
@ -28,8 +28,9 @@ Style Quotation
AlignPossible Block, Left, Right, Center
HTMLTag blockquote
HTMLItem div
DocBookTag blockquote
DocBookItemTag para
DocBookWrapperTag blockquote
DocBookWrapperMergeWithPrevious true
DocBookTag para
End
@ -50,8 +51,9 @@ Style Quote
LabelType No_Label
HTMLTag blockquote
HTMLItem div
DocBookTag blockquote
DocBookItemTag para
DocBookWrapperTag blockquote
DocBookWrapperMergeWithPrevious true
DocBookTag para
End

View File

@ -6,7 +6,7 @@
# This include files contains various standard environments for lists.
Format 82
Format 84
Input stdlyxlist.inc
@ -132,6 +132,7 @@ Style Description
DocBookItemTag listitem
DocBookItemInnerTag para
DocBookItemLabelTag term
DocBookItemLabelTagType paragraph
End

View File

@ -7,7 +7,7 @@
# commands that are useful for article-like document classes, but not
# for letters.
Format 82
Format 84
Style Part
Category Sectioning
@ -40,6 +40,7 @@ Style Part
EndFont
HTMLTag h1
DocBookTag title
DocBookTagType paragraph
DocBookSectionTag part
DocBookForceAbstractTag partintro
End
@ -75,6 +76,7 @@ Style Chapter
EndFont
HTMLTag h1
DocBookTag title
DocBookTagType paragraph
DocBookSectionTag chapter
End
@ -108,6 +110,7 @@ Style Section
EndFont
HTMLTag h2
DocBookTag title
DocBookTagType paragraph
DocBookSectionTag section
End

View File

@ -19,7 +19,7 @@ Style Part*
LabelCounter ""
ResetArgs 1
DocBookTag bridgehead
DocBookAttr renderas="part"
DocBookAttr "renderas='other' otherrenderas='part'"
DocBookSectionTag NONE
DocBookForceAbstractTag NONE
End
@ -34,7 +34,7 @@ Style Chapter*
LabelCounter ""
ResetArgs 1
DocBookTag bridgehead
DocBookAttr renderas="chapter"
DocBookAttr "renderas='other' otherrenderas='chapter'"
DocBookSectionTag NONE
DocBookForceAbstractTag NONE
End
@ -49,7 +49,7 @@ Style Section*
LabelCounter ""
ResetArgs 1
DocBookTag bridgehead
DocBookAttr renderas="sect1"
DocBookAttr renderas='sect1'
DocBookSectionTag NONE
DocBookForceAbstractTag NONE
End
@ -64,7 +64,7 @@ Style Subsection*
LabelCounter ""
ResetArgs 1
DocBookTag bridgehead
DocBookAttr renderas="sect2"
DocBookAttr renderas='sect2'
DocBookSectionTag NONE
DocBookForceAbstractTag NONE
End
@ -79,7 +79,7 @@ Style Subsubsection*
LabelCounter ""
ResetArgs 1
DocBookTag bridgehead
DocBookAttr renderas="sect3"
DocBookAttr renderas='sect3'
DocBookSectionTag NONE
DocBookForceAbstractTag NONE
End
@ -94,7 +94,7 @@ Style Paragraph*
LabelCounter ""
ResetArgs 1
DocBookTag bridgehead
DocBookAttr renderas="sect4"
DocBookAttr renderas='sect4'
DocBookSectionTag NONE
DocBookForceAbstractTag NONE
End
@ -109,7 +109,7 @@ Style Subparagraph*
LabelCounter ""
ResetArgs 1
DocBookTag bridgehead
DocBookAttr renderas="sect5"
DocBookAttr renderas='sect5'
DocBookSectionTag NONE
DocBookForceAbstractTag NONE
End

View File

@ -8,7 +8,7 @@
# a document, like abstract, bibliography and such.
Format 82
Format 84
Style Abstract
Margin Static
@ -49,9 +49,11 @@ Style Abstract
font-weight: bold;
}
EndHTMLStyle
DocBookTag abstract
DocBookItemTag para
DocBookAbstract true
DocBookInInfo always
DocBookWrapperTag abstract
DocBookWrapperMergeWithPrevious true
DocBookTag para
End

View File

@ -8,7 +8,7 @@
# a document, like title, author and such.
Format 82
Format 84
Style Title
Margin Static
@ -29,6 +29,7 @@ Style Title
HTMLTag h1
HTMLTitle true
DocBookTag title
DocBookTagType paragraph
DocBookInInfo maybe
End
@ -50,7 +51,9 @@ Style Author
Size Large
EndFont
DocBookTag personname
DocBookTagType paragraph
DocBookWrapperTag author
DocBookWrapperTagType inline
DocBookInInfo always
End
@ -72,5 +75,6 @@ Style Date
Size Large
EndFont
DocBookTag date
DocBookTagType paragraph
DocBookInInfo always
End

View File

@ -620,6 +620,7 @@ Style Description
DocBookItemTag listitem
DocBookItemInnerTag para
DocBookItemLabelTag term
DocBookItemLabelTagType paragraph
End
Style Petit

View File

@ -110,6 +110,8 @@ Style Theorem
\addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
EndBabelPreamble
Requires amsthm
DocBookTag para
DocBookAttr role='theorem'
End
@ -128,6 +130,8 @@ Style Corollary
BabelPreamble
\addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='corollary'
End
@ -146,6 +150,8 @@ Style Lemma
\addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
EndBabelPreamble
LabelCounter lemma
DocBookTag para
DocBookAttr role='lemma'
End
@ -164,6 +170,8 @@ Style Proposition
\addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
EndBabelPreamble
LabelCounter proposition
DocBookTag para
DocBookAttr role='proposition'
End
@ -182,6 +190,8 @@ Style Conjecture
\addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
EndBabelPreamble
LabelCounter conjecture
DocBookTag para
DocBookAttr role='conjecture'
End
@ -200,6 +210,8 @@ Style Fact
\addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
EndBabelPreamble
LabelCounter fact
DocBookTag para
DocBookAttr role='fact'
End
@ -225,6 +237,8 @@ Style Definition
\addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
EndBabelPreamble
LabelCounter definition
DocBookTag para
DocBookAttr role='definition'
End
@ -244,6 +258,9 @@ Style Example
\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
EndBabelPreamble
LabelCounter example
DocBookWrapperTag informalexample
DocBookTag para
DocBookAttr ""
End
@ -263,6 +280,8 @@ Style Problem
\addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
EndBabelPreamble
LabelCounter problem
DocBookTag para
DocBookAttr role='problem'
End
@ -282,6 +301,8 @@ Style Exercise
\addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
EndBabelPreamble
LabelCounter exercise
DocBookTag para
DocBookAttr role='exercise'
End
@ -301,6 +322,8 @@ Style Solution
\addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
EndBabelPreamble
LabelCounter solution
DocBookTag para
DocBookAttr role='solution'
End
@ -348,6 +371,9 @@ Style Claim
\addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
EndBabelPreamble
LabelCounter claim
DocBookTag para
DocBookAttr role='claim'
DocBookItemTag ""
End
Input theorems-case.inc

View File

@ -129,6 +129,8 @@ Style Theorem
\addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
EndBabelPreamble
Requires amsthm
DocBookTag para
DocBookAttr role='theorem'
End
@ -151,6 +153,8 @@ Style Corollary
BabelPreamble
\addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='corollary'
End
@ -173,6 +177,8 @@ Style Lemma
\addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
EndBabelPreamble
LabelCounter lemma
DocBookTag para
DocBookAttr role='lemma'
End
@ -195,6 +201,8 @@ Style Proposition
\addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
EndBabelPreamble
LabelCounter proposition
DocBookTag para
DocBookAttr role='proposition'
End
@ -217,6 +225,8 @@ Style Conjecture
\addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
EndBabelPreamble
LabelCounter conjecture
DocBookTag para
DocBookAttr role='conjecture'
End
@ -239,6 +249,8 @@ Style Fact
\addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
EndBabelPreamble
LabelCounter fact
DocBookTag para
DocBookAttr role='fact'
End
@ -268,6 +280,8 @@ Style Definition
\addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
EndBabelPreamble
LabelCounter definition
DocBookTag para
DocBookAttr role='definition'
End
@ -291,6 +305,9 @@ Style Example
\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
EndBabelPreamble
LabelCounter example
DocBookWrapperTag informalexample
DocBookTag para
DocBookAttr ""
End
@ -314,6 +331,8 @@ Style Problem
\addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
EndBabelPreamble
LabelCounter problem
DocBookTag para
DocBookAttr role='problem'
End
@ -337,6 +356,8 @@ Style Exercise
\addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
EndBabelPreamble
LabelCounter exercise
DocBookTag para
DocBookAttr role='exercise'
End
@ -360,6 +381,8 @@ Style Solution
\addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
EndBabelPreamble
LabelCounter solution
DocBookTag para
DocBookAttr role='solution'
End
@ -415,6 +438,9 @@ Style Claim
\addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
EndBabelPreamble
LabelCounter claim
DocBookTag para
DocBookAttr role='claim'
DocBookItemTag ""
End

View File

@ -87,6 +87,9 @@ Style Criterion
\addto\captions$$lang{\renewcommand{\criterionname}{_(Criterion)}}
EndBabelPreamble
LabelCounter criterion
DocBookTag para
DocBookAttr role='criterion'
DocBookItemTag ""
End
Style Criterion*
@ -103,6 +106,9 @@ Style Criterion*
BabelPreamble
\addto\captions$$lang{\renewcommand{\criterionname}{_(Criterion)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='criterion'
DocBookItemTag ""
End
@ -121,6 +127,9 @@ Style Algorithm
\addto\captions$$lang{\renewcommand{\algorithmname}{_(Algorithm)}}
EndBabelPreamble
LabelCounter algorithm
DocBookTag para
DocBookAttr role='algorithm'
DocBookItemTag ""
End
@ -138,6 +147,9 @@ Style Algorithm*
BabelPreamble
\addto\captions$$lang{\renewcommand{\algorithmname}{_(Algorithm)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='algorithm'
DocBookItemTag ""
End
@ -156,6 +168,9 @@ Style Axiom
\addto\captions$$lang{\renewcommand{\axiomname}{_(Axiom)}}
EndBabelPreamble
LabelCounter axiom
DocBookTag para
DocBookAttr role='axiom'
DocBookItemTag ""
End
@ -173,6 +188,9 @@ Style Axiom*
BabelPreamble
\addto\captions$$lang{\renewcommand{\axiomname}{_(Axiom)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='axiom'
DocBookItemTag ""
End
@ -191,6 +209,9 @@ Style Condition
\addto\captions$$lang{\renewcommand{\conditionname}{_(Condition)}}
EndBabelPreamble
LabelCounter condition
DocBookTag para
DocBookAttr role='condition'
DocBookItemTag ""
End
@ -208,6 +229,9 @@ Style Condition*
BabelPreamble
\addto\captions$$lang{\renewcommand{\conditionname}{_(Condition)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='condition'
DocBookItemTag ""
End
@ -226,6 +250,8 @@ Style Note
\addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
EndBabelPreamble
LabelCounter note
DocBookTag note
DocBookItemTag para
End
@ -243,6 +269,8 @@ Style Note*
BabelPreamble
\addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
EndBabelPreamble
DocBookTag note
DocBookItemTag para
End
@ -261,6 +289,9 @@ Style Notation
\addto\captions$$lang{\renewcommand{\notationname}{_(Notation)}}
EndBabelPreamble
LabelCounter notation
DocBookTag para
DocBookAttr role='notation'
DocBookItemTag ""
End
@ -278,6 +309,9 @@ Style Notation*
BabelPreamble
\addto\captions$$lang{\renewcommand{\notationname}{_(Notation)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='notation'
DocBookItemTag ""
End
@ -296,6 +330,9 @@ Style Summary
\addto\captions$$lang{\renewcommand{\summaryname}{_(Summary)}}
EndBabelPreamble
LabelCounter summary
DocBookTag para
DocBookAttr role='summary'
DocBookItemTag ""
End
@ -313,6 +350,9 @@ Style Summary*
BabelPreamble
\addto\captions$$lang{\renewcommand{\summaryname}{_(Summary)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='summary'
DocBookItemTag ""
End
@ -331,6 +371,9 @@ Style Acknowledgement
\addto\captions$$lang{\renewcommand{\acknowledgementname}{_(Acknowledgement)}}
EndBabelPreamble
LabelCounter acknowledgement
DocBookTag para
DocBookAttr role='acknowledgement'
DocBookItemTag ""
End
@ -348,6 +391,9 @@ Style Acknowledgement*
BabelPreamble
\addto\captions$$lang{\renewcommand{\acknowledgementname}{_(Acknowledgement)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='acknowledgement'
DocBookItemTag ""
End
@ -366,6 +412,9 @@ Style Conclusion
\addto\captions$$lang{\renewcommand{\conclusionname}{_(Conclusion)}}
EndBabelPreamble
LabelCounter conclusion
DocBookTag para
DocBookAttr role='conclusion'
DocBookItemTag ""
End
@ -383,6 +432,9 @@ Style Conclusion*
BabelPreamble
\addto\captions$$lang{\renewcommand{\conclusionname}{_(Conclusion)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='conclusion'
DocBookItemTag ""
End
@ -401,6 +453,9 @@ Style Assumption
\addto\captions$$lang{\renewcommand{\assumptionname}{_(Assumption)}}
EndBabelPreamble
LabelCounter assumption
DocBookTag para
DocBookAttr role='assumption'
DocBookItemTag ""
End
@ -418,6 +473,9 @@ Style Assumption*
BabelPreamble
\addto\captions$$lang{\renewcommand{\assumptionname}{_(Assumption)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='assumption'
DocBookItemTag ""
End
Style Question
@ -436,6 +494,9 @@ Style Question
\addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
EndBabelPreamble
LabelCounter question
DocBookTag para
DocBookAttr role='question'
DocBookItemTag ""
End
Style Question*
@ -452,6 +513,9 @@ Style Question*
BabelPreamble
\addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='question'
DocBookItemTag ""
End
Input theorems-refprefix.inc

View File

@ -105,6 +105,9 @@ Style Criterion
\addto\captions$$lang{\renewcommand{\criterionname}{_(Criterion)}}
EndBabelPreamble
LabelCounter criterion
DocBookTag para
DocBookAttr role='criterion'
DocBookItemTag ""
End
@ -122,6 +125,9 @@ Style Criterion*
BabelPreamble
\addto\captions$$lang{\renewcommand{\criterionname}{_(Criterion)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='criterion'
DocBookItemTag ""
End
@ -144,6 +150,9 @@ Style Algorithm
\addto\captions$$lang{\renewcommand{\algorithmname}{_(Algorithm)}}
EndBabelPreamble
LabelCounter algorithm
DocBookTag para
DocBookAttr role='algorithm'
DocBookItemTag ""
End
@ -161,6 +170,9 @@ Style Algorithm*
BabelPreamble
\addto\captions$$lang{\renewcommand{\algorithmname}{_(Algorithm)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='algorithm'
DocBookItemTag ""
End
@ -183,6 +195,9 @@ Style Axiom
\addto\captions$$lang{\renewcommand{\axiomname}{_(Axiom)}}
EndBabelPreamble
LabelCounter axiom
DocBookTag para
DocBookAttr role='axiom'
DocBookItemTag ""
End
@ -200,6 +215,9 @@ Style Axiom*
BabelPreamble
\addto\captions$$lang{\renewcommand{\axiomname}{_(Axiom)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='axiom'
DocBookItemTag ""
End
@ -222,6 +240,9 @@ Style Condition
\addto\captions$$lang{\renewcommand{\conditionname}{_(Condition)}}
EndBabelPreamble
LabelCounter condition
DocBookTag para
DocBookAttr role='condition'
DocBookItemTag ""
End
@ -239,6 +260,9 @@ Style Condition*
BabelPreamble
\addto\captions$$lang{\renewcommand{\conditionname}{_(Condition)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='condition'
DocBookItemTag ""
End
@ -261,6 +285,8 @@ Style Note
\addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
EndBabelPreamble
LabelCounter note
DocBookTag note
DocBookItemTag para
End
@ -278,6 +304,8 @@ Style Note*
BabelPreamble
\addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
EndBabelPreamble
DocBookTag note
DocBookItemTag para
End
@ -300,6 +328,9 @@ Style Notation
\addto\captions$$lang{\renewcommand{\notationname}{_(Notation)}}
EndBabelPreamble
LabelCounter notation
DocBookTag para
DocBookAttr role='notation'
DocBookItemTag ""
End
@ -317,6 +348,9 @@ Style Notation*
BabelPreamble
\addto\captions$$lang{\renewcommand{\notationname}{_(Notation)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='notation'
DocBookItemTag ""
End
@ -340,6 +374,9 @@ Style Summary
\addto\captions$$lang{\renewcommand{\summaryname}{_(Summary)}}
EndBabelPreamble
LabelCounter summary
DocBookTag para
DocBookAttr role='summary'
DocBookItemTag ""
End
@ -357,6 +394,9 @@ Style Summary*
BabelPreamble
\addto\captions$$lang{\renewcommand{\summaryname}{_(Summary)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='summary'
DocBookItemTag ""
End
@ -379,6 +419,9 @@ Style Acknowledgement
\addto\captions$$lang{\renewcommand{\acknowledgementname}{_(Acknowledgement)}}
EndBabelPreamble
LabelCounter acknowledgement
DocBookTag para
DocBookAttr role='acknowledgement'
DocBookItemTag ""
End
@ -396,6 +439,9 @@ Style Acknowledgement*
BabelPreamble
\addto\captions$$lang{\renewcommand{\acknowledgementname}{_(Acknowledgement)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='acknowledgement'
DocBookItemTag ""
End
@ -418,6 +464,9 @@ Style Conclusion
\addto\captions$$lang{\renewcommand{\conclusionname}{_(Conclusion)}}
EndBabelPreamble
LabelCounter conclusion
DocBookTag para
DocBookAttr role='conclusion'
DocBookItemTag ""
End
@ -435,6 +484,9 @@ Style Conclusion*
BabelPreamble
\addto\captions$$lang{\renewcommand{\conclusionname}{_(Conclusion)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='conclusion'
DocBookItemTag ""
End
@ -457,6 +509,9 @@ Style Assumption
\addto\captions$$lang{\renewcommand{\assumptionname}{_(Assumption)}}
EndBabelPreamble
LabelCounter assumption
DocBookTag para
DocBookAttr role='assumption'
DocBookItemTag ""
End
@ -474,6 +529,9 @@ Style Assumption*
BabelPreamble
\addto\captions$$lang{\renewcommand{\assumptionname}{_(Assumption)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='assumption'
DocBookItemTag ""
End
Style Question
@ -496,6 +554,9 @@ Style Question
\addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
EndBabelPreamble
LabelCounter question
DocBookTag para
DocBookAttr role='question'
DocBookItemTag ""
End
Style Question*
@ -512,6 +573,9 @@ Style Question*
BabelPreamble
\addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='question'
DocBookItemTag ""
End
Input theorems-refprefix.inc

View File

@ -48,6 +48,9 @@ Style Criterion
BabelPreamble
\addto\captions$$lang{\renewcommand{\criterionname}{_(Criterion)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='criterion'
DocBookItemTag ""
End
Style Criterion*
@ -64,6 +67,9 @@ Style Criterion*
BabelPreamble
\addto\captions$$lang{\renewcommand{\criterionname}{_(Criterion)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='criterion'
DocBookItemTag ""
End
@ -82,6 +88,9 @@ Style Algorithm
BabelPreamble
\addto\captions$$lang{\renewcommand{\algorithmname}{_(Algorithm)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='algorithm'
DocBookItemTag ""
End
@ -99,6 +108,9 @@ Style Algorithm*
BabelPreamble
\addto\captions$$lang{\renewcommand{\algorithmname}{_(Algorithm)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='algorithm'
DocBookItemTag ""
End
@ -117,6 +129,9 @@ Style Axiom
BabelPreamble
\addto\captions$$lang{\renewcommand{\axiomname}{_(Axiom)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='axiom'
DocBookItemTag ""
End
@ -134,6 +149,9 @@ Style Axiom*
BabelPreamble
\addto\captions$$lang{\renewcommand{\axiomname}{_(Axiom)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='axiom'
DocBookItemTag ""
End
@ -151,6 +169,9 @@ Style Condition
BabelPreamble
\addto\captions$$lang{\renewcommand{\conditionname}{_(Condition)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='condition'
DocBookItemTag ""
End
@ -168,6 +189,9 @@ Style Condition*
BabelPreamble
\addto\captions$$lang{\renewcommand{\conditionname}{_(Condition)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='condition'
DocBookItemTag ""
End
@ -185,6 +209,8 @@ Style Note
BabelPreamble
\addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
EndBabelPreamble
DocBookTag note
DocBookItemTag para
End
@ -202,6 +228,8 @@ Style Note*
BabelPreamble
\addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
EndBabelPreamble
DocBookTag note
DocBookItemTag para
End
@ -219,6 +247,9 @@ Style Notation
BabelPreamble
\addto\captions$$lang{\renewcommand{\notationname}{_(Notation)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='notation'
DocBookItemTag ""
End
@ -236,6 +267,9 @@ Style Notation*
BabelPreamble
\addto\captions$$lang{\renewcommand{\notationname}{_(Notation)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='notation'
DocBookItemTag ""
End
@ -253,6 +287,9 @@ Style Summary
BabelPreamble
\addto\captions$$lang{\renewcommand{\summaryname}{_(Summary)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='summary'
DocBookItemTag ""
End
@ -270,6 +307,9 @@ Style Summary*
BabelPreamble
\addto\captions$$lang{\renewcommand{\summaryname}{_(Summary)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='summary'
DocBookItemTag ""
End
@ -287,6 +327,9 @@ Style Acknowledgement
BabelPreamble
\addto\captions$$lang{\renewcommand{\acknowledgementname}{_(Acknowledgement)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='acknowledgement'
DocBookItemTag ""
End
@ -304,6 +347,9 @@ Style Acknowledgement*
BabelPreamble
\addto\captions$$lang{\renewcommand{\acknowledgementname}{_(Acknowledgement)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='acknowledgement'
DocBookItemTag ""
End
@ -321,6 +367,9 @@ Style Conclusion
BabelPreamble
\addto\captions$$lang{\renewcommand{\conclusionname}{_(Conclusion)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='conclusion'
DocBookItemTag ""
End
@ -338,6 +387,9 @@ Style Conclusion*
BabelPreamble
\addto\captions$$lang{\renewcommand{\conclusionname}{_(Conclusion)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='conclusion'
DocBookItemTag ""
End
@ -356,6 +408,9 @@ Style Assumption
BabelPreamble
\addto\captions$$lang{\renewcommand{\assumptionname}{_(Assumption)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='assumption'
DocBookItemTag ""
End
@ -373,6 +428,9 @@ Style Assumption*
BabelPreamble
\addto\captions$$lang{\renewcommand{\assumptionname}{_(Assumption)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='assumption'
DocBookItemTag ""
End
Style Question
@ -390,6 +448,9 @@ Style Question
BabelPreamble
\addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='question'
DocBookItemTag ""
End
Style Question*
@ -406,6 +467,9 @@ Style Question*
BabelPreamble
\addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='question'
DocBookItemTag ""
End
Input theorems-refprefix.inc

View File

@ -69,6 +69,8 @@ Style Theorem
\addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
EndBabelPreamble
Requires amsthm
DocBookTag para
DocBookAttr role='theorem'
End
@ -87,6 +89,8 @@ Style Corollary
BabelPreamble
\addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='corollary'
End
@ -105,6 +109,8 @@ Style Lemma
BabelPreamble
\addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='lemma'
End
@ -123,6 +129,8 @@ Style Proposition
BabelPreamble
\addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='proposition'
End
@ -141,6 +149,8 @@ Style Conjecture
BabelPreamble
\addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='conjecture'
End
@ -159,6 +169,8 @@ Style Fact
BabelPreamble
\addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='fact'
End
@ -184,6 +196,8 @@ Style Definition
BabelPreamble
\addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='definition'
End
@ -201,6 +215,9 @@ Style Example
BabelPreamble
\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
EndBabelPreamble
DocBookWrapperTag informalexample
DocBookTag para
DocBookAttr ""
End
@ -218,6 +235,8 @@ Style Problem
BabelPreamble
\addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='problem'
End
@ -235,6 +254,8 @@ Style Exercise
BabelPreamble
\addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='exercise'
End
@ -252,6 +273,8 @@ Style Solution
BabelPreamble
\addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='solution'
End
@ -297,6 +320,9 @@ Style Claim
BabelPreamble
\addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='claim'
DocBookItemTag ""
End
Input theorems-case.inc

View File

@ -66,6 +66,8 @@ Style Theorem
\addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
EndBabelPreamble
Requires amsthm
DocBookTag para
DocBookAttr role='theorem'
End
@ -84,6 +86,8 @@ Style Corollary
\addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
EndBabelPreamble
LabelCounter corollary
DocBookTag para
DocBookAttr role='corollary'
End
@ -102,6 +106,8 @@ Style Lemma
\addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
EndBabelPreamble
LabelCounter lemma
DocBookTag para
DocBookAttr role='lemma'
End
@ -120,6 +126,8 @@ Style Proposition
\addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
EndBabelPreamble
LabelCounter proposition
DocBookTag para
DocBookAttr role='proposition'
End
@ -138,6 +146,8 @@ Style Conjecture
\addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
EndBabelPreamble
LabelCounter conjecture
DocBookTag para
DocBookAttr role='conjecture'
End
@ -156,6 +166,8 @@ Style Fact
\addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
EndBabelPreamble
LabelCounter fact
DocBookTag para
DocBookAttr role='fact'
End
@ -181,6 +193,8 @@ Style Definition
\addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
EndBabelPreamble
LabelCounter definition
DocBookTag para
DocBookAttr role='definition'
End
@ -200,6 +214,9 @@ Style Example
\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
EndBabelPreamble
LabelCounter example
DocBookWrapperTag informalexample
DocBookTag para
DocBookAttr ""
End
@ -219,6 +236,8 @@ Style Problem
\addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
EndBabelPreamble
LabelCounter problem
DocBookTag para
DocBookAttr role='problem'
End
@ -238,6 +257,8 @@ Style Exercise
\addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
EndBabelPreamble
LabelCounter exercise
DocBookTag para
DocBookAttr role='exercise'
End
@ -257,6 +278,8 @@ Style Solution
\addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
EndBabelPreamble
LabelCounter solution
DocBookTag para
DocBookAttr role='solution'
End
@ -304,6 +327,9 @@ Style Claim
\addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
EndBabelPreamble
LabelCounter claim
DocBookTag para
DocBookAttr role='claim'
DocBookItemTag ""
End
Input theorems-case.inc

View File

@ -86,4 +86,6 @@ Style Case
\addto\captions$$lang{\renewcommand{\casename}{_(Case)}}
EndBabelPreamble
RefPrefix OFF
DocBookTag para
DocBookAttr role='cases'
End

View File

@ -18,4 +18,6 @@ Style Proof
\fi
EndPreamble
# No LangPreamble or BabelPreamble, since babel knows \proofname already.
DocBookTag para
DocBookAttr role='proof'
End

View File

@ -40,5 +40,7 @@ Style Proof
LabelFont
Shape Italic
EndFont
DocBookTag para
DocBookAttr role='proof'
End

View File

@ -67,6 +67,8 @@ Style Theorem*
\addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
EndBabelPreamble
Requires amsthm
DocBookTag para
DocBookAttr role='theorem'
End
@ -84,6 +86,8 @@ Style Corollary*
BabelPreamble
\addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='corollary'
End
@ -101,6 +105,8 @@ Style Lemma*
BabelPreamble
\addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='lemma'
End
@ -118,6 +124,8 @@ Style Proposition*
BabelPreamble
\addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='proposition'
End
@ -135,6 +143,8 @@ Style Conjecture*
BabelPreamble
\addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='conjecture'
End
@ -152,6 +162,8 @@ Style Fact*
BabelPreamble
\addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='fact'
End
@ -177,6 +189,8 @@ Style Definition*
BabelPreamble
\addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='definition'
End
@ -194,6 +208,9 @@ Style Example*
BabelPreamble
\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
EndBabelPreamble
DocBookWrapperTag informalexample
DocBookTag para
DocBookAttr ""
End
@ -211,6 +228,8 @@ Style Problem*
BabelPreamble
\addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='problem'
End
@ -228,6 +247,8 @@ Style Exercise*
BabelPreamble
\addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='exercise'
End
@ -245,6 +266,8 @@ Style Solution*
BabelPreamble
\addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='solution'
End
@ -270,6 +293,8 @@ Style Remark*
BabelPreamble
\addto\captions$$lang{\renewcommand{\remarkname}{_(Remark)}}
EndBabelPreamble
DocBookTag note
DocBookItemTag para
End
@ -287,5 +312,8 @@ Style Claim*
BabelPreamble
\addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='claim'
DocBookItemTag ""
End

View File

@ -72,6 +72,8 @@ Style Theorem
BabelPreamble
\addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='theorem'
End
@ -89,6 +91,8 @@ Style Corollary
BabelPreamble
\addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='corollary'
End
@ -106,6 +110,8 @@ Style Lemma
BabelPreamble
\addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='lemma'
End
@ -123,6 +129,8 @@ Style Proposition
BabelPreamble
\addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='proposition'
End
@ -140,6 +148,8 @@ Style Prop
LabelFont
Series Medium
EndFont
DocBookTag para
DocBookAttr role='proposition'
End
@ -164,6 +174,8 @@ Style Conjecture
BabelPreamble
\addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='conjecture'
End
@ -181,6 +193,8 @@ Style Fact
BabelPreamble
\addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='fact'
End
@ -206,6 +220,8 @@ Style Definition
BabelPreamble
\addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='definition'
End
@ -224,6 +240,9 @@ Style Example
BabelPreamble
\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
EndBabelPreamble
DocBookWrapperTag informalexample
DocBookTag para
DocBookAttr ""
End
@ -243,6 +262,8 @@ Style Problem
BabelPreamble
\addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='problem'
End
@ -276,6 +297,8 @@ Style Prob
EndFont
AddToToc thm
IsTocCaption true
DocBookTag para
DocBookAttr role='problem'
End
@ -294,6 +317,8 @@ Style Solution
BabelPreamble
\addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='solution'
End
@ -308,6 +333,8 @@ Style Sol
Tooltip "Label of the corresponding problem"
IsTocCaption true
EndArgument
DocBookTag para
DocBookAttr role='solution'
End
@ -326,6 +353,8 @@ Style Exercise
BabelPreamble
\addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='exercise'
End
@ -344,6 +373,8 @@ Style Remark
BabelPreamble
\addto\captions$$lang{\renewcommand{\remarkname}{_(Remark)}}
EndBabelPreamble
DocBookTag note
DocBookItemTag para
End
@ -357,6 +388,9 @@ Style Claim
BabelPreamble
\addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='claim'
DocBookItemTag ""
End
@ -375,6 +409,8 @@ Style Case
BabelPreamble
\addto\captions$$lang{\renewcommand{\casename}{_(Case)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='case'
End
@ -393,6 +429,8 @@ Style Property
BabelPreamble
\addto\captions$$lang{\renewcommand{\propertyname}{_(Property)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='property'
End
@ -411,6 +449,8 @@ Style Question
BabelPreamble
\addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='question'
End
@ -429,5 +469,7 @@ Style Note
BabelPreamble
\addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
EndBabelPreamble
DocBookTag note
DocBookItemTag para
End

View File

@ -69,6 +69,8 @@ Style Theorem
\addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
EndBabelPreamble
Requires amsthm
DocBookTag para
DocBookAttr role='theorem'
End
@ -87,6 +89,8 @@ Style Corollary
BabelPreamble
\addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='corollary'
End
@ -105,6 +109,8 @@ Style Lemma
BabelPreamble
\addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='lemma'
End
@ -123,6 +129,8 @@ Style Proposition
BabelPreamble
\addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='proposition'
End
@ -141,6 +149,8 @@ Style Conjecture
BabelPreamble
\addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='conjecture'
End
@ -159,6 +169,8 @@ Style Fact
BabelPreamble
\addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='fact'
End
@ -184,6 +196,8 @@ Style Definition
BabelPreamble
\addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='definition'
End
@ -201,6 +215,9 @@ Style Example
BabelPreamble
\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
EndBabelPreamble
DocBookWrapperTag informalexample
DocBookTag para
DocBookAttr ""
End
@ -218,6 +235,8 @@ Style Problem
BabelPreamble
\addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='problem'
End
@ -235,6 +254,8 @@ Style Exercise
BabelPreamble
\addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='exercise'
End
@ -252,6 +273,8 @@ Style Solution
BabelPreamble
\addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='solution'
End
@ -278,6 +301,8 @@ Style Remark
BabelPreamble
\addto\captions$$lang{\renewcommand{\remarkname}{_(Remark)}}
EndBabelPreamble
DocBookTag note
DocBookItemTag para
End
@ -295,6 +320,9 @@ Style Claim
BabelPreamble
\addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
EndBabelPreamble
DocBookTag para
DocBookAttr role='claim'
DocBookItemTag ""
End
Input theorems-case.inc

View File

@ -243,6 +243,8 @@ Style Full_Width
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label
DocBookTag para
DocBookAttr role='fullwidth'
End
# this steps the counters

View File

@ -25,7 +25,7 @@ re_version = re.compile(r'^Version:.*ImageMagick\s*(\d*)\.(\d*)\.(\d*).*$')
command = 'magick'
fout = os.popen('magick -version 2>&1')
output = fout.readline()
if fout.close() != None:
if fout.close() is not None:
# older versions
# caution: windows has a convert.exe for converting file systems
command = 'convert'
@ -39,7 +39,7 @@ version = re_version.match(output)
im = False
gm = False
if version != None:
if version is not None:
major = int(version.group(1))
minor = int(version.group(2))
patch = int(version.group(3))
@ -49,10 +49,12 @@ else:
# Try GraphicsMagick
re_version = re.compile(r'^GraphicsMagick.*http:..www.GraphicsMagick.org.*$')
version = re_version.match(output)
if version != None:
if version is not None:
gm = True
# we need version to be a valid integer 3-tuple
version = (1,0,0)
else:
version = (0,0,0)
# IM >= 5.5.8 separates options for source and target files
# See http://www.imagemagick.org/Usage/basics/#why
@ -72,10 +74,10 @@ if sys.argv[3] == 'ppm' and (im and version >= (6,3,5) or gm):
# print (command, sys.argv[2], sys.argv[4], file= sys.stdout)
if (im or gm) and os.system(r'%s %s "%s" %s "%s"' % (command, sopts, sys.argv[2], topts, sys.argv[3] + ':' + sys.argv[4])) != 0:
print (sys.argv[0], 'ERROR', file= sys.stderr)
print ('Execution of "%s" failed.' % command, file= sys.stderr)
print(sys.argv[0], 'ERROR', file= sys.stderr)
print('Execution of "%s" failed.' % command, file= sys.stderr)
sys.exit(1)
elif not im and not gm and sys.platform == 'darwin' and os.system(r'%s "%s" "%s"' % (command, sys.argv[2], sys.argv[4])) != 0:
print (sys.argv[0], 'ERROR', file= sys.stderr)
print ('Execution of "%s" failed.' % command, file= sys.stderr)
print(sys.argv[0], 'ERROR', file= sys.stderr)
print('Execution of "%s" failed.' % command, file=sys.stderr)
sys.exit(1)

View File

@ -11,7 +11,7 @@
# This script will update a .layout file to current format
# The latest layout format is also defined in src/TextClass.cpp
currentFormat = 82
currentFormat = 84
# Incremented to format 4, 6 April 2007, lasgouttes
@ -271,7 +271,7 @@ currentFormat = 82
# Incremented to format 81, 12 August 2019 by rikiheck
# New tag GuiName for counters
# Incremented to format 82, 4 June 2017 by dourouc05
# Incremented to format 82, 4 June 2017 by tcuvelier
# - Add new tags for Layout:
# DocBookTag, DocBookAttr, DocBookInInfo,
# DocBookWrapperTag, DocBookWrapperAttr,
@ -281,6 +281,14 @@ currentFormat = 82
# - Removed tag Header from ClassOptionsClassOptions
# - Removed tag Element for flex insets
# Incremented to format 83, 2 August 2020 by tcuvelier
# New tags DocBookWrapperMergeWithPrevious and DocBookAbstract
# Incremented to format 84, 17 August 2020 by tcuvelier
# New tags DocBookTagType, DocBookWrapperTagTagType,
# DocBookItemWrapperTagTagType, DocBookItemTagTagType,
# DocBookLabelTag
# Do not forget to document format change in Customization
# Manual (section "Declaring a new text class").

View File

@ -1700,6 +1700,8 @@ docstring authorsToDocBookAuthorGroup(docstring const & authorsString, XMLStream
// Output the list of authors.
xs << xml::StartTag("authorgroup");
xs << xml::CR();
auto it = authors.cbegin();
auto en = authors.cend();
for (size_t i = 0; it != en; ++it, ++i) {

View File

@ -2140,8 +2140,6 @@ Buffer::ExportStatus Buffer::writeDocBookSource(odocstream & os,
bool const output_body =
output == FullSource || output == OnlyBody;
XMLStream xs(os);
if (output_preamble) {
// XML preamble, no doctype needed.
// Not using XMLStream for this, as the root tag would be in the tag stack and make troubles with the error
@ -2164,16 +2162,17 @@ Buffer::ExportStatus Buffer::writeDocBookSource(odocstream & os,
}
if (output_body) {
params().documentClass().counters().reset();
// Start to output the document.
XMLStream xs(os);
docbookParagraphs(text(), *this, xs, runparams);
}
if (output_preamble) {
// Close the root element.
os << "\n</" << from_ascii(tclass.docbookroot()) << ">";
// Close the root element. No need for a line break, as free text is never allowed
// in a root element, it must always be wrapped in some container.
os << "</" << from_ascii(tclass.docbookroot()) << ">";
}
return ExportSuccess;
}
@ -2218,7 +2217,7 @@ Buffer::ExportStatus Buffer::writeLyXHTMLSource(odocstream & os,
if (output_preamble) {
os << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
<< "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN\" \"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd\">\n"
<< "<!DOCTYPE html>\n"
// FIXME Language should be set properly.
<< "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"
<< "<head>\n"

View File

@ -947,7 +947,7 @@ bool BufferView::scrollToCursor(DocIterator const & dit, bool const recenter)
TextMetrics & tm = d->text_metrics_[bot.text()];
pos_type const max_pit = pos_type(bot.text()->paragraphs().size() - 1);
int bot_pit = bot.pit();
pos_type bot_pit = bot.pit();
if (bot_pit > max_pit) {
// FIXME: Why does this happen?
LYXERR0("bottom pit is greater that max pit: "

View File

@ -30,9 +30,9 @@ Floating::Floating(string const & type, string const & placement,
string const & listName, std::string const & listCmd,
string const & refPrefix, std::string const & allowedplacement,
string const & htmlTag, string const & htmlAttrib,
docstring const & htmlStyle, string const & docbookTag,
string const & docbookAttr, string const & required,
bool usesfloat, bool ispredefined,
docstring const & htmlStyle,
string const & docbookAttr, string const & docbookTagType,
string const & required, bool usesfloat, bool ispredefined,
bool allowswide, bool allowssideways)
: floattype_(type), placement_(placement), ext_(ext), within_(within),
style_(style), name_(name), listname_(listName), listcommand_(listCmd),
@ -40,10 +40,29 @@ Floating::Floating(string const & type, string const & placement,
usesfloatpkg_(usesfloat), ispredefined_(ispredefined),
allowswide_(allowswide), allowssideways_(allowssideways),
html_tag_(htmlTag), html_attrib_(htmlAttrib), html_style_(htmlStyle),
docbook_tag_(docbookTag), docbook_attr_(docbookAttr)
docbook_attr_(docbookAttr), docbook_tag_type_(docbookTagType)
{}
std::string Floating::docbookFloatType() const
{
// TODO: configure this in the layouts?
if (floattype_ == "figure") {
return "figure";
} else if (floattype_ == "table" || floattype_ == "tableau") {
return "table";
} else if (floattype_ == "algorithm") {
// TODO: no good translation for now! Figures are the closest match, as they can contain text.
// Solvable as soon as https://github.com/docbook/docbook/issues/157 has a definitive answer.
return "algorithm";
} else {
// If nothing matches, return something that will not be valid.
LYXERR0("Unrecognised float type: " + floattype_);
return "unknown";
}
}
string const & Floating::htmlAttrib() const
{
if (html_attrib_.empty())
@ -88,19 +107,30 @@ string const & Floating::docbookAttr() const
}
string const & Floating::docbookTag(bool hasTitle) const
string Floating::docbookTag(bool hasTitle) const
{
docbook_tag_ = "";
if (floattype_ == "figure") {
docbook_tag_ = hasTitle ? "figure" : "informalfigure";
} else if (floattype_ == "table") {
docbook_tag_ = hasTitle ? "table" : "informaltable";
} else if (floattype_ == "algorithm") {
// TODO: configure this in the layouts?
if (docbookFloatType() == "figure") {
return hasTitle ? "figure" : "informalfigure";
} else if (docbookFloatType() == "table") {
return hasTitle ? "table" : "informaltable";
} else if (docbookFloatType() == "algorithm") {
// TODO: no good translation for now! Figures are the closest match, as they can contain text.
// Solvable as soon as https://github.com/docbook/docbook/issues/157 has a definitive answer.
docbook_tag_ = "figure";
return "figure";
} else {
// If nothing matches, return something that will not be valid.
LYXERR0("Unrecognised float type: " + floattype());
return "float";
}
return docbook_tag_;
}
string const & Floating::docbookTagType() const
{
if (docbook_tag_type_ != "block" && docbook_tag_type_ != "paragraph" && docbook_tag_type_ != "inline")
docbook_tag_type_ = "block";
return docbook_tag_type_;
}
@ -109,7 +139,7 @@ string const & Floating::docbookCaption() const
docbook_caption_ = "";
if (floattype_ == "figure") {
docbook_caption_ = "title";
} else if (floattype_ == "table") {
} else if (floattype_ == "table" || floattype_ == "tableau") {
docbook_caption_ = "caption";
} else if (floattype_ == "algorithm") {
// TODO: no good translation for now! Figures are the closest match, as they can contain text.

View File

@ -37,12 +37,15 @@ public:
std::string const & listName, std::string const & listCmd,
std::string const & refPrefix, std::string const & allowedplacement,
std::string const & htmlType, std::string const & htmlClass,
docstring const & htmlStyle, std::string const & docbookTag,
std::string const & docbookAttr, std::string const & required,
bool usesfloat, bool isprefined, bool allowswide, bool allowssideways);
docstring const & htmlStyle,
std::string const & docbookAttr, std::string const & docbookTagType,
std::string const & required, bool usesfloat, bool isprefined,
bool allowswide, bool allowssideways);
///
std::string const & floattype() const { return floattype_; }
///
std::string docbookFloatType() const;
///
std::string const & placement() const { return placement_; }
///
std::string const & ext() const {return ext_; }
@ -80,10 +83,12 @@ public:
/// tag type, defaults to "div"
std::string const & htmlTag() const;
///
std::string const & docbookTag(bool hasTitle = false) const;
std::string docbookTag(bool hasTitle = false) const;
///
std::string const & docbookAttr() const;
///
std::string const & docbookTagType() const;
///
std::string const & docbookCaption() const;
private:
///
@ -115,9 +120,9 @@ private:
///
bool ispredefined_;
///
bool allowswide_;
bool allowswide_;
///
bool allowssideways_;
bool allowssideways_;
///
mutable std::string html_tag_;
///
@ -126,12 +131,14 @@ private:
mutable std::string defaultcssclass_;
///
docstring html_style_;
/// DocBook tag
mutable std::string docbook_tag_;
// There is no way to override the DocBook tag based on the layouts: half of it is determined by whether the float
// has a title or not, an information that is not available in the layouts.
/// attribute (mostly, role)
mutable std::string docbook_caption_;
/// caption tag (mostly, either caption or title)
std::string docbook_attr_;
/// DocBook tag type (block, paragraph, inline)
mutable std::string docbook_tag_type_;
};

View File

@ -106,18 +106,26 @@ enum LayoutTags {
LT_HTMLFORCECSS,
LT_DOCBOOKTAG,
LT_DOCBOOKATTR,
LT_DOCBOOKTAGTYPE,
LT_DOCBOOKININFO,
LT_DOCBOOKABSTRACT,
LT_DOCBOOKWRAPPERTAG,
LT_DOCBOOKWRAPPERATTR,
LT_DOCBOOKWRAPPERTAGTYPE,
LT_DOCBOOKWRAPPERMERGEWITHPREVIOUS,
LT_DOCBOOKSECTIONTAG,
LT_DOCBOOKITEMWRAPPERTAG,
LT_DOCBOOKITEMWRAPPERATTR,
LT_DOCBOOKITEMWRAPPERTAGTYPE,
LT_DOCBOOKITEMTAG,
LT_DOCBOOKITEMATTR,
LT_DOCBOOKITEMTAGTYPE,
LT_DOCBOOKITEMLABELTAG,
LT_DOCBOOKITEMLABELATTR,
LT_DOCBOOKITEMLABELTAGTYPE,
LT_DOCBOOKITEMINNERTAG,
LT_DOCBOOKITEMINNERATTR,
LT_DOCBOOKITEMINNERTAGTYPE,
LT_DOCBOOKFORCEABSTRACTTAG,
LT_INPREAMBLE,
LT_HTMLTITLE,
@ -176,6 +184,8 @@ Layout::Layout()
htmllabelfirst_ = false;
htmlforcecss_ = false;
htmltitle_ = false;
docbookabstract_ = false;
docbookwrappermergewithprevious_ = false;
spellcheck = true;
forcelocal = 0;
itemcommand_ = "item";
@ -219,21 +229,29 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass const & tclass)
{ "commanddepth", LT_COMMANDDEPTH },
{ "copystyle", LT_COPYSTYLE },
{ "dependson", LT_DEPENDSON },
{ "docbookattr", LT_DOCBOOKATTR },
{ "docbookforceabstracttag", LT_DOCBOOKFORCEABSTRACTTAG },
{ "docbookininfo", LT_DOCBOOKININFO },
{ "docbookitemattr", LT_DOCBOOKITEMATTR },
{ "docbookiteminnerattr", LT_DOCBOOKITEMINNERATTR },
{ "docbookiteminnertag", LT_DOCBOOKITEMINNERTAG },
{ "docbookitemlabelattr", LT_DOCBOOKITEMLABELATTR },
{ "docbookitemlabeltag", LT_DOCBOOKITEMLABELTAG },
{ "docbookitemtag", LT_DOCBOOKITEMTAG },
{ "docbookitemwrapperattr", LT_DOCBOOKITEMWRAPPERATTR },
{ "docbookitemwrappertag", LT_DOCBOOKITEMWRAPPERTAG },
{ "docbooksectiontag", LT_DOCBOOKSECTIONTAG },
{ "docbooktag", LT_DOCBOOKTAG },
{ "docbookwrapperattr", LT_DOCBOOKWRAPPERATTR },
{ "docbookwrappertag", LT_DOCBOOKWRAPPERTAG },
{ "docbookabstract", LT_DOCBOOKABSTRACT },
{ "docbookattr", LT_DOCBOOKATTR },
{ "docbookforceabstracttag", LT_DOCBOOKFORCEABSTRACTTAG },
{ "docbookininfo", LT_DOCBOOKININFO },
{ "docbookitemattr", LT_DOCBOOKITEMATTR },
{ "docbookiteminnerattr", LT_DOCBOOKITEMINNERATTR },
{ "docbookiteminnertag", LT_DOCBOOKITEMINNERTAG },
{ "docbookiteminnertagtype", LT_DOCBOOKITEMINNERTAGTYPE },
{ "docbookitemlabelattr", LT_DOCBOOKITEMLABELATTR },
{ "docbookitemlabeltag", LT_DOCBOOKITEMLABELTAG },
{ "docbookitemlabeltagtype", LT_DOCBOOKITEMLABELTAGTYPE },
{ "docbookitemtag", LT_DOCBOOKITEMTAG },
{ "docbookitemtagtype", LT_DOCBOOKITEMTAGTYPE },
{ "docbookitemwrapperattr", LT_DOCBOOKITEMWRAPPERATTR },
{ "docbookitemwrappertag", LT_DOCBOOKITEMWRAPPERTAG },
{ "docbookitemwrappertagtype", LT_DOCBOOKITEMWRAPPERTAGTYPE },
{ "docbooksectiontag", LT_DOCBOOKSECTIONTAG },
{ "docbooktag", LT_DOCBOOKTAG },
{ "docbooktagtype", LT_DOCBOOKTAGTYPE },
{ "docbookwrapperattr", LT_DOCBOOKWRAPPERATTR },
{ "docbookwrappermergewithprevious", LT_DOCBOOKWRAPPERMERGEWITHPREVIOUS },
{ "docbookwrappertag", LT_DOCBOOKWRAPPERTAG },
{ "docbookwrappertagtype", LT_DOCBOOKWRAPPERTAGTYPE },
{ "end", LT_END },
{ "endlabelstring", LT_ENDLABELSTRING },
{ "endlabeltype", LT_ENDLABELTYPE },
@ -727,6 +745,10 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass const & tclass)
lex >> docbookattr_;
break;
case LT_DOCBOOKTAGTYPE:
lex >> docbooktagtype_;
break;
case LT_DOCBOOKFORCEABSTRACTTAG:
lex >> docbookforceabstracttag_;
break;
@ -735,6 +757,10 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass const & tclass)
lex >> docbookininfo_;
break;
case LT_DOCBOOKABSTRACT:
lex >> docbookabstract_;
break;
case LT_DOCBOOKWRAPPERTAG:
lex >> docbookwrappertag_;
break;
@ -743,6 +769,14 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass const & tclass)
lex >> docbookwrapperattr_;
break;
case LT_DOCBOOKWRAPPERTAGTYPE:
lex >> docbookwrappertagtype_;
break;
case LT_DOCBOOKWRAPPERMERGEWITHPREVIOUS:
lex >> docbookwrappermergewithprevious_;
break;
case LT_DOCBOOKSECTIONTAG:
lex >> docbooksectiontag_;
break;
@ -755,6 +789,10 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass const & tclass)
lex >> docbookitemwrapperattr_;
break;
case LT_DOCBOOKITEMWRAPPERTAGTYPE:
lex >> docbookitemwrappertagtype_;
break;
case LT_DOCBOOKITEMTAG:
lex >> docbookitemtag_;
break;
@ -763,6 +801,10 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass const & tclass)
lex >> docbookitemattr_;
break;
case LT_DOCBOOKITEMTAGTYPE:
lex >> docbookitemtagtype_;
break;
case LT_DOCBOOKITEMLABELTAG:
lex >> docbookitemlabeltag_;
break;
@ -771,6 +813,10 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass const & tclass)
lex >> docbookitemlabelattr_;
break;
case LT_DOCBOOKITEMLABELTAGTYPE:
lex >> docbookitemlabeltagtype_;
break;
case LT_DOCBOOKITEMINNERTAG:
lex >> docbookiteminnertag_;
break;
@ -779,6 +825,10 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass const & tclass)
lex >> docbookiteminnerattr_;
break;
case LT_DOCBOOKITEMINNERTAGTYPE:
lex >> docbookiteminnertagtype_;
break;
case LT_SPELLCHECK:
lex >> spellcheck;
break;
@ -1593,31 +1643,45 @@ void Layout::write(ostream & os) const
if(!docbooktag_.empty())
os << "\tDocBookTag " << docbooktag_ << '\n';
if(!docbookattr_.empty())
os << "\tDocBookAttr " << docbookattr_ << '\n';
os << "\tDocBookAttr \"" << docbookattr_ << "\"\n";
if(!docbooktagtype_.empty())
os << "\tDocBookTagType " << docbooktagtype_ << '\n';
if(!docbookininfo_.empty())
os << "\tDocBookInInfo " << docbookininfo_ << '\n';
os << "\tDocBookAbstract " << docbookabstract_ << '\n';
if(!docbookwrappertag_.empty())
os << "\tDocBookWrapperTag " << docbookwrappertag_ << '\n';
if(!docbookwrapperattr_.empty())
os << "\tDocBookWrapperAttr " << docbookwrapperattr_ << '\n';
if(!docbookwrappertagtype_.empty())
os << "\tDocBookWrapperTagType " << docbookwrappertagtype_ << '\n';
if(!docbooksectiontag_.empty())
os << "\tDocBookSectionTag " << docbooksectiontag_ << '\n';
if(!docbookitemtag_.empty())
os << "\tDocBookItemTag " << docbookitemtag_ << '\n';
if(!docbookitemattr_.empty())
os << "\tDocBookItemAttr " << docbookitemattr_ << '\n';
if(!docbookitemtagtype_.empty())
os << "\tDocBookItemTagType " << docbookitemtagtype_ << '\n';
if(!docbookitemwrappertag_.empty())
os << "\tDocBookItemWrapperTag " << docbookitemwrappertag_ << '\n';
if(!docbookitemwrapperattr_.empty())
os << "\tDocBookItemWrapperAttr " << docbookitemwrapperattr_ << '\n';
if(!docbookitemwrappertagtype_.empty())
os << "\tDocBookItemWrapperTagType " << docbookitemwrappertagtype_ << '\n';
os << "\tDocBookWrapperMergeWithPrevious " << docbookwrappermergewithprevious_ << '\n';
if(!docbookitemlabeltag_.empty())
os << "\tDocBookItemLabelTag " << docbookitemlabeltag_ << '\n';
if(!docbookitemlabelattr_.empty())
os << "\tDocBookItemLabelAttr " << docbookitemlabelattr_ << '\n';
if(!docbookitemlabeltagtype_.empty())
os << "\tDocBookItemLabelTagType " << docbookitemlabeltagtype_ << '\n';
if(!docbookiteminnertag_.empty())
os << "\tDocBookItemInnerTag " << docbookiteminnertag_ << '\n';
if(!docbookiteminnerattr_.empty())
os << "\tDocBookItemInnerAttr " << docbookiteminnerattr_ << '\n';
if(!docbookiteminnertagtype_.empty())
os << "\tDocBookItemInnerTagType " << docbookiteminnertagtype_ << '\n';
if(!docbookforceabstracttag_.empty())
os << "\tDocBookForceAbstractTag " << docbookforceabstracttag_ << '\n';
os << "\tSpellcheck " << spellcheck << "\n"
@ -1770,9 +1834,12 @@ string Layout::defaultCSSClass() const
string const & Layout::docbooktag() const
{
// No sensible default value, unhappily...
if (docbooktag_.empty())
docbooktag_ = to_utf8(name_);
if (docbooktag_.empty()) {
if (to_ascii(name_) == "Plain Layout")
docbooktag_ = "para";
else // No sensible default value, unhappily...
docbooktag_ = to_utf8(name_);
}
return docbooktag_;
}
@ -1784,6 +1851,20 @@ string const & Layout::docbookattr() const
}
bool isValidTagType(std::string type)
{
return !(type.empty() || (type != "block" && type != "paragraph" && type != "inline"));
}
string const & Layout::docbooktagtype() const
{
if (!isValidTagType(docbooktagtype_))
docbooktagtype_ = "block";
return docbooktagtype_;
}
string const & Layout::docbookininfo() const
{
// Indeed, a trilean. Only titles should be "maybe": otherwise, metadata is "always", content is "never".
@ -1807,6 +1888,14 @@ string const & Layout::docbookwrapperattr() const
}
string const & Layout::docbookwrappertagtype() const
{
if (!isValidTagType(docbookwrappertagtype_))
docbookwrappertagtype_ = "block";
return docbookwrappertagtype_;
}
string const & Layout::docbooksectiontag() const
{
if (docbooksectiontag_.empty())
@ -1829,9 +1918,19 @@ string const & Layout::docbookitemwrapperattr() const
}
string const & Layout::docbookitemwrappertagtype() const
{
if (!isValidTagType(docbookitemwrappertagtype_))
docbookitemwrappertagtype_ = "block";
return docbookitemwrappertagtype_;
}
string const & Layout::docbookitemtag() const
{
return docbookitemtag_;
if (docbookitemtag_.empty())
docbookitemtag_ = "NONE";
return docbookitemtag_;
}
@ -1841,6 +1940,14 @@ string const & Layout::docbookitemattr() const
}
string const & Layout::docbookitemtagtype() const
{
if (!isValidTagType(docbookitemtagtype_))
docbookitemtagtype_ = "block";
return docbookitemtagtype_;
}
string const & Layout::docbookitemlabeltag() const
{
if (docbookitemlabeltag_.empty())
@ -1855,6 +1962,14 @@ string const & Layout::docbookitemlabelattr() const
}
string const & Layout::docbookitemlabeltagtype() const
{
if (!isValidTagType(docbookitemlabeltagtype_))
docbookitemlabeltagtype_ = "block";
return docbookitemlabeltagtype_;
}
string const & Layout::docbookiteminnertag() const
{
if (docbookiteminnertag_.empty())
@ -1869,6 +1984,14 @@ string const & Layout::docbookiteminnerattr() const
}
string const & Layout::docbookiteminnertagtype() const
{
if (!isValidTagType(docbookiteminnertagtype_))
docbookiteminnertagtype_ = "block";
return docbookiteminnertagtype_;
}
std::string const & Layout::docbookforceabstracttag() const
{
if (docbookforceabstracttag_.empty())

View File

@ -197,30 +197,46 @@ public:
///
std::string const & docbookattr() const;
///
std::string const & docbooktagtype() const;
///
std::string const & docbookininfo() const;
///
bool docbookabstract() const { return docbookabstract_; }
///
std::string const & docbookwrappertag() const;
///
std::string const & docbookwrapperattr() const;
///
std::string const & docbookwrappertagtype() const;
///
bool docbookwrappermergewithprevious() const { return docbookwrappermergewithprevious_; }
///
std::string const & docbooksectiontag() const;
///
std::string const & docbookitemwrappertag() const;
///
std::string const & docbookitemwrapperattr() const;
///
std::string const & docbookitemwrappertagtype() const;
///
std::string const & docbookitemlabeltag() const;
///
std::string const & docbookitemlabelattr() const;
///
std::string const & docbookitemlabeltagtype() const;
///
std::string const & docbookiteminnertag() const;
///
std::string const & docbookiteminnerattr() const;
///
std::string const & docbookiteminnertagtype() const;
///
std::string const & docbookitemtag() const;
///
std::string const & docbookitemattr() const;
///
std::string const & docbookitemtagtype() const;
///
std::string const & docbookforceabstracttag() const;
///
bool isParagraph() const { return latextype == LATEX_PARAGRAPH; }
@ -491,32 +507,49 @@ private:
mutable std::string docbooktag_;
/// Roles to add to docbooktag_, if any (default: none).
mutable std::string docbookattr_;
/// DocBook tag type corresponding to this layout (block, paragraph, or inline; default: block).
mutable std::string docbooktagtype_;
/// DocBook tag corresponding to this item (mainly for lists).
mutable std::string docbookitemtag_;
/// Roles to add to docbookitemtag_, if any (default: none).
mutable std::string docbookitemattr_;
/// DocBook tag type corresponding to this item (block, paragraph, or inline; default: block).
mutable std::string docbookitemtagtype_;
/// DocBook tag corresponding to the wrapper around an item (mainly for lists).
mutable std::string docbookitemwrappertag_;
/// Roles to add to docbookitemwrappertag_, if any (default: none).
mutable std::string docbookitemwrapperattr_;
/// DocBook tag corresponding to this label (only for description lists;
/// DocBook tag type corresponding to the wrapper around an item (block, paragraph, or inline; default: block).
mutable std::string docbookitemwrappertagtype_;
/// DocBook tag corresponding to this label (mostly for description lists;
/// labels in the common sense do not exist with DocBook).
mutable std::string docbookitemlabeltag_;
/// Roles to add to docbooklabeltag_, if any (default: none).
mutable std::string docbookitemlabelattr_;
/// DocBook tag corresponding to this label (block, paragraph, or inline; default: block).
mutable std::string docbookitemlabeltagtype_;
/// DocBook tag to add within the item, around its direct content (mainly for lists).
mutable std::string docbookiteminnertag_;
/// Roles to add to docbookiteminnertag_, if any (default: none).
mutable std::string docbookiteminnerattr_;
/// DocBook tag to add within the item, around its direct content (block, paragraph, or inline; default: block).
mutable std::string docbookiteminnertagtype_;
/// DocBook tag corresponding to this wrapper around the main tag.
mutable std::string docbookwrappertag_;
/// Roles to add to docbookwrappertag_, if any (default: none).
mutable std::string docbookwrapperattr_;
/// Outer tag for this section, only if this layout represent a sectionning item, including chapters (default: section).
/// DocBook tag corresponding to this wrapper around the main tag (block, paragraph, or inline; default: block).
mutable std::string docbookwrappertagtype_;
/// Whether this wrapper tag may be merged with the previously opened wrapper tag.
bool docbookwrappermergewithprevious_;
/// Outer tag for this section, only if this layout represent a sectionning item, including chapters
/// (default: section).
mutable std::string docbooksectiontag_;
/// Whether this tag must/can/can't go into an <info> tag (default: never, as it only makes sense for metadata).
mutable std::string docbookininfo_;
/// whether this element (root or not) does not accept text without a section(i.e. the first text that is met
/// Wehther this paragraph should be considered as abstract.
bool docbookabstract_;
/// Whether this element (root or not) does not accept text without a section (i.e. the first text that is met
/// in LyX must be considered as the abstract if this is true); this text must be output with the specific tag
/// held by this attribute
mutable std::string docbookforceabstracttag_;

View File

@ -3329,19 +3329,16 @@ std::tuple<vector<xml::FontTag>, vector<xml::EndFontTag>> computeDocBookFontSwit
} // anonymous namespace
void Paragraph::simpleDocBookOnePar(Buffer const & buf,
XMLStream & xs,
OutputParams const & runparams,
Font const & outerfont,
bool start_paragraph, bool close_paragraph,
pos_type initial) const
std::vector<docstring> Paragraph::simpleDocBookOnePar(Buffer const & buf,
OutputParams const & runparams,
Font const & outerfont,
pos_type initial,
bool is_last_par,
bool ignore_fonts) const
{
// track whether we have opened these tags
// Track whether we have opened these tags
DocBookFontState fs;
if (start_paragraph)
xs.startDivision(allowEmpty());
Layout const & style = *d->layout_;
FontInfo font_old =
style.labeltype == LABEL_MANUAL ? style.labelfont : style.font;
@ -3352,48 +3349,67 @@ void Paragraph::simpleDocBookOnePar(Buffer const & buf,
vector<xml::FontTag> tagsToOpen;
vector<xml::EndFontTag> tagsToClose;
// parsing main loop
std::vector<docstring> generatedParagraphs;
DocBookFontState old_fs = fs;
odocstringstream os;
auto * xs = new XMLStream(os); // XMLStream has no copy constructor: to create a new object, the only solution
// is to hold a pointer to the XMLStream (xs = XMLStream(os) is not allowed once the first object is built).
// Parsing main loop.
for (pos_type i = initial; i < size(); ++i) {
// let's not show deleted material in the output
// Don't show deleted material in the output.
if (isDeleted(i))
continue;
// If this is an InsetNewline, generate a new paragraph. Also reset the fonts, so that tags are closed in
// this paragraph.
if (getInset(i) != nullptr && getInset(i)->lyxCode() == NEWLINE_CODE) {
if (!ignore_fonts)
xs->closeFontTags();
generatedParagraphs.push_back(os.str());
os = odocstringstream();
delete xs;
xs = new XMLStream(os);
if (!ignore_fonts) {
font_old = outerfont.fontInfo();
fs = old_fs;
}
}
// Determine which tags should be opened or closed regarding fonts.
Font const font = getFont(buf.masterBuffer()->params(), i, outerfont);
if (!ignore_fonts) {
tie(tagsToOpen, tagsToClose) = computeDocBookFontSwitch(font_old, font, default_family, fs);
// Determine which tags should be opened or closed.
tie(tagsToOpen, tagsToClose) = computeDocBookFontSwitch(font_old, font, default_family, fs);
// FIXME XHTML
// Other such tags? What about the other text ranges?
// FIXME XHTML
// Other such tags? What about the other text ranges?
vector<xml::EndFontTag>::const_iterator cit = tagsToClose.begin();
vector<xml::EndFontTag>::const_iterator cen = tagsToClose.end();
for (; cit != cen; ++cit)
*xs << *cit;
vector<xml::EndFontTag>::const_iterator cit = tagsToClose.begin();
vector<xml::EndFontTag>::const_iterator cen = tagsToClose.end();
for (; cit != cen; ++cit)
xs << *cit;
vector<xml::FontTag>::const_iterator sit = tagsToOpen.begin();
vector<xml::FontTag>::const_iterator sen = tagsToOpen.end();
for (; sit != sen; ++sit)
*xs << *sit;
vector<xml::FontTag>::const_iterator sit = tagsToOpen.begin();
vector<xml::FontTag>::const_iterator sen = tagsToOpen.end();
for (; sit != sen; ++sit)
xs << *sit;
tagsToClose.clear();
tagsToOpen.clear();
tagsToClose.clear();
tagsToOpen.clear();
}
if (Inset const * inset = getInset(i)) {
if (!runparams.for_toc || inset->isInToc()) {
OutputParams np = runparams;
np.local_font = &font;
// If the paragraph has size 1, then we are in the "special
// case" where we do not output the containing paragraph info.
// This "special case" is defined in more details in output_docbook.cpp, makeParagraphs. The results
// of that brittle logic is passed to this function through open_par.
if (!inset->getLayout().htmlisblock() && size() != 1) // TODO: htmlisblock here too!
np.docbook_in_par = true;
inset->docbook(xs, np);
// TODO: special case will bite here.
np.docbook_in_par = true;
inset->docbook(*xs, np);
}
} else {
char_type c = getUChar(buf.masterBuffer()->params(), runparams, i);
xs << c;
*xs << c;
}
font_old = font.fontInfo();
}
@ -3401,11 +3417,18 @@ void Paragraph::simpleDocBookOnePar(Buffer const & buf,
// FIXME, this code is just imported from XHTML
// I'm worried about what happens if a branch, say, is itself
// wrapped in some font stuff. I think that will not work.
xs.closeFontTags();
if (runparams.docbook_in_listing)
xs << xml::CR();
if (close_paragraph)
xs.endDivision();
if (!ignore_fonts)
xs->closeFontTags();
// In listings, new lines are very important. Avoid generating one for the last line.
if (runparams.docbook_in_listing && !is_last_par)
*xs << xml::CR();
// Finalise the last (and most likely only) paragraph.
generatedParagraphs.push_back(os.str());
delete xs;
return generatedParagraphs;
}
@ -3840,8 +3863,8 @@ bool Paragraph::isHardHyphenOrApostrophe(pos_type pos) const
char_type const c = d->text_[pos];
if (c != '-' && c != '\'')
return false;
int nextpos = pos + 1;
int prevpos = pos > 0 ? pos - 1 : 0;
pos_type nextpos = pos + 1;
pos_type prevpos = pos > 0 ? pos - 1 : 0;
if ((nextpos == psize || isSpace(nextpos))
&& (pos == 0 || isSpace(prevpos)))
return false;

View File

@ -24,6 +24,7 @@
#include "support/types.h"
#include <set>
#include <vector>
namespace lyx {
@ -208,14 +209,13 @@ public:
/// Output the first word of a paragraph, return the position where it left.
pos_type firstWordLyXHTML(XMLStream & xs, OutputParams const & runparams) const;
/// Writes to stream the DocBook representation
void simpleDocBookOnePar(Buffer const & buf,
XMLStream &,
OutputParams const & runparams,
Font const & outerfont,
bool start_paragraph = true,
bool close_paragraph = true,
pos_type initial = 0) const;
/// Outputs to stream the DocBook representation, one element per paragraph.
std::vector<docstring> simpleDocBookOnePar(Buffer const & buf,
OutputParams const & runparams,
Font const & outerfont,
pos_type initial = 0,
bool is_last_par = false,
bool ignore_fonts = false) const;
/// \return any material that has had to be deferred until after the
/// paragraph has closed.

View File

@ -29,6 +29,17 @@ public:
ParagraphList(InputIterator first, InputIterator last)
: RandomAccessList<Paragraph>(first, last)
{}
const Paragraph * getParagraphBefore(const_iterator const & par) const
{
// No previous paragraph.
if (par == begin())
return nullptr;
auto prevpar = par;
--prevpar;
return &*prevpar;
}
};
} // namespace lyx

View File

@ -62,7 +62,7 @@ namespace lyx {
// You should also run the development/tools/updatelayouts.py script,
// to update the format of all of our layout files.
//
int const LAYOUT_FORMAT = 82; // dourouc05: DocBook additions.
int const LAYOUT_FORMAT = 84; // tcuvelier: DocBook*TagType.
// Layout format for the current lyx file format. Controls which format is
@ -1378,6 +1378,7 @@ bool TextClass::readFloat(Lexer & lexrc)
FT_HTMLTAG,
FT_DOCBOOKATTR,
FT_DOCBOOKTAG,
FT_DOCBOOKTAGTYPE,
FT_LISTCOMMAND,
FT_REFPREFIX,
FT_ALLOWED_PLACEMENT,
@ -1393,6 +1394,7 @@ bool TextClass::readFloat(Lexer & lexrc)
{ "allowswide", FT_ALLOWS_WIDE },
{ "docbookattr", FT_DOCBOOKATTR },
{ "docbooktag", FT_DOCBOOKTAG },
{ "docbooktagtype", FT_DOCBOOKTAGTYPE },
{ "end", FT_END },
{ "extension", FT_EXT },
{ "guiname", FT_NAME },
@ -1419,6 +1421,7 @@ bool TextClass::readFloat(Lexer & lexrc)
string htmltag;
string docbookattr;
string docbooktag;
string docbooktagtype;
string listname;
string listcommand;
string name;
@ -1540,6 +1543,10 @@ bool TextClass::readFloat(Lexer & lexrc)
lexrc.next();
docbooktag = lexrc.getString();
break;
case FT_DOCBOOKTAGTYPE:
lexrc.next();
docbooktagtype = lexrc.getString();
break;
case FT_END:
getout = true;
break;
@ -1567,9 +1574,9 @@ bool TextClass::readFloat(Lexer & lexrc)
}
Floating fl(type, placement, ext, within, style, name,
listname, listcommand, refprefix, allowed_placement,
htmltag, htmlattr, htmlstyle, docbooktag, docbookattr,
required, usesfloat, ispredefined, allowswide,
allowssideways);
htmltag, htmlattr, htmlstyle, docbookattr,
docbooktagtype, required, usesfloat, ispredefined,
allowswide, allowssideways);
floatlist_.newFloat(fl);
// each float has its own counter
counters_.newCounter(from_ascii(type), from_ascii(within),

View File

@ -1157,10 +1157,11 @@ void InsetBibtex::docbook(XMLStream & xs, OutputParams const &) const
if (vit == ven) {
xs << XMLStream::ESCAPE_NONE << "<!-- No entry in the bibliography. -->";
xs << xml::CR();
}
for (; vit != ven; ++vit) {
BiblioInfo::const_iterator const biit = bibinfo.find(*vit);
auto const biit = bibinfo.find(*vit);
if (biit == bibinfo.end())
continue;
@ -1199,6 +1200,7 @@ void InsetBibtex::docbook(XMLStream & xs, OutputParams const &) const
xs << xml::StartTag(toDocBookTag[match[1]]);
xs << from_utf8(match[2].str());
xs << xml::EndTag(toDocBookTag[match[1]]);
xs << xml::CR();
}
} else {
LYXERR0("The BibTeX field " << match[1].str() << " is unknown.");
@ -1216,9 +1218,9 @@ void InsetBibtex::docbook(XMLStream & xs, OutputParams const &) const
if (! delayedTags.empty()) {
unsigned long remainingTags = delayedTags.size(); // Used as a workaround. With GCC 7, when erasing all
// elements one by one, some elements may still pop in later on (even though they were deleted previously).
auto hasTag = [&delayedTags](string key) { return delayedTags.find(key) != delayedTags.end(); };
auto getTag = [&delayedTags](string key) { return from_utf8(delayedTags[key]); };
auto eraseTag = [&delayedTags, &remainingTags](string key) {
auto hasTag = [&delayedTags](const string & key) { return delayedTags.find(key) != delayedTags.end(); };
auto getTag = [&delayedTags](const string & key) { return from_utf8(delayedTags[key]); };
auto eraseTag = [&delayedTags, &remainingTags](const string & key) {
remainingTags -= 1;
delayedTags.erase(key);
};
@ -1410,6 +1412,7 @@ void InsetBibtex::docbook(XMLStream & xs, OutputParams const &) const
// Footer for bibliography.
xs << xml::EndTag("bibliography");
xs << xml::CR();
}

View File

@ -26,6 +26,7 @@
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "MetricsInfo.h"
#include "output_docbook.h"
#include "output_xhtml.h"
#include "TexRow.h"
#include "texstream.h"
@ -717,7 +718,39 @@ int InsetBox::plaintext(odocstringstream & os,
void InsetBox::docbook(XMLStream & xs, OutputParams const & runparams) const
{
InsetText::docbook(xs, runparams);
if (!getLayout().docbookwrappertag().empty()) {
if (!xs.isLastTagCR())
xs << xml::CR();
xs << xml::StartTag(getLayout().docbookwrappertag(), getLayout().docbookwrapperattr());
xs << xml::CR();
} else {
LYXERR0("Assertion failed: box layout " + getLayout().name() + " missing DocBookWrapperTag.");
}
// If the box starts with a sectioning item, use as box title.
auto current_par = paragraphs().begin();
if (current_par->layout().category() == from_utf8("Sectioning")) {
// Only generate the first paragraph.
current_par = makeAny(text(), buffer(), xs, runparams, paragraphs().begin());
}
xs.startDivision(false);
// Don't call InsetText::docbook, as this would generate all paragraphs in the inset, not the ones we are
// interested in. The best solution would be to call docbookParagraphs with an updated OutputParams object to only
// generate paragraphs after the title, but it leads to strange crashes, as if text().paragraphs() then returns
// a smaller set of paragrphs.
while (current_par != paragraphs().end())
current_par = makeAny(text(), buffer(), xs, runparams, current_par);
xs.endDivision();
if (!getLayout().docbookwrappertag().empty()) {
if (!xs.isLastTagCR())
xs << xml::CR();
xs << xml::EndTag(getLayout().docbookwrappertag());
xs << xml::CR();
}
}

View File

@ -367,8 +367,7 @@ void InsetCaption::getCaptionAsDocBook(XMLStream & xs,
return;
// Ignore full_label_, as the DocBook processor will deal with the numbering.
InsetText::XHTMLOptions const opts =
InsetText::WriteLabel | InsetText::WriteInnerTag;
InsetText::XHTMLOptions opts = InsetText::WriteInnerTag;
InsetText::docbook(xs, runparams, opts);
}

View File

@ -98,24 +98,35 @@ void InsetERT::docbook(XMLStream & xs, OutputParams const & runparams) const
auto par = begin;
auto const end = paragraphs().end();
odocstringstream os2;
XMLStream xs2(os2);
odocstringstream os; // No need for XML handling here.
// Recreate the logic of makeParagraphs in output_docbook.cpp, but much simplified: never open <para>
// Recreate the logic of makeParagraph in output_docbook.cpp, but much simplified: never open <para>
// in an ERT, use simple line breaks.
while (par != end) {
par->simpleDocBookOnePar(buffer(), xs2, runparams, text().outerFont(distance(begin, par)));
// New line after each paragraph of the ERT, save the last one.
while (true) { // For each paragraph in the ERT...
auto pars = par->simpleDocBookOnePar(buffer(), runparams, text().outerFont(distance(begin, par)));
auto p = pars.begin();
while (true) { // For each line of this ERT paragraph...
os << *p;
++p;
if (p != pars.end())
os << "\n";
else
break;
}
// New line after each paragraph of the ERT, save the last one.
++par;
if (par != end)
xs << "\n";
os << "\n";
else
break;
}
// Output the ERT as a comment with the appropriate escaping.
xs << XMLStream::ESCAPE_NONE << "<!-- ";
xs << XMLStream::ESCAPE_COMMENTS << os2.str();
xs << XMLStream::ESCAPE_COMMENTS << os.str();
xs << XMLStream::ESCAPE_NONE << " -->";
xs << xml::CR();
}

View File

@ -492,19 +492,22 @@ int InsetFloat::plaintext(odocstringstream & os, OutputParams const & runparams,
}
std::vector<const InsetBox *> findSubfiguresInParagraph(const Paragraph &par)
std::vector<const InsetCollapsible *> findSubfiguresInParagraph(const Paragraph &par)
{
// Don't make the hypothesis that all subfigures are in the same paragraph.
// Similarly, there may be several subfigures in the same paragraph (most likely case, based on the documentation).
// Any box is considered as a subfigure, even though the most likely case is \minipage.
std::vector<const InsetBox *> subfigures;
// Boxes are not required to make subfigures. The common root between InsetBox and InsetFLoat is InsetCollapsible.
std::vector<const InsetCollapsible *> subfigures;
for (pos_type pos = 0; pos < par.size(); ++pos) {
const Inset *inset = par.getInset(pos);
if (!inset)
continue;
if (const auto box = dynamic_cast<const InsetBox *>(inset))
subfigures.push_back(box);
else if (const auto fl = dynamic_cast<const InsetFloat *>(inset))
subfigures.push_back(fl);
}
return subfigures;
}
@ -563,8 +566,68 @@ const InsetCaption* findCaptionInParagraph(const Paragraph &par)
}
/// Takes an unstructured subfigure container (typically, an InsetBox) and find the elements within:
/// actual content (image or table), maybe a caption, maybe a label.
std::tuple<InsetCode, const Inset *, const InsetCaption *, const InsetLabel *> docbookParseHopelessSubfigure(const InsetText * subfigure)
{
InsetCode type = NO_CODE;
const Inset * content = nullptr;
const InsetCaption * caption = nullptr;
const InsetLabel * label = nullptr;
for (const auto & it : subfigure->paragraphs()) {
for (pos_type posIn = 0; posIn < it.size(); ++posIn) {
const Inset * inset = it.getInset(posIn);
if (inset) {
switch (inset->lyxCode()) {
case GRAPHICS_CODE:
case TABULAR_CODE:
if (!content) {
content = inset;
type = inset->lyxCode();
}
break;
case CAPTION_CODE:
if (!caption) {
caption = dynamic_cast<const InsetCaption *>(inset);
// A label often hides in a caption. Make a simplified version of the main loop.
if (!label) {
for (const auto &cit : caption->paragraphs()) {
for (pos_type cposIn = 0; cposIn < cit.size(); ++cposIn) {
const Inset *cinset = cit.getInset(posIn);
if (cinset && cinset->lyxCode() == LABEL_CODE) {
label = dynamic_cast<const InsetLabel *>(cinset);
break;
}
}
if (label)
break;
}
}
}
break;
case LABEL_CODE:
if (!label)
label = dynamic_cast<const InsetLabel *>(inset);
break;
default:
break;
}
}
}
if (content && caption && label)
break;
}
return std::make_tuple(type, content, caption, label);
}
void docbookSubfigures(XMLStream & xs, OutputParams const & runparams, const InsetCaption * caption,
const InsetLabel * label, std::vector<const InsetBox *> & subfigures)
const InsetLabel * label, std::vector<const InsetCollapsible *> & subfigures)
{
// Ensure there is no label output, it is supposed to be handled as xml:id.
OutputParams rpNoLabel = runparams;
@ -580,7 +643,7 @@ void docbookSubfigures(XMLStream & xs, OutputParams const & runparams, const Ins
xs << xml::StartTag("formalgroup", attr);
xs << xml::CR();
xs << xml::StartTag("title", attr);
xs << xml::StartTag("title"); // Don't take attr here, the ID should only go in one place, not two.
if (caption) {
caption->getCaptionAsDocBook(xs, rpNoLabel);
} else {
@ -592,29 +655,107 @@ void docbookSubfigures(XMLStream & xs, OutputParams const & runparams, const Ins
// Deal with each subfigure individually. This should also deal with their caption and their label.
// This should be a recursive call to InsetFloat.
for (const InsetBox *subfigure: subfigures) {
// If there is no InsetFloat in the paragraphs, output a warning.
bool foundInsetFloat = false;
for (const auto & it : subfigure->paragraphs()) {
for (pos_type posIn = 0; posIn < it.size(); ++posIn) {
const Inset *inset = it.getInset(posIn);
if (inset && dynamic_cast<const InsetFloat*>(inset)) {
foundInsetFloat = true;
break;
}
}
// An item in subfigure should either be an InsetBox containing an InsetFloat, or an InsetBox directly containing
// an image or a table, or directly an InsetFloat.
for (const InsetCollapsible * subfigure: subfigures) {
if (subfigure == nullptr)
continue;
if (foundInsetFloat)
break;
// The collapsible may already be a float (InsetFloat).
if (dynamic_cast<const InsetFloat *>(subfigure)) {
subfigure->docbook(xs, runparams);
continue;
}
if (!foundInsetFloat)
xs << XMLStream::ESCAPE_NONE << "Error: no float found in the box. "
"To use subfigures in DocBook, elements must be wrapped in a float "
"inset and have a title/caption.";
// Subfigures are in boxes, then in InsetFloat.
{
bool foundInsetFloat = false;
for (const auto &it : subfigure->paragraphs()) {
for (pos_type posIn = 0; posIn < it.size(); ++posIn) {
const Inset *inset = it.getInset(posIn);
if (inset && inset->lyxCode() == FLOAT_CODE) {
foundInsetFloat = true;
inset->docbook(xs, runparams);
break;
}
}
if (foundInsetFloat)
break;
}
if (foundInsetFloat)
continue;
}
// Subfigures are in boxes, then directly an image or a table. In that case, generate the whole content of the
// InsetBox, but not the box container.
// Impose some model on the subfigure: at most a caption, at most a label, exactly one figure or one table.
{
InsetCode stype = NO_CODE;
const Inset * scontent = nullptr;
const InsetCaption * scaption = nullptr;
const InsetLabel * slabel = nullptr;
std::tie(stype, scontent, scaption, slabel) = docbookParseHopelessSubfigure(subfigure);
// If there is something, generate it. This is very much like docbookNoSubfigures, but many things
// must be coded differently because there is no float.
// TODO: some code is identical to Floating, like Floating::docbookTag or Floating::docbookCaption. How to reuse that code?
if (scontent) {
// Floating::docbookCaption()
string docbook_caption = "caption"; // This is already correct for tables.
if (stype == GRAPHICS_CODE)
docbook_caption = "title";
// Floating::docbookTag() with hasTitle = true, as we are in formalgroup.
string stag = "float";
if (stype == GRAPHICS_CODE)
stag = "figure";
else if (stype == TABULAR_CODE)
stag = "table";
// Ensure there is no label output, it is supposed to be handled as xml:id.
if (slabel)
rpNoLabel.docbook_anchors_to_ignore.emplace(slabel->screenLabel());
// Ensure the float does not output its caption, as it is handled here (DocBook mandates a specific place for
// captions, they cannot appear at the end of the float, albeit LyX is happy with that).
OutputParams rpNoTitle = runparams;
rpNoTitle.docbook_in_float = true;
if (stype == TABULAR_CODE)
rpNoTitle.docbook_in_table = true;
// Organisation: <float> <title if any/> <contents without title/> </float>.
docstring sattr = docstring();
if (slabel)
sattr += "xml:id=\"" + xml::cleanID(slabel->screenLabel()) + "\"";
// No layout way of adding attributes, unlike the normal code path.
xs << xml::StartTag(stag, sattr);
xs << xml::CR();
xs << xml::StartTag(docbook_caption);
if (scaption)
scaption->getCaptionAsDocBook(xs, rpNoLabel);
else // Mandatory in formalgroup.
xs << "No caption detected";
xs << xml::EndTag(docbook_caption);
xs << xml::CR();
scontent->docbook(xs, rpNoTitle);
xs << xml::EndTag(stag);
xs << xml::CR();
// This subfigure could be generated.
continue;
}
}
// If there is no InsetFloat in the inset, output a warning.
xs << XMLStream::ESCAPE_NONE << "Error: no float found in the box. "
"To use subfigures in DocBook, elements must be wrapped in a float "
"inset and have a title/caption.";
// TODO: could also output a table, that would ensure that the document is correct and *displays* correctly (but without the right semantics), instead of just an error.
// Finally, recurse.
// Recurse to generate as much content as possible (avoid any loss).
subfigure->docbook(xs, runparams);
}
@ -639,7 +780,7 @@ void docbookNoSubfigures(XMLStream & xs, OutputParams const & runparams, const I
// captions, they cannot appear at the end of the float, albeit LyX is happy with that).
OutputParams rpNoTitle = runparams;
rpNoTitle.docbook_in_float = true;
if (ftype.floattype() == "table")
if (ftype.docbookFloatType() == "table")
rpNoTitle.docbook_in_table = true;
// Organisation: <float> <title if any/> <contents without title/> </float>.
@ -654,7 +795,7 @@ void docbookNoSubfigures(XMLStream & xs, OutputParams const & runparams, const I
xs << xml::StartTag(ftype.docbookTag(caption != nullptr), attr);
xs << xml::CR();
if (caption != nullptr) {
if (caption) {
xs << xml::StartTag(titleTag);
caption->getCaptionAsDocBook(xs, rpNoLabel);
xs << xml::EndTag(titleTag);
@ -673,11 +814,11 @@ void InsetFloat::docbook(XMLStream & xs, OutputParams const & runparams) const
// The caption and the label for each subfigure is handled by recursive calls.
const InsetCaption* caption = nullptr;
const InsetLabel* label = nullptr;
std::vector<const InsetBox *> subfigures;
std::vector<const InsetCollapsible *> subfigures;
auto end = paragraphs().end();
for (auto it = paragraphs().begin(); it != end; ++it) {
std::vector<const InsetBox *> foundSubfigures = findSubfiguresInParagraph(*it);
std::vector<const InsetCollapsible *> foundSubfigures = findSubfiguresInParagraph(*it);
if (!foundSubfigures.empty()) {
subfigures.reserve(subfigures.size() + foundSubfigures.size());
subfigures.insert(subfigures.end(), foundSubfigures.begin(), foundSubfigures.end());

Some files were not shown because too many files have changed in this diff Show More