Commit Graph

38231 Commits

Author SHA1 Message Date
Juergen Spitzmueller
73c41a3c41 Reset buffer language only if we have something to reset.
Fixes: #11063
(cherry picked from commit 599b1222f7)
2018-03-10 10:53:37 +01:00
Juergen Spitzmueller
ebae08616b syntax.default: add missing *
Fixes: #10501
(cherry picked from commit 23766fdd59)
2018-03-10 10:48:57 +01:00
Juergen Spitzmueller
20a63d2b55 tex2lyx: handle whitespace in table column declaration.
Fixes: #10804
(cherry picked from commit 247e1a223d)
2018-03-10 10:45:27 +01:00
Juergen Spitzmueller
83c7e818f8 Amend 4ec133e1ae
Didn't see this test is already there.
2018-03-06 19:54:24 +01:00
Juergen Spitzmueller
9912e7ab8c Braces need to be escaped as well on LATEXIFY
part of #9563
2018-03-06 18:54:27 +01:00
Juergen Spitzmueller
4ec133e1ae Fix the implementation of new libertine package
Needs to go to 2.3.1-staging

(cherry picked from commit 905516fd70)
2018-03-06 18:30:47 +01:00
Juergen Spitzmueller
fb6e4776a0 Do not force singlebyte encoding for listings with XeTeX/LuaTeX.
Fixes: #11056
(cherry picked from commit cbf2a329c9)
2018-03-06 08:00:16 +01:00
Uwe Stöhr
7a474a8e8b status.23x: mention the updated po files in 2.3.x branch
- also sync an entry with status.22x
2018-03-03 12:46:04 +01:00
Richard Heck
490506c45f Simplify code a bit. 2018-03-02 23:12:11 -05:00
Richard Heck
175ba16966 Use pythonic syntax, as suggested by José.
(cherry picked from commit cec9edd34b)
2018-03-02 23:05:46 -05:00
Juergen Spitzmueller
46c48a5a3d tex2lyx: do not force default bibliography style if none is set
Some classes provide a \bibliographystyle, so we must not output any
\bibliographystyle if none is set in the TeX file.

Fixes: #10673
(cherry picked from commit ed331bedd6)
2018-02-24 08:34:11 +01:00
Juergen Spitzmueller
8dde86d2de Fix list of viewable formats in view/update menu.
Also fix list in (currently unused) Export toolbar button.

