X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftest%2Ftest-insets.tex;h=b3e7795d95f01888ed2d7d06ccae8756fbd9bfd0;hb=d3c63f97c4fce4e091277ced6c1829473c311231;hp=5fd393030788a0f4e54a13295768fae6e0d09980;hpb=471889e0db3e97c97ea7da5d54577b253d6974e0;p=lyx.git diff --git a/src/tex2lyx/test/test-insets.tex b/src/tex2lyx/test/test-insets.tex index 5fd3930307..b3e7795d95 100644 --- a/src/tex2lyx/test/test-insets.tex +++ b/src/tex2lyx/test/test-insets.tex @@ -34,6 +34,7 @@ \usepackage{booktabs} \usepackage{multirow} \usepackage{hhline} +\usepackage{dcolumn} \usepackage{pdfpages} \usepackage{textcomp} \usepackage{amssymb} @@ -140,6 +141,8 @@ 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} @@ -452,6 +455,36 @@ in \% of pixel size & 76.3 & 95.9 & 92.3\tabularnewline \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} + + +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} @@ -501,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} @@ -549,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} @@ -602,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\\ @@ -636,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) @@ -667,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}