From: Uwe Stöhr Date: Thu, 27 Oct 2011 02:27:42 +0000 (+0000) Subject: tex2lyx/test/test-structure.tex: X-Git-Tag: 2.1.0beta1~2470 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=be3e3a3b22cc32c5defc22bf380374eb20988efc;p=features.git tex2lyx/test/test-structure.tex: - update preamble to the features used in the file - add some floats git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40024 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/tex2lyx/test/test-structure.tex b/src/tex2lyx/test/test-structure.tex index 1f6402dd75..72f606643f 100644 --- a/src/tex2lyx/test/test-structure.tex +++ b/src/tex2lyx/test/test-structure.tex @@ -1,29 +1,49 @@ %% 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,english]{article} +\usepackage[latin9]{inputenc} +\usepackage{color} +\usepackage{rotfloat} +\usepackage{wrapfig} + +\makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 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}} +%% Because html converters don't know tabularnewline +\providecommand{\tabularnewline}{\\} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. - \newenvironment{lyxlist}[1] - {\begin{list}{} - {\settowidth{\labelwidth}{#1} - \setlength{\leftmargin}{\labelwidth} - \addtolength{\leftmargin}{\labelsep} - \renewcommand{\makelabel}[1]{##1\hfil}}} - {\end{list}} +{\begin{list}{} +{\settowidth{\labelwidth}{#1} + \setlength{\leftmargin}{\labelwidth} + \addtolength{\leftmargin}{\labelsep} + \renewcommand{\makelabel}[1]{##1\hfil}}} +{\end{list}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. +\newenvironment{foo}{==[}{]==} % LyX will also recognize this command: % \@ifundefined{date}{}{\date{}} % and also this: % \date{} -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. -\newenvironment{foo}{==[}{]==} +\@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} @@ -140,6 +160,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. +\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 @@ -226,7 +275,7 @@ labelings: 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