Commit Graph

1634 Commits

Author SHA1 Message Date
Scott Kostyshak
2d6341cdb4 Remove executable flag on newly added files 2023-02-08 11:30:55 -05:00
Juergen Spitzmueller
882f738792 Improve labeling of Japanese classes 2023-02-08 11:26:54 +01:00
Juergen Spitzmueller
83d281f81e Support for the JLReq class, by Koji Yokota (#12657) 2023-02-08 11:19:11 +01:00
Juergen Spitzmueller
6e5b3a1e31 Properly fix acknowledgment issue part 2/2
Remove acknowledgment theorem types

As we have learned, these shouldn't have been added from the get go.

Documents having it get a local layout definition.
2023-02-05 12:07:37 +01:00
Juergen Spitzmueller
ac6314b834 Properly fix acknowledgment issue part 1/2
Bump file format and convert/revert styles to unique spelling
2023-02-04 17:47:52 +01:00
Juergen Spitzmueller
9c33b588ba Fix typos 2023-02-01 19:05:32 +01:00
Juergen Spitzmueller
e8e3146e25 Amend ce7eb7734b
When a style is defunc'ed, defunc the obsoleted variant as well
2023-02-01 18:16:33 +01:00
Juergen Spitzmueller
ce7eb7734b Disambiguate Acknowledgment[[credits]] and Acknowledgment[[theorem]] 2023-02-01 16:24:16 +01:00
Juergen Spitzmueller
77fbd7be69 Amend 8d47ffd200
the AEA layout includes and modifies AMS extended
2023-02-01 12:55:37 +01:00
Juergen Spitzmueller
8d47ffd200 Acknowledgement > Acknowledgment 2023-01-31 07:39:27 +01:00
Juergen Spitzmueller
255f3c72fa Update module descriptions 2023-01-28 18:26:59 +01:00
Juergen Spitzmueller
d13de0a5c1 Update example file references in module descriptions 2023-01-16 17:02:17 +01:00
Juergen Spitzmueller
93649e8be9 Fix module description
double quotes do not work in l7n.
2023-01-16 08:43:18 +01:00
Thibaut Cuvelier
65a9a2ac11 KOMA Book: fix HTML validation issues.
Some elements had a <h1> title, while only one such title is expected per page.
2023-01-11 00:21:23 +01:00
Thibaut Cuvelier
051c5f2728 LyXHTML: add explicit HTMLTag for titles.
This way, LyX can generate semantic <hX> tags instead of a generic <div>.
2023-01-07 03:59:22 +01:00
Thibaut Cuvelier
4c1f9d1161 LyXHTML: use a value of font-weight that makes sense instead of a nonexistent medium. 2023-01-07 03:40:27 +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
Pavel Sanda
3e97b90b40 Add note about deprecated layouts. 2023-01-04 22:13:38 +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
0af5fbcc0e DocBookGenerateTitle: update all layouts. 2022-12-27 15:52:26 +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
19b04c7bc8 Fix a typo in layouts. 2022-12-22 04:18:33 +01:00
Thibaut Cuvelier
c8c1c15631 Fix typos in comments 2022-12-22 02:54:28 +01:00
Thibaut Cuvelier
3925809170 XHTML: disable item tags within <pre>.
Fixes a remaining bug from https://www.lyx.org/trac/ticket/10553.
2022-12-09 02:49:50 +01:00
Richard Kimberly Heck
345eba1049 Update layouts to format 98 2022-12-06 01:02:22 -05:00
Richard Kimberly Heck
c50f0b125d Add HTMLClass for InsetLayout as well. Layout format change. 2022-12-05 23:42:50 -05:00
Richard Kimberly Heck
409d889822 Missed this one: InsetLayout does not do HTMLClass (at least not yet). 2022-12-05 01:07:25 -05:00
Richard Kimberly Heck
053e858e2c InsetLayout does not understand HTMLClass 2022-12-04 16:39:44 -05:00
Richard Kimberly Heck
3800036b2a Fix CSS 2022-12-04 14:46:30 -05:00
Richard Kimberly Heck
59acab7eea Add CSS for enumerations to other classes 2022-12-04 14:33:29 -05:00
Richard Kimberly Heck
c72cef7e8a Update layout format 2022-12-04 13:36:34 -05:00
Richard Kimberly Heck
69a6c41b94 Introduce HTMLClass tag, to make it easier to give these. 2022-12-04 13:36:34 -05:00
Richard Kimberly Heck
6f4f7442ef Fix bug #11769 2022-12-04 12:51:47 -05:00
Richard Kimberly Heck
9d2ea6185b Update layout formats 2022-12-04 00:35:01 -05:00
Richard Kimberly Heck
3eb3608138 Fix bug #11418.
Add new HTMLInToc layout tag: When false, the thing will not be output
to the TOC. It's now set to false for starred sections.
2022-12-04 00:33:14 -05: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
Juergen Spitzmueller
7d7b21ec3e Introduce InsetIndexMacros
This adds native macros for subindexes (!level), |see and |seealso
as well as native support for ranges |( |) and pagination format
-- e.g., |textbf -- via the index dialog

Resolves #12478, #7232 and #5014

The feature is complete (incl. tex2lyx) except for

* file format change and lyx2lyx
* docbook/xhtml
* documentation
2022-04-19 11:46:08 +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
Jean-Marc Lasgouttes
a6db1383f5 Get rid of spelling and language marks in info inset
These are just annoying. Note that the language mark cannot currently
be specified in a layout file, but it is not clear that there is a
need for that. Therefore I used the simple and hackish way.
2022-03-10 13:35:45 +01:00
Daniel Ramoeller
8bc6aa7535 Footnote LabelString should be "Foot" rather than "foot"
Fix for bug #12487.
2022-02-22 10:33:51 +01:00
Scott Kostyshak
29b386640e Comment: link to Beamer enumitem feature request 2022-01-27 17:27:15 -05:00
Jean-Marc Lasgouttes
0789f2f2ae Fix font inside footnote inset
An inset that resets its font (like Footnote) does not care at all
about enclosing font. Therefore the real starting point is the class
default font. This avoid cases where the footnote contents is forced
to \normalsize.

It turns out that the Greyedout note inset, did inherit font but was
declared as not doing it. This commmit changes the definition by
adding \normalfont\normalsize so that no inheritance happens.

Note that actually \normalfont resets everything but the font size.
This does not matter for footnote (which has its own font size) and
greyedout (which is fixed now), but may matter elsewhere. Also, I do
not know what the situation with HTML is.
2021-12-31 13:40:53 +01:00
Thibaut Cuvelier
e3489d54e3 DocBook: implement margin/sidenotes in Tufte. 2021-12-05 22:54:51 +01:00
Scott Kostyshak
9ca91b2566 Update layouts (run layout2layout.py)
There is nothing in the diff besides the format number changing from
93 to 95. From what I understand, this is as expected since 93 -> 94
and 94 -> 95 just add new layout tags.

Updating the layouts makes it easier to test master. Otherwise, in
some use cases layout2layout can be run hundreds of times which can
make some things slow (e.g., opening documents or even opening the
advanced find pane).
2021-10-25 12:37:21 -04:00
Thibaut Cuvelier
e93e50bf56 DocBook: add the DocBookRenderAsImage tag. 2021-10-13 19:26:48 +02:00
Thibaut Cuvelier
ffa1b1dcc7 DocBook: add inner tags for layouts.
This makes it possible to implement LilyPond as prescribed in https://lilypond.org/doc/v2.22/Documentation/usage/docbook.
2021-09-21 01:21:25 +02:00
Thibaut Cuvelier
14ed5b2050 DocBook: start implementing LilyPond.
All the changes that can be achieved without C++ code changes.
2021-09-21 01:21:25 +02:00
Pavel Sanda
5a9c6ce69b xhtml Toc rendering seems bit too dense now. 2021-08-02 15:25:36 +02:00
Jean-Marc Lasgouttes
5920ddb567 Standard proof layout does not have an end label
Most proof environment have a qed box at the end, but not this one.
This only changes screen rendering.
2021-07-19 12:36:34 +02:00
Scott Kostyshak
76a40d2af5 Fix reference to subequation documentation, #12316
The example file was incorporated into the Math manual at 3aa01442.
2021-06-22 21:20:46 -04:00
Scott Kostyshak
98fa63dcb4 Beamer's Alternative: AutoInsert both arguments
The "Default Text" argument is usually non-blank. If the user
desired to leave it blank, it seems that "Invisible" would be a
better choice.

Similarly, an action is usually specified for this layout to be
useful.
2021-04-06 12:20:08 -04:00
Yuriy Skalko
e4b99081a5 Fix margins for Beamer columns 2021-02-19 18:06:08 +02:00
Thibaut Cuvelier
d39d6e92ed DocBook: use DocBookArgumentAfterMainTag for short titles. 2021-02-17 21:09:21 +01:00
Thibaut Cuvelier
ba672f7f79 DocBook: add support for short titles.
Currently, the DocBook output is not valid. This is solved by the next two commits.
2021-02-17 21:09:20 +01:00
Thibaut Cuvelier
5297862855 DocBook: mark dates to disallow fonts inside.
One more test passes.
2021-02-14 06:08:36 +01:00
Enrico Forestieri
31b7c18358 Update layouts 2021-02-13 15:16:58 +01:00
Thibaut Cuvelier
d18dff22b5 DocBook: add the DocBookNoFontInside layout configuration. 2021-02-13 05:09:59 +01:00
Juergen Spitzmueller
ce49e2cd8b Use AutoNests in g-brief (#7623) 2021-02-09 15:07:53 +01:00
Enrico Forestieri
4615e2f09f Update layouts 2021-02-06 20:28:41 +01:00
Juergen Spitzmueller
b42c5dd7d6 Add frontispiece layout to KOMA classes 2021-01-28 10:24:28 +01:00
Juergen Spitzmueller
cc5718d1eb Amend [6887bc5c/lyxgit]
Use a more specific storage command
2021-01-08 09:22:55 +01:00
Richard Kimberly Heck
6887bc5c1d Fix bug #8921 2021-01-07 11:19:17 -05:00
Jean-Marc Lasgouttes
824d1c993a Fixup 294e4884: center correctly Abstract label when paragraph is empty
When a paragraph is empty, it was not possible to query what the left
margin would be for an hypothetical second row.

Modify TextMetrics::leftMargin so that it does not test
whether position is after the last position of the paragraph.

Cosmetics: set the size of label to "small" for Abstract layout in
standard classes and reduce the spacing between label and text.

Fixes remainder of #11939.
2021-01-05 15:21:04 +01:00
Jean-Marc Lasgouttes
b8188e54dd Revert "Center correctly centered top labels (e.g. abstract)"
This reverts commit 6c1855313c.
2021-01-05 15:14:41 +01:00
Jean-Marc Lasgouttes
6c1855313c Center correctly centered top labels (e.g. abstract)
Since the first row may be indented, it is necessary to find out what
the left margin would be on the next row (even if this next row does
not exst.

To this end, modify TextMetrics::leftMargin so that it does not test
whether position is after the last position of the paragraph.

Cosmetics: set the size of label to "small" for Abstract layout in
standard classes and reduce the spacing between label and text.

Fixes remainder of #11939.
2021-01-05 14:53:15 +01:00
Richard Kimberly Heck
33f9cfb796 Capitalize labels of floats, etc. Fixes #11993.
Patch from Daniel.
2021-01-03 14:38:52 -05:00
Jean-Marc Lasgouttes
af1ab2caa9 Update layouts to version 90 2020-12-22 16:53:15 +01:00
Scott Kostyshak
9602d24039 layouts: s/theorem-counters/theorems-counters/
Amends ccc7c641.
2020-12-13 13:26:42 -05:00
Juergen Spitzmueller
b58c75b8da Use only semantic colors in layout definitions
Part of #8325
2020-12-11 11:46:31 +01:00
Juergen Spitzmueller
1b137f7d95 Add contents of soul flex insets to toc 2020-12-10 14:02:30 +01:00
Richard Kimberly Heck
aa39a2aaf7 Allow listings insets to be edited externally. 2020-12-05 21:17:02 -05:00
Scott Kostyshak
f86411e15d Amend ccc7c641 2020-12-05 19:51:40 -05:00
Richard Kimberly Heck
ccc7c641c6 Modularize counter declarations. 2020-12-05 18:41:41 -05:00
Richard Kimberly Heck
52a0ffc02f Change name and email in some other files 2020-12-05 17:39:46 -05:00
Richard Kimberly Heck
967fba10f8 Change name and email in layout files 2020-12-05 17:14:10 -05:00
Richard Kimberly Heck
c00084e4a2 Add LaTeXName to counters that need it.
I'm sure I've missed some here. I tried to check the CLS files for
some of these, but since I don't use a lot of these layouts, it is
hard to catch them all.
2020-12-05 17:06:35 -05:00
Richard Kimberly Heck
88bc81d782 Update layouts 2020-12-05 16:46:33 -05:00
Thibaut Cuvelier
822a9ef573 DocBook: fix new-line behaviour of URLs. 2020-11-29 22:54:03 +01:00
Thibaut Cuvelier
877806f208 DocBook: implement SciPoster. 2020-11-29 22:54:03 +01:00
Thibaut Cuvelier
12d512d4e4 DocBook: implement iopart. 2020-11-28 05:08:58 +01:00
Thibaut Cuvelier
76bc063bcd DocBook: implement IEEEtran. 2020-11-28 04:56:19 +01:00
Thibaut Cuvelier
b2ec2ff1a9 DocBook: slightly change the Copernicus template to be valid DocBook.
This is just adding an author instead of leaving the field blank.
2020-11-28 04:56:19 +01:00
Thibaut Cuvelier
5d996f4fff DocBook: implement ectaart. 2020-11-28 04:56:19 +01:00
Thibaut Cuvelier
633a617841 DocBook: implement Copernicus.
Includes a fix when wrappers are used with empty paragraphs. The logic is probably wrong if two legit wrapped paragraphs have one empty paragraph in the middle. This is only for slightly convoluted cases... Wrapping decisions should rather be taken for a series of paragraphs at once, but it would be more complex to implement and would only solve very peculiar cases like these ones.
2020-11-28 04:56:19 +01:00
Thibaut Cuvelier
14cfcf00cb DocBook: implement AEA and APA. 2020-11-28 00:51:35 +01:00
Thibaut Cuvelier
bd9dce3749 DocBook: bug fixes for JASA.
Includes more consistent behaviour for bibliographies in appendix (do the same as LyX shows the user, i.e. bibliography in appendix).
2020-11-27 05:53:46 +01:00
Thibaut Cuvelier
185a62e695 DocBook: in aa, fix acknowledgements. 2020-11-27 04:52:39 +01:00
Thibaut Cuvelier
a397928f78 DocBook: implement author for layouts that previously missed it. 2020-11-27 04:40:16 +01:00
Thibaut Cuvelier
f52946e143 DocBook: implement subtitle for layouts that previously missed it. 2020-11-27 04:35:54 +01:00
Thibaut Cuvelier
2741d195e4 DocBook: implement title for layouts that previously missed it. 2020-11-27 04:34:33 +01:00
Thibaut Cuvelier
78d7f7d8f5 DocBook: implement standard for layouts that previously missed it. 2020-11-27 04:29:40 +01:00
Thibaut Cuvelier
a456dac340 DocBook: implement keywords for layouts that previously missed it. 2020-11-27 04:26:31 +01:00
Thibaut Cuvelier
0e4d8a8159 DocBook: implement IJMP C/D. 2020-11-27 04:16:48 +01:00
Thibaut Cuvelier
77fa9a6c42 DocBook: implement iucr. 2020-11-27 02:49:54 +01:00
Thibaut Cuvelier
5f488ed746 DocBook: deploy fix for acknowledgements. 2020-11-27 02:12:29 +01:00
Thibaut Cuvelier
587f1f5571 DocBook: implement Mathematical Monthly. 2020-11-27 01:54:00 +01:00
Thibaut Cuvelier
eeb732cd5f DocBook: implement JASA. 2020-11-26 06:55:49 +01:00
Thibaut Cuvelier
ed6fbdd249 DocBook: implement Kluwer.
Includes an assertion fix that only occurred with this example.
2020-11-26 06:41:13 +01:00
Thibaut Cuvelier
dae0640436 DocBook: implement REVTeX.
Improvements to abstract detection: it can now contain lists or anything with a higher depth.

Implement video floats.
2020-11-26 06:22:27 +01:00