Commit Graph

10959 Commits

Author SHA1 Message Date
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