]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/test/test-structure.tex
tex2lyx/Preamble.cpp: handle \lyxline
[lyx.git] / src / tex2lyx / test / test-structure.tex
index 1f6402dd751d0495cd5ced03f5fcd7c9d50caf1d..824994eb1270ad80548da4442aa62ae9d52603f9 100644 (file)
@@ -1,34 +1,74 @@
 %% 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.
 %% 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,francais,german,newzealand]{article}
+\documentclass[legalpaper,french,german,newzealand,english,dummyoption]{article}
+\usepackage[latin9]{inputenc}
+\usepackage{color}
+\usepackage{rotfloat}
+\synctex=-1\usepackage{wrapfig}
+
+\makeatletter
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
+\pdfpageheight\paperheight
+\pdfpagewidth\paperwidth
 
 
-\usepackage{babel}
+\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
 \newcommand{\noun}[1]{\textsc{#1}}
 \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.
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
-
 \newenvironment{lyxlist}[1]
 \newenvironment{lyxlist}[1]
-       {\begin{list}{}
-               {\settowidth{\labelwidth}{#1}
-               \setlength{\leftmargin}{\labelwidth}
-               \addtolength{\leftmargin}{\labelsep}
-               \renewcommand{\makelabel}[1]{##1\hfil}}}
-       {\end{list}}
-
-% LyX will also recognize this command:
-% \@ifundefined{date}{}{\date{}}
-% and also this:
-% \date{}
+{\begin{list}{}
+{\settowidth{\labelwidth}{#1}
+ \setlength{\leftmargin}{\labelwidth}
+ \addtolength{\leftmargin}{\labelsep}
+ \renewcommand{\makelabel}[1]{##1\hfil}}}
+{\end{list}}
+\newcommand{\strong}[1]{\textbf{#1}}
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 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}{==[}{]==}
 
 
 \newenvironment{foo}{==[}{]==}
 
+\usepackage{fixltx2e} % this should cause the fixltx2e module to be loaded
+
+\date{}
+
+\@ifundefined{showcaptionsetup}{}{%
+ \PassOptionsToPackage{caption=false}{subfig}}
+\usepackage{subfig}
+\makeatother
+
+\usepackage{babel}
+\addto\extrasfrench{%
+   \providecommand{\og}{\leavevmode\flqq~}%
+   \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
+}
+
 \begin{document}
 
 \title{Title}
 
 \begin{document}
 
 \title{Title}
 
+% this should be recognized as empty date:
 \date{}
 
 \maketitle
 \date{}
 
 \maketitle
@@ -60,10 +100,18 @@ an unknown environment
 
 \section[Hello!]{A section with optional argument}
 
 
 \section[Hello!]{A section with optional argument}
 
+This causes the \strong{logikalmkup} module to be loaded.
+
 \begin{quote}
 An environment
 \end{quote}
 
 \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}
 \section*{A starred section for floats}
 
 \begin{figure}
@@ -78,7 +126,7 @@ An environment
 \caption{rotated table, spanning all columns}
 
 \centering{}%
 \caption{rotated table, spanning all columns}
 
 \centering{}%
-\begin{tabular}{|c|c|}
+\begin{tabular}[b]{|c|c|}
 \hline 
 a  & b\tabularnewline
 \hline 
 \hline 
 a  & b\tabularnewline
 \hline 
@@ -140,6 +188,35 @@ 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.
 
 (we'll explain why later), though with some effort all these can be
 done, too.
 
+\begin{table}
+\caption{lkälöä}
+
+
+\subfloat[ölkälö]{
+
+klöä}
+
+\end{table}
+
+
+\begin{figure}
+\subfloat[te\%st]{sub\textcolor{red}{fig}u\%re 1
+
+}
+
+\hfill{} \subfloat[]{subfigure 2ö
+
+}
+
+\subfloat{subfigure 3}
+
+\caption{figure caption}
+
+
+strange usage, but valid 
+\end{figure}
+
+
 \subsection{Some paragraph stuff}
 
 A paragraph\footnote{hello} with a footnote and another
 \subsection{Some paragraph stuff}
 
 A paragraph\footnote{hello} with a footnote and another
@@ -208,7 +285,7 @@ and a second paragraph for good measure
 
 \item the second item
 
 
 \item the second item
 
-\item the third item
+\item[custom label] the third item has a custom label
 
 \subsubsection*{and a sssection heading inside it (why not?)}
 \end{itemize}
 
 \subsubsection*{and a sssection heading inside it (why not?)}
 \end{itemize}
@@ -217,16 +294,39 @@ What else? Well, we have descriptions:
 \begin{description}
 \item[ABC] first item
 \item[BCD] second one
 \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}
 \end{description}
+
 labelings:
 \begin{lyxlist}{00.00.0000}
 \item [label~1] first item
 \item [label~2] second item
 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}
 \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)
 and bibliography:
 \begin{thebibliography}{9}
 \bibitem{FOO} Edward Bar. \emph{The Foo Book}. (1999)
-\bibitem{FO2} Walter Müller \emph{The Müller Book}. (2004) 
+\bibitem{FO2} Walter Müller \emph{The Müller Book}. (2004) 
 \end{thebibliography}
 
 \appendix
 \end{thebibliography}
 
 \appendix