]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/test/test-insets.tex
Update tex2lyx tests
[lyx.git] / src / tex2lyx / test / test-insets.tex
index 162ebd843a8da38cd278c0519fca26c060fe72c6..281fc0b39cad5b8e7bf53c0a7c89ebf7916b047a 100644 (file)
@@ -155,7 +155,7 @@ variant (tests quoting as well):
 \include{\string"Dummy Document\string".tex}
 \include{\string"Dummy\string~Document\string"}
 \include{\string"Dummy\string~Document\string".tex}
-File names containg double quotes are not legal on windows, so no test file
+File names containing 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.
@@ -165,11 +165,11 @@ not work (tex2lyx can't deduce the correct extension of nonexisting files).
 
 We can also import chess diagrams:
 
-\loadgame{../../../lib/examples/iecc05}\showboard
+\loadgame{../../../lib/examples/Graphics_and_Insets/iecc05}\showboard
 
 Spreadsheets:
 
-\def\inputGnumericTable{}\input{../../../lib/examples/longsheet.tex}
+\def\inputGnumericTable{}\input{../../../lib/examples/External_Material/longsheet.tex}
 
 XFig drawings:
 
@@ -177,7 +177,7 @@ XFig drawings:
 
 and PDF pages:
 
-\includepdf[pages=-,angle=22,origin=Bl,width=5cm,height=40mm,keepaspectratio]{../../../lib/examples/beamer-icsi-logo}
+\includepdf[pages=-,angle=22,origin=Bl,width=5cm,height=40mm,keepaspectratio]{../../../lib/examples/Presentations/beamer-icsi-logo}
 
 If you prefer verbatim input, you can choose
 between~\verbatiminput{foo} or~\verbatiminput*{foo}.
@@ -473,6 +473,19 @@ C\footnote{Some tables require footnotes.}
 \end{table}
 
 
+A table using decimal alignment:
+
+\begin{table} 
+\begin{tabular}{ccr@{\extracolsep{0pt}.}lr@{\extracolsep{0pt}.}lr@{\extracolsep{0pt}.}l}
+One & Two & \multicolumn{2}{c}{Three} & \multicolumn{2}{c}{Four} & \multicolumn{2}{c}{Five}\tabularnewline
+\hline 
+one & two & \multicolumn{2}{c}{three} & \multicolumn{2}{c}{four} & \multicolumn{2}{c}{five}\tabularnewline
+He & 2 & 2&77234  & 45672&  & 0&69 \tabularnewline
+C & C & 12537&64  & 37&66345  & 86&37 \tabularnewline
+\end{tabular}
+\end{table}
+
+
 \section{Macros}
 
 LyX supports several kinds of macros:
@@ -521,7 +534,11 @@ test
 {\Huge \lyxline{\Huge}}{\Huge \par}
 
 
-\subsection{rules}
+\subsection{Rules}
+
+test
+
+{\tiny \rule[0.5ex]{1\linewidth}{1pt}}{\tiny \par}
 
 test\rule[0.001\textwidth]{1\columnwidth}{0.05\textheight}
 
@@ -569,7 +586,7 @@ e\textsuperscript{h}
 \textsublhalfring{e}
 \textsubplus{e}
 \=*{e}
-\b{e}
+(don't mix up with \b{e})
 \"{e}
 \textovercross{e}
 \s{e}
@@ -622,6 +639,10 @@ e\textcorner{}
 TIPA code in math:
 $\textipa{\tone{55}|\text{\!b{}\!d{}\!g{}\!G{}\textglobfall{}\textvertline{}\textdoublevertline{}}}$
 
+\subsection{Other symbols}
+All three should be converted to U+00C5: \AA{} \r A \r{A} (not U+212B).
+All three should be converted to U+00E5: \aa{} \r a \r{a}.
+
 \subsection{Line breaks\sindex[breaks]{Line breaks}}
 
 They can also or be broken by a newline\\
@@ -656,6 +677,10 @@ 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)
@@ -687,6 +712,13 @@ Let $f:\left[  a,b\right]  \rightarrow%
 %EndExpansion
 $.
 
+\[
+\begin{array}{rclccc}
+1 + 2 & = & 3 
+\multicolumn{3}{c}{4 < 5 \leq 6 }
+\end{array}
+\]
+
 
 \section{Lists/Indices}