]> git.lyx.org Git - lyx.git/log
lyx.git
3 years agoDocBook: implement ectaart.
Thibaut Cuvelier [Sat, 28 Nov 2020 00:32:48 +0000 (01:32 +0100)]
DocBook: implement ectaart.

3 years agoDocBook: implement Copernicus.
Thibaut Cuvelier [Sat, 28 Nov 2020 00:23:22 +0000 (01:23 +0100)]
DocBook: implement Copernicus.

Includes a fix when wrappers are used with empty paragraphs. The logic is probably wrong if two legit wrapped paragraphs have one empty paragraph in the middle. This is only for slightly convoluted cases... Wrapping decisions should rather be taken for a series of paragraphs at once, but it would be more complex to implement and would only solve very peculiar cases like these ones.

3 years agoDocBook: implement AEA and APA.
Thibaut Cuvelier [Fri, 27 Nov 2020 23:51:27 +0000 (00:51 +0100)]
DocBook: implement AEA and APA.

3 years agoDocBook: fix regression in floats.
Thibaut Cuvelier [Fri, 27 Nov 2020 22:44:48 +0000 (23:44 +0100)]
DocBook: fix regression in floats.

Also implement a valid filler for tables.

3 years agoDocBook: improve naming of test files.
Thibaut Cuvelier [Fri, 27 Nov 2020 19:24:09 +0000 (20:24 +0100)]
DocBook: improve naming of test files.

First, the kind of issue that the file tests for. Then, its source, if it's been extracted from the rest of the test suite.

3 years agoamend bd9dce374976ef8d8f9be0140217c2d92b950c66
Thibaut Cuvelier [Fri, 27 Nov 2020 16:59:35 +0000 (17:59 +0100)]
amend bd9dce374976ef8d8f9be0140217c2d92b950c66

Fix warning, add a comment while I'm there

3 years agoAlways use std::regex
Yuriy Skalko [Sat, 21 Nov 2020 18:11:23 +0000 (20:11 +0200)]
Always use std::regex

Since now minimum supported GCC is 4.9.

3 years agoUpdate CMake for minimum GCC version: 4.9
Yuriy Skalko [Tue, 24 Nov 2020 22:00:28 +0000 (00:00 +0200)]
Update CMake for minimum GCC version: 4.9

3 years agoFix signed integer overflow on x = 0, detected by GCC sanitizer
Yuriy Skalko [Thu, 26 Nov 2020 21:01:18 +0000 (23:01 +0200)]
Fix signed integer overflow on x = 0, detected by GCC sanitizer

3 years agoReplace ;;
Yuriy Skalko [Thu, 26 Nov 2020 20:14:43 +0000 (22:14 +0200)]
Replace ;;

3 years agoUse iround function, amend c0ce79452f
Yuriy Skalko [Thu, 26 Nov 2020 20:10:45 +0000 (22:10 +0200)]
Use iround function, amend c0ce79452f

3 years agoConstify
Yuriy Skalko [Wed, 25 Nov 2020 23:11:07 +0000 (01:11 +0200)]
Constify

3 years agoUse to_string function
Yuriy Skalko [Wed, 25 Nov 2020 22:17:29 +0000 (00:17 +0200)]
Use to_string function

3 years agoMove several common types to support/types.h
Yuriy Skalko [Fri, 20 Nov 2020 22:06:05 +0000 (00:06 +0200)]
Move several common types to support/types.h

3 years agoRemove deprecated enum value with Qt5
Jean-Marc Lasgouttes [Thu, 26 Nov 2020 19:17:57 +0000 (20:17 +0100)]
Remove deprecated enum value with Qt5

3 years agoDocBook: bug fixes for JASA.
Thibaut Cuvelier [Fri, 27 Nov 2020 04:53:46 +0000 (05:53 +0100)]
DocBook: bug fixes for JASA.

Includes more consistent behaviour for bibliographies in appendix (do the same as LyX shows the user, i.e. bibliography in appendix).

3 years agoDocBook: AASTeX is still too complicated to be fully supported.
Thibaut Cuvelier [Fri, 27 Nov 2020 04:20:51 +0000 (05:20 +0100)]
DocBook: AASTeX is still too complicated to be fully supported.

