]> git.lyx.org Git - features.git/commitdiff
Add tex2lyx test for KOMA-Script classes
authorGeorg Baum <baum@lyx.org>
Tue, 23 Dec 2014 21:33:32 +0000 (22:33 +0100)
committerGeorg Baum <baum@lyx.org>
Tue, 23 Dec 2014 21:33:32 +0000 (22:33 +0100)
In the future this test case should contain all KOMA-Script features.
Currently, it tests just \captionabove anmd \captionbelow.

src/tex2lyx/Makefile.am
src/tex2lyx/test/CMakeLists.txt
src/tex2lyx/test/runtests.py
src/tex2lyx/test/test-scr.lyx.lyx [new file with mode: 0644]
src/tex2lyx/test/test-scr.tex [new file with mode: 0644]

index 935e0b8ef3d83f39266bf404ae165d90781c55d1..c9b1d4b25f66b621087a91a7f6302e3e01729d06 100644 (file)
@@ -36,6 +36,7 @@ TEST_FILES = \
        test/test.ltx \
        test/test-modules.tex \
        test/test-refstyle-theorems.tex \
+       test/test-scr.tex \
        test/test-structure.tex \
        test/verbatim.tex \
        test/XeTeX-polyglossia.tex \
@@ -54,6 +55,7 @@ TEST_RESULTS = \
        test/test.lyx.lyx \
        test/test-modules.lyx.lyx \
        test/test-refstyle-theorems.lyx.lyx \
+       test/test-scr.lyx.lyx \
        test/test-structure.lyx.lyx \
        test/verbatim.lyx.lyx \
        test/XeTeX-polyglossia.lyx.lyx
index ea79c2c6f315fce96ccf125d740e45a531fc2634..3fb1c7bbe84018d0d6333b0cf80941e4c2758f19 100644 (file)
@@ -17,6 +17,7 @@ set(_tex_tests test.ltx
                test-insets.tex
                test-modules.tex
                test-refstyle-theorems.tex
+               test-scr.tex
                test-structure.tex
                verbatim.tex
                XeTeX-polyglossia.tex
index 71f615e8beba9294cbac15f1b1adb4c0e99f146a..8d053acd1f6f28a79ff344bf88e5e0372d0c2087 100755 (executable)
@@ -77,6 +77,7 @@ def main(argv):
                  'test-insets.tex', \
                  'test-modules.tex', \
                  'test-refstyle-theorems.tex', \
+                 'test-scr.tex', \
                  'test-structure.tex', \
                  'verbatim.tex', \
                  'XeTeX-polyglossia.tex', \
diff --git a/src/tex2lyx/test/test-scr.lyx.lyx b/src/tex2lyx/test/test-scr.lyx.lyx
new file mode 100644 (file)
index 0000000..078be90
--- /dev/null
@@ -0,0 +1,220 @@
+#LyX file created by tex2lyx 2.2
+\lyxformat 479
+\begin_document
+\begin_header
+\textclass scrbook
+\begin_preamble
+\usepackage{babel}
+
+\end_preamble
+\use_default_options false
+\maintain_unincluded_children false
+\language english
+\language_package default
+\inputencoding iso8859-15
+\fontencoding T1
+\font_roman default
+\font_sans default
+\font_typewriter default
+\font_math auto
+\font_default_family default
+\use_non_tex_fonts false
+\font_sc false
+\font_osf false
+\font_sf_scale 100
+\font_tt_scale 100
+\graphics default
+\default_output_format default
+\output_sync 0
+\bibtex_command default
+\index_command default
+\paperfontsize default
+\spacing single
+\use_hyperref false
+\papersize default
+\use_geometry false
+\use_package amsmath 1
+\use_package amssymb 0
+\use_package cancel 0
+\use_package esint 1
+\use_package mathdots 0
+\use_package mathtools 0
+\use_package mhchem 0
+\use_package stackrel 0
+\use_package stmaryrd 0
+\use_package undertilde 0
+\cite_engine basic
+\cite_engine_type default
+\biblio_style plain
+\use_bibtopic false
+\use_indices false
+\paperorientation portrait
+\suppress_date false
+\justification true
+\use_refstyle 0
+\index Index
+\shortcut idx
+\color #008000
+\end_index
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\paragraph_indentation default
+\quotes_language english
+\papercolumns 1
+\papersides 2
+\paperpagestyle default
+\tracking_changes false
+\output_changes false
+\html_math_output 0
+\html_css_as_file 0
+\html_be_strict false
+\end_header
+
+\begin_body
+
+\begin_layout Part
+part
+\begin_inset CommandInset label
+LatexCommand label
+name "part:part"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Chapter
+chapter
+\begin_inset CommandInset label
+LatexCommand label
+name "chap:chapter"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Section
+\begin_inset CommandInset label
+LatexCommand label
+name "sec:Section"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Subsection
+Subsection
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:subsection"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Subsubsection
+Subsubsection
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Subsubsection"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Paragraph
+paragraph
+\begin_inset CommandInset label
+LatexCommand label
+name "par:paragraph"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Subparagraph
+subparagraph
+\begin_inset CommandInset label
+LatexCommand label
+name "par:subparagraph"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+
+\begin_inset Float figure
+wide false
+sideways false
+status open
+
+
+\begin_layout Standard
+
+\begin_inset Caption Above
+
+\begin_layout Standard
+figure
+\begin_inset CommandInset label
+LatexCommand label
+name "fig:figure"
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+
+\begin_inset Float table
+wide false
+sideways false
+status open
+
+
+\begin_layout Standard
+
+\begin_inset Caption Below
+
+\begin_layout Standard
+table
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:table"
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_body
+\end_document
diff --git a/src/tex2lyx/test/test-scr.tex b/src/tex2lyx/test/test-scr.tex
new file mode 100644 (file)
index 0000000..f07c73a
--- /dev/null
@@ -0,0 +1,40 @@
+%% 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]{scrbook}
+\usepackage[T1]{fontenc}
+\usepackage[latin9]{inputenc}
+
+\usepackage{babel}
+\usepackage{float}
+
+\begin{document}
+
+\part{part\label{part:part}}
+
+
+\chapter{chapter\label{chap:chapter}}
+
+
+\section{Section\label{sec:Section}}
+
+
+\subsection{Subsection\label{sub:subsection}}
+
+
+\subsubsection{Subsubsection\label{sub:Subsubsection}}
+
+
+\paragraph{paragraph\label{par:paragraph}}
+
+
+\subparagraph{subparagraph\label{par:subparagraph}}
+
+\begin{figure}
+\captionabove{figure\label{fig:figure}}
+\end{figure}
+
+\begin{table}
+\captionbelow{table\label{tab:table}}
+\end{table}
+
+\end{document}