Commit Graph

34519 Commits

Author SHA1 Message Date
Georg Baum
1d3a85fe37 Fix regression of 2fc430d5ae
Thanks Kornel for noticing
2015-11-09 20:06:36 +01:00
Günter Milde
480937a103 Reset encoding after insets and environments also for LuaTeX with TeX fonts.
With inputenc == "auto" or "default", the encoding changes with
the language and must be reset after an eventual language switch in insets
or environments (see #6216).

However, whether we need to do this does not depend on 8-bit TeX vs. LuaTeX
but on the possible use of more than one encoding for the document.
With "nonTeXFonts", the encoding is utf8,
LuaTeX with TeX fonts requires encoding handling similar to 8-bit TeX.

(Additionally, the value of "params.inputenc" could be tested: if it is
not "auto" or "default", we have just one common encoding and could skip
the reset as well.) Not sure how much time this saves, though.
2015-11-09 12:42:48 +01:00
Kornel Benko
b71991f0cc Cmake export tests: Adapt the test machinery to the commit 2fc430d.
Handle this this new sets of font selections properly.
2015-11-09 12:20:57 +01:00
Georg Baum
2fc430d5ae Store both sets of font selections
This is one part of bug 9744: If you toggle between TeX fonts and non-TeX
fonts, the settings of the other choice are no longer thrown away, but stored
and re-activated if you switch back. Most parts of the patch are purely
mechanical (duplicating some BufferParams members), the only non-mechanical
change is in the GUI logic.
2015-11-09 07:36:42 +01:00
Uwe Stöhr
76cf124ab3 splash.lyx: correct a menu name and update file format 2015-11-09 02:00:31 +01:00
Jean-Marc Lasgouttes
32dd44b209 Improve fix to 57615915.
Reset pointer to 0 as Georg suggested in #9804.
2015-11-08 21:53:32 +01:00
Scott Kostyshak
3978fabaad Update the formats of lyxrc.dist.in to 19
In the end, no changes were needed. This was decided by prefs2prefs
for MacOSX and cygwin and by manual inspection for Win32.
2015-11-07 22:45:40 -05:00
Scott Kostyshak
c2064bb955 Add the format line for Mac's lyxrc.dist.in
The file was updated to format 14 in fc22ba16 but the format line
was missing. A missing format line is interpreted as format 0, I
believe, which could lead to incorrect conversion to later formats.
2015-11-07 22:44:47 -05:00
Scott Kostyshak
cf7f1cb764 Copy caveats from RELEASE-NOTES to UPGRADING 2015-11-07 01:49:02 -05:00
Scott Kostyshak
908a42fa46 RELEASE-NOTES: move an item to different category
Also expand a little to mention that users might need to specify
babel if their document has custom code that is specific to babel.
2015-11-07 01:48:52 -05:00
Scott Kostyshak
cd4fc6e2bc prefs2prefs: document removing print support 2015-11-07 01:48:47 -05:00
Scott Kostyshak
22104ac518 Fix a Makfile.am typo preventing "make lyxdist"
Thanks to Vincent.
2015-11-07 01:48:43 -05:00
Scott Kostyshak
3c864eea48 NEWS: add what's new in LyX 2.2 2015-11-07 01:48:36 -05:00
Scott Kostyshak
7a8060d443 NEWS: Update from the 2.1.x branch 2015-11-07 01:48:32 -05:00
Scott Kostyshak
a5c138c4e2 Update ANNOUNCE for LyX2.2.0alpha1 2015-11-07 01:48:20 -05:00
Scott Kostyshak
d7afed6eeb ANNOUNCE: give new path to RELEASE-NOTES
Also a couple of whitespace tweaks.
2015-11-07 01:48:01 -05:00
Richard Heck
2c4ec33591 Move LFUN_CHANGES_TRACK and LFUN_CHANGES_OUTPUT to Buffer.cpp,
and record an undo call. This deals with the problem of marking
the Buffer dirty, as well.

Move LFUN_BUFFER_TOGGLE_COMPRESSION and LFUN_BUFFER_TOGGLE_OUTPUT_SYNC
to Buffer.cpp, and add an undo call.
2015-11-06 23:13:11 -05:00
Richard Heck
ba99ea5b88 The cite engine info is needed by makeDocumentClass().
Fixes both #9797 and #9848.
2015-11-06 15:53:45 -05:00
Jean-Marc Lasgouttes
89dca6d3a9 Be careful about accounting for the right margin
In computeRowMetrics, the right margin of the row shall be taken in account when the text is not left-aligned. Rewrite the code in terms of the available width `w' to avoid this pitfall.
2015-11-06 14:35:21 +01:00
Juergen Spitzmueller
1663dbcbcf Decrease and unify indentation of beamer frame content. 2015-11-06 08:34:00 +01:00
Richard Heck
4f6cc90258 Make shortcuts for master-buffer-X fall back to buffer-X.
Fixes #9842.
2015-11-05 14:14:51 -05:00
Kornel Benko
ca0985baa6 Cmake export tests: Enable test hu/Tutorial_pdf5_systemF 2015-11-05 11:27:32 +01:00
Günter Milde
4d2074b378 Fix encoding-setting of child document with LuaTeX and TeX-fonts 2015-11-05 10:55:43 +01:00
Jean-Marc Lasgouttes
576159156e Avoid using pointer after it has been invalidated
The pointer macroInset points to a vector element. When another element is inserted in this vector, some reallocation occur and the pointer points to a deleted element.

This does not crash LyX by default, but it is bad enough to make valgrind cry.

See ticket #9804.
2015-11-05 10:01:04 +01:00
Jean-Marc Lasgouttes
eb1e85b096 Try to avoid horizontal scrolling with wide insets.
There was a problem with end of paragraph markers. By design, wide insets choose their size without taking in account the marker. This should not lead to unneeded horizontal scrolling.

Part of ticket #9807.
2015-11-05 09:57:42 +01:00
Günter Milde
88d1c790b6 Correct reason for the failure of the math manual export with luatex. 2015-11-05 09:45:04 +01:00
Uwe Stöhr
4db6045a32 EmbeddedObjects.lyx: describe Reflectbox and friends 2015-11-05 00:53:35 +01:00
Georg Baum
60a648c572 Remove unused declarations 2015-11-04 21:41:00 +01:00
Kornel Benko
9495551bfd Cmake tests: Expand for some more suspended testcases
All dvi_texF and pdf5_texF testcases are nov candidates for being suspended.
After commit 279d084, now export/.*/Math_(dvi3|pdf5)_texF fails,
therefore the tests are also inverted.
2015-11-04 20:53:53 +01:00
Kornel Benko
58050bc3ae Update Development.lyx to include 'suspended' cmake tests. 2015-11-04 13:06:14 +01:00
Kornel Benko
a73c2647d0 update sk.po 2015-11-04 12:25:49 +01:00
Jean-Marc Lasgouttes
a5822a2976 Allow quotes in PDF text properties
PDF properties (Author, Title...) need to be quoted properly when writing (normal operation and tex2lyx). Also, reading them requires to use Lexer::getString() directly, because >> uses next(), which does not handle escapes.

Fixes bug #9830.
2015-11-04 12:18:01 +01:00
Kornel Benko
9594f6fc2d Cmake tests: Removed tests from revertedTests.
Due to commit f739c98, some pdf4_texF are now OK
2015-11-04 12:11:29 +01:00
Kornel Benko
538228dd0b Cmake tests: Add 'suspendedTests'
This file holds regular expression to select which of the inverted
export test cases will be suspended.
These tests will not be executed with the call 'ctest -L export'.
2015-11-04 11:44:07 +01:00
Günter Milde
f739c98fd7 Fix some XeTeX + TeX-fonts regressions introduced by fixing #9740.
hyperref expects LICR macros for non-ASCII chars in the PDF Header Information.
As hyperref provides good coverage for \inputencoding{utf8}, we try
this if the current input encoding does not support a character.

With XeTeX, we do not load inputenc and cannot use \inputencoding.
However, utf-8 works out of the box so we can write the content in UTF8.
2015-11-04 11:21:22 +01:00
Uwe Stöhr
43a80ef7df lyx_2_2.py: add a safe guard 2015-11-04 02:18:28 +01:00
Uwe Stöhr
4933399507 lyx_2_2.py: fix the conversion of colored boxes 2015-11-04 01:36:39 +01:00
Uwe Stöhr
e52a4b738c lyx2lyx/lyx_2_2.py: remove unused code 2015-11-04 01:22:03 +01:00
Uwe Stöhr
62a69584e6 achemso.layout: add a flex inset
- this one is in achemso since version 3.8

- fileformat change
2015-11-04 01:18:13 +01:00
Uwe Stöhr
c0b815bf62 Development.lyx: describe how to update the tex2lyx references on Windows 2015-11-04 01:15:52 +01:00
Enrico Forestieri
1c94995aef Fix bug ##9627: Make the document name available to preview insets
The \jobname macro is redefined for the preview snippets such that
it contains the name of the document without extension. This is
harmless because the moment it is redefined, TeX has already chosen
the name of the output and log files. On the other hand, any use
of \jobname in preview snippets is now consistent with what one
obtains after exporting and compiling by hand.
2015-11-04 00:36:41 +01:00
Uwe Stöhr
cb51493f94 EmbeddedObjects.lyx: describe rotate boxes properly
- We have now a module for them
(the description of scaled boxes etc will follow soon)
2015-11-04 00:13:45 +01:00
Enrico Forestieri
76dfde36d4 Fix bugs #2645 (export BIBINPUTS) and #6634 (Better support for external files in ERT)
Other than BIBINPUTS, also BSTINPUTS and TEXFONTS are exported.
They do not replicate the setting for TEXINPUTS but are set such
that the current dir (i.e., the temp dir) and the document dir
are also searched for bibtex and fonts related files.
2015-11-03 23:28:36 +01:00
Georg Baum
4db3bd4e0a Fix shortcut conflict
This was introduced by d56980da95. Thanks Günter for noticing.
2015-11-03 22:02:06 +01:00
Guillaume Munch
a0783e1527 Amend f441590c 2015-11-03 15:27:25 +00:00
Günter Milde
338f0174cf Fixme for the partial patch for #9740 (XeTeX with TeX fonts), 2015-11-03 12:29:07 +01:00
Guillaume Munch
21eea1e77a Capitalization 2015-11-03 03:54:52 +00:00
Guillaume Munch
f441590c8e Add "Open Containing Directory" button to the log dialog (#9211, #9834)
It takes the place of the "Copy to Clipboard" button which was redundant.
2015-11-03 03:54:52 +00:00
Enrico Forestieri
5920b231f4 Update it.po 2015-11-03 01:25:01 +01:00
Uwe Stöhr
279d084946 Math.lyx: replace tables by formal ones - final part 7/7 2015-11-03 00:23:41 +01:00