mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-17 10:07:27 +00:00
e1d9ad9f28
These should not have been done without discussion.
- Removal of the dcolumn table in 1a8b74f5e1
. Even if LyX does not support
dcolumn anymore, it is still a useful test whether tex2lyx imports it
correctly.
- Removal of the first "%% LyX" line. A long time ago it was decided (after
long discussion between at least Jean-Marc, Uwe and me), that this line is
interpreted by tex2lyx, and used to remove some LyX-generated preamble code.
These lines in the current tests exist on purpose (one can see in the diff
how the removal added unwanted stuff). I do not really like the
interpretation of the "%% LyX" line, but if this behaviour is to be changed
then this needs discussion first.
- Changed comment of \date. The comment was put there on purpose, and the
warning which was "fixed" by the change hints at a limitation in LyX, not a
tex2lyx problem (LyX does not know that a comment inset between some title
insets is OK). The roundtrip .tex output was OK with the old version.
- Change of \verbatiminput{foo}. This was supposed to test whether a
verbatim inset is correctly created even if the included file does not
exist.
- Removal of \lyxlines. Although these tests test input of files created by
old LyX versions, they are useful.
- Change of the lemma in test-modules.tex. The old version was put there on
purpose, and the file itself explains why it is translated to ERT.
227 lines
5.1 KiB
TeX
227 lines
5.1 KiB
TeX
%% 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[english]{book}
|
|
\usepackage[T1]{fontenc}
|
|
\usepackage[latin9]{inputenc}
|
|
\usepackage{refstyle}
|
|
\usepackage{float}
|
|
\usepackage{amsthm}
|
|
|
|
\makeatletter
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
|
|
|
|
\AtBeginDocument{\providecommand\partref[1]{\ref{part:#1}}}
|
|
\AtBeginDocument{\providecommand\chapref[1]{\ref{chap:#1}}}
|
|
\AtBeginDocument{\providecommand\secref[1]{\ref{sec:#1}}}
|
|
\AtBeginDocument{\providecommand\subsecref[1]{\ref{subsec:#1}}}
|
|
\AtBeginDocument{\providecommand\parref[1]{\ref{par:#1}}}
|
|
\AtBeginDocument{\providecommand\figref[1]{\ref{fig:#1}}}
|
|
\AtBeginDocument{\providecommand\tabref[1]{\ref{tab:#1}}}
|
|
\AtBeginDocument{\providecommand\algref[1]{\ref{alg:#1}}}
|
|
\AtBeginDocument{\providecommand\fnref[1]{\ref{fn:#1}}}
|
|
\AtBeginDocument{\providecommand\enuref[1]{\ref{enu:#1}}}
|
|
\AtBeginDocument{\providecommand\eqref[1]{\ref{eq:#1}}}
|
|
\AtBeginDocument{\providecommand\lemref[1]{\ref{lem:#1}}}
|
|
\AtBeginDocument{\providecommand\thmref[1]{\ref{thm:#1}}}
|
|
\AtBeginDocument{\providecommand\corref[1]{\ref{cor:#1}}}
|
|
\AtBeginDocument{\providecommand\propref[1]{\ref{prop:#1}}}
|
|
\floatstyle{ruled}
|
|
\newfloat{algorithm}{tbp}{loa}[chapter]
|
|
\providecommand{\algorithmname}{Algorithm}
|
|
\floatname{algorithm}{\protect\algorithmname}
|
|
\RS@ifundefined{subsecref}
|
|
{\newref{subsec}{name = \RSsectxt}}
|
|
{}
|
|
\RS@ifundefined{thmref}
|
|
{\def\RSthmtxt{theorem~}\newref{thm}{name = \RSthmtxt}}
|
|
{}
|
|
\RS@ifundefined{lemref}
|
|
{\def\RSlemtxt{lemma~}\newref{lem}{name = \RSlemtxt}}
|
|
{}
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
|
|
\theoremstyle{plain}
|
|
\newtheorem{thm}{\protect\theoremname}
|
|
\theoremstyle{plain}
|
|
\newtheorem{lem}[thm]{\protect\lemmaname}
|
|
\theoremstyle{plain}
|
|
\newtheorem{cor}[thm]{\protect\corollaryname}
|
|
\theoremstyle{plain}
|
|
\newtheorem{prop}[thm]{\protect\propositionname}
|
|
\theoremstyle{plain}
|
|
\newtheorem{conjecture}[thm]{\protect\conjecturename}
|
|
\theoremstyle{plain}
|
|
\newtheorem{fact}[thm]{\protect\factname}
|
|
\theoremstyle{definition}
|
|
\newtheorem{defn}[thm]{\protect\definitionname}
|
|
\theoremstyle{definition}
|
|
\newtheorem{example}[thm]{\protect\examplename}
|
|
\theoremstyle{definition}
|
|
\newtheorem{problem}[thm]{\protect\problemname}
|
|
\theoremstyle{definition}
|
|
\newtheorem{xca}[thm]{\protect\exercisename}
|
|
\theoremstyle{remark}
|
|
\newtheorem{rem}[thm]{\protect\remarkname}
|
|
\theoremstyle{remark}
|
|
\newtheorem{claim}[thm]{\protect\claimname}
|
|
\ifx\proof\undefined
|
|
\newenvironment{proof}[1][\protect\proofname]{\par
|
|
\normalfont\topsep6\p@\@plus6\p@\relax
|
|
\trivlist
|
|
\itemindent\parindent
|
|
\item[\hskip\labelsep\scshape #1]\ignorespaces
|
|
}{%
|
|
\endtrivlist\@endpefalse
|
|
}
|
|
\providecommand{\proofname}{Proof}
|
|
\fi
|
|
|
|
\makeatother
|
|
|
|
\usepackage{babel}
|
|
\providecommand{\claimname}{Claim}
|
|
\providecommand{\conjecturename}{Conjecture}
|
|
\providecommand{\corollaryname}{Corollary}
|
|
\providecommand{\definitionname}{Definition}
|
|
\providecommand{\examplename}{Example}
|
|
\providecommand{\exercisename}{Exercise}
|
|
\providecommand{\factname}{Fact}
|
|
\providecommand{\lemmaname}{Lemma}
|
|
\providecommand{\problemname}{Problem}
|
|
\providecommand{\propositionname}{Proposition}
|
|
\providecommand{\remarkname}{Remark}
|
|
\providecommand{\theoremname}{Theorem}
|
|
|
|
\begin{document}
|
|
|
|
\part{part\label{part:part}}
|
|
|
|
\partref{part}
|
|
|
|
|
|
\chapter{chapter\label{chap:chapter}}
|
|
|
|
\chapref{chapter}
|
|
|
|
|
|
\section{Section\label{sec:Section}}
|
|
|
|
\secref{Section}
|
|
|
|
|
|
\subsection{Subsection\label{subsec:subsection}}
|
|
|
|
Ref to \subsecref{subsection}.
|
|
|
|
|
|
\subsubsection{Subsubsection\label{subsec:Subsubsection}}
|
|
|
|
Ref to \subsecref{Subsubsection}.
|
|
|
|
|
|
\paragraph{paragraph\label{par:paragraph}}
|
|
|
|
\parref{paragraph}
|
|
|
|
|
|
\subparagraph{subparagraph\label{par:subparagraph}}
|
|
|
|
\parref{subparagraph}
|
|
|
|
\begin{figure}
|
|
\protect\caption{figure\label{fig:figure}}
|
|
\end{figure}
|
|
|
|
|
|
\figref{figure}
|
|
|
|
\begin{table}
|
|
\protect\caption{table\label{tab:table}}
|
|
\end{table}
|
|
|
|
|
|
\tabref{table}
|
|
|
|
\begin{algorithm}
|
|
\protect\caption{algorithm\label{alg:algorithm}}
|
|
\end{algorithm}
|
|
|
|
|
|
\algref{algorithm}
|
|
|
|
\footnote{foot\label{fn:foot}%
|
|
}
|
|
|
|
\fnref{foot}
|
|
|
|
\marginpar{margin\label{margin}}
|
|
|
|
\ref{margin}
|
|
\begin{enumerate}
|
|
\item item\label{enu:item}
|
|
\end{enumerate}
|
|
\enuref{item}
|
|
|
|
\begin{equation}
|
|
A=B\label{eq:A=00003DB}
|
|
\end{equation}
|
|
|
|
|
|
\eqref{A=00003DB}
|
|
\begin{lem}
|
|
lemma\label{lem:lemma}
|
|
|
|
\lemref{lemma}\end{lem}
|
|
\begin{thm}
|
|
theorem\label{thm:theorem}
|
|
|
|
\thmref{theorem}\end{thm}
|
|
\begin{cor}
|
|
corollary\label{cor:corollary}
|
|
|
|
\corref{corollary}\end{cor}
|
|
\begin{prop}
|
|
proposition\label{prop:proposition}
|
|
|
|
\propref{proposition}\end{prop}
|
|
\begin{conjecture}
|
|
conjecture\label{conjecture}
|
|
|
|
\ref{conjecture}\end{conjecture}
|
|
\begin{fact}
|
|
fact\label{fact}
|
|
|
|
\ref{fact}\end{fact}
|
|
\begin{defn}
|
|
definition\label{definition}
|
|
|
|
\ref{definition}\end{defn}
|
|
\begin{example}
|
|
example\label{example}
|
|
|
|
\ref{example}\end{example}
|
|
\begin{problem}
|
|
problem\label{problem}
|
|
|
|
\ref{problem}\end{problem}
|
|
\begin{xca}
|
|
exercise\label{exercise}
|
|
|
|
\ref{exercise}\end{xca}
|
|
\begin{rem}
|
|
remark\label{remark}
|
|
|
|
\ref{remark}\end{rem}
|
|
\begin{claim}
|
|
claim\label{claim}
|
|
|
|
\ref{claim}\end{claim}
|
|
\begin{proof}
|
|
proof\label{proof}
|
|
|
|
\ref{proof}\end{proof}
|
|
|
|
\end{document}
|