Commit Graph

413 Commits

Author SHA1 Message Date
Juergen Spitzmueller
c567c78e90 Add ProvideInsetLayout and ModifyInsetLayout (#12098)
This complements ProvideStyle and ModifyStyle.
2021-01-30 15:56:31 +01:00
Juergen Spitzmueller
76eae4572e Introduce InputGlobal (#12087)
This is a variant of Input for layout files that only searches build
and system directories and thus allows "InputGlobal name.inc" in a user
file name.inc that attempts to modify its global counterpart.
2021-01-26 08:42:39 +01:00
Richard Kimberly Heck
6821249994 Fix bug #11097 2021-01-09 17:41:50 -05:00
Yuriy Skalko
c785ba19a0 Remove duplicated words in en/ru manuals
Thanks Kornel for suggesting regexp "\b(\w+)\s+\1\b".
2021-01-06 10:57:35 +02:00
Juergen Spitzmueller
621f07ed85 Document new label colors and warn against using static colors in layouts 2020-12-11 11:47:01 +01:00
Richard Kimberly Heck
52a0ffc02f Change name and email in some other files 2020-12-05 17:39:46 -05:00
Richard Kimberly Heck
ae2ce7a86a LaTeXName tag for counters. Layout format change. 2020-12-05 16:46:33 -05:00
Pavel Sanda
23d0e44bd6 Fix Riki's contact 2020-11-09 15:06:42 +01:00
Pavel Sanda
032418ddfd Customization.lyx: Import and review changes from Phil Netro.
Chap. 1 & 2.
2020-11-09 14:42:25 +01:00
Richard Kimberly Heck
060c3de2f0 StepMasterCounter --> StepParentCounter 2020-11-02 17:36:58 -05:00
Thibaut Cuvelier
52b2d3f683 DocBook: make Paragraph::simpleDocBookOnePar return a list of paragraphs.
Before, it directly wrote to the XMLStream, but it made implementation of new lines tricky. Now, it returns the XML for each sub-paragraph (delimited by new lines) as a string, so that the caller can adopt a more precise behaviour (such as in lists).
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
360139a091 DocBook: documentation for the new tags. 2020-09-19 20:43:37 +02:00
Juergen Spitzmueller
09a49da0d7 Customization: Improve documentation of ResetsFont
Fixes #8454
2020-08-18 09:02:14 +02:00
Juergen Spitzmueller
71c1931b92 Fix default mark (#8454) 2020-08-17 13:45:44 +02:00
Juergen Spitzmueller
cc55ae34f0 Customization: update to current format (for better detection of following changes) 2020-08-17 13:45:00 +02:00
Pavel Sanda
b17294a02b Update customization manual for docbook (part2). 2020-07-09 00:41:36 +02:00
Pavel Sanda
dce2b4e016 Update customization manual for docbook (part1). 2020-07-09 00:41:36 +02:00
Pavel Sanda
f6460f48fa Revert docbook updates to Customization manual.
Something went wrong while merging.
2020-07-08 14:15:33 +02:00
Thibaut Cuvelier
7989ebca85 Add documentation for the new layout attributes. 2020-07-08 09:41:16 +02:00
Juergen Spitzmueller
cbfce678d8 Add Requires to float definition. 2019-08-12 12:18:28 +02:00
Juergen Spitzmueller
673e5fed51 Typo 2019-08-09 08:05:11 +02:00
Juergen Spitzmueller
0b7305024a Use generic paper size names rather than LaTeXisms such as "letterpaper"
This allows to support classes that don't use the Xpaper wording.

Add support for KOMA font (keyval) syntax on top of that.

Also support class-specific font and paper sizes in tex2lyx.

File and layout format change.
2019-08-07 16:44:11 +02:00
Juergen Spitzmueller
50abaa0e57 Add FontSizeFormat textclass option
This allows to customize the way fontsizes are passed to the class (e.g.,
"fontsize=12", as used by KOMA, rather than "12pt").
2019-08-06 19:27:49 +02:00
Juergen Spitzmueller
c6f262a5b7 Add textclass options for paper size selection and default paper size
Fixes: #4506

Implementing this to the classes requires file format changes, as the
classes' page layout will likely differ from geometry's.
2019-08-06 17:34:16 +02:00
Juergen Spitzmueller
13b6632228 Add TextClass option BibInToc
Fixes #1889
2019-07-08 15:40:17 +02:00
Juergen Spitzmueller
d2b6232ce7 Fix lineno options param
This has been written even if empty -- and thus caused reading errors.
2019-06-02 19:07:01 +02:00
Juergen Spitzmueller
c7efb677f8 New InsetLayout tag ParbreakIgnored
This effectively allow paragraph breaks in insets only for cosmetic
reasons (e.g., to align contents on different lines).

This is the last change necessary for an enhanced covington gloss support
(which uses the new covington gloss ui)
2019-06-02 18:16:30 +02: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
9f04eeae03 Support FreeSpacing in InsetArgument 2019-06-02 16:33:06 +02:00
Günter Milde
cb3e79f9a0 Use utf8 as inputenc for documentation, examples, and templates. 2019-05-08 21:29:01 +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
ed44bbddee Add MenuString to InsetLayout
Fixes: #8818
2019-04-18 10:27:19 +02:00
Juergen Spitzmueller
b5af05b4a7 Make module categories (almost) great again
The category tag was rarely used and thus not very useful. This adds
categorization to most modules (the rest will follow) and uses the
\DeclareCategory tag we use in layouts rather than the extra syntax
we used in modules. Categories are now added to the po files and
translated.

Note that this is work in progress: the current categories are still
subject to change.

The ultimate goal of this is to sort the modules in the GUI by category
as we do with layouts, examples and templates (and add a filter to search
for specific modules)

As it is now (with the many modules we accumulated), the module selector
is not really usable anymore. If you don't happen to know how exactly a
module is named, selecting a module is really a PITA.
2019-04-04 18:43:29 +02:00
Juergen Spitzmueller
4d3ee3b560 Some doc updates 2019-04-03 18:17:40 +02:00
Juergen Spitzmueller
4b3aacd13b Add TableStyle layout tag
Fixes: #8360
2019-03-26 17:42:56 +01:00
Juergen Spitzmueller
2860266e30 remove buildlyxdir again
per request
2019-03-25 16:46:04 +01:00
Juergen Spitzmueller
aed6755f59 Update \origin specifications 2019-03-24 17:34:29 +01: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
Jean-Marc Lasgouttes
6293bdbb5a DEPM: document that Freespacing implies KeepEmpty. 2019-02-18 15:36:21 +01:00
Richard Kimberly Heck
e5fc7327e3 Extend fix for #7404 to allow any inset collapsible to be edited
externally.
2018-10-04 13:41:41 -04:00
Juergen Spitzmueller
9792a15141 Customization: use info-inset for layout format 2018-09-20 11:34:44 +02:00
Juergen Spitzmueller
b124adbd38 Introduce listpreamble argument type
This uses the InsetArgument interface to provide access to a document
part hitherto inaccessible by LyX: the part between \begin and the first
\item in a list (where lengths and counters can be redefined, for
instance).

Fixes: #11098

File format change, layout format change
2018-08-17 10:22:32 +02:00
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
efd29cc200 Fix link 2018-05-01 13:30:26 +02:00
Juergen Spitzmueller
389352b3fb Add optional flavor flag to needaux
Also, use latex flavor if no flag is given rather than default output
format

Fixes: #9127
2018-04-25 13:51:40 +02:00
Juergen Spitzmueller
ef359f58b5 Add cprotection support for paragraph layouts. 2018-04-14 12:57:23 +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
33bfbf89c4 Load hyperref with a suitable driver
This is mandatory for some features (such as bookmarks,pdfusetitle)
to work, and only a handful of drivers can be auto-detected by hyperref.

Fixes: #6418
2018-04-08 19:02:01 +02:00
Uwe Stöhr
5c1a121d1d Customization.lyx: distribute all tracked changes 2018-02-12 18:53:12 +01:00
Juergen Spitzmueller
8a08a19122 Document B_ in cite style definitions 2018-01-27 14:53:18 +01:00
Uwe Stöhr
4abe7d0181 Customization.lyx: distribute and accept recent changes 2018-01-09 01:28:26 +01:00
Juergen Spitzmueller
44670d4778 Customization: some color name fixes. 2018-01-06 09:31:24 +01:00
Juergen Spitzmueller
b0801b43f4 Distribute auto-nest documentation. 2017-12-31 10:00:38 +01:00
Juergen Spitzmueller
f3b89e4c72 Add IsAutoNestedBy
This is complementary to AutoNests: Styles can determine which other
style should auto-nest them. This is particularly useful for modules
that add new styles which should be auto-nested in a given context.
2017-12-29 10:36:03 +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
Uwe Stöhr
28029074b2 doc, templates and example files: use https for links to lyx.org 2017-12-15 02:53:06 +01:00
Uwe Stöhr
bc4eff1e83 doc files: review of links
- correct dead links
- use https if possible
2017-12-15 02:31:36 +01:00
Uwe Stöhr
36fba4a508 Customization.lyx: fix bug#10809
also some layout fixes to avoid writing in the page margin
2017-11-28 00:54:49 +01:00
Richard Heck
0f0c5bb4b1 Fix bug #10809. 2017-11-26 22:07:28 -05:00
jpc
1720f54b41 Turn 'Do not load' math option to 'Automatic' (ticket 10661) 2017-10-23 09:25:33 +02:00
Juergen Spitzmueller
c466baaa5b Collapsable -> Collapsible (part 2)
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 part covers the most tricky part: the internal naming.
Translations and layouts will follow.

This will all also all be backported to 2.3.x, for the sake of backwards
compatibility (cherry-picking).
2017-10-16 10:12:21 +02:00
Uwe Stöhr
c39d673d2f UserGuide.lyx: accept and distribute recent changes (part 1/2)
- Customization.lyx: fix a typo
2017-09-13 00:55:51 +02:00
Uwe Stöhr
cec1a005f5 Customization.lyx: fix a typo 2017-09-11 21:20:10 +02:00
Uwe Stöhr
a0c567d96f Customization.lyx: some small adjustments 2017-09-11 00:23:27 +02:00
Uwe Stöhr
ac4f286bd6 Customization.lyx: accept and distribute latest changes 2017-09-10 23:57:07 +02:00
Juergen Spitzmueller
36b092cadd Customization: update the list of colors. 2017-09-10 16:15:30 +02:00
Juergen Spitzmueller
fe61ef9c07 Minor corrections 2017-08-29 12:12:11 +02:00
Juergen Spitzmueller
702e5b8118 Minor corrections I did while translating 2017-08-28 15:35:13 +02:00
jpc
ebec6dfc82 Update of localized versions of Customization manual
Rename and update of Changelog file
2017-08-04 17:16:33 +02:00
Scott Kostyshak
944792402c Update docs to 2.3.0alpha1 format 2017-04-24 00:03:19 -04:00
Juergen Spitzmueller
52019917f4 Split external_templates to individual *.xtemplate files
This makes it easier to add new templates or change existing ones
in the user directory.

Fixes: #3983

The CMake changes should be double-checked.
2017-03-26 15:32:01 +02:00
Juergen Spitzmueller
68ab4023cc Support for "qualified citation lists"
These are biblatex-specific multicite commands that allow for multiple
pre- and postnotes, as in:

\cites(pre)(post)[pre1][post1]{key1}[pre2][post2]{key2}...

with an optional general pre- and postnote, which applies to the whole
list (like [][] in normal cite commands) and an optional pre- and
postnotes for each item, so that pagination can actually be specified in
multi-cite references, as in:
(cf. Miller 2015, 2; furthermore Smith 2013, 23-23; Jenkins 2012, 103,
also refer to chapter 6 in this book)

See the biblatex manual, sec. 3.8.3., for details.

File format change.
2017-01-21 14:25:17 +01:00
Juergen Spitzmueller
425c190d62 merge recent changes from master 2017-01-09 20:04:32 +01:00
Guillaume Munch
f0663e3ce4 Document AddToToc 2017-01-09 18:27:26 +01:00
Juergen Spitzmueller
a751c5b846 Extend and improve name list handling
This allows to generate different name lists depending on the need and
context.

Also addresses #8489.
2017-01-09 17:54:56 +01:00
Juergen Spitzmueller
9c738951c7 Documentation bit. 2017-01-08 12:50:03 +01:00
Juergen Spitzmueller
fb9a866a66 Implement PassThru option to arguments. 2016-10-21 10:39:55 +02:00
Uwe Stöhr
3a6af2c1a4 Customization.lyx: use change tracking for the changes made in 0eb651a2 2016-10-15 01:44:14 +02:00
Juergen Spitzmueller
0eb651a2cf New layout tags for better counter handling
* ResumeCounter: allow to resume an (enumerate) counter
* StepMasterCounter: allow to increase a master counter
2016-10-14 20:08:12 +02:00
Uwe Stöhr
79a76392ab Customization.lyx: accept Richards changes
Richard, please do everything that does not depend on LyX 2.3 this in the 2.2.x branch. Also don't upgrade the fileformat if not necessary.
2016-07-31 10:37:28 +02:00
Richard Heck
6c5caa78cb Fix some wrongly converted "LaTeX" logos. 2016-07-31 00:37:50 -04:00
Uwe Stöhr
c1e698fd86 doc/template/examples files: port recent changes
By the way: Please only edit the files in the 2.2.x branch unless you describe a new features of LyX 2.3.
2016-07-16 00:11:28 +02:00
Uwe Stöhr
d0eebfd044 doc files: backport recent changes 2016-07-05 02:27:36 +02:00
Georg Baum
3420910d7b Remove asciiimage and asciixfig formats
The external templates requested conversion to these formats, but there was no
converter defined, so plain text export did fail, and there are no obvious ways
to create plain text representations for the files used by these templates.
Now we output the file name as for other templates and also the graphics inset.
This fixes bug #7135.
2016-06-25 21:09:21 +02:00
Richard Heck
e7ea33885c Document new behavior of ForcePlain with charstyles. 2016-06-21 15:40:43 -04:00
Enrico Forestieri
b856a3ad9b Update docs to latest format. 2016-04-06 05:43:44 +02:00
Jean-Marc Lasgouttes
6196645cce Update documents and layouts after fd1ee3b4. 2016-04-01 10:08:39 +02:00
Guillaume Munch
360742c515 New LFUN tabular-feature: update docs
Simply run updatedocs.py
2016-01-27 18:35:10 +01:00
Uwe Stöhr
c1e0b24304 acmsiggraph.layout: update layout for ACM siggraph 0.92
fileformat change: update fileformat for all files
2016-01-27 01:58:13 +01:00
Uwe Stöhr
bae3bd67b7 Customization.lyx: update color list in Font description 2016-01-27 01:09:58 +01:00
Uwe Stöhr
bb379c2d87 Customization.lyx: forgot to turn off change tracking 2016-01-19 01:03:34 +01:00
Uwe Stöhr
877ea78877 Customization.lyx: fixes and updates from Jean-Pierre 2016-01-19 00:59:58 +01:00
Guillaume Munch
4a1e158c95 Update docs 2016-01-12 21:30:37 +00:00
Georg Baum
d80fa17175 Do not apply \origin at existing files
The current behaviour of the \origin parameter replaces relative file names
with the absolute original names if a document has been moved even if the
files have been moved as well. This behaviour is annoying e.g. for editing the
LyX docs in a git checkout.

Now file names are only replaced if the referenced file sdo not exist.
2016-01-10 19:46:01 +01:00
Günter Milde
0529b40cc9 Set default output format for manuals to PDF (pdflatex).
Pdflatex is the recommended export tool for the manuals.
Pdflatex brings the best results for hyperlinking.
Some features (e.g. rotated text) are not available in DVI or PS (dvips).

This does not affect export from command line or autotests
(where this setting is ignored and the format must aways be given explicitely).
2015-12-10 10:40:50 +01:00
Uwe Stöhr
6e54bb2954 Customization.lyx: merge all recent changes 2015-12-06 04:44:33 +01:00
Richard Heck
c2b950ea7c Documentation for previous change to layout format. 2015-12-05 18:11:46 -05:00
Uwe Stöhr
2432c8344d Customization.lyx: change fonts as discussed 2015-12-03 02:36:09 +01:00
Richard Heck
39ad4a2abf Remove local layout from Customization manual.
Replace "MenuItem" inset with Noun.
2015-11-29 22:26:21 -05:00