Commit Graph

1660 Commits

Author SHA1 Message Date
Thibaut Cuvelier
6492fd8e14 Beamer layout: fix issue 8767
The "Frame" label was shown for each Beamer frame.
2023-07-27 00:24:02 +02:00
Juergen Spitzmueller
7f4c4cd548 Improve AllowedOccurrences
This does now apply to the whole inset or paragraph group (not to the
current paragraph only) unless the new boolean AllowedOccurrencesPerItem
is set and we are in a list-type environment.

Amends 729ab602ca
2023-07-26 09:53:25 +02:00
Juergen Spitzmueller
729ab602ca To finish up #6854, also add AllowedOccurrences
Again very basic for now (this only considers the current paragraph,
not the whole inset or a serious of grouped layouts
2023-07-25 15:49:53 +02:00
Juergen Spitzmueller
19975d07dd Update layouts 2023-07-25 13:44:29 +02:00
Juergen Spitzmueller
7f4f9a99f0 Implement new tags in some layouts 2023-07-25 13:40:23 +02:00
Jean-Marc Lasgouttes
6a8c10f0d6 Display footnote labels as superscripts
A new counter type \superarabic is introduced, that transforms the
counter into superscript Unicode numbers.

This is used for the footnote counter.

The Foot inset layout is modified to use an empty LabelString (in size
Normal, since the numbers could be too small).

We use this occasion to set footnote text in footnotesize, as it should.

A couple of changes are done to the code to make the button label and
tooltip look better.

Fixes bug #12238.
2023-07-24 11:15:03 +02:00
Jean-Marc Lasgouttes
6d929e7139 update layout files to format 101 2023-07-22 23:38:53 +02:00
Jean-Marc Lasgouttes
81e35bc396 Replace hardcoded inheritFont() with InheritFont InsetLayout tag
Each removed inheritFont method is replaced by a 'InheritFont false'
line in the relevant InsetLayout entry.

Add code to layout2layout that does this automatically when the entry
is missing.

The case of InsetScript is special, since the inheritFont() was not
needed here: the default is indeed true.

Fixes bug #12238.
2023-07-22 23:38:53 +02:00
Jean-Marc Lasgouttes
cfe094a380 Introduce new InsetLayout tag InheritFont
The font inside the inset is inherited from the parent for LaTeX
export if this parameter is true, as well as on screen. Otherwise
the document default font is used.

The default value is true.

Update tufte layouts to use this tag for sidenote and marginnote flex
insets.

Increase layout format to 101.

Fixes bug #12238.
2023-07-22 15:53:14 +02:00
Juergen Spitzmueller
03268082a3 Current covington requires varwidth 2023-07-21 14:34:22 +02:00
Juergen Spitzmueller
a91d1ebe82 Forgot these 2023-07-20 16:26:17 +02:00
Juergen Spitzmueller
2841a1c063 Update covington support in linguistics module (file format change) 2023-07-20 15:09:47 +02:00
Enrico Forestieri
a401b26640 Update layouts 2023-05-09 12:10:45 +02:00
Daniel Ramoeller
5556cb3d3f Simplify Quotation/Quote style
Fix for bug #12745
2023-05-08 21:10:50 -04:00
Pavel Sanda
14b752c9a9 * customHeadersFooters.module - add pointer to docs. 2023-04-11 09:45:32 +02:00
Scott Kostyshak
e3288b4b4a Amend d0a83d33 2023-04-10 13:03:19 -04:00
Juergen Spitzmueller
d0a83d33fc Fixes to heb-article, by Udi Fogiel (#12735)
For some reason theorems titles has \beginR without a \endR, and since
this is basically inside restricted horizontal mode, TeX complains about
a missing \endR.

I could not figure out why were they there in the first place so I
removed them and the output did not change, and the warnings are gone.

Beside that the numbering of the theorems is wrong (e.g. 1.0 instead of
0.1), the \@makelr thing should happen after babel is loaded.

The theorems layouts did not have a counter (in LyX) so I added one.
2023-04-10 18:24:04 +02:00
Juergen Spitzmueller
9b2fb3b051 Typo 2023-04-08 17:27:31 +02:00
Pavel Sanda
20be14d133 Casing consistent with other modules. 2023-04-07 22:13:53 +02:00
Pavel Sanda
694114bae7 We had two overlapping chemistry modules.
See a610e29c9c.
2023-04-07 20:24:23 +02:00
Scott Kostyshak
8887c4edda Add layout format number of newly added file
Update it to 99.
2023-02-16 12:00:21 -05:00
Juergen Spitzmueller
79269ef021 Casing fix 2023-02-16 11:21:45 +01:00
Juergen Spitzmueller
62ea103662 Completion of Japanese classes, by Koji Yokota (#12658). 2023-02-16 08:59:27 +01:00
Juergen Spitzmueller
afbbf42d60 Add layouts for luatexja LaTeX classes, by Koji Yokota (#11103) 2023-02-10 12:11:07 +01:00
Scott Kostyshak
bb9ef421fd Fix a layout error in newly added file
Fix the following terminal output:

  TextClass.cpp (850): Unable to remove counter: chapter
2023-02-08 13:11:34 -05:00
Scott Kostyshak
ba264ec485 Fix layout font settings of newly added file
Change "TextFont" to "Font". This fixes the following terminal
errors when opening the file:

  LyX: Unknown InsetLayout tag [around line 247 of file
  [layouts/jlreq-common.inc] current token: 'TextFont' context: '']
  LyX: Unknown InsetLayout tag [around line 247 of file
  [layouts/jlreq-common.inc] current token: 'Family' context: '']
  LyX: Unknown InsetLayout tag [around line 248 of file
  [layouts/jlreq-common.inc] current token: 'Typewriter' context: '']
  LyX: Unknown InsetLayout tag [around line 249 of file
  [layouts/jlreq-common.inc] current token: 'EndFont' context: '']
2023-02-08 11:46:42 -05:00
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