3 years agoDocBook: for empty figures, output a message.
Thibaut Cuvelier [Fri, 27 Nov 2020 04:19:27 +0000 (05:19 +0100)]
DocBook: for empty figures, output a message.

This ensures that this part of the DocBook file is valid.

3 years agoDocBook: in aa, fix acknowledgements.
Thibaut Cuvelier [Fri, 27 Nov 2020 03:52:39 +0000 (04:52 +0100)]
DocBook: in aa, fix acknowledgements.

3 years agoDocBook: implement author for layouts that previously missed it.
Thibaut Cuvelier [Fri, 27 Nov 2020 03:40:16 +0000 (04:40 +0100)]
DocBook: implement author for layouts that previously missed it.

3 years agoDocBook: implement subtitle for layouts that previously missed it.
Thibaut Cuvelier [Fri, 27 Nov 2020 03:35:54 +0000 (04:35 +0100)]
DocBook: implement subtitle for layouts that previously missed it.

3 years agoDocBook: implement title for layouts that previously missed it.
Thibaut Cuvelier [Fri, 27 Nov 2020 03:34:33 +0000 (04:34 +0100)]
DocBook: implement title for layouts that previously missed it.

3 years agoDocBook: implement standard for layouts that previously missed it.
Thibaut Cuvelier [Fri, 27 Nov 2020 03:29:40 +0000 (04:29 +0100)]
DocBook: implement standard for layouts that previously missed it.

3 years agoDocBook: implement keywords for layouts that previously missed it.
Thibaut Cuvelier [Fri, 27 Nov 2020 03:26:31 +0000 (04:26 +0100)]
DocBook: implement keywords for layouts that previously missed it.

3 years agoDocBook: implement IJMP C/D.
Thibaut Cuvelier [Fri, 27 Nov 2020 03:16:48 +0000 (04:16 +0100)]
DocBook: implement IJMP C/D.

3 years agoDocBook: fix appendices.
Thibaut Cuvelier [Fri, 27 Nov 2020 01:50:03 +0000 (02:50 +0100)]
DocBook: fix appendices.

3 years agoDocBook: implement iucr.
Thibaut Cuvelier [Fri, 27 Nov 2020 01:49:48 +0000 (02:49 +0100)]
DocBook: implement iucr.

3 years agoDocBook: deploy fix for acknowledgements.
Thibaut Cuvelier [Fri, 27 Nov 2020 00:56:14 +0000 (01:56 +0100)]
DocBook: deploy fix for acknowledgements.

3 years agoDocBook: implement Mathematical Monthly.
Thibaut Cuvelier [Fri, 27 Nov 2020 00:54:00 +0000 (01:54 +0100)]
DocBook: implement Mathematical Monthly.

3 years agoCmake tests: Save the number of ignored tests in file for later review
Kornel Benko [Thu, 26 Nov 2020 23:49:03 +0000 (00:49 +0100)]
Cmake tests: Save the number of ignored tests in file for later review

3 years agoamend dae064043682ea7dcf03899abaca067ee2245655
Thibaut Cuvelier [Thu, 26 Nov 2020 22:32:44 +0000 (23:32 +0100)]
amend dae064043682ea7dcf03899abaca067ee2245655

Fix a warning in the code.

3 years agoFix Clang warning about struct/class mismatch
Scott Kostyshak [Thu, 26 Nov 2020 18:48:42 +0000 (13:48 -0500)]
Fix Clang warning about struct/class mismatch

CaretGeometry is defined as a struct, but was forward-declared as a
class. Now we forward-declare as a struct. This addresses the
following Clang warning (that does not appear with GCC):

src/frontends/CaretGeometry.h:27:1: warning: 'CaretGeometry' defined
as a struct here but previously declared as a class; this is valid,
but may result in linker errors under the Microsoft C++ ABI
[-Wmismatched-tags]

3 years agoctests: invert Greek LuaTeX texF tests
Scott Kostyshak [Thu, 26 Nov 2020 16:50:50 +0000 (11:50 -0500)]
ctests: invert Greek LuaTeX texF tests

These tests fail on TeX Live 2020 after a babel-greek update.

3 years agoImprove some debug messages
Jean-Marc Lasgouttes [Thu, 26 Nov 2020 10:04:33 +0000 (11:04 +0100)]
Improve some debug messages

