commit 362cb8f7838187162b592f20795309327095a80a
Author: Scott Kostyshak <[email protected]>
Date:   Sat Aug 22 08:23:32 2026 +0300

    Test file for #13355
    
    This file compiles with 2.4.x and currently fails to compile with
    2.5.x and master.
    
    For details see #13355.
---
 .../lyxbugs/13355-preamble-defines-counter.24.lyx  | 142 +++++++++++++++++++++
 development/autotests/invertedTests                |   1 +
 2 files changed, 143 insertions(+)

diff --git 
a/autotests/export/latex/lyxbugs/13355-preamble-defines-counter.24.lyx 
b/autotests/export/latex/lyxbugs/13355-preamble-defines-counter.24.lyx
new file mode 100644
index 0000000000..47ed799a61
--- /dev/null
+++ b/autotests/export/latex/lyxbugs/13355-preamble-defines-counter.24.lyx
@@ -0,0 +1,142 @@
+#LyX 2.4 created this file. For more info see https://www.lyx.org/
+\lyxformat 620
+\begin_document
+\begin_header
+\save_transient_properties true
+\origin unavailable
+\textclass amsart
+\begin_preamble
+%\usepackage[authoryear, square]{natbib}
+%\setlength{\bibsep}{0pt plus 0.3ex}
+\usepackage{stix}
+\usepackage{amsaddr}
+%\AtBeginDocument{\mathcode`v=\varv}
+\DeclareMathOperator{\sgn}{sgn}
+%\newtheorem{thm}{Theorem}
+%\newcounter{thm}
+\let\c@equation\c@thm
+\theoremstyle{plain}
+\newtheorem{Convention}[thm]{Convention}
+\newtheorem{Notation}[thm]{Notation}
+\newtheorem{Construction}[thm]{Construction}
+\newtheorem{Procedure}[thm]{Procedure}
+\newtheorem{Rule}[thm]{Rule}
+\allowdisplaybreaks
+\setcitestyle{citesep={,}}
+\DeclareMathOperator{\im}{Im}
+\DeclareMathOperator*{\esssup}{ess\,sup}
+%\DeclareMathOperator*{\limweak}{lim \scriptstyle{weak}}
+\DeclareMathOperator*{\limweak}{lim\,weak}
+\DeclareMathOperator*{\Sum}{\Sigma}
+\DeclareMathOperator*{\heaviside}{heaviside}
+\end_preamble
+\use_default_options true
+\begin_modules
+theorems-ams
+eqs-within-sections
+figs-within-sections
+theorems-ams-extended
+theorems-sec
+tabs-within-sections
+\end_modules
+\maintain_unincluded_children no
+\language american
+\language_package default
+\inputencoding auto-legacy
+\fontencoding auto
+\font_roman "times" "default"
+\font_sans "default" "default"
+\font_typewriter "default" "default"
+\font_math "default" "auto"
+\font_default_family rmdefault
+\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 true
+\graphics default
+\default_output_format default
+\output_sync 0
+\bibtex_command default
+\index_command default
+\float_placement h
+\float_alignment class
+\paperfontsize default
+\spacing single
+\use_hyperref false
+\papersize default
+\use_geometry true
+\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 natbib
+\cite_engine_type authoryear
+\biblio_style plainnat
+\use_bibtopic false
+\use_indices false
+\paperorientation portrait
+\suppress_date true
+\justification true
+\use_refstyle 0
+\use_formatted_ref 0
+\use_minted 0
+\use_lineno 0
+\index Index
+\shortcut idx
+\color #008000
+\end_index
+\leftmargin 1in
+\topmargin 1in
+\rightmargin 1in
+\bottommargin 1in
+\headsep 1cm
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\paragraph_indentation default
+\is_math_indent 0
+\math_numbering_side left
+\quotes_style english
+\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 Standard
+cccccc
+\end_layout
+
+\begin_layout Theorem
+sssss
+\end_layout
+
+\begin_layout Standard
+ssssss
+\end_layout
+
+\end_body
+\end_document
diff --git a/development/autotests/invertedTests 
b/development/autotests/invertedTests
index fc474ef008..512521242d 100644
--- a/development/autotests/invertedTests
+++ b/development/autotests/invertedTests
@@ -96,6 +96,7 @@ export/export/latex/languages/nested-inputenc_auto-legacy_pdf2
 !export/export/latex/lyxbugs/3059-language-in-tables_docbook5
 !export/export/latex/lyxbugs/12708-refstyle-amsmath_docbook5
 !export/export/latex/lyxbugs/13275-local-layout-makeat_docbook5
+!export/export/latex/lyxbugs/13355-.*_docbook5
 
 # ================================================
 Sublabel: lyxbugs
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to