Juergen Spitzmueller
9dae88a15a
Whitespace
2024-05-14 13:18:05 +02:00
Juergen Spitzmueller
ed62816eb6
Handle URL escaping in beamer frames
...
File format change -- this introduces the first LyX 2.5 format and
hence sets up the lyx2lyx machinery
2024-05-13 07:26:41 +02:00
Juergen Spitzmueller
207eaeee90
Introduce NeedCProtect -1 layout option
...
It turns out beamer frame does not allow \cprotect and errors if it is
used. Hence we need to prevent it in this context entirely.
2024-05-12 07:52:16 +02:00
Jean-Marc Lasgouttes
2660df9b99
Move Lexer to support/ directory (and lyx::support namespace)
...
This requires quite a bit of trivial code shuffling.
2024-04-28 12:23:13 +02:00
Juergen Spitzmueller
4ba94f74a5
Amend 3698281943
for the sake of the (not exceptionally bright) layout test
2023-12-03 10:36:59 +01:00
Juergen Spitzmueller
3698281943
Read separated required arg without enquoting
2023-11-09 22:06:39 +01:00
Thibaut Cuvelier
3cf8ced72e
Make formatting of DocBook changes more similar to surrounding code.
...
Spaces between if and condition.
2023-01-07 02:56:40 +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
bc73a85778
LyXHTML: switch the doctype to (X)HTML5 and only output XML entities.
...
This is a new take on c8e2c17a
that was reverted at da67bde61a
due to entities no more recognised by the browsers. Corresponding thread on the mailing list: https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg213179.html
This patch is a huge cleanup overall, by removing the distinction between HTML and XML entities (the latter arrived due to the DocBook support).
In InsetListingParams, I also changed the mechanism that relied on " to use an XML entity to be consistent with the rest of the code, mostly in case someone looks for HTML entities and wonders why they are still there.
2022-12-25 20:48:14 +01: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
5ac560cfa1
Add i, ii, iii, iv suffixes to CSS class as well in the case of itemizations
2022-12-04 14:34:29 -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
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
Thibaut Cuvelier
adc7820d45
DocBook: add support for DocBookArgumentAfterMainTag.
2021-02-17 21:09:21 +01:00
Thibaut Cuvelier
d18dff22b5
DocBook: add the DocBookNoFontInside layout configuration.
2021-02-13 05:09:59 +01:00
Juergen Spitzmueller
c8e04eb2f4
Whitespace
2021-01-30 15:11:18 +01:00
Yuriy Skalko
e292dd70bf
More enums & includes refactoring
2020-12-06 18:26:41 +02:00
Juergen Spitzmueller
b2ca2d1e3a
Fix listpreamble breakage by 6f643e52d4
2020-12-02 15:25:14 +01:00
Richard Kimberly Heck
060c3de2f0
StepMasterCounter --> StepParentCounter
2020-11-02 17:36:58 -05:00
Yuriy Skalko
5061db891c
Use const references
2020-11-01 22:23:26 +02:00
Thibaut Cuvelier
149e1ccc02
DocBook: add DocBookSection parameter for styles that define new sections and implement argument parameters; improve Springer support.
...
For elements that should behave like sections (for now, mostly prefaces).
A second paragraph of PartBacktext can only wreak havok: it should start a section, and nothing else (otherwise, it's a real nightmare to implement).
2020-10-30 01:59:34 +01:00
Pavel Sanda
644c1d3453
Move docstream.h from output_xhtml.h
2020-10-14 15:06:12 +02:00
Thibaut Cuvelier
0bd2978ac9
DocBook: add DocBookInnerTag and family.
...
This allows old DocBook documents to be valid when output.
2020-10-07 06:05:22 +02:00
Richard Kimberly Heck
a41bcb3701
Error message
2020-09-28 22:45:44 -04:00
Richard Kimberly Heck
003a267764
We really do not want id to change
2020-09-28 22:20:22 -04:00
Richard Kimberly Heck
594401912b
Fix minor annoyance with previous commit.
...
When validating local layout, in particular, we create a dummy text TextClass
and so are not necessarily modifying previously declared material. Hence, we
get a spurious (but harmless) "Incomplete argument definition!" warning. This
suppresses it, but to do that we need to propogate the ReadType.
2020-09-28 22:07:08 -04:00
Richard Kimberly Heck
6f643e52d4
Allow argument definitions in layout files to modify existing ones.
...
This is what layout re-definitions do in all other cases.
2020-09-28 22:06:11 -04:00
Richard Kimberly Heck
54a72663ae
Move defaults into struct definition
2020-09-28 21:30:40 -04:00
Thibaut Cuvelier
6c51cabd35
DocBook: fix output in Layout::write.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
6998e76495
DocBook: define new arguments in layouts to configure new-line behaviour.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
dab71087cf
DocBook: add a layout tag to tell whether an item is the abstract or not.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
c92e0bc5e7
DocBook: fix for ordering.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
ad18c19492
DocBook: add new layout parameter DocBookWrapperMergeWithPrevious.
2020-09-19 20:43:36 +02:00
Thibaut Cuvelier
fa38ae3fc0
Revert "DocBook: add new layout parameter DocBookWrapperMergeWithPrevious."
...
This reverts commit 59b0f88d2b
.
2020-08-03 22:57:49 +02:00
Thibaut Cuvelier
347d3557b2
Revert "DocBook: fix for ordering."
...
This reverts commit 7852582d9c
.
2020-08-03 22:56:44 +02:00
Thibaut Cuvelier
f025538c95
Revert "DocBook: add a layout tag to tell whether an item is the abstract or not."
...
This reverts commit 5ccd63eff6
.
2020-08-03 22:55:52 +02:00
Thibaut Cuvelier
5ccd63eff6
DocBook: add a layout tag to tell whether an item is the abstract or not.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
7852582d9c
DocBook: fix for ordering.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
59b0f88d2b
DocBook: add new layout parameter DocBookWrapperMergeWithPrevious.
2020-08-03 16:04:57 +02:00
Kornel Benko
5f827b5a9d
Amend 3883b85f
: Typo in "New DocBook support"
2020-07-09 00:19:34 +02:00
Thibaut Cuvelier
3883b85f49
New DocBook support
2020-07-08 08:42:16 +02:00
Richard Kimberly Heck
d6a7ec506e
s/requires_/required_/ for code consistency
2020-05-04 14:05:44 -04:00
Richard Kimberly Heck
16e7f26cec
requires is a keyword in C++2a
2020-05-03 02:18:17 -04:00
Juergen Spitzmueller
9e6d22ea9c
Add InsertOnNewline argument tag
...
This adds a paragraph break before auto-inserting arguments in flex
insets.
Useful for specific arguments (particularly ling glosses)
2019-06-02 18:07:10 +02:00
Juergen Spitzmueller
cb6c183225
Amend 9f04eeae03
2019-06-02 16:55:11 +02:00
Juergen Spitzmueller
9f04eeae03
Support FreeSpacing in InsetArgument
2019-06-02 16:33:06 +02:00
Juergen Spitzmueller
70b3d3adcc
Add NewlineCmd InsetLayout and Argument option
...
This allows to specific an alternative macro for newlines
Fixes : #10407
2019-04-18 11:35:03 +02:00
Juergen Spitzmueller
8b92a2a689
Add NeedMBoxProtect [inset]layout option
...
This accesses the inulemcmd output param which protects specific commands
(\cite, \ref) in an \mbox.
This is needed in ulem and soul commands, since their complex
detokenization makes such commands (who produce multiple words via local
assignment) fail.
So now it is possible to properly support ulem and soul via
[inset]layout
Fixes a case reported in #9404
2019-03-12 14:08:05 +01:00
Juergen Spitzmueller
da273a944f
Fix some parsing glitches in Autonest and IsAutonestedBy
...
Layouts can have spaces, underlines (that must be read as spaces, and
be enquoted)
Candidate for stable
2018-12-29 13:36:39 +01:00