The current code did not give much information.

I am not sure why the <<FontInfo operator is not defined in
FontInfo.h, but I figured that it was not necessary to understand that
now.

3 years agoCmake build: Use the same warning flags at in automake
Kornel Benko [Thu, 26 Nov 2020 10:04:48 +0000 (11:04 +0100)]
Cmake build: Use the same warning flags at in automake

3 years agoDocBook: make empty bibliographies empty.
Thibaut Cuvelier [Thu, 26 Nov 2020 05:52:21 +0000 (06:52 +0100)]
DocBook: make empty bibliographies empty.

Even though this means that there is no output tag.

3 years agoDocBook: implement JASA.
Thibaut Cuvelier [Thu, 26 Nov 2020 05:49:53 +0000 (06:49 +0100)]
DocBook: implement JASA.

3 years agoDocBook: implement Kluwer.
Thibaut Cuvelier [Thu, 26 Nov 2020 05:40:39 +0000 (06:40 +0100)]
DocBook: implement Kluwer.

Includes an assertion fix that only occurred with this example.

3 years agoDocBook: implement REVTeX.
Thibaut Cuvelier [Thu, 26 Nov 2020 05:22:27 +0000 (06:22 +0100)]
DocBook: implement REVTeX.

Improvements to abstract detection: it can now contain lists or anything with a higher depth.

Implement video floats.

3 years agoUpdate ru/UserGuide.lyx
Yuriy Skalko [Sun, 22 Nov 2020 19:43:15 +0000 (21:43 +0200)]
Update ru/UserGuide.lyx

3 years agoFix warnings regarding switches on enum values
Yuriy Skalko [Wed, 25 Nov 2020 18:27:35 +0000 (20:27 +0200)]
Fix warnings regarding switches on enum values

3 years agoFix loop variable, amend d8e8a93a58
Yuriy Skalko [Wed, 25 Nov 2020 18:24:36 +0000 (20:24 +0200)]
Fix loop variable, amend d8e8a93a58

3 years agoBetter PNG detection in guessFormatFromContents
Yuriy Skalko [Wed, 25 Nov 2020 00:12:04 +0000 (02:12 +0200)]
Better PNG detection in guessFormatFromContents

3 years agoWininstaller2: auto select downloading dictionary of the same language as the UI...
Eugene Chornyi [Wed, 25 Nov 2020 21:00:34 +0000 (22:00 +0100)]
Wininstaller2: auto select downloading dictionary of the same language as the UI of users Windows
include Russian and Portuguese languages by default

3 years agoCatch exception if LaTeX fails for child preview
Scott Kostyshak [Wed, 25 Nov 2020 20:34:07 +0000 (15:34 -0500)]
Catch exception if LaTeX fails for child preview

The exception is raised when an included file fails to export
because e.g. it is from a newer version of LyX or because an
intermediate command such as knitr fails.

The exception was introduced at 1a374a93 so that the export of a
document exits with error if an included document exports with
error.

This commit catches the exception when the LaTeX is asked for in
order to generate a preview of the included file.

3 years agoFix tex4ht odt converter
Juergen Spitzmueller [Wed, 25 Nov 2020 12:10:04 +0000 (13:10 +0100)]
Fix tex4ht odt converter

Private message by Michal Hoftich (tex4ht head developer):

oolatex is not recommended way to use Tex4ht for the ODT conversion.
It is better to use

make4ht -f odt mwe.tex

make4ht fixes some issues in ODT files

This is candidate for stable.

3 years agoSimplify InsetQuotes constructors
Yuriy Skalko [Tue, 24 Nov 2020 20:42:06 +0000 (22:42 +0200)]
Simplify InsetQuotes constructors

3 years agoAdd default TransformID enum value
Yuriy Skalko [Tue, 24 Nov 2020 18:46:49 +0000 (20:46 +0200)]
Add default TransformID enum value

3 years agoFix memory leak
Yuriy Skalko [Tue, 24 Nov 2020 17:58:24 +0000 (19:58 +0200)]
Fix memory leak

3 years agoCleanup headers
Yuriy Skalko [Sun, 22 Nov 2020 22:23:39 +0000 (00:23 +0200)]
Cleanup headers

