The branch, features/fix-tex2lyx-tests, has been updated. - Log -----------------------------------------------------------------
commit 731bd1799920e7d0236335cf74eb0c9de2e76c2d Author: Georg Baum <b...@lyx.org> Date: Sun May 31 12:56:22 2015 +0200 Re-add new-style decimal alignment table The only difference to 1a8b74f5e1c is that the dcolumn version is not removed. Even if LyX does not support dcolumn anymore, it is still a useful test whether tex2lyx imports it correctly. diff --git a/src/tex2lyx/test/test-insets.lyx.lyx b/src/tex2lyx/test/test-insets.lyx.lyx index 2402eda..b77e944 100644 --- a/src/tex2lyx/test/test-insets.lyx.lyx +++ b/src/tex2lyx/test/test-insets.lyx.lyx @@ -5316,6 +5316,311 @@ Some tables need more than one footnote. \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 diff --git a/src/tex2lyx/test/test-insets.tex b/src/tex2lyx/test/test-insets.tex index 013ac79..ecac1da 100644 --- a/src/tex2lyx/test/test-insets.tex +++ b/src/tex2lyx/test/test-insets.tex @@ -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: ----------------------------------------------------------------------- Summary of changes: src/tex2lyx/test/test-insets.lyx.lyx | 305 ++++++++++++++++++++++++++++++++++ src/tex2lyx/test/test-insets.tex | 13 ++ 2 files changed, 318 insertions(+), 0 deletions(-) hooks/post-receive -- Repository for new features