Commit Graph

11046 Commits

Author SHA1 Message Date
Juergen Spitzmueller
03c5842006 Add "needcopiesfrom" converter flag
This is needed to provide ePub and other DocBook-based exports with
the right (renamed) images (fixes #12372)
2024-08-18 17:53:51 +02:00
Juergen Spitzmueller
ccdf8ba701 another lyx2lyx fix for index 2024-08-17 16:55:23 +02:00
Juergen Spitzmueller
01f5efbe13 fix lyx2lyx functions 2024-08-17 16:19:10 +02:00
Juergen Spitzmueller
5b5127891d remove useless warning 2024-08-17 16:15:11 +02:00
Juergen Spitzmueller
083e9b44a0 harmonize indendation 2024-08-17 13:32:07 +02:00
Juergen Spitzmueller
e1b6ad7980 further improve get_quoted_value
as per José's suggestion
2024-08-15 17:45:40 +02:00
Juergen Spitzmueller
bb3dd3c9f2 style 2024-08-15 13:11:20 +02:00
Juergen Spitzmueller
54eff37ac0 revert_nomencl: escape " and \ for command inset 2024-08-15 09:06:14 +02:00
Juergen Spitzmueller
9835022c59 forgotten subindex 2024-08-15 08:51:18 +02:00
Juergen Spitzmueller
a6fbb8677e fix convert_index_sc method 2024-08-15 08:05:31 +02:00
Juergen Spitzmueller
eb16ecf8b6 fix get_quoted_value
The previous version also stripped quotes that are part of the string
2024-08-15 08:04:48 +02:00
Juergen Spitzmueller
0659af15fb Add InsertCotext tag to InsetLayout
Avoids hardcoding of insets, and this behavior is possibly useful to
other insets than index and nomencl

We take this on yesterday's layout format change
2024-08-13 07:29:14 +02:00
Juergen Spitzmueller
6fa0532ed4 Escape special chars in indexes
We now have the functionality via sub-insets, and unexperienced users
are surprised when they don't get a literal !.

The unescaped chars can still be used via ERT.
2024-08-12 17:10:57 +02:00
Juergen Spitzmueller
2ec65921be Document an advanced nomencl use (#6996) 2024-08-12 12:54:55 +02:00
Juergen Spitzmueller
a5841b3312 Transform InsetNomenclature to a collapsible
Fixes: #10460, #12595, #6353
2024-08-12 12:33:16 +02:00
Juergen Spitzmueller
66afab4497 Update layout formats 2024-08-12 12:29:50 +02:00
Juergen Spitzmueller
8847651623 Add EscapeChars layout tag
This allows to define chars to be escape and an escape character

Needed in index and nomenclature
2024-08-12 12:25:31 +02:00
Juergen Spitzmueller
01ab4c151e Some documentation for reference-to-paragraph 2024-08-09 08:44:03 +02:00
Juergen Spitzmueller
1c5fd2ea4e reference-to-paragraph for footnotes 2024-08-09 08:30:29 +02:00
Juergen Spitzmueller
26258dc5fc de/Additional: stick with 2.4 file format 2024-08-09 07:40:17 +02:00
Juergen Spitzmueller
a2f396d177 de/Additional: eLyXer removal 2024-08-09 07:01:13 +02:00
Richard Kimberly Heck
7d686799b7 Check changes from eLyXer removal 2024-08-08 11:03:56 -04:00
Pavel Sanda
e545678687 * RELEASE-NOTES 2024-08-07 22:55:49 +02:00
Pavel Sanda
017fad533e Drop eLyXer, part2.
Removed parts of xHTML-related notes explaining elyxer,
reworded little bit. Native speaker might want to review.
2024-08-07 22:53:12 +02:00
Pavel Sanda
86c06ea93c Drop eLyXer, part1.
Last release 2013, no more present as distro package, python2 requirement.
2024-08-07 22:51:24 +02:00
Richard Kimberly Heck
337a94a425 Restore obvious shortcut 2024-08-06 14:50:29 -04:00
Juergen Spitzmueller
f2e6a9b4ae Add plt as gnuplot extension (#11148)
This seems to be the common one on Windows
2024-08-06 16:29:55 +02:00
Juergen Spitzmueller
43baae382c Add Tomasz Kołodziejski to the credits 2024-08-05 10:28:31 +02:00
Juergen Spitzmueller
7ac4e53e37 Disambiguate string
At least in German "label" in a form and "label" as in \label
translate differently
2024-08-01 12:16:10 +02:00
Juergen Spitzmueller
143e534d1e Implement reference-to-paragraph in outliner (#1624)
This allows to insert a cross-reference to headings, figures or tables
by right-clicking on the outliner item.

If the item in question does not have a label yet, it is inserted.
2024-07-28 15:59:06 +02:00
José Matos
52295693d6 Clean python code (lyx2lyx)
Please linter where it makes sense:

* Avoid bare exceptions;
* Use formatted strings instead of string interpolation
2024-07-28 09:56:29 +01:00
Juergen Spitzmueller
d4f58c96b5 Add support for multiple indexes in Memoir
As with almost everything, this class bakes its own cake also with
multiple indexes. So we need to account for this to produce
compilable output.

Not very nice, but there you go!
2024-07-26 12:48:12 +02:00
Scott Kostyshak
8c3d378217 Amend previous commit (4b33e603)
Jürgen confirmed that the layout change to the last file is indeed
expected [1].

[1] https://www.mail-archive.com/search?l=mid&q=e00fb2e29dfd77b992761aaa1f822fc979059728.camel%40lyx.org
2024-07-24 11:00:51 -04:00
Scott Kostyshak
4b33e60346 Update layouts
I do not commit the update to the following file since it has a
non-trivial change:

  lib/layouts/jlreq-common.inc

I'll ask for confirmation on the list before updating that file.
2024-07-24 10:19:31 -04:00
Juergen Spitzmueller
9f31d562bf UserGuide: fix two nomencl entries 2024-07-22 10:42:54 +02:00
Juergen Spitzmueller
ae1e1cb069 Add possibility to manually specify longest label in nomenclature
File format change
2024-07-21 17:59:34 +02:00
Juergen Spitzmueller
f58a442380 Make headlesscite an alias of MLA's autocite
As in biblatex-mla itself
2024-07-14 08:57:02 +02:00
Juergen Spitzmueller
369c871609 Support MLA's \autocite variants 2024-07-13 17:32:54 +02:00
Juergen Spitzmueller
6603c5362f Provide reversed style specifier for citation commands
This lets you exclude given variants for specific citation styles only
2024-07-13 17:20:29 +02:00
Juergen Spitzmueller
29b36dd0b8 Improve on-screen representation with MLA style
This style is quite unique, so we need to accommodate that
2024-07-11 13:39:17 +02:00
Juergen Spitzmueller
2dac89aca0 Add support for biblatex-apa's \nptextcite 2024-07-11 10:28:38 +02:00
Juergen Spitzmueller
f7cc716861 Allow to pass several styles for style-specific cite commands 2024-07-11 10:09:26 +02:00
Juergen Spitzmueller
04d8616c0a Fix cut and paste error in fbbe1eb013 2024-07-11 09:56:08 +02:00
Juergen Spitzmueller
d2ad0618bb Amend fbbe1eb013
Include apa6
2024-07-11 09:47:37 +02:00
Juergen Spitzmueller
fbbe1eb013 Improve representation of APA citation 2024-07-11 09:20:19 +02:00
Juergen Spitzmueller
5c2652fa12 BiblioInfo: Ability to distinguish '&' and 'and' author separation
Finicky styles such as APA use both in different context, and we need
to represent this to make style choice differentiatable
2024-07-11 09:13:43 +02:00
Juergen Spitzmueller
a1e57a8fe5 BiblioInfo: Add citestyle conditional 2024-07-11 07:41:47 +02:00
Udi Fogiel
ae70eb0d36 remove language switches from index entries in fr Additional.lyx 2024-07-10 23:07:31 +03:00
Scott Kostyshak
49907c9bd2 fr Additional.lyx: restore a path to an include 2024-07-10 11:41:43 -04:00
Juergen Spitzmueller
40d644a7f9 Implement possibility to define citestyle-specific commands with biblatex
Not yet used.
2024-07-10 16:58:34 +02:00
Juergen Spitzmueller
f96422fc9c Fix glitch in revert_biblatex_chicago 2024-07-10 09:51:55 +02:00
jpc
18ce7a2e80 Import Additional from 2.4.x 2024-07-09 18:15:48 +02:00
Juergen Spitzmueller
8941b05774 Add support for biblatex-chicago (#12240)
File format change
2024-07-09 15:18:06 +02:00
Juergen Spitzmueller
a4b99aee94 BiblioInfo: provide macro for ellipses 2024-07-09 06:39:15 +02:00
jpc
d05809da3c French Additional manual, translation of chapter 4 up to sec. 4.3 2024-07-08 11:52:28 +02:00
Juergen Spitzmueller
fcb81ddf0b Add documentation for notes cite engine type. 2024-07-07 15:28:33 +02:00
Juergen Spitzmueller
8322622efa Add "notes" CiteEngine Type
This is needed for (forthcoming) biblatex-chicago support (see #12240)
2024-07-07 15:14:05 +02:00
Juergen Spitzmueller
28f49c90dc de/Customization: fix typo 2024-07-05 09:51:49 +02:00
José Matos
7a79a416b8 Remove profiling.py
The hotshot module used there only works for Python 2.

BTW the profiling turned out not be necessary.

As a case in point Python 3.13 is twice as fast as Python 3.6 when using
lyx2lyx. Not only that but Python 3 is almost 10 times faster than using
Python 2 for this particular case.
2024-06-27 21:20:49 +01:00
Pavel Sanda
935781ceab Document python changes 2024-06-24 22:45:15 +02:00
Pavel Sanda
cfc9675d0e Prepare notes for 2.5 2024-06-24 22:44:49 +02:00
José Matos
95a7440b0e Sort and format comments
The last code change shuffled the comments out of place
2024-06-18 10:52:05 +01:00
José Matos
44e0940d75 Order imports
This is similar to what we have in C++ code where we order the standard
includes to be easier to read.

This is a readability change only.
2024-06-18 10:25:52 +01:00
José Matos
5abe42f6d3 Tweak ruff configuration
Add I - isort rules (order of imports);
Ignore line too long warnings.
2024-06-18 10:24:09 +01:00
José Matos
4534a20f1a Fix functions that used functions but did not defined it
The functions were selected from the parser files where document is
always defined.

The only case was this code was used was on document.warning.

Since our documents are well formed this code was never active and thus
the reason why we did not saw this before.

One possible solution to assure that these type of errors do not occur
is to make the convention that all the functions in lyx2lyx_tools have
as the first argument document.
2024-06-17 11:31:10 +01:00
José Matos
160ac7242e Remove undisclosed imports (from xxx import *)
This was the last example in this directory.
2024-06-16 07:45:43 +01:00
José Matos
b80ccaa417 Add common pattern in linter exclusion list
# ambiguous-variable-name (E741)

Derived from the **pycodestyle** linter.

## What it does
Checks for the use of the characters 'l', 'O', or 'I' as variable names.

## Why is this bad?
In some fonts, these characters are indistinguishable from the
numerals one and zero. When tempted to use 'l', use 'L' instead.

## Reason to ignore in LyX?
With appropriated fonts that is not an issue. In our case we just use
the 'l', in particular in the context of iterators: 'i', 'j', 'k', 'l'.
2024-06-16 07:34:34 +01:00
Juergen Spitzmueller
9fff7bdd5a de/UserGuide: updates 2024-06-15 14:29:26 +02:00
José Matos
a0a5892ae8 Fix code
Run "ruff check --fix"

Remove unneeded imports;
Reword code to make clear the "not in" operator;
Put imports in its own line (readability);
2024-06-15 11:26:28 +01:00
José Matos
b4db3ea137 Reformat lyx2lyx code using ruff 2024-06-15 10:06:06 +01:00
José Matos
aaef6d2693 Add pyproject.toml file to manage some options for tools
This file is only relevant for tools that use it, in development, and so
it is not supposed to be installed. It does not harm but there is no
purpose.
2024-06-15 10:04:31 +01:00
Pavel Sanda
e5b027759c * UG - note about gnuplot from Tobias Hilbricht 2024-06-14 21:18:29 +02:00
Udi Fogiel
3854086e59 Remove hebrew letter document class
The only difference from regular letter is the alignment of
"Send To Address" layout, but it no longer reflect the output
corrctly, probably because LyX revert the alignment of layouts
in RTL context now.
2024-06-11 21:14:27 +03:00
José Matos
c92b481a44 Reformat imports for easier reading
This is in line with the current hints for better readability:

* one import per line;
* order the imports alphabetically to be easier to search;

Take the chance to remove unused imports.
2024-06-10 12:05:03 +01:00
José Matos
aeee6b373e Update generate contributions to Python 3+ 2024-06-10 11:43:04 +01:00
José Matos
04ecabef60 Update Python scripts to Python 3+
Remove support for Python 2

Use formatted strings where appropriated
2024-06-10 11:29:56 +01:00
José Matos
f9ec4186d7 Update lyx2lyx folder to Python 3+
Remove support for Python 2
Take advantage of new features (euphemism) not possible before due to
python 2 compatibility
2024-06-10 10:55:40 +01:00
José Matos
df0e337684 Update configure.py to Python3+
Remove Python 2 support

This simplifies the code and allows to use other more modern features,
like formatted strings, that were not possible while keeping Python 2
compatibility.
2024-06-10 10:38:28 +01:00
Richard Kimberly Heck
8655c83a90 Fix bug #13028.
Bindings for 'join lines.
2024-06-09 14:13:12 -04:00
Udi-Fogiel
64aad586f4 missing background in xetex and fix RTL stuff in preview
* previwes with xetex did not produce any background (\pagecolor does not work for some reason), adding the direct command for that, \special{background <color>} inside the preview box solved it.

* similar to #12923 we should push the color node in horizontal mode

* there is a bug in preview with LuaTeX with main RTL language, this commit fix this bug, but it should be removed when it is fixed upstream (the code related to \pr@set@pagerightoffset)
2024-06-09 13:36:35 +03:00
Pavel Sanda
de781a7cff Some comments into bind file 2024-06-05 20:42:10 +02:00
Scott Kostyshak
adefdf8eeb Revert "Update layouts"
This reverts commit 7c041af642.

We will hold this back until we fix the issue discussed here:

  https://marc.info/?l=lyx-devel&m=171733833610242&w=2
2024-06-03 10:37:02 -04:00
Richard Kimberly Heck
0c70f340c0 Fix bug #13066
Patch from Lorenzo
2024-06-02 23:07:34 -04:00
Scott Kostyshak
7c041af642 Update layouts 2024-06-02 22:52:37 -04:00
Juergen Spitzmueller
2a7ec054be Support half und full line parskip class options (#12946)
Currently only employed by the KOMA classes.

Layout format change.
2024-06-02 11:41:54 +02:00
Juergen Spitzmueller
d2db74f9ee Add support for glue length in parskip (#12867) 2024-06-01 13:47:39 +02:00
Juergen Spitzmueller
d3d8b3d748 Update aastex63.layout according to https://journals.aas.org/aastexguide/#acknowledgments 2024-05-20 16:10:23 +02:00
Juergen Spitzmueller
6ef18c3583 Limit the nopassthurchars case in beamer to URL
and also generally extend to classes that provide hyperref
2024-05-20 08:26:03 +02:00
Juergen Spitzmueller
c23f731fae mumble 2024-05-15 18:36:47 +02:00
Juergen Spitzmueller
9d43fd2ae1 # and % need to be escaped in hyperref URL as well
Also fix some lyx2lyx glitches

This hopefully fixes the test issues.
2024-05-15 13:15:08 +02:00
Juergen Spitzmueller
227ce773bf Document a716fb96b5 2024-05-14 13:38:16 +02:00
Juergen Spitzmueller
a716fb96b5 NeedCProtect -1 also for InsetLayouts 2024-05-14 13:37:29 +02:00
Juergen Spitzmueller
1512216909 Fix comment 2024-05-13 10:26:45 +02:00
Juergen Spitzmueller
52d31155c1 Properly escape backslash in URLs with hyperref (#13012) 2024-05-13 09:17:30 +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
eeb3f9e719 Amend 207eaeee90
FragileFrame, as opposed to normal frame, supports cprotect (and needs
it in the usual circumstances)
2024-05-12 08:52:09 +02:00
Juergen Spitzmueller
a2fb7b3566 Document 207eaeee90 2024-05-12 07:54:04 +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
Pavel Sanda
358efd120a * metainfo.xml - homepage missing 2024-04-21 03:49:12 +02:00
Pavel Sanda
c8b32ebe72 *UG - Add hint from users list 2024-04-20 00:24:44 +02:00