Commit Graph

1301 Commits

Author SHA1 Message Date
Juergen Spitzmueller
bbf287a3c6 Allow for cite engine and format definitions/modifications in layouts
Now layout files and modules can extend the cite engines or completely
overwrite them, and modify the cite formats.

Any CiteEngine definition in a layout/module will completely overwrite
those by cite engine files.

AddToCiteEngine will extend them (add if they do not exist yet).

Any CiteFormat definition in a layout will be preferred to those in cite
engines. CiteFormat definitions that are not touched by the former are
still active, though (so, as opposed to CiteEngine, a CiteFormat does
not completely overwrite those by the engine files).

Layout format change.
2018-05-21 12:46:53 +02:00
Juergen Spitzmueller
ff0db7452e Remove insane list of requirements 2018-05-19 10:28:50 +02:00
Juergen Spitzmueller
7a5184fd87 Disallow paragraph customization in some single-par charstyle insets
Fixes: #9192
2018-05-11 13:47:27 +02:00
Juergen Spitzmueller
768c9a552e cprotect allows to place environments in fragile contexts.
use that possibility.

Fixes parts of #5128.
2018-04-30 09:06:15 +02:00
Richard Kimberly Heck
9f79ab99ed Fix bug #11127. 2018-04-27 20:13:58 -04:00
Scott Kostyshak
6d5e179985 cprotect listings when needed (e.g. in a footnote)
This allows to put a non-inline listing in commands, such as a box,
footnote, and margin note.

Fixes #6177 and #9321.
2018-04-21 00:49:53 -04:00
Scott Kostyshak
88b1c8d521 cprotect Note:Greyedout insets
This is consistent with what we do for Note:Comment, and fixes
compilation of documents with a Greyedout inset inside a float
caption, which was reported here:

https://www.mail-archive.com/search?l=mid&q=20180418192851.GH6006%40atrey.karlin.mff.cuni.cz
2018-04-18 21:34:33 -04:00
Juergen Spitzmueller
97e1806c4a Add a floating landscape inset 2018-04-18 16:20:19 +02:00
Juergen Spitzmueller
2551614ff1 Add Landscape module
Support for the (pdf)lscape package.

