Commit Graph

37854 Commits

Author SHA1 Message Date
Enrico Forestieri
8be0ec0db5 Fix issue with change-tracked deleted display math
- If a display math not starting a new paragraph is deleted, the
  current \lyxdeleted macro (if any) must be closed and a new one
  started, otherwise the display math will be shifted up.

- Use \linewidth instead of \columnwidth because the former will adapt
  to the reduced horizontal width in list environments, avoiding shifting
  to the right the diplay math.

(cherry picked from commit 7f23ca912c)
2017-10-25 19:51:14 +02:00
Juergen Spitzmueller
3d30a01bd7 de.po 2017-10-24 08:46:02 +02:00
Richard Heck
6247de2629 Fix bug #10556.
Update CSS for Standard layout in Memoir.

(cherry picked from commit e05c91083f)
2017-10-23 16:30:12 -04:00
Kornel Benko
979c96aa4f Update sk.po 2017-10-23 14:56:40 +02:00
Juergen Spitzmueller
57db5a0dbc de.po 2017-10-23 13:53:51 +02:00
Juergen Spitzmueller
aa1698ede0 More accurate description of fixltx2e state. 2017-10-23 13:50:11 +02:00
jpc
d57935b33b Add obsolescence warning in fixltx2e description (ticket 9361) 2017-10-23 09:51:08 +02:00
jpc
95f60915a7 Make math options loading automatic, see ticket 10661 2017-10-23 09:23:31 +02:00
Juergen Spitzmueller
a81a0c5534 Implement ParamInfo::HANDLING_LTRIM and use it to ltrim InsetBibitem
output

See #9847.

(cherry picked from commit 76f49fad78)
2017-10-23 09:07:22 +02:00
Juergen Spitzmueller
d088f7f03f Do not add deleted text to inset button label.
Fixes: #10775
(cherry picked from commit 70b0df85c8)
2017-10-23 08:26:01 +02:00
Guillaume MM
25678dae12 Fix math mode for InsetMathMacro on output
After 6642152e, user macros were no longer wrapped in \ensuremath. In 2.2 and
before, InsetMathMacro behaved as follow:

* Textmode global symbols are wrapped in \text when in math.

* Other global symbols, and user macros, are wrapped in \ensuremath when in
  text.

* Undefined macros (ERT) are wrapped neither in \text nor in \ensuremath.

This is also consistent with the documentation of MathEnsurer in
mathed/MathStream.h.

This patch defines InsetMathMacro::currentMode() accordingly (respectively
TEXT_MODE, MATH_MODE and UNDECIDED_MODE) and uses it to determine the output.

After this patch, there is a mismatch between screen and pdf output for user
macros in \text. This is not a regression wrt 2.2 and is because linearization
does not satisfy currentMode() currently.

(cherry picked from commit 767f0df18fcd61611de1d1e10e0fd1867479fb59)
2017-10-23 00:07:08 +02:00
Uwe Stöhr
080c068e97 Additional.lyx: accept and distribute changes
- almost all changes were already distributed
- fix some cross-reference issues
2017-10-23 00:02:04 +02:00
Enrico Forestieri
8f7b40955c Account for shadowed system macros
Part of #10694.

(cherry picked from commit d58d3f6774)
2017-10-22 23:15:56 +02:00
Günter Milde
71a35ea45b Warn of side-effects of the changed default behaviour regarding dash export. 2017-10-21 22:31:12 +02:00
Günter Milde
9086db662d cmake documentation handling: sort out encoding problems.
Let srcipt work under Python2 and Python3,
also if the locale is not set to utf8.
2017-10-21 22:25:59 +02:00
Kornel Benko
72122beee8 Cmake doc creations: Setting environment PYTHONIOENCODING
1. This should force the python executable to use the desired encoding.
  The command is moved to a wrapper script to be able to set the environment
  at make-run-time.
  cherry-picked from a68ef98 and f3c8884
2. Python is choking on '\\'
  cherry-picked from 65deb30

Omiting changes to ReplaceValues.py, which will be hopefully done by Günter Milde
2017-10-21 11:18:02 +02:00
Juergen Spitzmueller
bb5ee7f37e Fix small display issue with biblatex's \textcite
(cherry picked from commit b632e3ebf3)
2017-10-18 17:48:17 +02:00
Enrico Forestieri
5a3201a8c4 Speed up exit time
Instantiating a single QSettings and using it for each ui element
can significantly shorten the time required to save the various
states at exit. The speed up can be better appreciated on *nix,
where the settings are saved on disk, rather than on Windows where
they are held in memory (in the registry).

(cherry picked from commit 3b43fbfbb1)
2017-10-18 13:38:16 +02:00
Juergen Spitzmueller
4947476da8 Do not scan BibTeX files multiple times in a collectBibKeys() procedure.
Scanning is rather slow, so this improves performance in specific
situations (multiple inclusion of larger files in master/child or
chapterbib context)

