]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/test/test-insets.lyx.lyx
Update tex2lyx test reference after 754cb3d1
[lyx.git] / src / tex2lyx / test / test-insets.lyx.lyx
index df5c9cc89405605ec87131a1d741d7c18618a961..8424bdb27373d66d07b716a3d0ea9ad06c9fb449 100644 (file)
@@ -1,10 +1,18 @@
-#LyX file created by tex2lyx 2.1.0dev
-\lyxformat 457
+#LyX file created by tex2lyx 2.3
+\lyxformat 512
 \begin_document
 \begin_header
+\save_transient_properties true
+\origin roundtrip
 \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}
 
 
 \maintain_unincluded_children false
 \language english
 \language_package none
-\inputencoding latin9
+\inputencoding iso8859-15
 \fontencoding T1
-\font_roman default
-\font_sans default
-\font_typewriter default
-\font_math auto
+\font_roman "default" "default"
+\font_sans "default" "default"
+\font_typewriter "default" "default"
+\font_math "auto" "auto"
 \font_default_family default
 \use_non_tex_fonts false
 \font_sc false
 \font_osf false
-\font_sf_scale 100
-\font_tt_scale 100
+\font_sf_scale 100 100
+\font_tt_scale 100 100
+\use_microtype 0
 \graphics default
 \default_output_format default
 \output_sync 0
@@ -33,7 +42,7 @@
 \paperfontsize 12
 \spacing onehalf
 \use_hyperref true
-\pdf_bookmarks 1
+\pdf_bookmarks 0
 \pdf_bookmarksnumbered 0
 \pdf_bookmarksopen 0
 \pdf_bookmarksopenlevel 1
 \pdf_pdfborder 0
 \pdf_colorlinks 0
 \pdf_backref section
-\pdf_pdfusetitle 1
+\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
 \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
@@ -92,11 +110,11 @@ Title
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 %stupid stuff
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \end_layout
 
@@ -241,7 +259,51 @@ 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
@@ -577,13 +639,13 @@ key "article-crossref"
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 % Remove duplicate call of 
 \backslash
 bibliography since LaTeX throws an error.
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \end_layout
 
@@ -593,13 +655,13 @@ bibliography since LaTeX throws an error.
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 %
 \backslash
 bibliographystyle{unsrt}
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \end_layout
 
@@ -609,16 +671,12 @@ bibliographystyle{unsrt}
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 % 
 \backslash
 bibliography{xampl}
 \end_layout
 
-\begin_layout Standard
-
-\end_layout
-
 \end_inset
 
 
@@ -654,6 +712,28 @@ key "gur+04"
 
 \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)}"
@@ -693,29 +773,47 @@ We can input files too, like this
 \begin_inset CommandInset include
 LatexCommand input
 preview false
-filename "DummyDocument.lyx"
+filename "DummyDocument.lyx.lyx"
 
 \end_inset
 
-, or with the include variant 
+, or with the include variant (tests quoting as well): 
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "DummyDocument.lyx"
+filename "Dummy Document.tex"
 
 \end_inset
 
  
-\begin_inset ERT
-status collapsed
+\begin_inset CommandInset include
+LatexCommand include
+preview false
+filename "Dummy Document.tex"
 
-\begin_layout Standard
-% unfortunately, including the doc twice generates a multiply defined label
-\end_layout
+\end_inset
 
-\begin_layout Standard
+\begin_inset CommandInset include
+LatexCommand include
+preview false
+filename "Dummy~Document.lyx.lyx"
 
