mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Add tex2lyx test for KOMA-Script classes
In the future this test case should contain all KOMA-Script features. Currently, it tests just \captionabove anmd \captionbelow.
This commit is contained in:
parent
6f34a8a640
commit
903917f3b8
@ -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
|
||||
|
@ -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
|
||||
|
@ -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', \
|
||||
|
220
src/tex2lyx/test/test-scr.lyx.lyx
Normal file
220
src/tex2lyx/test/test-scr.lyx.lyx
Normal file
@ -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
|
40
src/tex2lyx/test/test-scr.tex
Normal file
40
src/tex2lyx/test/test-scr.tex
Normal file
@ -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}
|
Loading…
Reference in New Issue
Block a user