From e69124ab76ba12bd4e9598fa8d25eafce0c9b8a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sun, 24 May 2015 18:42:46 +0200 Subject: [PATCH] test-insets-basic.tex: add new testfile The idea is to get a compilable file that does not require programs that are only available on certain platforms. For example on Windows there is no Gnumeric available (only a very outdated and unsupported version with bugs). --- src/tex2lyx/Makefile.am | 2 + src/tex2lyx/test/test-insets-basic.lyx.lyx | 7171 ++++++++++++++++++++ src/tex2lyx/test/test-insets-basic.tex | 746 ++ 3 files changed, 7919 insertions(+) create mode 100644 src/tex2lyx/test/test-insets-basic.lyx.lyx create mode 100644 src/tex2lyx/test/test-insets-basic.tex diff --git a/src/tex2lyx/Makefile.am b/src/tex2lyx/Makefile.am index 82d22b1dde..a7b23f8a96 100644 --- a/src/tex2lyx/Makefile.am +++ b/src/tex2lyx/Makefile.am @@ -34,6 +34,7 @@ TEST_FILES = \ test/foo.eps \ test/foo.png \ test/test-insets.tex \ + test/test-insets-basic.lyx \ test/test.ltx \ test/test-memoir.tex \ test/test-modules.tex \ @@ -54,6 +55,7 @@ TEST_RESULTS = \ test/Dummy Document.lyx.lyx \ test/Dummy~Document.lyx.lyx \ test/test-insets.lyx.lyx \ + test/test-insets-basic.lyx.lyx \ test/test.lyx.lyx \ test/test-memoir.lyx.lyx \ test/test-modules.lyx.lyx \ diff --git a/src/tex2lyx/test/test-insets-basic.lyx.lyx b/src/tex2lyx/test/test-insets-basic.lyx.lyx new file mode 100644 index 0000000000..9649a4a17f --- /dev/null +++ b/src/tex2lyx/test/test-insets-basic.lyx.lyx @@ -0,0 +1,7171 @@ +#LyX file created by tex2lyx 2.2 +\lyxformat 495 +\begin_document +\begin_header +\origin D:/LyXGit/Master/src/tex2lyx/test/ +\textclass article +\begin_preamble + +% Load refstyle before prettyref so that prettyref wins. +% The real refstyle tests are in test-refstyle-theorems.tex. +\usepackage{refstyle} +\AtBeginDocument{\providecommand\secref[1]{\ref{sec:#1}}} + + +\def\mycommand{\textquestiondown} + + +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package none +\inputencoding iso8859-15 +\fontencoding T1 +\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 0 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing onehalf +\use_hyperref true +\pdf_bookmarks 0 +\pdf_bookmarksnumbered 0 +\pdf_bookmarksopen 0 +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks 0 +\pdf_pdfborder 0 +\pdf_colorlinks 0 +\pdf_backref section +\pdf_pdfusetitle 0 +\papersize a4paper +\use_geometry false +\use_package amsmath 2 +\use_package amssymb 2 +\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 natbib +\cite_engine_type numerical +\biblio_style plainnat +\use_bibtopic false +\use_indices true +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\index new +\shortcut new +\color #008000 +\end_index +\index test +\shortcut test +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation 3mm +\quotes_language english +\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 +Title +\end_layout + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +%stupid stuff +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Date +two days ago +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\begin_inset CommandInset toc +LatexCommand lstlistoflistings + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +This paragraph is not indented. +\end_layout + +\begin_layout Section +References +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +References +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Let's start with simple things: a label +\begin_inset space ~ + +\end_inset + + +\begin_inset CommandInset label +LatexCommand label +name "lab:test" + +\end_inset + + and a reference +\begin_inset space ~ + +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "lab:test" + +\end_inset + +; note that I have tested +\begin_inset Quotes eld +\end_inset + +unbreakable space +\begin_inset Quotes erd +\end_inset + + without warning (and worse than that, I just tested english quotes too...). +\end_layout + +\begin_layout Standard +Of course there are other kind of references, like page reference +\begin_inset space ~ + +\end_inset + + +\begin_inset CommandInset ref +LatexCommand pageref +reference "lab:test" + +\end_inset + +, but also equation reference +\begin_inset space ~ + +\end_inset + + +\begin_inset CommandInset ref +LatexCommand eqref +reference "lab:test" + +\end_inset + + (from amsmath package), or varioref's equivalents +\begin_inset space ~ + +\end_inset + + +\begin_inset CommandInset ref +LatexCommand vref +reference "lab:test" + +\end_inset + + and +\begin_inset space ~ + +\end_inset + + +\begin_inset CommandInset ref +LatexCommand vpageref +reference "lab:test" + +\end_inset + +, without forgetting pretty references like +\begin_inset space ~ + +\end_inset + + +\begin_inset CommandInset ref +LatexCommand formatted +reference "lab:test" + +\end_inset + + as well as textual references like +\begin_inset space ~ + +\end_inset + + +\begin_inset CommandInset ref +LatexCommand nameref +reference "lab:test" + +\end_inset + +. The command +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +secref +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +lab:test +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + will be parsed in ERT, since LyX does not support refstyle and prettyref natively at the same time. +\end_layout + +\begin_layout Section +Cites +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Cites +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Let's start with simple things: a +\backslash +cite: +\begin_inset CommandInset citation +LatexCommand citep +after "after" +before "" +key "article-crossref" + +\end_inset + + and two +\backslash +cites: +\begin_inset CommandInset citation +LatexCommand citep +after "after" +before "" +key "whole-set,article-crossref" + +\end_inset + + +\end_layout + +\begin_layout Standard +Now the natbib things: +\end_layout + +\begin_layout Standard + +\backslash +citet: +\begin_inset CommandInset citation +LatexCommand citet +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +citet*: +\begin_inset CommandInset citation +LatexCommand citet* +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +Citet: +\begin_inset CommandInset citation +LatexCommand Citet +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +Citet*: +\begin_inset CommandInset citation +LatexCommand Citet* +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\backslash +citep: +\begin_inset CommandInset citation +LatexCommand citep +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +citep*: +\begin_inset CommandInset citation +LatexCommand citep* +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +Citep: +\begin_inset CommandInset citation +LatexCommand Citep +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +Citep*: +\begin_inset CommandInset citation +LatexCommand Citep* +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\backslash +citealt: +\begin_inset CommandInset citation +LatexCommand citealt +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +citealt*: +\begin_inset CommandInset citation +LatexCommand citealt* +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +Citealt: +\begin_inset CommandInset citation +LatexCommand Citealt +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +Citealt*: +\begin_inset CommandInset citation +LatexCommand Citealt* +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\backslash +citealp: +\begin_inset CommandInset citation +LatexCommand citealp +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +citealp*: +\begin_inset CommandInset citation +LatexCommand citealp* +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +Citealp: +\begin_inset CommandInset citation +LatexCommand Citep +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +Citealp*: +\begin_inset CommandInset citation +LatexCommand Citealp* +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\backslash +citeauthor: +\begin_inset CommandInset citation +LatexCommand citeauthor +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +citeauthor*: +\begin_inset CommandInset citation +LatexCommand citeauthor* +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +Citeauthor: +\begin_inset CommandInset citation +LatexCommand Citeauthor +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\backslash +Citeauthor*: +\begin_inset CommandInset citation +LatexCommand Citeauthor* +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\backslash +citeyear: +\begin_inset CommandInset citation +LatexCommand citeyear +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\backslash +citeyearpar: +\begin_inset CommandInset citation +LatexCommand citeyearpar +after "after" +before "before" +key "article-crossref" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\backslash +nocite: +\begin_inset CommandInset citation +LatexCommand nocite +after "" +key "article-crossref" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +% Remove duplicate call of +\backslash +bibliography since LaTeX throws an error. +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +% +\backslash +bibliographystyle{unsrt} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +% +\backslash +bibliography{xampl} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +With +\backslash +nocite{*}: +\begin_inset CommandInset bibtex +LatexCommand bibtex +btprint "btPrintAll" +bibfiles "xampl" +options "unsrt" + +\end_inset + + +\end_layout + +\begin_layout Standard +From bug 7306: +\begin_inset CommandInset citation +LatexCommand citet +after "" +before "" +key "gur+04" + +\end_inset + + have demonstrated that authors should not have umlauts in their names. It's OK to use them in the manüscript, though. +\end_layout + +\begin_layout Bibliography + +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Möstl et~al.(2010)" +key "Mostl2010" + +\end_inset + + Gürkan, M. +\begin_inset space ~ + +\end_inset + +A., Freitag, M., & Rasio, F. +\begin_inset space ~ + +\end_inset + +A. 2004, ApJ, 604, 632 +\end_layout + +\begin_layout Bibliography + +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "{{Gürkan et~al.}(2004)}" +key "gur+04" + +\end_inset + + Gürkan, M. +\begin_inset space ~ + +\end_inset + +A., Freitag, M., & Rasio, F. +\begin_inset space ~ + +\end_inset + +A. 2004, ApJ, 604, 632 +\end_layout + +\begin_layout Section +Input files +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Input files +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +We can input files too, like this +\begin_inset CommandInset include +LatexCommand input +preview false +filename "DummyDocument.lyx" + +\end_inset + +, or with the include variant (tests quoting as well): +\begin_inset CommandInset include +LatexCommand include +preview false +filename "Dummy Document.lyx" + +\end_inset + + +\begin_inset CommandInset include +LatexCommand include +preview false +filename "Dummy Document.lyx" + +\end_inset + + +\begin_inset CommandInset include +LatexCommand include +preview false +filename "Dummy~Document.lyx" + +\end_inset + + +\begin_inset CommandInset include +LatexCommand include +preview false +filename "Dummy~Document.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +We can also import PDF pages: +\end_layout + +\begin_layout Standard + +\begin_inset External + template PDFPages + filename ../../../lib/examples/beamer-icsi-logo.pdf + extra LaTeX "pages=-" + rotateAngle 22 + rotateOrigin baselineleft + width 5cm + height 40mm + keepAspectRatio + +\end_inset + + +\end_layout + +\begin_layout Standard +If you prefer verbatim input, you can choose between +\begin_inset space ~ + +\end_inset + + +\begin_inset CommandInset include +LatexCommand verbatiminput +preview false +filename "DummyDocument.tex" + +\end_inset + + or +\begin_inset space ~ + +\end_inset + + +\begin_inset CommandInset include +LatexCommand verbatiminput* +preview false +filename "DummyDocument.tex" + +\end_inset + +. +\end_layout + +\begin_layout Section +URLs and Hyperlinks +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +URL +\end_layout + +\end_inset + + +\begin_inset CommandInset nomenclature +LatexCommand nomenclature +prefix "www" +symbol "URL" +description "uniform resource locator" + +\end_inset + + +\end_layout + +\begin_layout Standard +An URL: +\begin_inset Flex Flex:URL +status collapsed + +\begin_layout Plain Layout +http://www.lyx.org +\end_layout + +\end_inset + + +\begin_inset CommandInset nomenclature +LatexCommand nomenclature +symbol "URL2" +description "uniform resource locator" + +\end_inset + + +\end_layout + +\begin_layout Standard +An URL with strange characters: +\begin_inset Flex Flex:URL +status collapsed + +\begin_layout Plain Layout +http://www.lyx.org/percent%dollar$ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +link: +\begin_inset CommandInset href +LatexCommand href +target "www.test.test" + +\end_inset + + +\end_layout + +\begin_layout Standard +link2: +\begin_inset CommandInset href +LatexCommand href +target "http://www.test.test" + +\end_inset + + +\end_layout + +\begin_layout Standard +mail: +\begin_inset CommandInset href +LatexCommand href +name "name" +target "www.test.test" +type "mailto:" + +\end_inset + + +\end_layout + +\begin_layout Standard +file: +\begin_inset CommandInset href +LatexCommand href +target "www.test.test" +type "file:" + +\end_inset + + +\end_layout + +\begin_layout Standard +ftp: +\begin_inset CommandInset href +LatexCommand href +target "ftp://www.test.test" + +\end_inset + + +\end_layout + +\begin_layout Standard +ftp2: +\begin_inset CommandInset href +LatexCommand href +name "www.test.test" +target "ftp://www.test.test" + +\end_inset + + +\end_layout + +\begin_layout Standard +parser test (stupid, but valid): +\begin_inset CommandInset href +LatexCommand href +name "}" +target "http://www.test.test" + +\end_inset + + +\end_layout + +\begin_layout Standard +parser test (escaped): +\begin_inset CommandInset href +LatexCommand href +name "a brace } and another one { and something" +target "http://www.test.test" + +\end_inset + + +\end_layout + +\begin_layout Section +Lists +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Lists +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\begin_inset FloatList figure + +\end_inset + + +\begin_inset FloatList table + +\end_inset + + +\end_layout + +\begin_layout Section +Listings +\end_layout + +\begin_layout Standard +Inline: +\begin_inset listings +lstparams "language={C++},keywordstyle={\color{green}}" +inline true +status collapsed + +\begin_layout Plain Layout +int a=5; +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + Float: +\end_layout + +\begin_layout Standard + +\begin_inset listings +lstparams "caption={Example Listing float},label={lst:Example-Listing},language=Python" +inline false +status collapsed + +\begin_layout Plain Layout +# Example listing float +\end_layout + +\begin_layout Plain Layout +def func(param): +\end_layout + +\begin_layout Plain Layout + 'this is a python function' +\end_layout + +\begin_layout Plain Layout + pass +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Here is an example listing with left line numbering, step +\begin_inset Quotes eld +\end_inset + +3 +\begin_inset Quotes erd +\end_inset + +, language +\begin_inset Quotes eld +\end_inset + +Python +\begin_inset Quotes erd +\end_inset + +, options +\begin_inset Quotes eld +\end_inset + +Extended character table +\begin_inset Quotes erd +\end_inset + + and +\begin_inset Quotes eld +\end_inset + +Space +\begin_inset space ~ + +\end_inset + +as +\begin_inset space ~ + +\end_inset + +symbol +\begin_inset Quotes erd +\end_inset + +, range lines 3 +\begin_inset space \thinspace{} + +\end_inset + +- +\begin_inset space \thinspace{} + +\end_inset + +8: +\end_layout + +\begin_layout Standard + +\begin_inset listings +lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3" +inline false +status collapsed + +\begin_layout Plain Layout +def func(param): +\end_layout + +\begin_layout Plain Layout + 'this is a python function' +\end_layout + +\begin_layout Plain Layout + pass +\end_layout + +\begin_layout Plain Layout +def func(param): +\end_layout + +\begin_layout Plain Layout +'This is a German word: Tschüß' +\end_layout + +\begin_layout Plain Layout +pass +\end_layout + +\begin_layout Plain Layout +def func(param): +\end_layout + +\begin_layout Plain Layout +'this is a python function' +\end_layout + +\begin_layout Plain Layout +pass +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Special cases: +\begin_inset listings +lstparams "abovecaptionskip=2em,basicstyle={\large\ttfamily},breaklines=true,extendedchars=true,firstline=2,float=h,language={[R/3 3.1]ABAP},lastline=5,numbers=left,numberstyle={\scriptsize},showspaces=true,showstringspaces=false,stepnumber=3,tabsize=4" +inline false +status collapsed + +\begin_layout Plain Layout +hello +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\begin_inset listings +lstparams "language=TeX" +inline true +status collapsed + +\begin_layout Plain Layout + +\backslash +begin{centering} hello +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Graphics +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Graphics +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +There is also some basic support for graphics, in the form +\begin_inset Graphics + filename foo.eps + +\end_inset + +, or the slightly more elaborate +\begin_inset Graphics + filename foo.eps + width 1cm + height 1cm + clip + BoundingBox 10bp 0bp 96bp 96bp + +\end_inset + +. +\end_layout + +\begin_layout Section +Tables +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Tables +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The following example is stolen from the longtable documentation. Since tex2lyx does not understand the special verbatim code that was used in the original some lines have been rewritten using +\backslash +textbackslash etc. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +let +\backslash +package +\backslash +textsf +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +let +\backslash +env +\backslash +textsf +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +let +\backslash +code +\backslash +texttt +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +providecommand{ +\backslash +finalclearpage}{ +\backslash +clearpage} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Standard +KILLED +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +LINE!!!! +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +kill +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +An optional table caption (used in the list of tables) +\end_layout + +\end_inset + +A long table +\begin_inset CommandInset label +LatexCommand label +name "long" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +This part appears at the top of the table +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard + +\shape smallcaps +First +\shape default + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard + +\shape smallcaps +Second +\shape default + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset Caption Standard + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\end_inset + +(continued) +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +This part appears at the top of every other page +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard + +\series bold +First +\series default + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard + +\series bold +Second +\series default + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset Caption LongTableNoNumber + +\begin_layout Plain Layout +standard foot +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +This goes at the +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +bottom. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset Caption LongTableNoNumber + +\begin_layout Plain Layout +(last foot) +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +These lines will +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +appear +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +in place of the +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +usual foot +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +at the end +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +of the table +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +env +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +longtable +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + columns are specified +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +in the +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +same way as in the +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +env +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +tabular +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +environment. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +code +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +@{*}r||p{1in}@{*} +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +in this case. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Each row ends with a +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +code +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + + +\backslash + +\backslash + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + command. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +The +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +code +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + + +\backslash + +\backslash + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + command has an +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +optional +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +argument, just as in +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +the +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +env +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +tabular +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +environment. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +[10pt] See the effect of +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +code +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + + +\backslash + +\backslash +[10pt] +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +? +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Also +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +code +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + + +\backslash +hline +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + may be used, +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +as in +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +env +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +tabular +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + +. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +That was a +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +code +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + + +\backslash +hline +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +That was +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +code +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + + +\backslash +hline +\backslash +hline +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +This is a +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +code +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + + +\backslash +multicolumn{2}{||c||} +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +If a page break occurs at a +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +code +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + + +\backslash +hline +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + then +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +a line is drawn +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +at the bottom of one page and at the +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +top of the next. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +The +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +code +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +[t] [b] [c] +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + argument of +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +env +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +tabular +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +can not be used. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +The optional argument may be one of +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +code +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +[l] [r] [c] +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +to specify whether the table should be +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +adjusted +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +to the left, right +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +or centrally. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Some lines may take up a lot of space, like this: +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +raggedleft +\end_layout + +\end_inset + +This last column is a +\begin_inset Quotes eld +\end_inset + +p +\begin_inset Quotes erd +\end_inset + + column so this +\begin_inset Quotes eld +\end_inset + +row +\begin_inset Quotes erd +\end_inset + + of the table can take up several lines. Note however that \SpecialChar TeX + +\begin_inset space \space{} + +\end_inset + +will never break a page within such a row. Page breaks only occur between rows of the table or at +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +code +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + + +\backslash +hline +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + commands. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots +\begin_inset Foot +status collapsed + + +\begin_layout Standard +This is a footnote. +\end_layout + +\end_inset + + of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this +\begin_inset Foot +status collapsed + + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +env +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +longtable +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + takes special precautions, so that footnotes may also be used in `p' columns. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +From bug 7412 another example with more captions (can currently not produced in LyX): +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset Caption Standard + +\begin_layout Plain Layout +A long table +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset Caption Standard + +\begin_layout Plain Layout +A long table – continued +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +Continued on next page +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Something +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +Description +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Lots of lines +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +like this. +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +A table*: +\end_layout + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +% some comment +\end_layout + +\end_inset + + +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Standard +two +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +lonely +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +lines +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +A booktabs table: +\end_layout + +\begin_layout Standard + +\begin_inset Float table +placement h +wide false +sideways false +status open + + +\begin_layout Standard + +\begin_inset Caption Standard + +\begin_layout Plain Layout + +\begin_inset CommandInset label +LatexCommand label +name "tab:Special-booktabs-table" + +\end_inset + +Special booktabs-table +\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 + + + + + + + + +\begin_inset Text + +\begin_layout Standard +System +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +Chip +\begin_inset space \thinspace{} + +\end_inset + +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +Chip +\begin_inset space \thinspace{} + +\end_inset + +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +cmidrule +\end_layout + +\end_inset + +(r) +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +2-2 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +cmidrule +\end_layout + +\end_inset + +(l) +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +3-4 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +morecmidrules +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +cmidrule +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +2-4 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + +Detector thickness in µm +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +300 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +300 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +700 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Edge angle in ° +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +3.55 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +2.71 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +7.99 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +Spatial resolution in µm +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +4.26 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +10.17 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +10.56 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +MTF at +\begin_inset Formula $f_{\mathrm{max}}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +0.53 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +0.37 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +0.39 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +morecmidrules +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +cmidrule +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +3-4 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + +LSF-spatial resolution +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + +\begin_inset Text + +\end_inset + + +\begin_inset Text + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +in µm +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +129.7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +52.75 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +50.78 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +in % of pixel size +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +76.3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +95.9 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +92.3 +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +A table using dcolumn: +\end_layout + +\begin_layout Standard + +\begin_inset Float table +wide false +sideways false +status open + + +\begin_layout Standard + +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Standard +One +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +Two +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard + +\family roman +Three +\family default + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard + +\family roman +Four +\family default + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard + +\family roman +Five +\family default + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +one +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +two +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 1 +width "" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + + +\begin_layout Standard +three +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 1 +width "" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + + +\begin_layout Standard +four +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard + +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 1 +width "" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + + +\begin_layout Standard +five +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +He +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +2.77234 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +45672. +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +0.69 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +C +\begin_inset Foot +status collapsed + + +\begin_layout Standard +Some tables require footnotes. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +C +\begin_inset Foot +status collapsed + + +\begin_layout Standard +Some tables need more than one footnote. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +12537.64 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +37.66345 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +86.37 +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Macros +\end_layout + +\begin_layout Standard +LyX supports several kinds of macros: def +\begin_inset FormulaMacro +\def\macroa #1{a #1 a} +\end_inset + + global def +\begin_inset FormulaMacro +\def\macrob #1{b #1 b} +\end_inset + + long def +\begin_inset FormulaMacro +\def\macroc #1{c #1 c} +\end_inset + + global long def +\begin_inset FormulaMacro +\def\macrod #1{d #1 d} +\end_inset + + providecommand +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +providecommand{ +\backslash +macroe}[1]{e #1 e} +\end_layout + +\end_inset + + providecommand* +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +providecommand*{ +\backslash +macrof}[1]{f #1 f} +\end_layout + +\end_inset + + newcommand +\begin_inset FormulaMacro +\newcommand{\macrog}[1]{g #1 g} +\end_inset + + renewcommand +\begin_inset FormulaMacro +\renewcommand{\macrog}[1]{h #1 h} +\end_inset + + newcommand* +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +newcommand*{ +\backslash +macroi}[1]{i #1 i} +\end_layout + +\end_inset + + renewcommand* +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +renewcommand*{ +\backslash +macroi}[1]{j #1 j} +\end_layout + +\end_inset + + providecommandx +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +providecommandx{ +\backslash +macrok}[1]{k #1 k} +\end_layout + +\end_inset + + providecommandx* +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +providecommandx*{ +\backslash +macrok}[1]{l #1 l} +\end_layout + +\end_inset + + newcommandx +\begin_inset FormulaMacro +\newcommandx{\macrom}[1]{m #1 m} +\end_inset + + renewcommandx +\begin_inset FormulaMacro +\renewcommandx{\macrom}[1]{n #1 n} +\end_inset + + newcommandx* +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +newcommandx*{ +\backslash +macroo}[1]{o #1 o} +\end_layout + +\end_inset + + renewcommandx* +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +renewcommandx*{ +\backslash +macroo}[1]{p #1 p} +\end_layout + +\end_inset + + DeclareRobustCommand +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +DeclareRobustCommand{ +\backslash +macroq}[1]{q #1 q} +\end_layout + +\end_inset + + DeclareRobustCommand* +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +DeclareRobustCommand*{ +\backslash +macror}[1]{r #1 r} +\end_layout + +\end_inset + + DeclareRobustCommandx +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +DeclareRobustCommandx{ +\backslash +macros}[1]{s #1 s} +\end_layout + +\end_inset + + DeclareRobustCommandx* +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +DeclareRobustCommandx*{ +\backslash +macrot}[1]{t #1 t} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Now use them all: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macroa +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macrob +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macroc +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macrod +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macroe{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macrof{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macrog{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macroi{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macrok{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macrom{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macroo{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macroq{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +macror{ +\end_layout + +\end_inset + +x +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + The following tow don't work, but they should??? +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +% +\backslash +macros{x} +\backslash +macrot{x} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Special formattings +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Special formattings +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +LyX line +\end_layout + +\begin_layout Standard +test +\end_layout + +\begin_layout Standard + +\size tiny + +\end_layout + +\begin_layout Standard +\noindent + +\size tiny + +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\size default + +\size tiny + +\end_layout + +\begin_layout Standard +test +\size giant +Test +\size default + +\size tiny +test +\size default + test +\end_layout + +\begin_layout Standard +\noindent + +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Standard +test +\end_layout + +\begin_layout Standard + +\size giant + +\end_layout + +\begin_layout Standard +\noindent + +\size giant + +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\size default + +\size giant + +\end_layout + +\begin_layout Subsection +rules +\end_layout + +\begin_layout Standard +test +\begin_inset CommandInset line +LatexCommand rule +offset "0.1text%" +width "100col%" +height "5theight%" + +\end_inset + + +\end_layout + +\begin_layout Standard +test +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100col%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent + +\begin_inset CommandInset line +LatexCommand rule +width "1ex" +height "0.5cc" + +\end_inset + +test +\end_layout + +\begin_layout Standard + +\color red + +\begin_inset CommandInset line +LatexCommand rule +offset "-4ex" +width "5in" +height "1cm" + +\end_inset + + +\color inherit + +\end_layout + +\begin_layout Subsection +Phantoms +\end_layout + +\begin_layout Standard +test +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +Wow +\end_layout + +\end_inset + +test +\end_layout + +\begin_layout Standard +test +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout + +\color green +W +\color inherit + +\series bold +ow +\series default + +\begin_inset script superscript + +\begin_layout Plain Layout +Wow +\end_layout + +\end_inset + + +\end_layout + +\end_inset + +test +\end_layout + +\begin_layout Standard +test +\begin_inset Phantom VPhantom +status open + +\begin_layout Plain Layout +Wow +\backslash +&% +\end_layout + +\end_inset + +test +\end_layout + +\begin_layout Standard + +\begin_inset Formula $test\hphantom{Wow}test$ +\end_inset + + +\end_layout + +\begin_layout Standard + +\begin_inset Formula \[ +test\phantom{\textcolor{green}{W}\mathbf{ow}\textsuperscript{Wow}}test +\] +\end_inset + + +\end_layout + +\begin_layout Standard + +\begin_inset Formula $test\vphantom{Wow\&\%}test$ +\end_inset + + +\end_layout + +\begin_layout Subsection +TIPA +\end_layout + +\begin_layout Standard + +\begin_inset IPA + +\begin_layout Standard +eÌ¥ e̊ e̬ e̤ ḛ e̼ e̪ e̺ eÌ» e +\begin_inset script superscript + +\begin_layout Plain Layout +h +\end_layout + +\end_inset + + e̹ e̜ e̟ eÌ  eÌ  ë e̽ eÌ© eÌ© e̯ e˞e +\begin_inset script superscript + +\begin_layout Plain Layout +w +\end_layout + +\end_inset + + e +\begin_inset script superscript + +\begin_layout Plain Layout +j +\end_layout + +\end_inset + + e +\begin_inset script superscript + +\begin_layout Plain Layout +É£ +\end_layout + +\end_inset + + e +\begin_inset script superscript + +\begin_layout Plain Layout +ʕ +\end_layout + +\end_inset + + eÌ´ e̝ e̞ e̘ e̙ ẽ e +\begin_inset script superscript + +\begin_layout Plain Layout +n +\end_layout + +\end_inset + + e +\begin_inset script superscript + +\begin_layout Plain Layout +l +\end_layout + +\end_inset + + e˺ e̋ +\end_layout + +\begin_layout Standard +è ē é ȅ ě ê e᷄ e᷅ e᷈ ĕ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\begin_inset IPA + +\begin_layout Standard +pbtd +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +: +\end_layout + +\end_inset + +t +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +: +\end_layout + +\end_inset + +dcɟkÉ¡q +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +; +\end_layout + +\end_inset + +G +\end_layout + +\end_inset + + +\begin_inset IPA + +\begin_layout Standard +PmMn +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +: +\end_layout + +\end_inset + +nɲN +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +; +\end_layout + +\end_inset + +N +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +; +\end_layout + +\end_inset + +Br +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +; +\end_layout + +\end_inset + +RR +\end_layout + +\end_inset + + +\begin_inset IPA + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +: +\end_layout + +\end_inset + +rFBfvTDszSZ +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +: +\end_layout + +\end_inset + +s +\end_layout + +\end_inset + + +\begin_inset IPA + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +: +\end_layout + +\end_inset + +zçJxGXKħQhHɬ +\end_layout + +\end_inset + + +\begin_inset IPA + +\begin_layout Standard +É®Vɹ +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +: +\end_layout + +\end_inset + +RhÉ°l +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +: +\end_layout + +\end_inset + +lL +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +; +\end_layout + +\end_inset + +L +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\begin_inset IPA + +\begin_layout Standard +ʘ|!ǂ||ɓɗʄɠʛe' +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\begin_inset IPA + +\begin_layout Standard +iy1ʉW +\color red +uIY +\color inherit +Ueø987o@Eœ3ɞ2Oæ5aɶA6 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\begin_inset IPA + +\begin_layout Standard +ʍw4 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +; +\end_layout + +\end_inset + +HʢʡCʑɺɧ +\begin_inset IPADeco toptiebar +status open + +\begin_layout Standard +ar +\end_layout + +\end_inset + + +\begin_inset IPADeco bottomtiebar +status open + +\begin_layout Standard +tz +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\begin_inset IPA + +\begin_layout Standard +:;eˈˌ|‖.Í¡* +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\begin_inset IPA + +\begin_layout Standard +˥˦˧˨˩ꜜꜛ\IPAChar \tone{15} +\IPAChar \tone{51} +\IPAChar \tone{45} +\IPAChar \tone{12} +\IPAChar \tone{454} +↗↘ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +TIPA code in math: +\begin_inset Formula $\textipa{\tone{55}|\text{\!b{}\!d{}\!g{}\!G{}\textglobfall{}\textvertline{}\textdoublevertline{}}}$ +\end_inset + + +\end_layout + +\begin_layout Subsection +Line breaks +\begin_inset Index breaks +status collapsed + +\begin_layout Plain Layout +Line breaks +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +They can also or be broken by a newline +\begin_inset Newline newline +\end_inset + + or by a starred newline +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash + +\backslash +* +\end_layout + +\end_inset + +or by a newline with space, comment and argument +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash + +\backslash +[3cm] +\end_layout + +\end_inset + + or by a newline command +\begin_inset Newline newline +\end_inset + +or by a line break +\begin_inset Newline linebreak +\end_inset + +or by a defined line break +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +linebreak[4] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +There are even newlines with weird arguments, but these are not handled by LyX +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash + +\backslash +*[1cm] +\end_layout + +\end_inset + + so we try to use ERT in this case. +\end_layout + +\begin_layout Subsection +Page breaks +\begin_inset Index breaks +status collapsed + +\begin_layout Plain Layout +Page breaks +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +They can also or be broken by a newpage +\begin_inset Newpage newpage +\end_inset + +or by a page break +\begin_inset Newpage pagebreak +\end_inset + +or by a defined page break +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +pagebreak[4] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Special characters +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Special characters +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Then one has those macros with a long name for a short meaning, like ~, ^ or +\backslash +, \SpecialChar breakableslash +, \SpecialChar nobreakdash + and the characters that LaTeX wants to espace because they are active, like _&#${}%. +\end_layout + +\begin_layout Standard +And what about special characters like hyphe\SpecialChar softhyphen +nation mark, ellipsis\SpecialChar ldots +, and end-of-sentence\SpecialChar endofsentence + LyX also supports a menu separator\SpecialChar menuseparator +and a spif\SpecialChar ligaturebreak +fy ligature break. +\end_layout + +\begin_layout Standard +There are dashes: endash in short form – and long form –, emdash is alike: — and —. If we really want several hyphens in a row, we need to separate them: - +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{} +\end_layout + +\end_inset + +-, - +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{} +\end_layout + +\end_inset + +- +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{} +\end_layout + +\end_inset + +-, - +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{} +\end_layout + +\end_inset + +- +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{} +\end_layout + +\end_inset + +- +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{} +\end_layout + +\end_inset + +- etc. +\end_layout + +\begin_layout Standard +LyX translates the phrases LyX, TeX, LaTeX2e and LaTeX to the commands \SpecialChar LyX +, \SpecialChar TeX +, \SpecialChar LaTeX2e + and \SpecialChar LaTeX +. If these phrases occur as part of other words (like 1LyX or aTeX or LaTeX3) they should not be put into ERT. +\end_layout + +\begin_layout Standard +Test for whitespace handling of commands: The following lines should result in identical output: +\end_layout + +\begin_layout Standard +builtin ^ unicodesymbols È· user +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +mycommand +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{} +\end_layout + +\end_inset + + xx +\end_layout + +\begin_layout Standard +builtin ^ unicodesymbols È· user +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +mycommand +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{} +\end_layout + +\end_inset + + xx +\end_layout + +\begin_layout Standard +builtin ^ unicodesymbols È· user +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +mycommand +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +% and another +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{} +\end_layout + +\end_inset + + xx +\end_layout + +\begin_layout Standard +A sub +\begin_inset script subscript + +\begin_layout Plain Layout +sc +\emph on +ript +\emph default + +\end_layout + +\end_inset + + and super +\begin_inset script superscript + +\begin_layout Plain Layout +script with +\begin_inset Formula $a^2+b^2=c^2$ +\end_inset + + math +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Standard +latex2writer outputs quotes in braces like +\begin_inset Quotes ers +\end_inset + +. We swallow the, but this was one broken (bug 8903). +\end_layout + +\begin_layout Section +Mathematics +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Mathematics +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Let +\begin_inset Formula $f:\left[ a,b\right] \rightarrow%TCIMACRO{\U{211d} }% +%BeginExpansion +\mathbb{R} +%EndExpansion +$ +\end_inset + +. +\end_layout + +\begin_layout Standard + +\begin_inset Formula \[ +\begin{array}{rclccc} +1 + 2 & = & 3 +\multicolumn{3}{c}{4 < 5 \leq 6 } +\end{array} +\] +\end_inset + + +\end_layout + +\begin_layout Section +Lists/Indices +\end_layout + +\begin_layout Standard +single +\backslash +addcontentsline: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +addcontentsline{toc}{section}{test} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +with +\backslash +addcontentsline and +\backslash +phantomsection: +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset bibtex +LatexCommand bibtex +bibfiles "xampl" +options "bibtotoc,test" + +\end_inset + + +\end_layout + +\begin_layout Standard +normal: +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset bibtex +LatexCommand bibtex +bibfiles "xampl" +options "test" + +\end_inset + + +\end_layout + +\begin_layout Standard +with wrong +\backslash +addcontentsline: +\end_layout + +\begin_layout Standard + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +bibliographystyle{test} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +addcontentsline{toc}{section}{test} +\end_layout + +\end_inset + + +\begin_inset CommandInset bibtex +LatexCommand bibtex +bibfiles "xampl" +options "test" + +\end_inset + + +\end_layout + +\begin_layout Standard +with +\backslash +addcontentsline and +\backslash +nocite{*}: +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset bibtex +LatexCommand bibtex +btprint "btPrintAll" +bibfiles "xampl" +options "bibtotoc,test" + +\end_inset + + +\end_layout + +\begin_layout Standard +undefined index: +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset index_print +LatexCommand printindex +type "idx" + +\end_inset + + +\end_layout + +\begin_layout Standard +index "idx": +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset index_print +LatexCommand printindex +type "idx" + +\end_inset + + +\end_layout + +\begin_layout Standard +index "new": +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset index_print +LatexCommand printindex +type "new" + +\end_inset + + +\end_layout + +\begin_layout Standard +subindex "new": +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset index_print +LatexCommand printsubindex +type "idx" + +\end_inset + + +\end_layout + +\begin_layout Standard +index of all indices: +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset index_print +LatexCommand printindex* + +\end_inset + + +\end_layout + +\begin_layout Standard +subindex of all indices: +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset index_print +LatexCommand printsubindex* + +\end_inset + + +\end_layout + +\begin_layout Standard +normal nomenclature: +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset nomencl_print +LatexCommand printnomenclature +set_width "none" + +\end_inset + +hello +\end_layout + +\begin_layout Standard +manually set width: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +settowidth{ +\backslash +nomlabelwidth}{URL2} +\end_layout + +\end_inset + + +\begin_inset CommandInset nomencl_print +LatexCommand printnomenclature +set_width "none" + +\end_inset + + +\end_layout + +\begin_layout Standard +nomenclature with set width: +\end_layout + +\begin_layout Standard + +\begin_inset CommandInset nomencl_print +LatexCommand printnomenclature +set_width "custom" +width "2line%" +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/src/tex2lyx/test/test-insets-basic.tex b/src/tex2lyx/test/test-insets-basic.tex new file mode 100644 index 0000000000..431d51de9e --- /dev/null +++ b/src/tex2lyx/test/test-insets-basic.tex @@ -0,0 +1,746 @@ +%% LyX trick_preamble_code_into_believing_that_this_was_created_by_lyx created this file. For more info, see http://www.lyx.org/. +%% Do not edit unless you really know what you are doing. +\documentclass[a4paper,12pt]{article} +\usepackage[T1]{fontenc} +\usepackage[latin9]{inputenc} + +\setlength{\parindent}{3mm} +\usepackage{setspace} +\onehalfspacing + +\usepackage{amsmath} +\usepackage{url} +\usepackage{verbatim} +\usepackage[numbers]{natbib} +\usepackage{nomencl} +% the following is useful when we have the old nomencl.sty package +\providecommand{\printnomenclature}{\printglossary} +\providecommand{\makenomenclature}{\makeglossary} +\makenomenclature +\usepackage{varioref} +\usepackage{splitidx} +\makeindex +\newindex[Index]{idx} +\newindex[new]{new} +\newindex{test} +\usepackage{graphicx} +\usepackage{longtable} +\usepackage{xargs} +\usepackage{subscript} +\usepackage{rotating} +\usepackage{listings} +\usepackage{hyperref} +\usepackage{array} +\usepackage{booktabs} +\usepackage{multirow} +\usepackage{hhline} +\usepackage{dcolumn} +\usepackage{pdfpages} +\usepackage{textcomp} +\usepackage{amssymb} +\usepackage{color} +\usepackage[ps,mover]{lyxskak} +\usepackage{tipa} +\usepackage{tipx} +\usepackage{tone} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. +\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} +\newcommand{\lyxline}[1][1pt]{% + \par\noindent% + \rule[.5ex]{\linewidth}{#1}\par} + +\newcommand{\lyxarrow}{\leavevmode\,$\triangleright$\,\allowbreak} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. + +% Load refstyle before prettyref so that prettyref wins. +% The real refstyle tests are in test-refstyle-theorems.tex. +\usepackage{refstyle} +\AtBeginDocument{\providecommand\secref[1]{\ref{sec:#1}}} +\usepackage{prettyref} + +\def\mycommand{\textquestiondown} + +\begin{document} + +\title{Title} + +\date %stupid stuff +{two days ago} + +\maketitle + +\tableofcontents +\lstlistoflistings + +\noindent This paragraph is not indented. + +\section{References\index{References}} + +Let's start with simple things: a label~\label{lab:test} and a +reference~\ref{lab:test}; note that I have tested ``unbreakable +space'' without warning (and worse than that, I just tested english +quotes too...). + +Of course there are other kind of references, like page +reference~\pageref{lab:test}, but also equation +reference~\eqref{lab:test} (from amsmath package), or varioref's +equivalents~\vref{lab:test} and~\vpageref{lab:test}, without +forgetting pretty references like~\prettyref{lab:test} as well as textual +references like~\nameref{lab:test}. +The command \secref{lab:test} will be parsed in ERT, since LyX +does not support refstyle and prettyref natively at the same time. + +\section{Cites\index{Cites}} + +Let's start with simple things: a \textbackslash{}cite: \cite[after]{article-crossref} +and two \textbackslash{}cites: \cite[after]{whole-set,article-crossref} + +Now the natbib things: + +\textbackslash{}citet: \citet[before][after]{article-crossref} \textbackslash{}citet{*}: +\citet*[before][after]{article-crossref} \textbackslash{}Citet: \Citet[before][after]{article-crossref} +\textbackslash{}Citet{*}: \Citet*[before][after]{article-crossref} + +\textbackslash{}citep: \citep[before][after]{article-crossref} \textbackslash{}citep{*}: +\citep*[before][after]{article-crossref} \textbackslash{}Citep: \Citep[before][after]{article-crossref} +\textbackslash{}Citep{*}: \Citep*[before][after]{article-crossref} + +\textbackslash{}citealt: \citealt[before][after]{article-crossref} +\textbackslash{}citealt{*}: \citealt*[before][after]{article-crossref} +\textbackslash{}Citealt: \Citealt[before][after]{article-crossref} +\textbackslash{}Citealt{*}: \Citealt*[before][after]{article-crossref} + +\textbackslash{}citealp: \citealp[before][after]{article-crossref} +\textbackslash{}citealp{*}: \citealp*[before][after]{article-crossref} +\textbackslash{}Citealp: \Citep[before][after]{article-crossref} +\textbackslash{}Citealp{*}: \Citealp*[before][after]{article-crossref} + +\textbackslash{}citeauthor: \citeauthor[before][after]{article-crossref} +\textbackslash{}citeauthor{*}: \citeauthor*[before][after]{article-crossref} +\textbackslash{}Citeauthor: \Citeauthor[before][after]{article-crossref} +\textbackslash{}Citeauthor{*}: \Citeauthor*[before][after]{article-crossref} + +\textbackslash{}citeyear: \citeyear[before][after]{article-crossref} + +\textbackslash{}citeyearpar: \citeyearpar[before][after]{article-crossref} + +\textbackslash{}nocite: \nocite{article-crossref} + +% Remove duplicate call of \bibliography since LaTeX throws an error. +%\bibliographystyle{unsrt} +% \bibliography{xampl} + +With \textbackslash{}nocite\{{*}\}: +\bibliographystyle{unsrt} +\nocite{*} +\bibliography{xampl} + +From bug 7306: +\citet{gur+04} have demonstrated that authors should not have umlauts +in their names. It's OK to use them in the man\"{u}script, though. +\begin{thebibliography}{References} +\bibitem[M\"{o}stl et~al.(2010)]{Mostl2010} Gürkan, M.~A., Freitag, +M., \& Rasio, F.~A. 2004, ApJ, 604, 632 +\bibitem[{{G\"{u}rkan et~al.}(2004)}]{gur+04} Gürkan, M.~A., Freitag, +M., \& Rasio, F.~A. 2004, ApJ, 604, 632\end{thebibliography} + + +\section{Input files\index{Input files}} + +We can input files too, like this \input{DummyDocument}, or with the include +variant (tests quoting as well): +\include{\string"Dummy\space Document\string".tex} +\include{\string"Dummy Document\string".tex} +\include{\string"Dummy\string~Document\string"} +\include{\string"Dummy\string~Document\string".tex} + +We can also import PDF pages: + +\includepdf[pages=-,angle=22,origin=Bl,width=5cm,height=40mm,keepaspectratio]{../../../lib/examples/beamer-icsi-logo} + +If you prefer verbatim input, you can choose +between~\verbatiminput{DummyDocument.tex} or~\verbatiminput*{DummyDocument.tex}. + + +\section{URLs and Hyperlinks\index{URL}\nomenclature[www]{URL}{uniform resource locator}} + +An URL: \url{http://www.lyx.org} \nomenclature{URL2}{uniform resource locator} + +An URL with strange characters: \url{http://www.lyx.org/percent%dollar$} + +link:\href{http://www.test.test}{www.test.test} + +link2:\href{http://www.test.test}{http://www.test.test} + +mail:\href{mailto:www.test.test}{name} + +file:\href{file:www.test.test}{www.test.test} + +ftp:\href{ftp://www.test.test}{ftp://www.test.test} + +ftp2:\href{ftp://www.test.test}{www.test.test} + +parser test (stupid, but valid):\href{http://www.test.test}{\}} + +parser test (escaped):\href{http://www.test.test}{a brace \} and another one \{ and something} + + +\section{Lists\index{Lists}} + +\listoffigures +\listoftables + + +\section{Listings} + +Inline: \lstinline[language={C++},keywordstyle={\color{green}}]!int a=5;!\\ +Float: + +\begin{lstlisting}[caption={Example Listing float},label={lst:Example-Listing},language=Python] +# Example listing float +def func(param): + 'this is a python function' + pass +\end{lstlisting} + +Here is an example listing with left line numbering, step ``3'', +language ``Python'', options ``Extended character table'' and +``Space~as~symbol'', range lines 3\,-\,8: + +\begin{lstlisting}[extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3] +def func(param): + 'this is a python function' + pass +def func(param): +'This is a German word: Tschüß' +pass +def func(param): +'this is a python function' +pass +\end{lstlisting} + +Special cases: +\begin{lstlisting}[abovecaptionskip=2em,basicstyle={\large\ttfamily},breaklines=true,extendedchars=true,firstline=2,float=h,language={[R/3 3.1]ABAP},lastline=5,numbers=left,numberstyle={\scriptsize},showspaces=true,showstringspaces=false,stepnumber=3,tabsize=4] +hello +\end{lstlisting} + +\lstinline[language=TeX]!\begin{centering} hello! + + +\section{Graphics\index{Graphics}} + +There is also some basic support for graphics, in the form +\includegraphics{foo.eps}, or the slightly more elaborate +\includegraphics[bb=10bp 0bp 96bp 96bp,clip,height=1cm, width=1cm]{foo.eps}. + +\section{Tables\index{Tables}} + +The following example is stolen from the longtable documentation. +Since tex2lyx does not understand the special verbatim code that +was used in the original some lines have been rewritten using +\textbackslash textbackslash etc. +\let\package\textsf +\let\env\textsf +\let\code\texttt +\providecommand\finalclearpage{\clearpage} + +\begin{longtable}{@{*}r||p{1in}@{*}} +KILLED & LINE!!!! \kill +\caption +[An optional table caption (used in the list of tables)] +{A long table\label{long}}\\ +\hline\hline +\multicolumn{2}{@{*}c@{*}}% + {This part appears at the top of the table}\\ +\textsc{First}&\textsc{Second}\\ +\hline\hline +\endfirsthead +\caption[]{(continued)}\\ +\hline\hline +\multicolumn{2}{@{*}c@{*}}% + {This part appears at the top of every other page}\\ +\textbf{First}&\textbf{Second}\\ +\hline\hline +\endhead +\caption* +{standard foot}\\ +\hline +This goes at the&bottom.\\ +\hline +\endfoot +\caption*{(last foot)}\\ +\hline +These lines will&appear\\ +in place of the & usual foot\\ +at the end& of the table\\ +\hline +\endlastfoot +\env{longtable} columns are specified& in the \\ +same way as in the \env{tabular}& environment.\\ +\code{@\{*\}r||p\{1in\}@\{*\}}& in this case.\\ +Each row ends with a& \code{\textbackslash\textbackslash} command.\\ +The \code{\textbackslash\textbackslash} command has an& optional\\ +argument, just as in& the\\ + \env{tabular}&environment.\\[10pt] +See the effect of \code{\textbackslash\textbackslash[10pt]}&?\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Also \code{\textbackslash hline} may be used,& as in \env{tabular}.\\ +\hline +That was a \code{\textbackslash hline}&.\\ +\hline\hline +That was \code{\textbackslash hline\textbackslash hline}&.\\ +\multicolumn{2}{||c||}% +{This is a \code{\textbackslash multicolumn\{2\}\{||c||\}}}\\ +If a page break occurs at a \code{\textbackslash hline} then& a line is drawn\\ +at the bottom of one page and at the& top of the next.\\ +\hline +The \code{[t] [b] [c]} argument of \env{tabular}& can not be used.\\ +The optional argument may be one of& \code{[l] [r] [c]}\\ +to specify whether the table should be& adjusted\\ +to the left, right& or centrally.\\ +\hline\hline +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Some lines may take up a lot of space, like this: & + \raggedleft This last column is a ``p'' column so this + ``row'' of the table can take up several lines. Note however that + \TeX\ will never break a page within such a row. Page breaks only + occur between rows of the table or at \code{\textbackslash hline} commands. + \tabularnewline +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +Lots of lines& like this.\\ +\hline +Lots\footnote{This is a footnote.} of lines& like this.\\ +Lots of lines& like this\footnote{\env{longtable} takes special + precautions, so that footnotes may also be used in `p' columns.}\\ +\hline +Lots of lines& like this.\\ +Lots of lines& like this. +\end{longtable} + +From bug 7412 another example with more captions (can currently not produced in LyX): +\begin{longtable}{|l|l|} +\caption{A long table} +\endfirsthead +\caption{A long table -- continued} +\endhead +\multicolumn{2}{r}{{Continued on next page}} +\tabularnewline +\endfoot +\endlastfoot +\hline +\multicolumn{1}{|c|}{Something} & \multicolumn{1}{c|}{Description}\tabularnewline +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline Lots of lines& like this.\\ +\hline +\end{longtable} + +A table*: + +\begin{tabular*} % some comment +{0.8\columnwidth}[b]{lr} +two\\ +\begin{turn}{-50}lonely\end{turn}&\begin{sideways}lines\end{sideways} +\end{tabular*} + +A booktabs table: + +\begin{table}[h] +\caption{\label{tab:Special-booktabs-table}Special booktabs-table} + + +\centering{}% +\begin{tabular}{cccc} +\toprule +System & Chip\,1 & \multicolumn{2}{c}{Chip\,2}\tabularnewline +\cmidrule(r){2-2}\cmidrule(l){3-4}\morecmidrules \cmidrule{2-4}Detector +thickness in \textmu{}m & 300 & 300 & 700\tabularnewline +\midrule +Edge angle in \textdegree{} & 3.55 & 2.71 & 7.99\tabularnewline +\addlinespace +Spatial resolution in \textmu{}m & 4.26 & 10.17 & 10.56\tabularnewline +\addlinespace +MTF at $f_{\mathrm{max}}$ & 0.53 & 0.37 & 0.39\tabularnewline +\midrule +\morecmidrules \cmidrule{3-4}LSF-spatial resolution & & & \tabularnewline +in \textmu{}m & 129.7 & 52.75 & 50.78\tabularnewline +in \% of pixel size & 76.3 & 95.9 & 92.3\tabularnewline +\bottomrule +\end{tabular} +\end{table} + +A table using dcolumn: + +\begin{table} +\begin{tabular}{ccddd} +One&Two& +\multicolumn{1}{c}{\textrm{Three}}& +\multicolumn{1}{c}{\textrm{Four}}& +\multicolumn{1}{c}{\textrm{Five}}\\ +\hline +one&two&\mbox{three}&\mbox{four}&\mbox{five}\\ +He&2& 2.77234 & 45672. & 0.69 \\ +C\footnote{Some tables require footnotes.} +&C\footnote{Some tables need more than one footnote.} +& 12537.64 & 37.66345 & 86.37 \\ +\end{tabular} +\end{table} + + +\section{Macros} + +LyX supports several kinds of macros: +def \def\macroa#1{a #1 a} +global def \global\def\macrob#1{b #1 b} +long def \long\def\macroc#1{c #1 c} +global long def \global\long\def\macrod#1{d #1 d} +providecommand \providecommand{\macroe}[1]{e #1 e} +providecommand* \providecommand*{\macrof}[1]{f #1 f} +newcommand \newcommand{\macrog}[1]{g #1 g} +renewcommand \renewcommand{\macrog}[1]{h #1 h} +newcommand* \newcommand*{\macroi}[1]{i #1 i} +renewcommand* \renewcommand*{\macroi}[1]{j #1 j} +providecommandx \providecommandx{\macrok}[1]{k #1 k} +providecommandx* \providecommandx*{\macrok}[1]{l #1 l} +newcommandx \newcommandx{\macrom}[1]{m #1 m} +renewcommandx \renewcommandx{\macrom}[1]{n #1 n} +newcommandx* \newcommandx*{\macroo}[1]{o #1 o} +renewcommandx* \renewcommandx*{\macroo}[1]{p #1 p} +DeclareRobustCommand \DeclareRobustCommand{\macroq}[1]{q #1 q} +DeclareRobustCommand* \DeclareRobustCommand*{\macror}[1]{r #1 r} +DeclareRobustCommandx \DeclareRobustCommandx{\macros}[1]{s #1 s} +DeclareRobustCommandx* \DeclareRobustCommandx*{\macrot}[1]{t #1 t} + +Now use them all: +\macroa{x} \macrob{x} \macroc{x} \macrod{x} \macroe{x} \macrof{x} \macrog{x} +\macroi{x} \macrok{x} \macrom{x} \macroo{x} \macroq{x} \macror{x} +The following tow don't work, but they should??? +%\macros{x} \macrot{x} + + +\section{Special formattings\index{Special formattings}} + +\subsection{LyX line} + +test + +{\tiny \lyxline{\tiny}}{\tiny \par} + +test {\Huge Test} {\tiny test} test + +\lyxline{\normalsize} + +test + +{\Huge \lyxline{\Huge}}{\Huge \par} + + +\subsection{rules} + +test\rule[0.001\textwidth]{1\columnwidth}{0.05\textheight} + +test + +\rule[0.5ex]{1\columnwidth}{1pt} + +\noindent \rule{1ex}{0.5cc}test + +\textcolor{red}{\rule[-4ex]{5in}{1cm}} + + +\subsection{Phantoms} + +test\phantom{Wow}test + +test\hphantom{\textcolor{green}{W}\textbf{ow}\textsuperscript{Wow}}test + +test\vphantom{Wow\textbackslash{}\&\%}test + +$test\hphantom{Wow}test$ + +\[ +test\phantom{\textcolor{green}{W}\mathbf{ow}\textsuperscript{Wow}}test +\] + + +$test\vphantom{Wow\&\%}test$ + + +\subsection{TIPA} + +\begin{IPA} +\textsubring{e} +\r{e} +\textsubwedge{e} +\textsubumlaut{e} +\textsubtilde{e} +\textseagull{e} +\textsubbridge{e} +\textinvsubbridge{e} +\textsubsquare{e} +e\textsuperscript{h} +\textsubrhalfring{e} +\textsublhalfring{e} +\textsubplus{e} +\=*{e} +\b{e} +\"{e} +\textovercross{e} +\s{e} +\textsyllabic{e} +\textsubarch{e} +e\textrhoticity +e\textsuperscript{w} +e\textsuperscript{j} +e\textsuperscript{\textgamma} +e\textsuperscript{\textrevglotstop} +\textsuperimposetilde{e} +\textraising{e} +\textlowering{e} +\textadvancing{e} +\textretracting{e} +\~{e} +e\textsuperscript{n} +e\textsuperscript{l} +e\textcorner{} +\H{e} + +\`{e} +\={e} +\'{e} +\textdoublegrave{e} +\v{e} +\^{e} +\texthighrise{e} +\textlowrise{e} +\textrisefall{e} +\u{e} +\end{IPA} + +\textipa{pbtd\:t\:dc\textbardotlessj k\textscriptg q\;G} +\textipa{PmMn\:n\textltailn N\;N\;Br\;RR} +\textipa{\:rFBfvTDszSZ\:s} +\textipa{\:zçJxGXK\textcrh QhH\textbeltl{}} +\textipa{\textlyoghlig V\*r\:Rh\textturnmrleg l\:lL\;L} + +\textipa{\!o|!\textdoublebarpipe ||\!b\!d\!j\!g\!Ge'} + +\textipa{iy1\textbaru W\textcolor{red}{uIY}Ueø987o@E½3\textcloserevepsilon 2Oæ5a\textscoelig A6} + +\textipa{\*ww4\;H\textbarrevglotstop\textbarglotstop C\textctz\textturnlonglegr\texththeng \texttoptiebar{ar}\textbottomtiebar{tz}} + +\textipa{:;e\textprimstress\textsecstress \textvertline{}\textdoublevertline{}.\t*{ }} + +\textipa{\tone{55}\tone{44}\tone{33}\tone{22}\tone{11}\textdownstep\textupstep \tone{15}\tone{51}\tone{45}\tone{12}\tone{454}\textglobrise \textglobfall{}} + +TIPA code in math: +$\textipa{\tone{55}|\text{\!b{}\!d{}\!g{}\!G{}\textglobfall{}\textvertline{}\textdoublevertline{}}}$ + +\subsection{Line breaks\sindex[breaks]{Line breaks}} + +They can also or be broken by a newline\\ +or by a starred newline \\* +or by a newline with space, comment and argument \\ %hu +[3cm] +or by a newline command \newline +or by a line break \linebreak +or by a defined line break \linebreak % again with a comment + [4] + +There are even newlines with weird arguments, but these are not +handled by LyX\\*[1cm] +so we try to use ERT in this case. + +\subsection{Page breaks\sindex[breaks]{Page breaks}} + +They can also or be broken by a newpage \newpage +or by a page break \pagebreak +or by a defined page break \pagebreak % again with a comment + [4] + + +\section{Special characters\index{Special characters}} + +Then one has those macros with a long name for a short meaning, like +\textasciitilde, \textasciicircum{} or \textbackslash{}, \slash{}, +\nobreakdash- and the characters +that LaTeX wants to espace because they are active, like \_\&\#\$\{\}\%. + +And what about special characters like hyphe\-nation mark, +ellipsis\ldots, and end-of-sentence\@. LyX also supports a menu +separator\lyxarrow{}and a spif\textcompwordmark{}fy ligature break. + +There are dashes: endash in short form -- and long form \textendash, +emdash is alike: --- and \textemdash. If we really want several hyphens +in a row, we need to separate them: -{}-, -{}-{}-, -{}-{}-{}- etc. + +LyX translates the phrases LyX, TeX, LaTeX2e and LaTeX +to the commands \LyX{}, \TeX{}, \LaTeXe{} and \LaTeX{}. +If these phrases occur as part of other words (like 1LyX or aTeX or LaTeX3) +they should not be put into ERT. + +Test for whitespace handling of commands: The following lines should +result in identical output: + +builtin \textasciicircum{} unicodesymbols \j{} user \mycommand{} xx\par +builtin \textasciicircum {} unicodesymbols \j {} user \mycommand{} xx\par +builtin \textasciicircum % with a comment +{} unicodesymbols \j % and a second one +{} user \mycommand % and another +{} xx + +A sub\textsubscript{sc\emph{ript}} and super\textsuperscript{script +with $a^2+b^2=c^2$ math}. + +latex2writer outputs quotes in braces like {\textquoteright}. We swallow the, +but this was one broken (bug 8903). + + +\section{Mathematics\index{Mathematics}} + +Let $f:\left[ a,b\right] \rightarrow% +%TCIMACRO{\U{211d} }% +%BeginExpansion +\mathbb{R} +%EndExpansion +$. + +\[ +\begin{array}{rclccc} +1 + 2 & = & 3 +\multicolumn{3}{c}{4 < 5 \leq 6 } +\end{array} +\] + + +\section{Lists/Indices} + +single \textbackslash{}addcontentsline: \addcontentsline{toc}{section}{test} + +with \textbackslash{}addcontentsline and \textbackslash{}phantomsection: + +\bibliographystyle{test} +\phantomsection\addcontentsline{toc}{section}{\refname}\bibliography{xampl} + + +normal: + +\bibliographystyle{test} +\bibliography{xampl} + + +with wrong \textbackslash{}addcontentsline: + +\bibliographystyle{test} \addcontentsline{toc}{section}{test} \bibliographystyle{test} +\bibliography{xampl} + + +with \textbackslash{}addcontentsline and \textbackslash{}nocite\{{*}\}: + +\bibliographystyle{test} +\addcontentsline{toc}{section}{\refname}\nocite{*} +\bibliography{xampl} + + +undefined index: + +\printindex{} + +index "idx": + +\printindex[idx]{} + +index "new": + +\printindex[new]{} + +subindex "new": + +\printsubindex[idx]{} + +index of all indices: + +\printindex*{} + +subindex of all indices: + +\printsubindex*{} + +normal nomenclature: + +\printnomenclature hello + +manually set width: \settowidth{\nomlabelwidth}{URL2} \printnomenclature{} + +nomenclature with set width: + +\printnomenclature[0.02\linewidth]{} + +\end{document} -- 2.39.2