From 1e63aebc3e71d29723ad0e73c2a3175d4648f013 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Sat, 7 Oct 2023 14:57:30 -0400 Subject: [PATCH] ctests: add test cases for DocBook Patch from Thibaut Cuvelier. --- autotests/export/docbook/stray_emph.lyx | 148 ++++++++++++++++++++++++ autotests/export/docbook/stray_emph.xml | 9 ++ 2 files changed, 157 insertions(+) create mode 100644 autotests/export/docbook/stray_emph.lyx create mode 100644 autotests/export/docbook/stray_emph.xml diff --git a/autotests/export/docbook/stray_emph.lyx b/autotests/export/docbook/stray_emph.lyx new file mode 100644 index 0000000000..4abbc0cfc9 --- /dev/null +++ b/autotests/export/docbook/stray_emph.lyx @@ -0,0 +1,148 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 619 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\begin_preamble +% DO NOT ALTER THIS PREAMBLE!!! +% +%This preamble is designed to ensure that the document prints +% out as advertised. If you mess with this preamble, +% parts of the document may not print out as expected. If you +% have problems LaTeXing this file, please contact +% the documentation team +% email: lyx-docs@lists.lyx.org + +% the pages of the TOC is numbered roman +% and a pdf-bookmark for the TOC is added +\pagenumbering{roman} +\let\myTOC\tableofcontents +\renewcommand\tableofcontents{% + \pdfbookmark[1]{\contentsname}{} + \myTOC + \cleardoublepage + \pagenumbering{arabic} } +\end_preamble +\use_default_options false +\maintain_unincluded_children no +\language catalan +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "palatino" "default" +\font_sans "helvet" "default" +\font_typewriter "courier" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command default +\index_command default +\float_placement class +\float_alignment class +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_title "Introducció al LyX" +\pdf_author "LyX Team, translation: Joan Montané, Daniel Fernández" +\pdf_subject "LyX-documentation Introducció" +\pdf_keywords "LyX, Documentation" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 2 +\pdf_breaklinks false +\pdf_pdfborder false +\pdf_colorlinks true +\pdf_backref false +\pdf_pdfusetitle false +\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" +\papersize a4 +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\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 +\use_formatted_ref 0 +\use_minted 0 +\use_lineno 0 +\index Índex +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 2 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style french +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\change_bars false +\postpone_fragile_content false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\docbook_table_output 0 +\docbook_mathml_prefix 1 +\end_header + +\begin_body + +\begin_layout Title +Introducció al \SpecialChar LyX + +\end_layout + +\begin_layout Standard +El LaTeX és un sistemaf +\begin_inset Foot +status open + +\begin_layout Plain Layout +la bibliografia. + +\emph on + +\end_layout + +\end_inset + +. +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/stray_emph.xml b/autotests/export/docbook/stray_emph.xml new file mode 100644 index 0000000000..8a76bee104 --- /dev/null +++ b/autotests/export/docbook/stray_emph.xml @@ -0,0 +1,9 @@ + + +
+Introducció al LyX +El LaTeX és un sistemaf +la bibliografia. +. +
\ No newline at end of file