9 Commits

Author SHA1 Message Date
Richard Heck
175ba16966 Use pythonic syntax, as suggested by José.
(cherry picked from commit cec9edd34b9a43beadefd55d1755209e1acff191)
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 ed331bedd6f7c412cbcf552c58da5d7b62846339)
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 ab6bd5e3190e61fa46eb2fd057cdf7f71faf3f38)
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 9296344b9a26191a2092d175a51e357ecc35145d)
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 0bf88651229bddc34b9856c7fa025245aa4246b8)
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 0d806799aaef65b12a9b75e8c49c2613c68d5ac2)
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 92990adc236b19277a80c82ffa0580f5d1555bb0)
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