3 years agoOnly set buffer if it is not null.
Richard Kimberly Heck [Tue, 24 Nov 2020 21:57:12 +0000 (16:57 -0500)]
Only set buffer if it is not null.

Yuriy found these specific problems. They do not cause a crash, but
they are not good.

3 years agonullptr
Richard Kimberly Heck [Tue, 24 Nov 2020 21:58:07 +0000 (16:58 -0500)]
nullptr

3 years agoForgot this.
Jean-Marc Lasgouttes [Tue, 24 Nov 2020 20:20:25 +0000 (21:20 +0100)]
Forgot this.

3 years agoRewrite (again!) the code for caret drawing
Jean-Marc Lasgouttes [Tue, 24 Nov 2020 17:35:25 +0000 (18:35 +0100)]
Rewrite (again!) the code for caret drawing

The caret geometry is now computed in BufferView as a list of shapes
(caret, horizontal l-shape if needed, completion triangle if needed)
kept in a variable of type CaretGeometry.

The code in WorkArea.cpp only has to draw these shapes. The
CaretWidget (which never was a widget) in GuiWorkArea.cpp is gone
now.

As a consequence, the bounding box for the cursor is known precisely
and therefore rows should be repainted correctly now. This avoids
caret droppings.

Fixes bug #12024.

3 years agoDo not \cprotect \textcolor
Juergen Spitzmueller [Tue, 24 Nov 2020 14:19:56 +0000 (15:19 +0100)]
Do not \cprotect \textcolor

Fixes #12034

