Commit Graph

299 Commits

Author SHA1 Message Date
Scott Kostyshak
a5ebeb3b46 ctests: test file for #12734 2023-04-11 23:44:49 -04:00
Scott Kostyshak
3a9bd79536 ctests: add a test file for #12708
The file is taken from #12727 which is a duplicate.
2023-04-11 23:07:42 -04:00
Thibaut Cuvelier
4412fdf09a MathML test case: fix a typo.
It was bugging me when looking at XHTML output: I was wondering if LyX was doing anything weird about ligatures! Hopefully not.
2023-01-08 00:50:29 +01:00
Thibaut Cuvelier
96023697f5 Amend 16a1aa99
With the current settings, a theorem with several paragraphs will have several wrapper tags (i.e. two `<db:figure>`, with one paragraph each, one next to the other when it's the same theorem), while there should be only one (one `<db:figure>` with two paragraphs).

It makes me wonder whether DocBookWrapperMergeWithPrevious should be the default value. I don't see a case where it would be set to `false` with a wrapper tag, but the test suite isn't developed enough to make the change with peace of mind (i.e. remove the parameter `DocBookWrapperMergeWithPrevious` and consider it is always `true` in the code).

For the record, the current code also works with two subsequent theorems with two paragraphs each (see new test case).
2023-01-07 03:06:44 +01:00
Thibaut Cuvelier
017588973f Revert "New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing list. Rebased on top of master."
This reverts commit 42c2a25fb8.
2022-12-31 11:28:56 +01:00
Thibaut Cuvelier
42c2a25fb8 New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing list. Rebased on top of master.
I've modified all the non-AMS theorem modules so they would be independent of packages. currently
	the code support \theoremstyle, but only with definition, plain and remark.

	I'v added a new theorem module that support the thmtools \listoftheorems.

	I've modified the syntax of all theorem modules, such that it would be easier to
	create a new one, or maintaining the ones that exists. Instead of using \newtheorem
	in the preamble of a lyaout, I wrote \lyx@newtheorem, and in each module I've defiened
	\lyx@newtheorem as fitted. This way, there is only need in the files thorems-base, and theorems-extended,
	instead of an .inc file for each module.

	I've added theorems-labels.inc, a file that suppose to be included in a "Numbered by type" module,
	to change the Label and the LabelCounter of the layouts in theorems-base.inc.

	Note that in this configuration, all non-AMS modules will clash with the AMS ones, and so as the
	proof versions. theorems-proof-std.inc suppose to be in the non-AMS while theorems-proof.inc
	should be included only in AMS variants.
2022-12-31 01:56:51 +01:00
Thibaut Cuvelier
16a1aa9901 DocBook: add support for DocBookGenerateTitle.
The new parameter allows more flexibility when encoding some elements that have a poor mapping in DocBook, like theorems. The major use is to wrap the environment in a generic container, figure, which requires a title (but none is available).
2022-12-27 15:52:26 +01:00
Thibaut Cuvelier
e6af50108a XHTML: add new test case that uses the new NONE HTML tag (Verbatim environment).
Excerpt from https://www.lyx.org/trac/ticket/10553.
2022-12-09 02:55:32 +01:00
Juergen Spitzmueller
077ccf905d Rename subindex to subentry
Makes more sense, and distinguishes it better from printsubindex
2022-10-31 06:51:38 +01:00
Thibaut Cuvelier
35a752e6db DocBook: add test case for multiple indices 2022-09-01 01:17:58 +02:00
Thibaut Cuvelier
07380a3bc1 DocBook: add missing test case for index 2022-09-01 00:14:41 +02:00
Juergen Spitzmueller
047004cb0f Merge branch 'master' into features/indexmacros 2022-05-14 16:29:46 +02:00
Thibaut Cuvelier
f352a375d9 InsetIndex: revamp IndexEntry to handle both legacy and modern index insets; simplify and adapt the XHTML code.
DocBook comes in another commit, as the modifications are not required to keep the code compilable.

A semicolon is no more used between an index term and the places it appears, because some languages need a space before it and others not: this wasn't handled at all. With a dash, this problem disappears.
2022-05-05 04:16:51 +02:00
Thibaut Cuvelier
4a62c08e61 InsetIndex: refactor IndexEntry to be a full-fledged class, hiding its implementation details better than before. 2022-04-30 03:23:59 +02:00
Scott Kostyshak
a4663bc988 ctests: categorize testfile for #6197 as resolved
The actual LyX bug was fixed a while ago. There was a remaining
missing symbols error, but that has been fixed in the latest
TeX Live 2022.
2022-04-29 21:11:10 -04:00
Scott Kostyshak
301a17b0aa ctests: update description for lyxbugs/6197
With an updated TeX Live 2022, LuaTeX no longer gives a missing
symbol for this test file (manual inspection confirms the symbols
are correctly displayed).
2022-04-29 21:10:30 -04:00
Thibaut Cuvelier
5a53872259 DocBook: use the new system for index. 2022-04-25 02:36:35 +02:00
Thibaut Cuvelier
e7ed8213ac DocBook: fix a test to ensure that the DocBook document is valid.
A book cannot directly contain paragraphs, they must be within a chapter.
2022-04-03 03:41:02 +02:00
Thibaut Cuvelier
544adb065b XHTML tables: fix borders and implement booktabs.
https://www.lyx.org/trac/ticket/10154

Contributed by raccoon.
2022-04-02 03:34:33 +02:00
Thibaut Cuvelier
0ba1b68f69 DocBook: merge code duplicates for HTML and CALS tables. 2022-04-01 04:21:31 +02:00
Thibaut Cuvelier
4cab1a77d2 Encodings::fromLaTeXCommand: if the command directly maps an entry of unicodesymbols, use it and bypass most of the logic.
This is important for commands like !`, that are equivalent to \textexclamdown. However, ! is matched earlier, because the logic works with prefixes, hence the output doesn't make sense.
2022-02-21 18:24:26 +01:00
Thibaut Cuvelier
a460097823 DocBook: use the existing unicodesymbols global table to map LaTeX ERTs to Unicode characters. 2022-02-14 03:03:22 +01:00
Thibaut Cuvelier
34ea4080ec DocBook: support @ in index when used for sorting. 2022-02-06 06:23:53 +01:00
Scott Kostyshak
f40413db11 Reg tests for language switching
Use cases from #12352. The files correspond to
mwe-remove-bottom.23.lyx and mwe-remove-top.23.lyx. The only
differences are that I changed to FreeSans and FreeSerif for the
fonts.
2021-12-29 10:38:16 -05:00
Juergen Spitzmueller
9929916935 Use Noto Sans Tibetan rather than Serif
The sans is more complete and also seems to be more widely distributed.
2021-12-29 13:44:40 +01:00
Scott Kostyshak
faa404f063 Reg test for protect: xymatrix in figure caption
Use case from #6243.
2021-12-27 10:26:04 -05:00
Thibaut Cuvelier
db1a443a70 DocBook: update basic.xml for the latest MathML and DocBook changes. 2021-12-26 02:24:23 +01:00
Scott Kostyshak
e056cab792 Reg test for cprotect: float in par environment
File from #7779.
2021-12-23 15:11:05 -05:00
Scott Kostyshak
4b8bb00573 Reg test for cprotect: comment in figure caption
File from #9313.
2021-12-22 22:45:39 -05:00
Scott Kostyshak
87bea67863 Regression test for cprotect, #7116
Start a new directory of cprotect tests. There are many situations
where cprotect is needed so we can add files covering various
situations as we find them.

This particular test covers the case of special characters in URL
insets in footnotes.
2021-12-22 22:03:02 -05:00
Scott Kostyshak
80a901506b languages test file: Use new Tibetan font name
Noto Sans Tibetan was not actually a sans font. On newer systems the
font is now Noto Serif Tibetan.

See, e.g., the package 'fonts-noto-core' in Ubuntu 21.04.

This change also fixes compilation of
supported-languages_polyglossia-XeTeX.lyx on Ubuntu 21.10.
2021-12-09 15:17:14 -05:00
Thibaut Cuvelier
e3489d54e3 DocBook: implement margin/sidenotes in Tufte. 2021-12-05 22:54:51 +01:00
Thibaut Cuvelier
21366155e4 DocBook: use a hash to determine the file names for generated images.
This way, the file names no more change without a reason.
2021-10-16 22:41:38 +02:00
Thibaut Cuvelier
33668e3a30 DocBook: export the preview images to the right format.
"docbook" is not the same as "docbook5", maybe it would be better to have an enumeration instead of strings.
2021-10-16 22:41:38 +02:00
Thibaut Cuvelier
b60653c5a6 DocBook: add test for the forest package. 2021-10-13 02:36:39 +02:00
Thibaut Cuvelier
73a63822c2 DocBook: update links to LilyPond bugs.
Also updates the test so that it matches the next version of LilyPond.
2021-10-13 02:36:39 +02:00
Scott Kostyshak
4658781e56 Add regression test for font switch before comment
This is a tricky issue that was fixed at 9eab66eb.
2021-09-30 14:22:49 -04:00
Thibaut Cuvelier
6d3be39587 DocBook copy: don't error if the file was already copied. 2021-09-27 01:15:16 +02:00
Thibaut Cuvelier
a464915f58 DocBook copy: large refactoring to improve readability. 2021-09-27 01:10:49 +02:00
Thibaut Cuvelier
7c1d4fd3c4 DocBook: missing multicol test. 2021-09-26 19:10:22 +02:00
Thibaut Cuvelier
e53af9e677 DocBook: add a LilyPond test. 2021-09-24 00:43:32 +02:00
Thibaut Cuvelier
6df4597e02 DocBook: force paragraphs in HTML cells to allow for nested tables.
CALS still invalid because it forbids nested tables.
2021-02-17 23:32:23 +01:00
Thibaut Cuvelier
ac98f21f8c DocBook: for books only, create a preface around the first few elements so that the result is valid.
Books can only contain parts and chapters, not single sections or text after the abstract.
2021-02-14 05:20:36 +01:00
Thibaut Cuvelier
d18dff22b5 DocBook: add the DocBookNoFontInside layout configuration. 2021-02-13 05:09:59 +01:00
Thibaut Cuvelier
7437a6ce3c DocBook: fix regression in floats.
Also implement a valid filler for tables.
2020-11-27 23:44:48 +01:00
Thibaut Cuvelier
7ebe2f4351 DocBook: improve naming of test files.
First, the kind of issue that the file tests for. Then, its source, if it's been extracted from the rest of the test suite.
2020-11-27 20:24:09 +01:00
Thibaut Cuvelier
587f1f5571 DocBook: implement Mathematical Monthly. 2020-11-27 01:54:00 +01:00
Günter Milde
8eff3b1772 Fix lithuanian default font encoding and Xindy name.
FontEncoding L7x required for hyphenation but no longer set
by Babel (since 2017-12-06).

The PostBabelPreamble now sets L7x for Lithuanian, if it is defined
and restores the previous font encodng on exit.
2020-11-22 22:16:57 +01:00
Thibaut Cuvelier
1176fab1d4 DocBook: make InsetText respect tag types. 2020-11-20 18:41:03 +01:00
Thibaut Cuvelier
f426e458c4 DocBook: InsetText supports items and wrappers. 2020-11-20 18:41:02 +01:00