Fixes: #11044
(cherry picked from commit ab6bd5e319)
2018-02-22 10:42:34 +01:00
Jean-Marc Lasgouttes
17bf8fd74c Kill macro mode when using LFUN_ESCAPE
Add a `cancel' boolean to macroModeClose() that just removes all trace
of what has been entered instead of finalizing it.

When entering a macro in mathed, let LFUN_ESCAPE invoke
macroModeClose(true). The new semantics of LFUN_ESCAPE in mathed is
thus to abort the input of a macro name.

Fixes bug #9251.

(cherry picked from commit 9296344b9a)
2018-02-21 11:21:41 +01:00
Juergen Spitzmueller
bea9086c85 escape label in included listings
Also use docstring rather than string.

Fixes part of #10544

(cherry picked from commit 0bf8865122)
2018-02-20 10:30:21 +01:00
Juergen Spitzmueller
c8ea98fb2a Adapt to new ChkTeX return values.
As of v. 1.7.7, chktex has four exit values. Only consider the program
failed with EXIT_FAILURE (1). This is backwards compatible to chktex
up to v. 1.7.5 and later patched versions included in TeXLive, where
there was the distinction EXIT_FAILURE (program failed) and EXIT_SUCCESS
(program successfully run, with or without something to report).

Note that ChkTeX v. 1.7.5 and 1.7.6 vanilla (as included in MikTeX) also
returned EXITE_FAILURE if ChkTeX found something to report.

We do not, and never did, support this case.

Fixes: #9989 (after ChkTeX 1.7.7. is released).
(cherry picked from commit 0d806799aa)
2018-02-18 09:22:32 +01:00
Juergen Spitzmueller
2c0d681b21 Do not use English, but the context language, when pasting from math
Fixes: #2596
(cherry picked from commit 92990adc23)
2018-02-16 18:22:01 +01:00
Juergen Spitzmueller
2483723d06 update status 2018-02-16 18:12:47 +01:00
Richard Heck
e009bbd115 Status file for 2.3.1 2018-02-16 12:02:57 -05:00
Juergen Spitzmueller
0e57e3e3f5 Do not use English, but the context language, when pasting from LaTeX
Fixes: #9199
(cherry picked from commit e85704020b)
2018-02-16 17:06:46 +01:00
Juergen Spitzmueller
262bb7e2ce amend 71fea63326
(cherry picked from commit be4d49ebd1)
2018-02-16 17:00:44 +01:00
Juergen Spitzmueller
482de36876 Disable CheckTeX while buffer is processed
Since CheckTeX itself processes the tex file, a synchronous run with
a TeX process can lead to all sorts of conflicts, including crashes.

Fixes: #7434.
(cherry picked from commit 71fea63326)
2018-02-16 17:00:11 +01:00
Juergen Spitzmueller
a655ef69a8 Disable BUFFER_EXPORT and BUFFER_EXPORT_AS while buffer is processed
I am rather irritated we didn't do this already, since synchronous runs
with BUFFER_VIEW or BUFFER_UPDATE leads to all sorts of problems,
including crashes.

Fixes the crash in #8338 (but not the bug itself).

(cherry picked from commit 1437ae3f9c)
2018-02-16 16:57:34 +01:00
Pavel Sanda
6193b98de8 Fix sideset hints, part of bug #11015. 2018-02-15 10:58:12 +01:00
Juergen Spitzmueller
388a284688 Re-add method to get a temporary file name without persistent QTemporaryFile object
This is needed for cases where the temp file has to be manually removed
at some point (e.g., if temp files are used as conversion target, and
the initial file only serves as a placeholder), since QTemporaryFile
objects cannot be manually removed at least on Windows (they are always
kept open internally even after close()). See
​http://lists.qt-project.org/pipermail/interest/2013-August/008352.html

In order to avoid race conditions due to duplicate names (the issue why
the old method was removed), we record all used temp file names.

Fixes: #9139
(cherry picked from commit 9e2928be68)
2018-02-14 17:24:37 +01:00
Uwe Stöhr
8be744b827 RELEASE-NOTES: correct sorting 2018-02-14 14:51:57 +01:00
Uwe Stöhr
14e80adffc UserGuide.lyx: document the removal of the pixmap cache for all languages 2018-02-14 14:50:08 +01:00
Uwe Stöhr
181b24e7dc RELEASE-NOTES: Greek is not dropped 2018-02-14 14:48:22 +01:00
Pavel Sanda
a6fc4a02ff * RELEASE-NOTES 2018-02-14 11:11:28 +01:00
Jean-Marc Lasgouttes
e11c8ba81b Disable and hide the pixmap cache feature 2018-02-14 10:12:11 +01:00
Juergen Spitzmueller
370ad4d704 Updated Basque localization by Iñaki Larrañaga Murgoitio 2018-02-13 18:34:41 +01:00
Richard Heck
50fc1bbc6d Also fix chapter layout in tufte-book.
(cherry picked from commit 5f1b32f8c5)
2018-02-12 23:35:04 -05:00
Richard Heck
0dfca93139 Fix crash when citeengine is unknown.
(cherry picked from commit 5ee3396459)
2018-02-12 23:31:42 -05:00
Pavel Sanda
ceee86a824 Fixing painting regression - chapter top spacing.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203685.html
2018-02-13 00:10:57 +01:00
Pavel Sanda
2554a7dffb * layouttranslations - eu & sv changes. 2018-02-12 21:22:03 +01:00
Uwe Stöhr
d1ac023b50 Merge branch '2.3.x' of git.lyx.org:lyx into 2.3.x 2018-02-12 19:04:25 +01:00
Uwe Stöhr
90060459be ru.po: some corrections by Yuriy 2018-02-12 19:04:08 +01:00
Juergen Spitzmueller
db1c123f45 Fix autotools build after AGUTeX.lyx reocation 2018-02-12 18:57:45 +01:00
Uwe Stöhr
08fd1a8131 Customization.lyx: distribute all tracked changes 2018-02-12 18:51:48 +01:00
Juergen Spitzmueller
ab2bd29629 Updated Basque localization by Iñaki Larrañaga Murgoitio 2018-02-12 16:42:08 +01:00
jpc
92adecb6e0 Remove sections 6.7 and 6.4 from Additional manual (obsolete classes egs and aguplus)
Edit LaTeXConfig.lyx accordingly
       Move teaplates/AGUTeX.lyx to teaplates/obsolete
2018-02-12 11:30:18 +01:00
Juergen Spitzmueller
6c455707fe biblatex-natbib.citeengine: Remove erroneous blank
(cherry picked from commit b0ecfebad4)
2018-02-11 16:45:11 +01:00
Uwe Stöhr
037be1556d ru.po: is now 100% translated
big respect to Yuriy!
2018-02-10 19:34:29 +01:00
Juergen Spitzmueller
fe414fcdd8 Fix race condition in processFuncRequestQueue
The issue here was that the element was only removed from the queue
after the func request was processed, but within that process, other
function could access the queue, so the queue could even be empty
when this function finally wanted to remove the item.

Fixes: #10406.
(cherry picked from commit dadec50a18)
2018-02-10 18:32:03 +01:00
Enrico Forestieri
e43bf58223 Avoid an infinite loop
When pasting "\big" without any following delimiter, avoid
processing the same token again and again. For unknown reasons,
the delim docstring turns out to always be not empty: even when
it simply contains a '0' (no delimiter follows), its length is 1.

Fixes bug #11027.

(cherry picked from commit 8e8b3f6104)
2018-02-10 10:36:48 +01:00
Juergen Spitzmueller
2d923e4243 Fix child document regex in scanLogFile
Several problems:
* The regex failed at names such as 1_text_2_text.tex
  (returned "2_text.tex)
* The regex failed at names such as 12_text.tex
  (returned "2_text.tex)
* Masters with digits in the name (2018_text.tex) were
  tracked as their own children

(cherry picked from commit 398e026250)
2018-02-10 07:59:30 +01:00
Juergen Spitzmueller
04e995e807 tex2lyx: normalize bib and bst paths
Fixes: #7637
(cherry picked from commit 3cc98a9bf6)
2018-02-09 18:57:53 +01:00
Juergen Spitzmueller
af91405786 Consider class-provided citation engines
Do not attempt to load, nor allow to set, a different engine in this
case.

Fixes: #11022
(cherry picked from commit 2f6ada6644)
2018-02-09 09:50:43 +01:00
Juergen Spitzmueller
5549d3033f Reset cur.pit() when pasting into tables.
The number of paragraphs can change here, so pit() can become invalid.

Fixes: #9983
(cherry picked from commit 6e4e086900)
2018-02-09 09:37:51 +01:00
Juergen Spitzmueller
78911c7379 Revert "Mark follow-up paragraphs in a paragraph group as nested."
This reverts commit 70d580fea7.
2018-02-08 17:09:15 +01:00
Juergen Spitzmueller
0d82fd392f Do not show "Abstract" label in KOMA classes
This is not output by those classes (per default).

(cherry picked from commit 9b23b49d41)
2018-02-06 18:41:13 +01:00