X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftest%2Ftest-structure.tex;h=745872b363392d3583f365d9dc345857a65e8e87;hb=3c1b79dd5bd9d6d79a83254075a65a61d46317e2;hp=72f606643f99c01fa979f177dc4302860308b5dd;hpb=be3e3a3b22cc32c5defc22bf380374eb20988efc;p=lyx.git diff --git a/src/tex2lyx/test/test-structure.tex b/src/tex2lyx/test/test-structure.tex index 72f606643f..745872b363 100644 --- a/src/tex2lyx/test/test-structure.tex +++ b/src/tex2lyx/test/test-structure.tex @@ -1,10 +1,10 @@ %% LyX trick_preamble_code_into_believing_that_this_was_created_by_lyx created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. -\documentclass[legalpaper,french,german,english]{article} +\documentclass[legalpaper,french,german,newzealand,english,dummyoption]{article} \usepackage[latin9]{inputenc} \usepackage{color} \usepackage{rotfloat} -\usepackage{wrapfig} +\synctex=-1\usepackage{wrapfig} \makeatletter @@ -16,6 +16,8 @@ \newcommand{\noun}[1]{\textsc{#1}} %% Because html converters don't know tabularnewline \providecommand{\tabularnewline}{\\} +\newcommand{\lyxadded}[3]{#3} +\newcommand{\lyxdeleted}[3]{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. \newenvironment{lyxlist}[1] @@ -25,14 +27,31 @@ \addtolength{\leftmargin}{\labelsep} \renewcommand{\makelabel}[1]{##1\hfil}}} {\end{list}} +\newcommand{\strong}[1]{\textbf{#1}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. +%% Special footnote code from the package 'stblftnt.sty' +%% Author: Robin Fairbairns -- Last revised Dec 13 1996 +\let\SF@@footnote\footnote +\def\footnote{\ifx\protect\@typeset@protect + \expandafter\SF@@footnote +\else + \expandafter\SF@gobble@opt +\fi +} +\expandafter\def\csname SF@gobble@opt \endcsname{\@ifnextchar[%] + \SF@gobble@twobracket + \@gobble +} +\edef\SF@gobble@opt{\noexpand\protect + \expandafter\noexpand\csname SF@gobble@opt \endcsname} + \def\SF@gobble@twobracket[#1]#2{} + \newenvironment{foo}{==[}{]==} -% LyX will also recognize this command: -% \@ifundefined{date}{}{\date{}} -% and also this: -% \date{} +\usepackage{fixltx2e} % this should cause the fixltx2e module to be loaded + +\date{} \@ifundefined{showcaptionsetup}{}{% \PassOptionsToPackage{caption=false}{subfig}} @@ -49,6 +68,7 @@ \title{Title} +% this should be recognized as empty date: \date{} \maketitle @@ -80,10 +100,18 @@ an unknown environment \section[Hello!]{A section with optional argument} +This causes the \strong{logikalmkup} module to be loaded. + \begin{quote} An environment \end{quote} +We also support change tracking: +\lyxadded{Hans Wurst}{Sun Nov 6 09:39:39 2011}{Added text} +some parts remain +\lyxdeleted{Hans Wurst}{Sun Nov 6 09:39:55 2011}{This was the original text} +some parts remain + \section*{A starred section for floats} \begin{figure} @@ -98,7 +126,7 @@ An environment \caption{rotated table, spanning all columns} \centering{}% -\begin{tabular}{|c|c|} +\begin{tabular}[b]{|c|c|} \hline a & b\tabularnewline \hline @@ -266,12 +294,35 @@ What else? Well, we have descriptions: \begin{description} \item[ABC] first item \item[BCD] second one +\item[{x y z}] with space +\item % hi there +[{x y % bla +z}] and with comments \end{description} + labelings: \begin{lyxlist}{00.00.0000} \item [label~1] first item \item [label~2] second item +\item [{$\left[\textrm{ }\right]^{x}$}] Label with space, math and ] in it \end{lyxlist} + +verbatim: +\begin{verbatim} +verbat im % $ 02/19/12 +hjkh +jkh \ blah +\begin{centering} + + +zzz \section{ +\end{raggedleft} + +\end{verbatim} +\verb~\~ +\verb+\item[ABC] first item+ +\verb+something\+ bug 4468 + and bibliography: \begin{thebibliography}{9} \bibitem{FOO} Edward Bar. \emph{The Foo Book}. (1999)