3 years agoAdv-Find: Add handling for \cdot (at least if using format-search
Kornel Benko [Mon, 23 Nov 2020 20:55:13 +0000 (21:55 +0100)]
Adv-Find: Add handling for \cdot (at least if using format-search

3 years agoctests: ignore the new lt pdf4 texF test
Scott Kostyshak [Mon, 23 Nov 2020 04:50:41 +0000 (23:50 -0500)]
ctests: ignore the new lt pdf4 texF test

This document is not meant to be used to test XeTeX with TeX fonts.

3 years agoFix lithuanian default font encoding and Xindy name.
Günter Milde [Thu, 19 Nov 2020 23:14:05 +0000 (00:14 +0100)]
Fix lithuanian default font encoding and Xindy name.

FontEncoding L7x required for hyphenation but no longer set
by Babel (since 2017-12-06).

The PostBabelPreamble now sets L7x for Lithuanian, if it is defined
and restores the previous font encodng on exit.

3 years agoctests: some compilation errors fixed with last TeXLive update.
Günter Milde [Thu, 19 Nov 2020 19:43:04 +0000 (20:43 +0100)]
ctests: some compilation errors fixed with last TeXLive update.

Change tag to "unreliable.varying_versions".

3 years agoUpdate links to spellchecking/thesaurus dictionaries in UserGuide
Yuriy Skalko [Sun, 22 Nov 2020 18:39:29 +0000 (20:39 +0200)]
Update links to spellchecking/thesaurus dictionaries in UserGuide

3 years ago(almost) Proper fix for caret droppings
Jean-Marc Lasgouttes [Sat, 21 Nov 2020 19:00:26 +0000 (20:00 +0100)]
(almost) Proper fix for caret droppings

Try to find the most inner row that is overwritten by the caret. This
allows to replace the hack in TextMetrics::draw, which did not really
work.

Note that there are still issues with emphasized caret at the
beginning of inset, which will require some code reorganisation.

Fixes current recipe of bug #12024.

3 years agoCompilation fix
Jean-Marc Lasgouttes [Sat, 21 Nov 2020 18:42:23 +0000 (19:42 +0100)]
Compilation fix

3 years agoCorrect caret position from the start
Jean-Marc Lasgouttes [Sat, 21 Nov 2020 18:37:22 +0000 (19:37 +0100)]
Correct caret position from the start

3 years agoUse `std::any` when compiler supports C++17 or later
Yuriy Skalko [Sat, 21 Nov 2020 14:27:13 +0000 (16:27 +0200)]
Use `std::any` when compiler supports C++17 or later

3 years agoRefactor checksum calculation
Yuriy Skalko [Sat, 21 Nov 2020 13:40:31 +0000 (15:40 +0200)]
Refactor checksum calculation

3 years agoRemove unused headers
Yuriy Skalko [Sat, 21 Nov 2020 12:14:38 +0000 (14:14 +0200)]
Remove unused headers

3 years agoUse range-based loops
Yuriy Skalko [Thu, 19 Nov 2020 12:03:26 +0000 (14:03 +0200)]
Use range-based loops

3 years agoTypo and reformatting
Jean-Marc Lasgouttes [Sat, 21 Nov 2020 18:13:29 +0000 (19:13 +0100)]
Typo and reformatting

3 years agoErase white frame in fullscreen mode.
Pavel Sanda [Sat, 21 Nov 2020 14:34:26 +0000 (15:34 +0100)]
Erase white frame in fullscreen mode.

Since Qt 5.9.4 one can't set negative margins unless explicitely
allowed by a new flag. This brought back the white frame in
fullscreen mode.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg214002.html

3 years agoSimplify Length
Yuriy Skalko [Thu, 19 Nov 2020 13:53:33 +0000 (15:53 +0200)]
Simplify Length

3 years agoAdd more `override` specifiers
Yuriy Skalko [Thu, 19 Nov 2020 13:40:14 +0000 (15:40 +0200)]
Add more `override` specifiers

3 years agoRemove unused header
Yuriy Skalko [Thu, 19 Nov 2020 12:51:00 +0000 (14:51 +0200)]
Remove unused header

3 years agoamend 2c6537ff for C++11 compatibility
Thibaut Cuvelier [Fri, 20 Nov 2020 20:59:22 +0000 (21:59 +0100)]
amend 2c6537ff for C++11 compatibility

3 years agoDocBook: make InsetText respect tag types.
Thibaut Cuvelier [Wed, 18 Nov 2020 04:54:08 +0000 (05:54 +0100)]
DocBook: make InsetText respect tag types.

3 years agoXML: move higher-level tag-opening and closing functions to xml namespace.
Thibaut Cuvelier [Wed, 18 Nov 2020 04:38:25 +0000 (05:38 +0100)]
XML: move higher-level tag-opening and closing functions to xml namespace.

3 years agoXML: add tag-type information in XML tags. It is not yet used.
Thibaut Cuvelier [Wed, 18 Nov 2020 04:29:26 +0000 (05:29 +0100)]
XML: add tag-type information in XML tags. It is not yet used.

3 years agoDocBook: InsetText supports items and wrappers.
Thibaut Cuvelier [Wed, 18 Nov 2020 03:34:58 +0000 (04:34 +0100)]
DocBook: InsetText supports items and wrappers.

3 years agoDocBook: ensure that <info>-related insets in the abstract are not generated in the...
Thibaut Cuvelier [Wed, 18 Nov 2020 00:51:05 +0000 (01:51 +0100)]
DocBook: ensure that <info>-related insets in the abstract are not generated in the abstract.

This helps generate more conformant DocBook files.

Also implement wrapper tags for InsetText.

3 years agoMissing '{'
Kornel Benko [Fri, 20 Nov 2020 15:32:51 +0000 (16:32 +0100)]
Missing '{'

3 years agoUse range-based loops in GuiView
Jean-Marc Lasgouttes [Fri, 20 Nov 2020 14:04:59 +0000 (15:04 +0100)]
Use range-based loops in GuiView

3 years agoTypo
Yuriy Skalko [Tue, 17 Nov 2020 18:03:04 +0000 (20:03 +0200)]
Typo

3 years agoSimplify constructors
Yuriy Skalko [Thu, 19 Nov 2020 11:24:04 +0000 (13:24 +0200)]
Simplify constructors

3 years agoRevert "Limit the -Wall flag to C++ compiler"
Jean-Marc Lasgouttes [Fri, 20 Nov 2020 13:38:06 +0000 (14:38 +0100)]
Revert "Limit the -Wall flag to C++ compiler"

Something is fishy, it breaks compilation.

This reverts commit cbc9a901afd1783a30b4d76663208b0c13530a30.

3 years agoDo not set language from keyboard in passthru setting
Jean-Marc Lasgouttes [Wed, 21 Oct 2020 16:08:39 +0000 (18:08 +0200)]
Do not set language from keyboard in passthru setting

3 years agoLimit the -Wall flag to C++ compiler
Jean-Marc Lasgouttes [Fri, 20 Nov 2020 12:41:45 +0000 (13:41 +0100)]
Limit the -Wall flag to C++ compiler

This avoids tons of warning when compiling code, like libiconv, which is
not prepared to this kind of scrutiny of its code quality...

3 years agoFix compilation of included libiconv with autoconf
Jean-Marc Lasgouttes [Thu, 19 Nov 2020 12:40:26 +0000 (13:40 +0100)]
Fix compilation of included libiconv with autoconf

3 years agoDo nothing if hunspell support is disabled
Jean-Marc Lasgouttes [Wed, 18 Nov 2020 15:41:19 +0000 (16:41 +0100)]
Do nothing if hunspell support is disabled

3 years agoCMake fix but where Perl not found on Windows
Eugene Chornyi [Wed, 18 Nov 2020 18:17:44 +0000 (19:17 +0100)]
CMake fix but where Perl not found on Windows

3 years agoFix screen display of parts and chapters in default classes
Jean-Marc Lasgouttes [Wed, 18 Nov 2020 09:15:05 +0000 (10:15 +0100)]
Fix screen display of parts and chapters in default classes

This has been done by reading the LaTeX sources (classes.dtx) to try
to get things right

* fix font sizes of chapters and parts. Note that the labels have
  smaller size as the title itself.

* fix alignment of Part and put label on top

* add spacing between label and title.

3 years agoAutomake build: We are using 3rdparty iconv with version 1.15
Kornel Benko [Tue, 17 Nov 2020 22:07:01 +0000 (23:07 +0100)]
Automake build: We are using 3rdparty iconv with version 1.15

3 years agoTake right margin into account for text inset width
Jean-Marc Lasgouttes [Tue, 17 Nov 2020 16:47:22 +0000 (17:47 +0100)]
Take right margin into account for text inset width

This is particularly important for contents in RtL languages, where
the right margin may contain the paragraph indentation, or
itemize/enumeration symbols.

Fixes bug #12030.

3 years agoDocBook: fix indentation.
Thibaut Cuvelier [Tue, 17 Nov 2020 02:58:39 +0000 (03:58 +0100)]
DocBook: fix indentation.

3 years agoctests: uninvert an export that passes now
Scott Kostyshak [Mon, 16 Nov 2020 23:23:47 +0000 (18:23 -0500)]
ctests: uninvert an export that passes now

The export inputenc-luatex-utf8_pdf5_texF has been succeeding for a
while and was likely fixed by a TeX Live update. Compiling manually
and looking at the output looks good.

3 years agoDocBook: implement svglobal.
Thibaut Cuvelier [Mon, 16 Nov 2020 19:15:34 +0000 (20:15 +0100)]
DocBook: implement svglobal.

3 years agoBump minimal GCC version to 4.9
Yuriy Skalko [Mon, 16 Nov 2020 17:35:54 +0000 (19:35 +0200)]
Bump minimal GCC version to 4.9

3 years agoRemove old duplicated files, newer are in autotests/mathmacros
Yuriy Skalko [Sun, 15 Nov 2020 20:22:47 +0000 (22:22 +0200)]
Remove old duplicated files, newer are in autotests/mathmacros

3 years agoTypo in message
Kornel Benko [Mon, 16 Nov 2020 11:40:35 +0000 (12:40 +0100)]
Typo in message

3 years agoCmake export tests: Use the temporary directory for checked results
Kornel Benko [Mon, 16 Nov 2020 11:22:33 +0000 (12:22 +0100)]
Cmake export tests: Use the temporary directory for checked results

This amends also dbb72a37 (fix race condition for parallel testing)
Thanks Scott to pointing this out.

3 years agoDocBook: implement Elsevier.
Thibaut Cuvelier [Mon, 16 Nov 2020 05:09:03 +0000 (06:09 +0100)]
DocBook: implement Elsevier.

3 years agoDocBook: do a little something for variable-width minipages.
Thibaut Cuvelier [Sun, 15 Nov 2020 23:08:11 +0000 (00:08 +0100)]
DocBook: do a little something for variable-width minipages.