lyx_mirror/src/tex2lyx/test/test-structure.lyx.lyx
Georg Baum e01886327d Output caption insets collapsed
Like all other collapsable insets, there is not reason to treat captions
specially.
2014-12-27 16:10:11 +01:00

1242 lines
17 KiB
Plaintext

#LyX file created by tex2lyx 2.2
\lyxformat 479
\begin_document
\begin_header
\textclass article
\begin_preamble
%% Special footnote code from the package 'stblftnt.sty'
%% Author: Robin Fairbairns -- Last revised Dec 13 1996
\let\SF@@footnote\footnote
\def\footnote{\ifx\protect\@typeset@protect
\expandafter\SF@@footnote
\else
\expandafter\SF@gobble@opt
\fi
}
\expandafter\def\csname SF@gobble@opt \endcsname{\@ifnextchar[%]
\SF@gobble@twobracket
\@gobble
}
\edef\SF@gobble@opt{\noexpand\protect
\expandafter\noexpand\csname SF@gobble@opt \endcsname}
\def\SF@gobble@twobracket[#1]#2{}
\newenvironment{foo}{==[}{]==}
\usepackage{fixltx2e}% this should cause the fixltx2e module to be loaded
\usepackage{babel}
\addto\extrasfrench{%
\providecommand{\og}{\leavevmode\flqq~}%
\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
}
\end_preamble
\options dummyoption
\use_default_options false
\begin_modules
logicalmkup
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding iso8859-15
\fontencoding default
\font_roman default
\font_sans default
\font_typewriter default
\font_math auto
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 1
\output_sync_macro "\synctex=-1"
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize legalpaper
\use_geometry false
\use_package amsmath 1
\use_package amssymb 0
\use_package cancel 0
\use_package esint 1
\use_package mathdots 0
\use_package mathtools 0
\use_package mhchem 0
\use_package stackrel 0
\use_package stmaryrd 0
\use_package undertilde 0
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date true
\justification true
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes true
\output_changes true
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\author -443692588 "Hans Wurst"
\end_header
\begin_body
\begin_layout Title
Title
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
% this should be recognized as empty date:
\end_layout
\end_inset
\end_layout
\begin_layout Standard
This document contains all sorts of layouts we are supposed to support, along with weird nestings.
\end_layout
\begin_layout Standard
At time you will see that I use subsubsections in weird places. The intent is just to make sure that I can include a macro-type layout everyzhere it makes sense.
\end_layout
\begin_layout Standard
A normal paragraph
\begin_inset Formula \begin{equation}
x = \sin y
\end{equation}
\end_inset
with maths inside it.
\end_layout
\begin_layout Quote
An environment...
\end_layout
\begin_layout Quote
... with two paragraphs
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
begin{foo}
\end_layout
\end_inset
an unknown environment
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
end{foo}
\end_layout
\end_inset
\end_layout
\begin_layout Section
A section
\end_layout
\begin_layout Section
\begin_inset Argument 1
status collapsed
\begin_layout Standard
Hello!
\end_layout
\end_inset
A section with optional argument
\end_layout
\begin_layout Standard
This causes the
\begin_inset Flex Flex:Strong
status collapsed
\begin_layout Standard
logikalmkup
\end_layout
\end_inset
module to be loaded.
\end_layout
\begin_layout Quote
An environment
\end_layout
\begin_layout Standard
We also support change tracking:
\change_inserted -443692588 1320572379
Added text some parts remain
\change_deleted -443692588 1320572395
This was the original text some parts remain
\end_layout
\begin_layout Section*
A starred section for floats
\end_layout
\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Caption Standard
status collapsed
\begin_layout Standard
\emph on
\noun on
is
\noun default
\emph default
a caption
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Caption Standard
status collapsed
\begin_layout Standard
\begin_inset Argument 1
status collapsed
\begin_layout Standard
s
\noun on
ho
\noun default
rt
\end_layout
\end_inset
this
\emph on
is
\emph default
a caption
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Float table
wide true
sideways true
status open
\begin_layout Standard
\begin_inset Caption Standard
status collapsed
\begin_layout Standard
rotated table, spanning all columns
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
centering
\end_layout
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
{}
\end_layout
\end_inset
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
<features rotate="0" tabularvalignment="bottom" tabularwidth="0pt">
<column alignment="center" valignment="top">
<column alignment="center" valignment="top">
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
a
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
b
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
d
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
c
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Wrap figure
lines 4
placement L
overhang 2ex
width 50col%
status open
\begin_layout Standard
\align center
fdgsdfdh
\end_layout
\begin_layout Standard
\begin_inset Caption Standard
status collapsed
\begin_layout Standard
test1
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
LyX is a document preparation system. It excels at letting you create complex technical and scientific articles with mathematics, cross-references, bibliographies, indices, etc. It is very good at documents of any length in which the usual processing abilities are required: automatic sectioning and pagination, spell checking, and so forth. It can also be used to write a letter to your mom, though granted, there are probably simpler programs available for that. It is definitely not the best tool for creating banners, flyers, or advertisements (we'll explain why later), though with some effort all these can be done, too.
\end_layout
\begin_layout Standard
\begin_inset Wrap figure
lines 0
placement o
overhang 0col%
width 50col%
status open
\begin_layout Standard
\align center
fdgs
\end_layout
\begin_layout Standard
\begin_inset Caption Standard
status collapsed
\begin_layout Standard
test2
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
LyX is a document preparation system. It excels at letting you create complex technical and scientific articles with mathematics, cross-references, bibliographies, indices, etc. It is very good at documents of any length in which the usual processing abilities are required: automatic sectioning and pagination, spell checking, and so forth. It can also be used to write a letter to your mom, though granted, there are probably simpler programs available for that. It is definitely not the best tool for creating banners, flyers, or advertisements (we'll explain why later), though with some effort all these can be done, too.
\end_layout
\begin_layout Standard
\begin_inset Wrap table
lines 0
placement i
overhang 5text%
width 5ex
status open
\begin_layout Standard
\begin_inset Caption Standard
status collapsed
\begin_layout Standard
fdg
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
centering
\end_layout
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
{}
\end_layout
\end_inset
dfgd
\end_layout
\end_inset
\end_layout
\begin_layout Standard
LyX is a document preparation system. It excels at letting you create complex technical and scientific articles with mathematics, cross-references, bibliographies, indices, etc. It is very good at documents of any length in which the usual processing abilities are required: automatic sectioning and pagination, spell checking, and so forth. It can also be used to write a letter to your mom, though granted, there are probably simpler programs available for that. It is definitely not the best tool for creating banners, flyers, or advertisements (we'll explain why later), though with some effort all these can be done, too.
\end_layout
\begin_layout Standard
\begin_inset Float table
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Caption Standard
status collapsed
\begin_layout Standard
lkälöä
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Float table
wide false
sideways false
status collapsed
\begin_layout Standard
klöä
\end_layout
\begin_layout Plain Layout
\begin_inset Caption Standard
\begin_layout Standard
ölkälö
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status collapsed
\begin_layout Standard
sub
\color red
fig
\color inherit
u%re 1
\end_layout
\begin_layout Plain Layout
\begin_inset Caption Standard
\begin_layout Standard
te%st
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset space \hfill{}
\end_inset
\begin_inset Float figure
wide false
sideways false
status collapsed
\begin_layout Standard
subfigure 2ö
\end_layout
\begin_layout Plain Layout
\begin_inset Caption Standard
\begin_layout Standard
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status collapsed
\begin_layout Standard
subfigure 3
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Caption Standard
status collapsed
\begin_layout Standard
figure caption
\end_layout
\end_inset
\end_layout
\begin_layout Standard
strange usage, but valid
\end_layout
\end_inset
\end_layout
\begin_layout Subsection
Some paragraph stuff
\end_layout
\begin_layout Standard
A paragraph
\begin_inset Foot
status collapsed
\begin_layout Standard
hello
\end_layout
\end_inset
with a footnote and another one
\begin_inset Foot
status collapsed
\begin_layout Standard
hello
\end_layout
\begin_layout Standard
there
\end_layout
\end_inset
with several paragraphs
\begin_inset VSpace 1cm
\end_inset
aa
\end_layout
\begin_layout Standard
and another paragraph
\end_layout
\begin_layout Standard
\align center
Some centered stuff
\end_layout
\begin_layout Quotation
An environment
\end_layout
\begin_deeper
\begin_layout Subsubsection*
with a command inside it
\end_layout
\end_deeper
\begin_layout Standard
\begin_inset Separator plain
\end_inset
\end_layout
\begin_layout Quotation
Another environment
\end_layout
\begin_deeper
\begin_layout Quotation
With another one inside it (with same layout)
\end_layout
\begin_layout Quotation
[this one even has several paragraphs!]
\end_layout
\end_deeper
\begin_layout Standard
We can also nest enumerations
\end_layout
\begin_layout Enumerate
Item1
\end_layout
\begin_deeper
\begin_layout Enumerate
Item1.a
\end_layout
\begin_layout Enumerate
Item1.b (there is a paragraph break in front of this)
\end_layout
\begin_deeper
\begin_layout Itemize
Item1.b.*
\end_layout
\begin_layout Itemize
Item1.b.*
\end_layout
\end_deeper
\end_deeper
\begin_layout Enumerate
Item2
\end_layout
\begin_layout Standard
\begin_inset Separator plain
\end_inset
\end_layout
\begin_layout Enumerate
Item1 (appears as Item3 with bug 5716)
\end_layout
\begin_deeper
\begin_layout Standard
Normal paragraph in Item1
\end_layout
\begin_layout Enumerate
Item1.a
\end_layout
\end_deeper
\begin_layout Standard
Let's see what happens when normal paragraphs are inserted in lists:
\end_layout
\begin_layout Itemize
the first item
\end_layout
\begin_deeper
\begin_layout Standard
with some explanatory text under it
\end_layout
\begin_layout Standard
and a second paragraph for good measure
\end_layout
\begin_layout Subsubsection*
we can even have one as a subsubsection
\end_layout
\end_deeper
\begin_layout Itemize
the second item
\end_layout
\begin_layout Itemize
\begin_inset Argument item:1
status open
\begin_layout Plain Layout
custom label
\end_layout
\end_inset
the third item has a custom label
\end_layout
\begin_deeper
\begin_layout Subsubsection*
and a sssection heading inside it (why not?)
\end_layout
\end_deeper
\begin_layout Standard
What else? Well, we have descriptions:
\end_layout
\begin_layout Description
ABC first item
\end_layout
\begin_layout Description
BCD second one
\end_layout
\begin_layout Description
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
x y z
\end_layout
\end_inset
with space
\end_layout
\begin_layout Description
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
x y % bla
\end_layout
\begin_layout Plain Layout
z
\end_layout
\end_inset
and with comments
\end_layout
\begin_layout Standard
labelings:
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
label
\begin_inset space ~
\end_inset
1 first item
\end_layout
\begin_layout Labeling
label
\begin_inset space ~
\end_inset
2 second item
\end_layout
\begin_layout Labeling
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
$
\backslash
left[
\backslash
textrm{ }
\backslash
right]^{x}$
\end_layout
\end_inset
Label with space, math and ] in it
\end_layout
\begin_layout Standard
verbatim:
\end_layout
\begin_layout Verbatim
verbat im % $ 02/19/12
\end_layout
\begin_layout Verbatim
hjkh
\end_layout
\begin_layout Verbatim
jkh
\backslash
blah
\end_layout
\begin_layout Verbatim
\backslash
begin{centering}
\end_layout
\begin_layout Verbatim
\end_layout
\begin_layout Verbatim
\end_layout
\begin_layout Verbatim
zzz
\backslash
section{
\end_layout
\begin_layout Verbatim
\backslash
end{raggedleft}
\end_layout
\begin_layout Verbatim
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
verb~
\backslash
~
\end_layout
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
verb+
\backslash
item[ABC] first item+
\end_layout
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
verb+something
\backslash
+
\end_layout
\end_inset
bug 4468
\end_layout
\begin_layout Standard
and bibliography:
\end_layout
\begin_layout Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
label ""
key "FOO"
\end_inset
Edward Bar.
\emph on
The Foo Book
\emph default
. (1999)
\end_layout
\begin_layout Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
label ""
key "FO2"
\end_inset
Walter Müller
\emph on
The Müller Book
\emph default
. (2004)
\end_layout
\begin_layout Standard
\start_of_appendix
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
%dummy comment inserted by tex2lyx to ensure that this paragraph is not empty
\end_layout
\end_inset
\end_layout
\begin_layout Section
This is the Appendix
\end_layout
\begin_layout Standard
\noindent
blabla bla bla
\end_layout
\begin_layout Standard
switch to german:
\lang german
Hallo!
\lang french
some
\emph on
french
\emph default
\lang german
back to english:
\lang newzealand
and some nested
\lang french
french
\lang german
nested
\emph on
german
\emph default
\lang french
french
\lang newzealand
english stuff. Note that we both used
\family typewriter
french
\family default
and the
\family typewriter
francais
\family default
alias for the french text, but for some reason this does not work with the
\family typewriter
newzealand
\family default
alias and
\family typewriter
english
\family default
for english text.
\end_layout
\begin_layout Section
\lang newzealand
Another Appendix section
\end_layout
\begin_layout Standard
\lang newzealand
blub
\end_layout
\begin_layout Standard
\lang newzealand
Test for missing
\backslash
end_deeper (file format 278). This must stay at the very end of the document!
\end_layout
\begin_layout Itemize
\lang newzealand
par1
\end_layout
\begin_deeper
\begin_layout Standard
\lang newzealand
par2
\end_layout
\begin_layout Enumerate
\lang newzealand
par1
\end_layout
\begin_deeper
\begin_layout Standard
\lang newzealand
par2
\end_layout
\end_deeper
\end_deeper
\end_body
\end_document