(cherry picked from commit 88a0666d6c)
2017-10-18 12:21:29 +02:00
Richard Heck
ffd175b99f Use of div for labels causes validation errors. See #8843.
(cherry picked from commit b8206a0832)
2017-10-16 21:41:30 -04:00
Richard Heck
1bef592999 Revert "ABOVE and CENTERED labels need special treatment."
This reverts commit 08bf9781ee.
2017-10-16 21:37:59 -04:00
Uwe Stöhr
5480cfd19a Additional.lyx: replace quotes character by LyX quotes 2017-10-17 00:24:41 +02:00
Juergen Spitzmueller
cd5e2d537f update po/gmo files after a71778de94 2017-10-16 14:30:57 +02:00
Juergen Spitzmueller
a71778de94 Collapsable -> Collapsible (part 3)
The current spelling is not strictly wrong, but flagged as unusual or
    historical by some authorities. It is also found fault with many
    spell checkers. Thus we decided to move to the more standard "-ible"
    form once and for all.

    See #10678 for discussion

    This part addresses the po files.
2017-10-16 11:28:45 +02:00
Juergen Spitzmueller
9ae4b659dc Collapsable -> Collapsible (part 4)
The current spelling is not strictly wrong, but flagged as unusual or
historical by some authorities. It is also found fault with many
spell checkers. Thus we decided to move to the more standard "-ible"
form once and for all.

See #10678 for discussion

This last part updates the layout format and changes collapsable color.

This will all also all be backported to 2.3.x, for the sake of backwards
compatibility (cherry-picking).

(cherry picked from commit 4345331870)
2017-10-16 11:24:49 +02:00
Juergen Spitzmueller
a59301eaff Collapsable -> Collapsible (part 2)
The current spelling is not strictly wrong, but flagged as unusual or
historical by some authorities. It is also found fault with many
spell checkers. Thus we decided to move to the more standard "-ible"
form once and for all.

See #10678 for discussion

This part covers the most tricky part: the internal naming.
Translations and layouts will follow.

This will all also all be backported to 2.3.x, for the sake of backwards
compatibility (cherry-picking).

(cherry picked from commit c466baaa5b)
2017-10-16 11:24:41 +02:00
Juergen Spitzmueller
e040ccb0e8 Collapsable -> Collapsible (part 1)
The current spelling is not strictly wrong, but flagged as unusual or
historical by some authorities. It is also found fault with many
spell checkers. Thus we decided to move to the more standard "-ible"
form once and for all.

See #10678 for discussion

This part only covers the usage in comments and the like. More to follow.

This will all also all be backported to 2.3.x, for the sake of backwards
compatibility (cherry-picking).

(cherry picked from commit 648ddd25ec)
2017-10-16 11:22:13 +02:00
Richard Heck
402d41b82d Revert "Fix bug #8782."
This caused slowness on undo and redo that was reported at
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg202292.html

This reverts commit 02847641a8.
2017-10-15 20:56:25 -04:00
Uwe Stöhr
1940a1f080 Win installer: update Qt
- Qt 5.6.3 uses a different path name scheme
- one DLL was removed in Qt 5.6.3
2017-10-15 16:47:48 +02:00
Enrico Forestieri
d7306b62ac Update it.po 2017-10-15 16:35:08 +02:00
Enrico Forestieri
2e253eab0f Fix issue with regular expressions
At least with gcc 6.4, if the first parameter passed to
regex_match() is afterward changed, the second one gets
corrupted. This is avoided by using a temporary string.

(cherry picked from commit c16ccdb5fd)
2017-10-15 15:42:39 +02:00
jpc
f2f12cc7c7 Update fr.po 2017-10-14 17:36:12 +02:00
Juergen Spitzmueller
bbac6b7037 Fix literal string in binary context
In 1a26f9b26c, all strings in the context of regexes and
comparisons have been converted to byte-like objects for python2/3
compatibility reasons. This has not been considered in the later
commit 5c54557350, which makes layout2layout break with
TypeError: can't concat str to bytes.

(cherry picked from commit 8fecdfc473)
2017-10-13 18:38:01 +02:00
Juergen Spitzmueller
4242cbd504 Update some more layouts
(cherry picked from commit 5997b60da1)
2017-10-13 16:11:36 +02:00
Juergen Spitzmueller
930c2fe5cd Adapt citengine to current layout format.
(cherry picked from commit d4e30ad88f)
2017-10-13 15:49:40 +02:00
Juergen Spitzmueller
88c285219b Fix PDF output of clipped graphics with recent graphics package
The previous redirection of the senseless option "bb" to "viewport" in
PDFLaTeX output has been removed in a recent graphics package update.

This breaks documents, since clipped graphics silently stop displaying.