Fixes: #10801
2018-04-18 14:36:49 +02:00
Juergen Spitzmueller
69596c9278 cprotect knitr chunks 2018-04-15 18:17:35 +02:00
Juergen Spitzmueller
b03c826f27 Whitespace 2018-04-15 12:31:56 +02:00
Juergen Spitzmueller
ef359f58b5 Add cprotection support for paragraph layouts. 2018-04-14 12:57:23 +02:00
Juergen Spitzmueller
e11bda2cea Layout format update after 2ba584957c 2018-04-14 10:28:22 +02:00
Juergen Spitzmueller
2ba584957c Add basic support for cprotect
This allows (some) verbatim contents in macros, such as \url's with
specific chars (#, % etc.) in section headings or footnotes (#449)
or comments in captions (#9313).

The mentioned two bugs are fixed by this commit.

Note that the implementation is still rather basic and might need
extension for other cases.
2018-04-13 17:46:37 +02:00
Juergen Spitzmueller
8a703573ea Implement IsTocCaption for normal layouts.
But use default "true" to maintain current behavior if not explicitly
stated otherwise.

Fixes: #11045
2018-02-21 16:37:07 +01:00
Richard Heck
5f1b32f8c5 Also fix chapter layout in tufte-book. 2018-02-12 16:29:54 -05:00
Pavel Sanda
149f03d403 Fixing painting regression - chapter top spacing.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203685.html
2018-02-12 21:14:56 +01:00
Juergen Spitzmueller
9b23b49d41 Do not show "Abstract" label in KOMA classes
This is not output by those classes (per default).
2018-02-06 18:39:00 +01:00
Juergen Spitzmueller
fc2d8238dc Add Bibliography to the Outliner.
Fixes: #11001, #7724.
2018-01-29 09:09:51 +01:00
Juergen Spitzmueller
5db4d712ef Differentiate Buffer strings and GUI strings in citeengines
The former need to be translated to the buffer language, the latter to
the GUI language.

Fixes: #10946
2018-01-27 14:29:41 +01:00
Juergen Spitzmueller
3daa447c3c Take AgainFrame to the TOC. 2018-01-11 13:14:16 +01:00
Juergen Spitzmueller
8d8ee12e64 Update layout format 2018-01-02 11:53:01 +01:00
Juergen Spitzmueller
3a4b233dbd Properly implement IsTocCaption for Arguments in standard TOC
Fixes: #10631

Candidate for 2.3.x.
2017-12-29 11:51:24 +01:00
Juergen Spitzmueller
d6fb2abbea Some AutoNest polishment.
* Rename Nests to AutoNests
* Do it when changing from any style
2017-12-29 10:03:00 +01:00
Juergen Spitzmueller
99ecc6e2c9 Implement auto-nesting.
Now layouts can specify other layouts that should be nested in and
after the current one (if the layout is switched from the current one
and if it follows a paragraph in the current one).

This is particularly useful for things such as the beamer frames, where
particular layouts are practically always nested.
2017-12-28 17:44:54 +01:00
Juergen Spitzmueller
dfaa4e9466 Fix footnotes in table with RevTeX4
These classes come with their own working implementation of table
footnotes, so we are not supposed to use the tablefootnote or
footnote package.

Also add missing outliner name.
2017-12-27 15:43:40 +01:00
Juergen Spitzmueller
994176e55b Tufte title is fragile
Candidate for 2.3.x.
2017-12-26 12:35:55 +01:00
Juergen Spitzmueller
7b4d227929 Title commands are fragile in memoir 2017-12-23 13:27:10 +01:00
Juergen Spitzmueller
718a353b49 Implement l7n for nomenclature. 2017-12-01 10:10:06 +01:00
Juergen Spitzmueller
14df9b74c4 Remove more lower-level dependencies 2017-11-22 16:45:13 +01:00
Juergen Spitzmueller
1400144a8a Remove grandchild-level dependencies.
We agreed to only check for top-level dependencies, see
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg195679.html

This reverts 30475b4b0.
2017-11-22 08:33:09 +01:00
Uwe Stöhr
bfcb9cc85a acmart.layout: fix a dependency
for the discussion about the dependencies see bug #10806
2017-11-21 22:02:00 +01:00
Uwe Stöhr
a9254fdf03 apa6.layout: add dependencies
should go in for LyX 2.3.1
2017-11-20 02:29:45 +01:00
Uwe Stöhr
30475b4b0b acmart.layout: add dependencies
should go in for LyX 2.3.1
2017-11-20 02:29:19 +01:00
Uwe Stöhr
f6bee7ec8b beamer.layout: add 3 dependencies
both are required according to the beamer.cls

candidate for LyX 2.3.1
2017-11-19 15:48:02 +01:00
Juergen Spitzmueller
5017a0a1c6 Allow footnotes in floating tables via tablefootnote package
See #808.
2017-11-19 12:56:40 +01:00
Juergen Spitzmueller
bd14639d1c More accurate description of fixltx2e state. 2017-10-23 13:49:03 +02:00
jpc
448255a371 Add obsolescence warning in fixltx2e description (ticket 9361) 2017-10-23 09:59:23 +02:00
Richard Heck
e05c91083f Fix bug #10556.
Update CSS for Standard layout.
2017-10-16 20:57:04 -04:00
Juergen Spitzmueller
4345331870 Collapsable -> Collapsible (part 4)
The current spelling is not strictly wrong, but flagged as unusual or
historical by some authorities. It is also found fault with many
spell checkers. Thus we decided to move to the more standard "-ible"
form once and for all.

See #10678 for discussion

This last part updates the layout format and changes collapsable color.

This will all also all be backported to 2.3.x, for the sake of backwards
compatibility (cherry-picking).
2017-10-16 10:30:04 +02:00
Juergen Spitzmueller
5997b60da1 Update some more layouts 2017-10-13 16:08:07 +02:00
Juergen Spitzmueller
b14756f3e2 Support for Japanese BX classes, by K. Yokota
Fixes: #10746
2017-09-02 09:06:52 +02:00
jpc
2cbca8be1e Update acmart.layout following tickets #10722 & #10723 2017-09-01 23:02:26 +02:00
Jean-Marc Lasgouttes
5c54557350 Honor trailing spaces in LabelString and friends
Remove the trimming operation on LabelString, LabelStringAppendix,
EndLabelString and LabelCounter. This trimming meant that quotes
strings were not preserved, which is wrong.

To preserve layouts, the Layout format has been updated to 64, so that
layout2layout can remove extra spaces on existing strings, which
ensures that behavior is unchanged for old layouts (courtesy of rgheck).

It is now possible to re-add spaces in label strings where it makes
sense.

Fixes bug #10723.
2017-08-31 13:59:37 +02:00
Scott Kostyshak
18aca9dd00 Update a layout to 2.3.0beta1 format 2017-08-14 03:22:33 -04:00
Guillaume MM
6b0381b386 Define theorem counter for acmart layout 2017-07-17 21:57:39 +02:00
Juergen Spitzmueller
1506d762d6 natbibapa.module: Do not overwrite preamble.
Also add author information.

Candidate for stable.
2017-07-02 10:54:39 +02:00
Enrico Forestieri
ab47e48dcc Change the name of the "List of listings" for minted
I actually checked that minted calls "List of Listings" the list of
listings, contrarily to the listings package.
2017-06-11 10:38:44 +02:00
Enrico Forestieri
3cc3ff39a0 Simplify preamble code when using listings
Following an idea from Guillame.
2017-06-08 04:25:53 +02:00
Enrico Forestieri
8dab1cfe7e Fix bug #9101
Update the listings inset to optionally use the minted package
(instead of the listings one) for typesetting code listings.
Only one of the two packages can be used in a document, but it
is possible to switch packages without issues if the used options
are the same. If a switch is made and the options differ, one needs
to manually adjust them if they were entered in the advanced options
tab, or apply again the gui settings.
Note that minted requires the -shell-escape option for the latex
backend and the installation of additional software (python pygments).
2017-06-07 00:55:23 +02:00