From 0c684343a721140469ebc29cbcaffa4958c4bd4d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Wed, 26 Oct 2011 21:43:08 +0000 Subject: [PATCH] backporting tex2lyx: the example files git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40021 a592a061-630c-0410-9148-cb99ea01b6c8 --- .../test/box-color-size-space-align.tex | 18 +++++ src/tex2lyx/test/test-insets.tex | 21 +++-- src/tex2lyx/test/test-structure.tex | 76 +++++++++++++++++-- 3 files changed, 105 insertions(+), 10 deletions(-) diff --git a/src/tex2lyx/test/box-color-size-space-align.tex b/src/tex2lyx/test/box-color-size-space-align.tex index 9a265d8205..f0ece400d7 100644 --- a/src/tex2lyx/test/box-color-size-space-align.tex +++ b/src/tex2lyx/test/box-color-size-space-align.tex @@ -210,6 +210,24 @@ bla blub bla blub \normalsize + +\section{Strikeout, underlined etc.} + +Emphasized: \emph{test} + +Underbar: \uline{test} + +Double underbar: \uuline{test} + +Wavy underbar: \uwave{test} + +Strike out: \sout{test} + +Noun: \noun{test} + +Underbar, ephasized, stikreout: \emph{\uline{\sout{test}}} + + \section{Paragraph spacing} bla diff --git a/src/tex2lyx/test/test-insets.tex b/src/tex2lyx/test/test-insets.tex index 040bd8c629..f6b09391cc 100644 --- a/src/tex2lyx/test/test-insets.tex +++ b/src/tex2lyx/test/test-insets.tex @@ -121,10 +121,21 @@ If you prefer verbatim input, you can choose between~\verbatiminput{foo} or~\verbatiminput*{foo}. -\section{URL\index{URL}\nomenclature[www]{URL}{uniform resource locator}} +\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: \url{http://www.lyx.org} \nomenclature{URL2}{uniform resource locator} + +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} \section{Lists\index{Lists}} @@ -312,9 +323,9 @@ test test\phantom{Wow}test -test\phantom{\textcolor{green}{W}\textbf{ow}\textsuperscript{Wow}}test +test\hphantom{\textcolor{green}{W}\textbf{ow}\textsuperscript{Wow}}test -test\phantom{Wow\textbackslash{}\&\%}test +test\vphantom{Wow\textbackslash{}\&\%}test $test\hphantom{Wow}test$ diff --git a/src/tex2lyx/test/test-structure.tex b/src/tex2lyx/test/test-structure.tex index b79e7ab53f..1f6402dd75 100644 --- a/src/tex2lyx/test/test-structure.tex +++ b/src/tex2lyx/test/test-structure.tex @@ -64,7 +64,7 @@ an unknown environment An environment \end{quote} -\section*{A starred section} +\section*{A starred section for floats} \begin{figure} \caption{ \emph{\noun{is}} a caption} @@ -74,17 +74,83 @@ An environment \caption[s\noun{ho}rt]{this \emph{is} a caption} \end{figure} +\begin{sidewaystable*} +\caption{rotated table, spanning all columns} + +\centering{}% +\begin{tabular}{|c|c|} +\hline +a & b\tabularnewline +\hline +\hline +d & c\tabularnewline +\hline +\end{tabular} +\end{sidewaystable*} + +\begin{wrapfigure}[4]{L}[2ex]{0.5\columnwidth}% +\begin{centering} +fdgsdfdh +\par\end{centering} + +\caption{test1} +\end{wrapfigure}% +\LyX{} is a document preparation system. It excels at letting you +create complex technical and scientific articles with mathematics, +cross-references, bibliographies, indices, etc. It is very good at +documents of any length in which the usual processing abilities are +required: automatic sectioning and pagination, spell checking, and +so forth. It can also be used to write a letter to your mom, though +granted, there are probably simpler programs available for that. It +is definitely not the best tool for creating banners, flyers, or advertisements +(we'll explain why later), though with some effort all these can be +done, too. + +\begin{wrapfigure}{o}{0.5\columnwidth}% +\begin{centering} +fdgs +\par\end{centering} + +\caption{test2} +\end{wrapfigure}% +\LyX{} is a document preparation system. It excels at letting you +create complex technical and scientific articles with mathematics, +cross-references, bibliographies, indices, etc. It is very good at +documents of any length in which the usual processing abilities are +required: automatic sectioning and pagination, spell checking, and +so forth. It can also be used to write a letter to your mom, though +granted, there are probably simpler programs available for that. It +is definitely not the best tool for creating banners, flyers, or advertisements +(we'll explain why later), though with some effort all these can be +done, too. + +\begin{wraptable}{i}[0.05\textwidth]{5ex}% +\caption{fdg} + + +\centering{}dfgd\end{wraptable}% +\LyX{} is a document preparation system. It excels at letting you +create complex technical and scientific articles with mathematics, +cross-references, bibliographies, indices, etc. It is very good at +documents of any length in which the usual processing abilities are +required: automatic sectioning and pagination, spell checking, and +so forth. It can also be used to write a letter to your mom, though +granted, there are probably simpler programs available for that. It +is definitely not the best tool for creating banners, flyers, or advertisements +(we'll explain why later), though with some effort all these can be +done, too. + +\subsection{Some paragraph stuff} + A paragraph\footnote{hello} with a footnote and another one\footnote{hello -there} with several paragraphs - -some ERT \vspace{1cm} aa +there} with several paragraphs \vspace{1cm} aa and another paragraph \begin{center} -Some centered stuff (does not work) +Some centered stuff \end{center} \begin{quotation} -- 2.39.5