This change restores the previous output by using "viewport" instaed of
"bb" for non-PS/DVI output, while leaving PS/DVI untouched (where "bb"
and "viewport" behave differently.

Fixes: #7910
2017-10-13 08:28:26 +02:00
Jean-Marc Lasgouttes
80983a3553 Do not forget to set cursor current font when selecting
Fix several unreleated cases where the `selecting' code path did not
reset cursor font correctly. This leads to a caret that does not have
the correct size, and can cause caret droppings with the new display
scheme.

(cherry picked from commit 88d0390724)
2017-10-12 21:13:55 +02:00
Enrico Forestieri
b79d07f4a5 Fix issue with language switch in Arguments insets
In some insets such as Arguments, a local language switch has to be
used. However, if the language inside the inset was set to be equal
to the outer language, the code decided not to switch language. But
then got confused and tried to close a switch that was never opened.
This patch forces the switch even if the outer language is the same.

(cherry picked from commit ce4f39d414)
2017-10-12 00:02:54 +02:00
Scott Kostyshak
2af69629cb ja/EmbeddedObjects.lyx: correct file path
References to the central clipart directory must be prefixed with
".." for non-English manuals.

(cherry picked from commit d233831c1c)
2017-10-09 11:57:49 -04:00
Richard Heck
da7f539358 Reset cursor before beginning reload sequence.
(cherry picked from commit af381a2fb2)
2017-10-08 23:07:13 -04:00
Kornel Benko
11386f4601 Cmake build: Needed variable for creation of debian package
The variable CPACK_DEBIAN_PACKAGE_RELEASE has to be in the form
of "^[A-Za-z0-9.+~]+$". We will use the abbreviated commit revision for now.
Without this change cmake 3.10 emits error.

(cherry picked from commit 847c68960a)
2017-10-08 08:30:16 +02:00
Scott Kostyshak
7ea9210853 Uninvert Japanese tests after fix to #8823
The export ja/lilypond_pdf fails because ps2pdf gives an error. It
is thus still inverted, under the category 'externalissues'. As
Jürgen discovered, ps2pdf succeeds if the -dNOSAFER flag is used.

Note that Kornel is seeing strange behavior with the sweave test,
and thus the label of that test might be changed soon (e.g. to
"unreliable"). For discussion, see:

https://www.mail-archive.com/search?l=mid&q=20171001032524.fr5xfngylththwv2%40steph
(cherry picked from commit 0c7e5c115d)
2017-10-07 22:40:05 -04:00
Scott Kostyshak
fa32ad6adf RELEASE-NOTES: reference wiki with previous notes
If users are upgrading from an older version of LyX than the
previous major series, they should consult the release notes from
the releases in-between.

For more discussion on this topic, see the following mailing list
thread:

https://www.mail-archive.com/search?l=mid&q=20170902070549.47ciiszxjjqhyreq%40steph
2017-10-07 02:34:35 -04:00
Scott Kostyshak
f7123e6df0 RELEASE-NOTES: mention Qt-based fallback converter 2017-10-07 01:54:42 -04:00
Scott Kostyshak
5933031130 Additional.lyx: update eLyXer URL
The previous link still worked but asked for bookmarks to be updated
to the newer URL.

Thanks to Ian Holliday for this correction.

(cherry picked from commit 4b1f3ab539)
2017-10-06 21:38:43 -04:00
Kornel Benko
88cba7dee3 Cmake build: Don't use temporary doc-files as source for installation
(cherry picked from commit 336f94d12f)
2017-10-06 22:02:44 +02:00
Scott Kostyshak
c194f60d55 ja/Math.lyx: correct the URL of the mhchem manual
It was pointing to the hyperref manual.

(cherry picked from commit 8b1cdce752)
2017-10-06 15:08:26 -04:00
Scott Kostyshak
2edeea8067 sweave.lyx: remove ref to previous homepage
The homepage does not exist anymore. Note that R installations now
come with Sweave already installed.

We now instead reference the user manual of Sweave.

(cherry picked from commit a0b3c3b563)
2017-10-06 14:24:39 -04:00
Scott Kostyshak
b6c9ee1a0a poster-a0poster-simple.lyx: rm ref to a0poster-kh
a0poster-kh is unmaintained and non-standard. Note that URL in the
removed \item was broken.

For more information, see discussion on list:
https://www.mail-archive.com/search?l=mid&q=20171006055205.jdicpppko3tjrlef%40steph

(cherry picked from commit 5b7c2348e6)
2017-10-06 13:54:53 -04:00
Scott Kostyshak
d6290d1f24 docs: fix URL to hyperref manual
Our URL tests have been reporting the previous URL for a few months
as broken, and browser confirms it.

(cherry picked from commit b5662f1d21)
2017-10-06 02:18:08 -04:00