-\end_layout
+\end_inset
+
+\begin_inset CommandInset include
+LatexCommand include
+preview false
+filename "Dummy~Document.lyx.lyx"
+
+\end_inset
+
+ File names containg double quotes are not legal on windows, so no test file is provided. Nevertheless, they are legal on unix, so we test at least the parsing. File names containing spaces can not be handled by automake (make dist would fail), so no test file is provided as well. Since the files do not exist, the variants without extension would not work (tex2lyx can't deduce the correct extension of nonexisting files). 
+\begin_inset CommandInset include
+LatexCommand include
+preview false
+filename "Dummy\"Document.tex"
 
 \end_inset
 
@@ -861,6 +959,20 @@ 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
@@ -1230,7 +1342,7 @@ textbackslash etc.
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 let
@@ -1246,7 +1358,7 @@ textsf
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 let
@@ -1262,7 +1374,7 @@ textsf
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 let
@@ -1278,7 +1390,7 @@ texttt
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 providecommand{
@@ -1296,7 +1408,7 @@ clearpage}
 \begin_layout Standard
 
 \begin_inset Tabular 
-<lyxtabular version="3" rows="64" columns="2">
+<lyxtabular version="3" rows="66" columns="2">
 <features rotate="0" islongtable="true">
 <column alignment="none" valignment="top" special="@{*}r">
 <column alignment="none" valignment="top" special="|p{1in}@{*}">
@@ -1318,7 +1430,7 @@ LINE!!!!
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 kill
@@ -1327,13 +1439,14 @@ kill
 \end_inset
 
  
-\begin_inset Caption
+\begin_inset Caption Standard
 
-\begin_layout 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
@@ -1408,13 +1521,14 @@ Second
 
 \begin_layout Standard
 
-\begin_inset Caption
+\begin_inset Caption Standard
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \begin_inset Argument 1
 status collapsed
 
+
 \end_inset
 
 (continued)
@@ -1474,11 +1588,36 @@ Second
 
 \end_layout
 
+\end_inset
+</cell>
+</row>
+<row endfoot="true" caption="true">
+<cell multicolumn="1" alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+
+\begin_inset Caption Unnumbered
+
+\begin_layout Plain Layout
+standard foot
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
 \end_inset
 </cell>
 </row>
 <row endfoot="true">
-<cell alignment="none" valignment="top" topline="true" bottomline="true" usebox="none">
+<cell alignment="none" valignment="top" topline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Standard
@@ -1487,13 +1626,38 @@ This goes at the
 
 \end_inset
 </cell>
-<cell alignment="none" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+<cell alignment="none" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Standard
 bottom.
 \end_layout
 
+\end_inset
+</cell>
+</row>
+<row endlastfoot="true" caption="true">
+<cell multicolumn="1" alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+
+\begin_inset Caption Unnumbered
+
+\begin_layout Plain Layout
+(last foot)
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
 \end_inset
 </cell>
 </row>
@@ -1566,7 +1730,7 @@ of the table
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 env
@@ -1578,7 +1742,7 @@ env
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -1588,7 +1752,7 @@ longtable
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -1618,7 +1782,7 @@ same way as in the
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 env
@@ -1630,7 +1794,7 @@ env
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -1640,7 +1804,7 @@ tabular
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -1670,7 +1834,7 @@ environment.
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 code
@@ -1682,7 +1846,7 @@ code
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -1692,7 +1856,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -1731,7 +1895,7 @@ Each row ends with a
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 code
@@ -1743,7 +1907,7 @@ code
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -1757,7 +1921,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -1778,7 +1942,7 @@ The
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 code
@@ -1790,7 +1954,7 @@ code
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -1804,7 +1968,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -1854,7 +2018,7 @@ the
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 env
@@ -1866,7 +2030,7 @@ env
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -1876,7 +2040,7 @@ tabular
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -1906,7 +2070,7 @@ environment.
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 code
@@ -1918,7 +2082,7 @@ code
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -1932,7 +2096,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -2042,7 +2206,7 @@ Also
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 code
@@ -2054,7 +2218,7 @@ code
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -2066,7 +2230,7 @@ hline
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -2085,7 +2249,7 @@ as in
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 env
@@ -2097,7 +2261,7 @@ env
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -2107,7 +2271,7 @@ tabular
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -2128,7 +2292,7 @@ That was a
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 code
@@ -2140,7 +2304,7 @@ code
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -2152,7 +2316,7 @@ hline
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -2182,7 +2346,7 @@ That was
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 code
@@ -2194,7 +2358,7 @@ code
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -2208,7 +2372,7 @@ hline
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -2238,7 +2402,7 @@ This is a
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 code
@@ -2250,7 +2414,7 @@ code
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -2262,7 +2426,7 @@ multicolumn{2}{||c||}
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -2288,7 +2452,7 @@ If a page break occurs at a
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 code
@@ -2300,7 +2464,7 @@ code
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -2312,7 +2476,7 @@ hline
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -2362,7 +2526,7 @@ The
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 code
@@ -2374,7 +2538,7 @@ code
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -2384,7 +2548,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -2394,7 +2558,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 env
@@ -2406,7 +2570,7 @@ env
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -2416,7 +2580,7 @@ tabular
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -2455,7 +2619,7 @@ The optional argument may be one of
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 code
@@ -2467,7 +2631,7 @@ code
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -2477,7 +2641,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -2947,7 +3111,7 @@ Some lines may take up a lot of space, like this:
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 raggedleft
@@ -2971,7 +3135,8 @@ row
 \begin_inset Quotes erd
 \end_inset
 
- of the table can take up several lines. Note however that TeX
+ of the table can take up several lines. Note however that \SpecialChar TeX
+
 \begin_inset space \space{}
 
 \end_inset
@@ -2980,7 +3145,7 @@ will never break a page within such a row. Page breaks only occur between rows o
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 code
@@ -2992,7 +3157,7 @@ code
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -3004,7 +3169,7 @@ hline
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -3211,7 +3376,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 env
@@ -3223,7 +3388,7 @@ env
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -3233,7 +3398,7 @@ longtable
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -3298,17 +3463,7 @@ like this.
 \end_layout
 
 \begin_layout Standard
-From bug 7412 another example with more captions (can currently not produced in 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-LyX
-\end_layout
-
-\end_inset
-
-): 
+From bug 7412 another example with more captions (can currently not produced in LyX): 
 \begin_inset Tabular 
 <lyxtabular version="3" rows="45" columns="2">
 <features rotate="0" islongtable="true" lastFootEmpty="true">
@@ -3320,9 +3475,9 @@ LyX
 
 \begin_layout Standard
 
-\begin_inset Caption
+\begin_inset Caption Standard
 
-\begin_layout Standard
+\begin_layout Plain Layout
 A long table
 \end_layout
 
@@ -3345,10 +3500,10 @@ A long table
 
 \begin_layout Standard
 
-\begin_inset Caption
+\begin_inset Caption Standard
 
-\begin_layout Standard
-A long table -- continued
+\begin_layout Plain Layout
+A long table  continued
 \end_layout
 
 \end_inset
@@ -3373,7 +3528,7 @@ A long table -- continued
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -3383,7 +3538,7 @@ Continued on next page
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -4256,11 +4411,11 @@ A table*:
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 % some comment
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \end_layout
 
@@ -4330,9 +4485,9 @@ status open
 
 \begin_layout Standard
 
-\begin_inset Caption
+\begin_inset Caption Standard
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \begin_inset CommandInset label
 LatexCommand label
@@ -4353,7 +4508,7 @@ Special booktabs-table
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 centering
@@ -4365,7 +4520,7 @@ centering
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {}
 \end_layout
 
@@ -4432,7 +4587,7 @@ Chip
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 cmidrule
@@ -4444,7 +4599,7 @@ cmidrule
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -4454,7 +4609,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -4464,7 +4619,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 cmidrule
@@ -4476,7 +4631,7 @@ cmidrule
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -4486,7 +4641,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -4496,7 +4651,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 morecmidrules
@@ -4508,7 +4663,7 @@ morecmidrules
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 cmidrule
@@ -4520,7 +4675,7 @@ cmidrule
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -4530,7 +4685,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -4696,7 +4851,7 @@ MTF at
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 morecmidrules
@@ -4708,7 +4863,7 @@ morecmidrules
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 cmidrule
@@ -4720,7 +4875,7 @@ cmidrule
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {
 \end_layout
 
@@ -4730,7 +4885,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 }
 \end_layout
 
@@ -4845,722 +5000,1770 @@ in % of pixel size
 
 \end_layout
 
-\begin_layout Section
-Macros
+\begin_layout Standard
+A table using dcolumn:
 \end_layout
 
 \begin_layout Standard
 
-\begin_inset ERT
-status collapsed
+\begin_inset Float table
+wide false
+sideways false
+status open
+
 
 \begin_layout Standard
-LyX
-\end_layout
 
-\end_inset
+\begin_inset Tabular 
+<lyxtabular version="3" rows="4" columns="5">
+<features rotate="0" tabularvalignment="middle" tabularwidth="0pt">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="none" valignment="top" special="d">
+<column alignment="none" valignment="top" special="d">
+<column alignment="none" valignment="top" special="d">
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
- supports several kinds of macros: def 
-\begin_inset FormulaMacro
-\def\macroa #1{a #1 a}
-\end_inset
+\begin_layout Standard
+One
+\end_layout
 
- global def 
-\begin_inset FormulaMacro
-\def\macrob #1{b #1 b}
 \end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
- long def 
-\begin_inset FormulaMacro
-\def\macroc #1{c #1 c}
-\end_inset
+\begin_layout Standard
+Two
+\end_layout
 
- global long def 
-\begin_inset FormulaMacro
-\def\macrod #1{d #1 d}
 \end_inset
-
- providecommand 
-\begin_inset ERT
-status collapsed
+</cell>
+<cell multicolumn="1" alignment="none" valignment="top" usebox="none" special="c">
+\begin_inset Text
 
 \begin_layout Standard
 
-\backslash
-providecommand{
-\backslash
-macroe}[1]{e #1 e}
+\family roman
+Three
+\family default
+
 \end_layout
 
 \end_inset
-
- providecommand* 
-\begin_inset ERT
-status collapsed
+</cell>
+<cell multicolumn="1" alignment="none" valignment="top" usebox="none" special="c">
+\begin_inset Text
 
 \begin_layout Standard
 
-\backslash
-providecommand*{
-\backslash
-macrof}[1]{f #1 f}
+\family roman
+Four
+\family default
+
 \end_layout
 
 \end_inset
+</cell>
+<cell multicolumn="1" alignment="none" valignment="top" usebox="none" special="c">
+\begin_inset Text
 
- newcommand 
-\begin_inset FormulaMacro
-\newcommand{\macrog}[1]{g #1 g}
-\end_inset
+\begin_layout Standard
 
- renewcommand 
-\begin_inset FormulaMacro
-\renewcommand{\macrog}[1]{h #1 h}
-\end_inset
+\family roman
+Five
+\family default
 
- newcommand* 
-\begin_inset ERT
-status collapsed
+\end_layout
 
-\begin_layout Standard
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
 
-\backslash
-newcommand*{
-\backslash
-macroi}[1]{i #1 i}
+\begin_layout Standard
+one
 \end_layout
 
 \end_inset
-
- renewcommand* 
-\begin_inset ERT
-status collapsed
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
 
 \begin_layout Standard
-
-\backslash
-renewcommand*{
-\backslash
-macroi}[1]{j #1 j}
+two
 \end_layout
 
 \end_inset
-
- providecommandx 
-\begin_inset ERT
-status collapsed
+</cell>
+<cell alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
 
 \begin_layout Standard
 
-\backslash
-providecommandx{
-\backslash
-macrok}[1]{k #1 k}
+\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
 
- providecommandx* 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
 
-\backslash
-providecommandx*{
-\backslash
-macrok}[1]{l #1 l}
 \end_layout
 
 \end_inset
+</cell>
+<cell alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
 
- newcommandx 
-\begin_inset FormulaMacro
-\newcommandx{\macrom}[1]{m #1 m}
-\end_inset
+\begin_layout Standard
 
- renewcommandx 
-\begin_inset FormulaMacro
-\renewcommandx{\macrom}[1]{n #1 n}
-\end_inset
+\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
 
- newcommandx* 
-\begin_inset ERT
-status collapsed
 
 \begin_layout Standard
-
-\backslash
-newcommandx*{
-\backslash
-macroo}[1]{o #1 o}
+four
 \end_layout
 
 \end_inset
 
- renewcommandx* 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
 
-\backslash
-renewcommandx*{
-\backslash
-macroo}[1]{p #1 p}
 \end_layout
 
 \end_inset
+</cell>
+<cell alignment="none" valignment="top" topline="true" usebox="none">
+\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
 
- DeclareRobustCommand 
-\begin_inset ERT
-status collapsed
 
 \begin_layout Standard
+five
+\end_layout
 
-\backslash
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+He
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+2
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+2.77234 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+45672. 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+0.69 
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\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
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\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
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+12537.64 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+37.66345 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+86.37 
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+A table using decimal alignment:
+\end_layout
+
+\begin_layout Standard
+
+\begin_inset Float table
+wide false
+sideways false
+status open
+
+
+\begin_layout Standard
+
+\begin_inset Tabular 
+<lyxtabular version="3" rows="4" columns="8">
+<features rotate="0" tabularvalignment="middle" tabularwidth="0pt">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="right" valignment="top">
+<column alignment="none" valignment="top" special="@{\extracolsep{0pt}.}l">
+<column alignment="right" valignment="top">
+<column alignment="none" valignment="top" special="@{\extracolsep{0pt}.}l">
+<column alignment="right" valignment="top">
+<column alignment="none" valignment="top" special="@{\extracolsep{0pt}.}l">
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+One 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+Two 
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="1" alignment="none" valignment="top" usebox="none" special="c">
+\begin_inset Text
+
+\begin_layout Standard
+Three
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\end_inset
+</cell>
+<cell multicolumn="1" alignment="none" valignment="top" usebox="none" special="c">
+\begin_inset Text
+
+\begin_layout Standard
+Four
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\end_inset
+</cell>
+<cell multicolumn="1" alignment="none" valignment="top" usebox="none" special="c">
+\begin_inset Text
+
+\begin_layout Standard
+Five
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+one 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+two 
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="1" alignment="none" valignment="top" topline="true" usebox="none" special="c">
+\begin_inset Text
+
+\begin_layout Standard
+three
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\end_inset
+</cell>
+<cell multicolumn="1" alignment="none" valignment="top" topline="true" usebox="none" special="c">
+\begin_inset Text
+
+\begin_layout Standard
+four
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\end_inset
+</cell>
+<cell multicolumn="1" alignment="none" valignment="top" topline="true" usebox="none" special="c">
+\begin_inset Text
+
+\begin_layout Standard
+five
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+He 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+2 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="right" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+2
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+77234 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="right" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+45672
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\end_inset
+</cell>
+<cell alignment="right" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+0
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+69 
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+C 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+C 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="right" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+12537
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+64 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="right" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+37
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+66345 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="right" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+86
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+37 
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\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}
+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
 
- DeclareRobustCommand* 
+x
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-
-\backslash
-DeclareRobustCommand*{
-\backslash
-macror}[1]{r #1 r}
+\begin_layout Plain Layout
+}
 \end_layout
 
 \end_inset
 
- DeclareRobustCommandx 
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
-DeclareRobustCommandx{
-\backslash
-macros}[1]{s #1 s}
+macroo{
 \end_layout
 
 \end_inset
 
- DeclareRobustCommandx* 
+x
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
+}
+\end_layout
+
+\end_inset
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
 
 \backslash
-DeclareRobustCommandx*{
-\backslash
-macrot}[1]{t #1 t}
+macroq{
 \end_layout
 
 \end_inset
 
+x
+\begin_inset ERT
+status collapsed
 
+\begin_layout Plain Layout
+}
 \end_layout
 
-\begin_layout Standard
-Now use them all: 
+\end_inset
+
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
-macroa
+macror{
 \end_layout
 
 \end_inset
 
-
+x
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-{
+\begin_layout Plain Layout
+}
 \end_layout
 
 \end_inset
 
-x
+ 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
  
-\begin_inset ERT
-status collapsed
+\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
 
-\backslash
-macrob
 \end_layout
 
+\begin_layout Standard
+\noindent
+
+\size giant
+
+\begin_inset CommandInset line
+LatexCommand rule
+offset "0.5ex"
+width "100line%"
+height "1pt"
+
 \end_inset
 
 
-\begin_inset ERT
-status collapsed
+\size default
+
+\size giant
+
+\end_layout
+
+\begin_layout Subsection
+Rules
+\end_layout
 
 \begin_layout Standard
-{
+test
 \end_layout
 
+\begin_layout Standard
+
+\size tiny
+
+\begin_inset CommandInset line
+LatexCommand rule
+offset "0.5ex"
+width "100line%"
+height "1pt"
+
 \end_inset
 
-x
-\begin_inset ERT
-status collapsed
+
+\size default
+
+\size tiny
+
+\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
 
-\begin_inset ERT
-status collapsed
+test
+\end_layout
 
 \begin_layout Standard
+test
+\begin_inset Phantom HPhantom
+status open
 
-\backslash
-macroc
-\end_layout
+\begin_layout Plain Layout
 
-\end_inset
+\color green
+W
+\color inherit
 
+\series bold
+ow
+\series default
 
-\begin_inset ERT
-status collapsed
+\begin_inset script superscript
 
-\begin_layout Standard
-{
+\begin_layout Plain Layout
+Wow
 \end_layout
 
 \end_inset
 
-x
-\begin_inset ERT
-status collapsed
 
-\begin_layout Standard
-}
 \end_layout
 
 \end_inset
 
-\begin_inset ERT
-status collapsed
+test
+\end_layout
 
 \begin_layout Standard
+test
+\begin_inset Phantom VPhantom
+status open
 
+\begin_layout Plain Layout
+Wow
 \backslash
-macrod
+&%
 \end_layout
 
 \end_inset
 
-
-\begin_inset ERT
-status collapsed
+test
+\end_layout
 
 \begin_layout Standard
-{
-\end_layout
 
+\begin_inset Formula $test\hphantom{Wow}test$
 \end_inset
 
-x
-\begin_inset ERT
-status collapsed
 
-\begin_layout Standard
-}
 \end_layout
 
-\end_inset
-
-\begin_inset ERT
-status collapsed
-
 \begin_layout Standard
 
-\backslash
-macroe{
-\end_layout
-
+\begin_inset Formula \[
+test\phantom{\textcolor{green}{W}\mathbf{ow}\textsuperscript{Wow}}test
+\]
 \end_inset
 
-x
-\begin_inset ERT
-status collapsed
 
-\begin_layout Standard
-}
 \end_layout
 
+\begin_layout Standard
+
+\begin_inset Formula $test\vphantom{Wow\&\%}test$
 \end_inset
 
-\begin_inset ERT
-status collapsed
 
-\begin_layout Standard
+\end_layout
 
-\backslash
-macrof{
+\begin_layout Subsection
+TIPA
 \end_layout
 
-\end_inset
+\begin_layout Standard
 
-x
-\begin_inset ERT
-status collapsed
+\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
 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
+ e̹ e̜ e̟ e̠ (don't mix up with e̱) ë e̽ e̩ e̩ e̯ e˞e
+\begin_inset script superscript
 
-\backslash
-macrog{
+\begin_layout Plain Layout
+w
 \end_layout
 
 \end_inset
 
-x
-\begin_inset ERT
-status collapsed
+ e
+\begin_inset script superscript
 
-\begin_layout Standard
-}
+\begin_layout Plain Layout
+j
 \end_layout
 
 \end_inset
 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
+ e
+\begin_inset script superscript
 
-\backslash
-macroi{
+\begin_layout Plain Layout
 \end_layout
 
 \end_inset
 
-x
-\begin_inset ERT
-status collapsed
+ e
+\begin_inset script superscript
 
-\begin_layout Standard
-}
+\begin_layout Plain Layout
 \end_layout
 
 \end_inset
 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
+ e̴ e̝ e̞ e̘ e̙ ẽ e
+\begin_inset script superscript
 
-\backslash
-macrok{
+\begin_layout Plain Layout
+n
 \end_layout
 
 \end_inset
 
-x
-\begin_inset ERT
-status collapsed
+ e
+\begin_inset script superscript
 
-\begin_layout Standard
-}
+\begin_layout Plain Layout
+l
 \end_layout
 
 \end_inset
 
-\begin_inset ERT
-status collapsed
+ e˺ e̋
+\end_layout
 
 \begin_layout Standard
-
-\backslash
-macrom{
+è ē é ȅ ě ê e᷄ e᷅ e᷈ ĕ 
 \end_layout
 
 \end_inset
 
-x
-\begin_inset ERT
-status collapsed
 
-\begin_layout Standard
-}
 \end_layout
 
-\end_inset
+\begin_layout Standard
 
+\begin_inset IPA
+
+\begin_layout Standard
+pbtd
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
-macroo{
+:
 \end_layout
 
 \end_inset
 
-x
+t
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-}
+\begin_layout Plain Layout
+
+\backslash
+:
 \end_layout
 
 \end_inset
 
+dcɟkɡq
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
-macroq{
+;
 \end_layout
 
 \end_inset
 
-x
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-}
+G
 \end_layout
 
 \end_inset
 
  
+\begin_inset IPA
+
+\begin_layout Standard
+PmMn
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
-macror{
+:
 \end_layout
 
 \end_inset
 
-x
+nɲN
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-}
-\end_layout
-
-\end_inset
-
- The following tow don't work, but they should??? 
-\begin_inset ERT
-status collapsed
+\begin_layout Plain Layout
 
-\begin_layout Standard
-%
 \backslash
-macros{x} 
-\backslash
-macrot{x}
-\end_layout
-
-\begin_layout Standard
-
+;
 \end_layout
 
 \end_inset
 
-
-\end_layout
-
-\begin_layout Section
-Special formattings
-\begin_inset Index idx
+N
+\begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
-Special formattings
-\end_layout
-
-\end_inset
-
 
+\backslash
+;
 \end_layout
 
-\begin_layout Subsection
+\end_inset
 
+Br
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-LyX
-\end_layout
-
-\end_inset
-
- 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
-
+\begin_layout Plain Layout
 
-\size default
+\backslash
+;
+\end_layout
 
-\size tiny
+\end_inset
 
+RR
 \end_layout
 
-\begin_layout Standard
-test 
-\size giant
-Test
-\size default
+\end_inset
+
  
-\size tiny
-test
-\size default
- test
-\end_layout
+\begin_inset IPA
 
 \begin_layout Standard
-\noindent
 
-\begin_inset CommandInset line
-LatexCommand rule
-offset "0.5ex"
-width "100line%"
-height "1pt"
+\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
 
-\begin_layout Standard
-test
+\end_inset
+
+s
 \end_layout
 
+\end_inset
+
+\begin_inset IPA
+
 \begin_layout Standard
 
-\size giant
+\begin_inset ERT
+status collapsed
 
-\end_layout
+\begin_layout Plain Layout
 
-\begin_layout Standard
-\noindent
+\backslash
+:
+\end_layout
 
-\size giant
+\end_inset
 
-\begin_inset CommandInset line
-LatexCommand rule
-offset "0.5ex"
-width "100line%"
-height "1pt"
+zçJxGXKħQhHɬ
+\end_layout
 
 \end_inset
 
+\begin_inset IPA
 
-\size default
+\begin_layout Standard
+ɮVɹ
+\begin_inset ERT
+status collapsed
 
-\size giant
+\begin_layout Plain Layout
 
+\backslash
+:
 \end_layout
 
-\begin_layout Subsection
-rules
-\end_layout
+\end_inset
 
-\begin_layout Standard
-test
-\begin_inset CommandInset line
-LatexCommand rule
-offset "0.1text%"
-width "100col%"
-height "5theight%"
+Rhɰl
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+:
+\end_layout
 
 \end_inset
 
+lL
+\begin_inset ERT
+status collapsed
 
-\end_layout
+\begin_layout Plain Layout
 
-\begin_layout Standard
-test
+\backslash
+;
 \end_layout
 
-\begin_layout Standard
+\end_inset
 
-\begin_inset CommandInset line
-LatexCommand rule
-offset "0.5ex"
-width "100col%"
-height "1pt"
+L
+\end_layout
 
 \end_inset
 
@@ -5568,72 +6771,68 @@ height "1pt"
 \end_layout
 
 \begin_layout Standard
-\noindent
 
-\begin_inset CommandInset line
-LatexCommand rule
-width "1ex"
-height "0.5cc"
+\begin_inset IPA
+
+\begin_layout Standard
+ʘ|!ǂ||ɓɗʄɠʛe'
+\end_layout
 
 \end_inset
 
-test
+
 \end_layout
 
 \begin_layout Standard
 
-\color red
+\begin_inset IPA
 
-\begin_inset CommandInset line
-LatexCommand rule
-offset "-4ex"
-width "5in"
-height "1cm"
+\begin_layout Standard
+iy1ʉW
+\color red
+uIY
+\color inherit
+Ueø987o@Eœ3ɞ2Oæ5aɶA6
+\end_layout
 
 \end_inset
 
 
-\color inherit
-
 \end_layout
 
-\begin_layout Subsection
-Phantoms
-\end_layout
+\begin_layout Standard
+
+\begin_inset IPA
 
 \begin_layout Standard
-test
-\begin_inset Phantom Phantom
-status open
+ʍw4
+\begin_inset ERT
+status collapsed
 
 \begin_layout Plain Layout
-Wow
+
+\backslash
+;
 \end_layout
 
 \end_inset
 
-test
-\end_layout
-
-\begin_layout Standard
-test
-\begin_inset Phantom HPhantom
+HʢʡCʑɺɧ
+\begin_inset IPADeco toptiebar
 status open
 
-\begin_layout Plain Layout
+\begin_layout Standard
+ar
+\end_layout
 
-\color green
-W
-\color inherit
+\end_inset
 
-\series bold
-ow
-\series default
 
-\begin_inset script superscript
+\begin_inset IPADeco bottomtiebar
+status open
 
 \begin_layout Standard
-Wow
+tz
 \end_layout
 
 \end_inset
@@ -5643,28 +6842,37 @@ Wow
 
 \end_inset
 
-test
+
 \end_layout
 
 \begin_layout Standard
-test
-\begin_inset Phantom VPhantom
-status open
+
+\begin_inset IPA
+
+\begin_layout Standard
+:;eˈˌ|‖.͡*
+\begin_inset ERT
+status collapsed
 
 \begin_layout Plain Layout
-Wow
-\backslash
-&%
+{
 \end_layout
 
 \end_inset
 
-test
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+}
 \end_layout
 
-\begin_layout Standard
+\end_inset
+
+
+\end_layout
 
-\begin_inset Formula $test\hphantom{Wow}test$
 \end_inset
 
 
@@ -5672,22 +6880,38 @@ test
 
 \begin_layout Standard
 
-\begin_inset Formula \[
-test\phantom{\textcolor{green}{W}\mathbf{ow}\textsuperscript{Wow}}test
-\]
+\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
-
-\begin_inset Formula $test\vphantom{Wow\&\%}test$
+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
+Other symbols
+\end_layout
+
+\begin_layout Standard
+All three should be converted to U+00C5: Å Å Å (not U+212B). All three should be converted to U+00E5: å å å.
+\end_layout
+
 \begin_layout Subsection
 Line breaks
 \begin_inset Index breaks
@@ -5711,7 +6935,7 @@ They can also or be broken by a newline
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 
@@ -5725,7 +6949,7 @@ or by a newline with space, comment and argument
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 
@@ -5747,7 +6971,7 @@ or by a defined line break
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 linebreak[4]
@@ -5759,21 +6983,11 @@ linebreak[4]
 \end_layout
 
 \begin_layout Standard
-There are even newlines with weird arguments, but these are not handled by 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-LyX
-\end_layout
-
-\end_inset
-
-
+There are even newlines with weird arguments, but these are not handled by LyX
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 
@@ -5813,150 +7027,118 @@ or by a defined page break
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-
-\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 \slash{}
-, \SpecialChar \nobreakdash-
- and the characters that 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-LaTeX
-\end_layout
-
-\end_inset
-
- wants to espace because they are active, like _&#${}%.
-\end_layout
-
-\begin_layout Standard
-And what about special characters like hyphe\SpecialChar \-
-nation mark, ellipsis\SpecialChar \ldots{}
-, and end-of-sentence\SpecialChar \@.
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-LyX
+pagebreak[4]
 \end_layout
 
 \end_inset
 
- also supports a menu separator\SpecialChar \menuseparator
-and a spif\SpecialChar \textcompwordmark{}
-fy ligature break.
-\end_layout
 
-\begin_layout Standard
+\end_layout
 
-\begin_inset ERT
+\begin_layout Section
+Special characters
+\begin_inset Index idx
 status collapsed
 
-\begin_layout Standard
-LyX
+\begin_layout Plain Layout
+Special characters
 \end_layout
 
 \end_inset
 
- translates the phrases 
-\begin_inset ERT
-status collapsed
+
+\end_layout
 
 \begin_layout Standard
-LyX
+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
 
-\end_inset
+\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 Standard
-TeX
+\begin_layout Plain Layout
+{}
 \end_layout
 
 \end_inset
 
-, 
+-, -
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-LaTeX
+\begin_layout Plain Layout
+{}
 \end_layout
 
 \end_inset
 
-2e and 
+-
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-LaTeX
+\begin_layout Plain Layout
+{}
 \end_layout
 
 \end_inset
 
- to the commands LyX, TeX, LaTeX2e and LaTeX. If these phrases occur as part of other words (like 1
+-, -
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-LyX
+\begin_layout Plain Layout
+{}
 \end_layout
 
 \end_inset
 
- or a
+-
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-TeX
+\begin_layout Plain Layout
+{}
 \end_layout
 
 \end_inset
 
- or 
+-
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-LaTeX
+\begin_layout Plain Layout
+{}
 \end_layout
 
 \end_inset
 
-3) they should not be put into ERT.
+- 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
@@ -5968,7 +7150,7 @@ builtin ^ unicodesymbols ȷ user
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 mycommand
@@ -5980,7 +7162,7 @@ mycommand
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {}
 \end_layout
 
@@ -5994,7 +7176,7 @@ builtin ^ unicodesymbols ȷ user
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 mycommand
@@ -6006,7 +7188,7 @@ mycommand
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {}
 \end_layout
 
@@ -6020,7 +7202,7 @@ builtin ^ unicodesymbols ȷ user
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 mycommand
@@ -6032,11 +7214,11 @@ mycommand
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 % and another
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \end_layout
 
@@ -6046,7 +7228,7 @@ status collapsed
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {}
 \end_layout
 
@@ -6059,7 +7241,7 @@ status collapsed
 A sub
 \begin_inset script subscript
 
-\begin_layout Standard
+\begin_layout Plain Layout
 sc
 \emph on
 ript
@@ -6072,7 +7254,7 @@ ript
  and super
 \begin_inset script superscript
 
-\begin_layout Standard
+\begin_layout Plain Layout
 script with 
 \begin_inset Formula $a^2+b^2=c^2$
 \end_inset
@@ -6085,6 +7267,14 @@ script with
 .
 \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
 
 \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
@@ -6122,6 +7495,38 @@ type "idx"
 
 \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
@@ -6134,11 +7539,11 @@ hello
 \end_layout
 
 \begin_layout Standard
-
+manually set width: 
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 settowidth{
@@ -6158,6 +7563,10 @@ set_width "none"
 
 \end_layout
 
+\begin_layout Standard
+nomenclature with set width:
+\end_layout
+
 \begin_layout Standard
 
 \begin_inset CommandInset nomencl_print