Commit Graph

182 Commits

Author SHA1 Message Date
Juergen Spitzmueller
c4ed79bba6 fixltx2e must be loaded as early as possible
Fixes: #9452, #9361

This reverts the 'fix' to #7233, which must be solved differently.
2015-03-17 14:16:50 +01:00
Jean-Marc Lasgouttes
f3c2bfd495 add "Keywords" to lyx.desktop file
Fixes bug #9414.
2015-03-17 10:20:51 +01:00
Enrico Forestieri
1fb3f8b4e0 Fix bug #9453
This was due to a problem with the QProcess parser.
See #9453 for details.
2015-03-16 20:21:49 +01:00
Jean-Marc Lasgouttes
a50c0f7d13 Add proper importers for Sweave and knitr.
Fixes bug #8734.
2015-03-16 19:34:38 +01:00
Juergen Spitzmueller
b7d2169413 Phantom is fragile (#9456) 2015-03-16 17:25:15 +01:00
Juergen Spitzmueller
e715055373 Set the logic straight 2015-03-16 10:57:31 +01:00
Juergen Spitzmueller
f790bb046e Properly define MultiPar status of caption in the layout definition.
Also remove hardcoded paragraph break disabling.
2015-03-12 09:54:01 +01:00
Georg Baum
141f13a9cc Remove unsupported macros from autocompletion
We have some math macros that exist only because LyX can display them easily,
but which require user preamble code. These commands should not appear in
autocompletion, they are only there to make the formulas of users who actually
need these symbols and know what to put into the preamble more beautiful.
2015-03-10 21:04:24 +01:00
Jean-Marc Lasgouttes
226c6f6b17 Take in account the parent's getStatus in macro templates
This avoids invoking the insert space dialog instead of the math version. Thereafter, spaces are correctly inserted inside macro templates.

This is the last part of the fix to #9432.
2015-03-10 17:23:10 +01:00
Jean-Marc Lasgouttes
f620de8036 Main argument of a subfloat is not a moving argument
Fixes bug: #9421
2015-03-09 17:53:03 +01:00
Enrico Forestieri
0e274e06d8 Update cygwin script.
Recent versions of the cygwin X11 server come with a startup script
that explicitly uses '-nolisten tcp' for improved security. This means
that mentioning a host part in the DISPLAY variable precludes correct
operation. So, leave blank the host part such that only local connections
are attempted. Even if a user can override this setting in the own
~/.lyxprofile, novice users (and even experienced ones, at first) would be
probably confused by the "Error: Can't open display: localhost:0" message
and thus it is better to make this work out of the box.
2015-03-05 00:01:40 +01:00
Jean-Marc Lasgouttes
997cc6a774 Record undo properly when changing multiple paragraphs parameters
Fixes bug 9437.
2015-03-01 19:49:47 +01:00
Uwe Stöhr
76b1deaf88 French MultilingualCaptions.lyx: new translation by Jean-Pierre 2015-02-27 00:40:00 +01:00
Juergen Spitzmueller
30efd4f636 Check for ugm font availability
Fixes: #9429
2015-02-24 16:08:55 +01:00
Uwe Stöhr
67c9831337 status.21x: add updated translations 2015-02-24 01:25:28 +01:00
Georg Baum
609d41bb37 Fix missing symbols in math completer
The math icons for the symbol image in the math completer were hardcoded to the
command names. This is wrong for some icons for various reasons, e.g. the case
insensitivity of windows file systems. Therefore we have to use the replacement
list which is also used for the toolbar icons. Bug #3538 is not closed because
of this problem, but IMHO it has nothing to do with this bug, it is a more
general one.
2015-02-15 21:00:03 +01:00
Enrico Forestieri
d912b70854 Fix bug #9392: Matrix widget keyboard navigation broken 2015-02-15 00:50:38 +01:00
Georg Baum
1be2b895d7 Write fixed encoding to LyX file (bug #9178)
If the user gave the -fixedenc argument to tex2lyx then set that encoding as
LaTeX input encoding in the generated LyX file. Otherwise, included .bib files
could be interpreted using a wrong encoding.
2015-02-14 10:45:13 +01:00
Georg Baum
7b53735bb3 Add low-res pdf export as suggested by James
As discussed on the list, but I did not need to create two new pdf formats
since any given document either uses TeX fonts or not. For the same reason
I also added an additional converter to PDF (cropped).
2015-02-14 10:37:32 +01:00
Juergen Spitzmueller
5a21d3f0f8 Fix reversion of beamer description overlay args 2015-02-13 18:34:35 +01:00
Juergen Spitzmueller
8b17b25764 Fix conversion of beamer block arguments where the overlay argument and the closing title argument bracket share the same ERT
Fixes: #9411
2015-02-13 16:24:00 +01:00
Juergen Spitzmueller
e85eb8b833 Fix conversion of frame ends when frame is nested in inset
Fixes: #9409
2015-02-13 16:21:00 +01:00
Georg Baum
edc1ce4068 Fix unwanted curly braces in formula (bug #8679)
There was an unsymmetry between reading and writing: InsetMathGrid::eolString()
adds curly braces if the first cell of the next line starts with [ to prevent
misparsing as optional argument of \\. These braces were not removed on reading.

Thanks to Enrico, who noticed that the previous fix did not take into account
the case of nonempty length argument + the next line beginning with [.
Now the parsing is exactly the inverse of InsetMathGrid::eolString().
2015-02-12 21:36:01 +01:00
Georg Baum
15d1349847 Fix wrong listings preamble encoding (bug #9382)
The listings package employs some dirty tricks internally, therefore it does
not work with utf8 encoding, but requires fixed width encodings. This version
of the fix uses ugly hardcoding instead of a layout file format change, so it
could be backported if needed.
2015-02-12 21:29:54 +01:00
Georg Baum
8a70d0ff9a Fix viewer file paths on windows (bug #8892)
Some applications do not accept forward slashes, so call external viewers
and editors with backward slashes which is the usual convention under windows.
2015-02-12 21:22:21 +01:00
Uwe Stöhr
13ad138be4 status.21x: add a fix 2015-02-12 00:52:53 +01:00
Uwe Stöhr
6cd6de3eb5 configure.py: quote path to python
this fixes a path issue unveiled while inspecting bug #8478
2015-02-11 21:52:36 +01:00
Juergen Spitzmueller
2d2c0a99c3 Fix output encoding information for non-TeX fonts XeTeX/LuaTeX on preview pane
Fixes: #8919
2015-02-10 11:26:15 +01:00
Jean-Marc Lasgouttes
53ed6d3d46 Fixes to InsetCaption \protect-ion
* \caption does not need to be protected in general
* the contents of \caption arguments need to be protected, though.

All styles related to caoption inset have been audited and updated.

The special casing of captions in longtables has been removed, since there is no special case.

Fixes bug: #9177
2015-02-10 09:52:22 +01:00
Uwe Stöhr
8599ac1e87 aastex.layout: fix name and hint of \figcaption 2015-02-10 00:17:13 +01:00
Uwe Stöhr
f3dc9d339c symbols: add support for the math commands \lvert etc.
add support for the math commands \lvert, \rvert, \lVert, and \rVert
fixes bug #3538
2015-02-09 23:53:39 +01:00
Richard Heck
1163ea4369 Back to development mode. 2015-02-09 16:54:27 -05:00
Uwe Stöhr
9c046e2fbf status.21x: fix typos and cosmetics
- move crash fixes to the top of each section (as we did so in the past)
- fix few typos
2015-02-09 01:36:00 +01:00
Uwe Stöhr
a34b186647 status.21x: add recent updates translations 2015-02-01 05:03:18 +01:00
Georg Baum
2c5d4d83a2 Fix pasting insets into math (bug #9302)
The problem was that the conversion to plain text (which is used as an
intermediate step) requires for some insets a valid buffer pointer, but
insets in the cut stack do not have one. Now we use the same temp buffer
business as for copying to the external clipboard.
2015-01-21 22:27:06 +01:00
Richard Heck
8d19739b43 Whitespace. 2015-01-13 11:36:58 -05:00
Georg Baum
9ebc325be3 Work around MSVC warning
The statement
	if (pos < from + lyxrc.completion_minlength)
triggers a signed vs. unsigned warning. I don't know why this happens, it
could be a MSVC bug, or related to LLP64 (windows) vs. LP64 (unix)
programming model, or the C++ standard might be ambigous in the section
defining the "usual arithmetic conversions". However, using a temporary
variable is safe and works on all compilers.
2015-01-09 11:54:05 +01:00
Uwe Stöhr
7cdd083a73 fr.po: translation updates from Jean-Pierre 2015-01-07 02:33:49 +01:00
Enrico Forestieri
383334c1fe Fix bug #9342: LaTeX build get stuck for unconventional path name
The reason being that the TEXINPUTS path list was not quoted on Windows.
This was no problem with spaces but some special characters are
interpreted by the shell and can cause problems. In this particular
case, the '&' character was being interpreted as a command separator.
2015-01-06 22:06:46 +01:00
Enrico Forestieri
855f24e063 Fix bug #9319: Problems with space inside math and textrm. 2015-01-06 21:50:58 +01:00
Enrico Forestieri
69179c08e7 Fix bug #7970: space disappears from equation when reopening LyX file. 2015-01-06 19:57:54 +01:00
Jean-Marc Lasgouttes
1997e8b817 Reimplement inset-select-all in a generic way
There are 3 possible actions (in order)
* select current cell
* select all calls of inset
* select the inset from outside (in the containing inset)

C-a is now bound to inset-select-all

C-M-a is bound to the global "select all". The
reason for this change is that selecting an inset
is a more common operation that selecting an entire
document.

This patch is the result of discussion on #7727.
2015-01-06 11:05:49 +01:00
Georg Baum
f067babf6e Fix multithreading crash (bug #9366)
This minimal fix makes the crash go away on my machine. A much more complete
fix is in master (and will be futher extended), but for 2.1.x we'll do only
minimal changes.
2015-01-05 21:44:37 +01:00
Juergen Spitzmueller
450288b130 Fix aspectratio UI
Fixes: #9357
2015-01-04 18:07:05 +01:00
Georg Baum
7aab315c81 Fix parsing of verbatim options (bug #9113)
Parser::verbatimOption() did swallow backslashes previously. The similar code
in Parser::verbatim_item() was already correct.
2015-01-03 20:51:02 +01:00
Georg Baum
151abe293e Parse post command argument insets (bug #8473)
This is now very easy with the new InsetArgument infrastructure.
2015-01-03 18:14:20 +01:00
Georg Baum
8b75ce5830 Fix misparsing of \textgreek without polyglossia
\textgreek was interpreted as the polyglossia version even if polyglossia
was not used. Now the symbols defined in unicodesymbols are detected correctly
and converted to unicode, while others are converted to ERT (bug #8553).
2015-01-03 17:27:22 +01:00
Georg Baum
202e848a0e Parse tikzpicture env. correctly (bug #9011) 2015-01-03 17:21:14 +01:00
Georg Baum
9c54ee6f0d Handle unknown table column specifiers (bug #9311)
Previously tex2lyx did ignore table columns if the column specifier was
unknown. This can lead to data loss, and now it does not ignore these columns,
but assumes that the column specifiers use only once character. This can still
lead to data loss, but less often.
2015-01-03 17:06:39 +01:00
Georg Baum
dbbc4239a6 Fix HTML output of \gg, \ll and \ne (bug #9372)
The fix consists of three parts: The fix for \ll and \gg, the needed
infrastructure to assign HTML entities to global math macros, and the actual
fix for \ne and \neq.
2014-12-30 13:39:52 +01:00