]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoMinor amendment to b95262f48772
Juergen Spitzmueller [Sat, 10 Sep 2016 08:32:40 +0000 (10:32 +0200)]
Minor amendment to b95262f48772

Just for consistency.

7 years agoAvoid duplicating mode changing commands
Enrico Forestieri [Sat, 10 Sep 2016 00:39:57 +0000 (02:39 +0200)]
Avoid duplicating mode changing commands

7 years agoEnsure proper mode in mathed
Enrico Forestieri [Sat, 10 Sep 2016 00:07:47 +0000 (02:07 +0200)]
Ensure proper mode in mathed

A math-mode command entered in a text-mode environment is wrapped
in an ensuremath inset, as well as a text-mode command entered in a
math-mode environment is wrapped in a text inset. Who doesn't like
the extra insets can always dissolve them and rely on the wrapping
performed on export.

7 years agoTest and fix lib/unicodesymbols for Latin, Greek, and Cyrillic.
Günter Milde [Thu, 8 Sep 2016 21:21:33 +0000 (23:21 +0200)]
Test and fix lib/unicodesymbols for Latin, Greek, and Cyrillic.

7 years agoMath definitions of Greek symbol variants for lib/unicodesymbols
Günter Milde [Thu, 8 Sep 2016 19:10:49 +0000 (21:10 +0200)]
Math definitions of Greek symbol variants for lib/unicodesymbols

+ test sample for Greek and Coptic Unicode block

7 years agoFix data loss with [ in first cell of aligned
Georg Baum [Thu, 8 Sep 2016 20:38:33 +0000 (22:38 +0200)]
Fix data loss with [ in first cell of aligned

If the first character in the first cell of an aligned math environment is
'[', and the environment does not use top or bottom vertical alignment,
then LyX did write the '[' unprotected so that it got misinterpreted as
optional argument, both when reading the .lyx file in LyX and when reading
the .tex file in LaTeX => data loss!
The fix is to output an empty optional argument in this case, which is
interpreted as default alignment both by LyX and LaTeX. It would also be
possible to output \[ in the first cell instead, but this would be more
difficult to implement.

7 years agoPrepare for mutlicolumn lines
Georg Baum [Thu, 8 Sep 2016 20:01:22 +0000 (22:01 +0200)]
Prepare for mutlicolumn lines

The \multicolumn command allows to set vertical lines for individual rows.
These are not yet displayed, but if they are supported one day, the code in
a27ff13663 needs to be adjusted. This change hints at the adjustment.

7 years agoSet vertical lines in math arrays correctly on Y axis
Jean-Marc Lasgouttes [Mon, 5 Sep 2016 09:29:44 +0000 (11:29 +0200)]
Set vertical lines in math arrays correctly on Y axis

This is a fixup to commit 39329935. The two fixes are
* add forgotten offset `y' when drawing the line
* in order to have a continuous vertical line, draw from the offset of
  the previous row.

Fixes bug #10363.

7 years agoSet window title according to platform UI
Jean-Marc Lasgouttes [Tue, 6 Sep 2016 09:17:10 +0000 (11:17 +0200)]
Set window title according to platform UI

The window title is built from the current file name and its
mofidication state. We use our own code instead of the automatic title
bar provided when windowFileName() is set because

1/ Qt does not keep the full path name
2/ Qt does not yield a nice application name

The "read only" and "version control" status are shown in the status bar:

* for read only we use the tab read only emblem (with the right size)
* for version control, we show the name of the backend (using a new
  vcname() method of the backend).

The iconText() of the view is not updated anymore, since this is
deprecated in Qt5.

7 years agoSanitize Ref dialog validation.
Juergen Spitzmueller [Thu, 8 Sep 2016 13:04:58 +0000 (15:04 +0200)]
Sanitize Ref dialog validation.

Fixes: #10376
7 years agoUpdate docs wrt Separator
Juergen Spitzmueller [Thu, 8 Sep 2016 08:29:21 +0000 (10:29 +0200)]
Update docs wrt Separator

7 years agopartly Revert "fr/UserGuide: remove spurious language switch in an index inset."
Uwe Stöhr [Wed, 7 Sep 2016 22:52:45 +0000 (00:52 +0200)]
partly Revert "fr/UserGuide: remove spurious language switch in an index inset."

Please fix at first the versions in branch since this is the working copy delivered with LyX.
Also please keep the fileformat unless you need to document a new feature that requires a new fileformat.

7 years agoctests: More inversions
Günter Milde [Wed, 7 Sep 2016 21:22:14 +0000 (23:22 +0200)]
ctests: More inversions

* Polyglossia + LuaTeX + \verb bug with Cyrillic and Greek
* PDF(LuaTeX) Intro.lyx (reports png without bounding box)

7 years agoctests: one more languagenesting sample
Günter Milde [Tue, 6 Sep 2016 21:06:34 +0000 (23:06 +0200)]
ctests: one more languagenesting sample

7 years agofr/UserGuide: remove spurious language switch in an index inset.
Günter Milde [Tue, 6 Sep 2016 19:42:06 +0000 (21:42 +0200)]
fr/UserGuide: remove spurious language switch in an index inset.

This led to errors when compiling with polyglossia (and non-TeX fonts).
A minimal (currently non-compiling) test sample is kept in autotests/export/
and inverted in suspiciousTests.

7 years agoctests: edit test sample for bug #10371
Günter Milde [Tue, 6 Sep 2016 18:35:45 +0000 (20:35 +0200)]
ctests: edit test sample for bug #10371

7 years agoFix compilation of attic/id_UserGuide.lyx
Scott Kostyshak [Wed, 7 Sep 2016 18:49:15 +0000 (14:49 -0400)]
Fix compilation of attic/id_UserGuide.lyx

Change an ERT \bf{ to \textbf{.

Consistent with e.g. 0e49231b.

7 years agoid_UserGuide: Update LyX format for next commit
Scott Kostyshak [Wed, 7 Sep 2016 18:47:09 +0000 (14:47 -0400)]
id_UserGuide: Update LyX format for next commit

7 years agoctests: "nonstandard" tests are now listed in unreliableTests
Günter Milde [Tue, 6 Sep 2016 14:46:27 +0000 (16:46 +0200)]
ctests: "nonstandard" tests are now listed in unreliableTests

... under the sublabel "nonstandard".

7 years agominor edit of development guide
Günter Milde [Tue, 6 Sep 2016 14:44:36 +0000 (16:44 +0200)]
minor edit of development guide

7 years agoctests: invert tests due to Polyglossia + LuaTeX + verb bug with Cyrillic
Günter Milde [Tue, 6 Sep 2016 14:43:41 +0000 (16:43 +0200)]
ctests: invert tests due to Polyglossia + LuaTeX + verb bug with Cyrillic

7 years agoRemove duplicate context menu item
Juergen Spitzmueller [Tue, 6 Sep 2016 11:15:55 +0000 (13:15 +0200)]
Remove duplicate context menu item

Fixes: #10368
7 years agoinstaller: major third-party updates
Uwe Stöhr [Mon, 5 Sep 2016 21:40:43 +0000 (23:40 +0200)]
installer: major third-party updates

7 years agoAdd xlsx format
Georg Baum [Mon, 5 Sep 2016 20:52:38 +0000 (22:52 +0200)]
Add xlsx format

We do already have docx, but xlsx was missing. This is a separate format
because of the MIME type. nd because some users might need converters which
can only handle one format. Now the spreadsheet template does not hide the
fact anymore that it can deal with xlsx files as well.

7 years agoFix filter filter regex
Georg Baum [Mon, 5 Sep 2016 20:49:59 +0000 (22:49 +0200)]
Fix filter filter regex

Now the external material file dialog shows the file types defined in the
template again. Before this fix it did only show "All files (*)".
I don't know what the old syntax was supposed to do or whether it ever worked
with boost::regex, but with std::regex the new one is correct.

7 years agoAmend commit e194c9ce279
Jean-Marc Lasgouttes [Mon, 5 Sep 2016 09:04:11 +0000 (11:04 +0200)]
Amend commit e194c9ce279

As noted in the log, this commit was a bit radical and needs some
adjustments (which was expected, actually).

Let InsetText do their own background drawing.

Fixes bug #10359.

7 years agoAmend 97b9e81ceef7aae
Juergen Spitzmueller [Sun, 4 Sep 2016 15:44:47 +0000 (17:44 +0200)]
Amend 97b9e81ceef7aae

\@ifundefined is an If-Then-ELSE construct.

7 years agoFrench doc files: port last changes to master
Uwe Stöhr [Sat, 3 Sep 2016 20:19:46 +0000 (22:19 +0200)]
French doc files: port last changes to master

7 years agoRemove English traces in IPA inset that make XeTeX fail.
Juergen Spitzmueller [Sat, 3 Sep 2016 14:57:43 +0000 (16:57 +0200)]
Remove English traces in IPA inset that make XeTeX fail.

7 years agoctests: xy package has issue with newest LuaTeX
Scott Kostyshak [Sat, 3 Sep 2016 01:21:36 +0000 (21:21 -0400)]
ctests: xy package has issue with newest LuaTeX

LuaTeX export of docs with xy package are now marked as having TeX
issues. Hopefully these will be fixed in a TL package update.

7 years agoExit with error if child exits with error (#10188)
Scott Kostyshak [Fri, 2 Sep 2016 21:10:41 +0000 (17:10 -0400)]
Exit with error if child exits with error (#10188)

Before, it could have been the case that

  lyx -e pdf2 file.lyx

had exit code 0 even though file.lyx includes a file that exits with
error. If compiled in the GUI a warning was given, but from the
command line exit code it would seem there was no problem. The exit
code for this case is now non-zero and the word "Warning" is now
removed from the message because it should be treated as an error.

An exception is thrown from InsetInclude and is caught in
Buffer::makeLaTeXFile() and added to the error list.

The (similar) use case at #8840 is also fixed by this commit.

7 years agoctests: ignore obsolete aastex.cls
Scott Kostyshak [Fri, 2 Sep 2016 15:25:35 +0000 (11:25 -0400)]
ctests: ignore obsolete aastex.cls

aastex.cls is obsolete and replaced by aastex6.cls.

This is consistent with how we treat the obsolete latex8.sty.

7 years agoctests: mark failing LyXHTML tests as "lyxbugs"
Scott Kostyshak [Fri, 2 Sep 2016 03:26:03 +0000 (23:26 -0400)]
ctests: mark failing LyXHTML tests as "lyxbugs"

For more information, see #10355.

7 years agoctests: uninvert three tests
Scott Kostyshak [Fri, 2 Sep 2016 02:56:11 +0000 (22:56 -0400)]
ctests: uninvert three tests

These exports now succeed, and manual inspection of the output
confirms there are no obvious problem.

7 years agohe/splash.lyx: mark \LaTeX{} insets as English
Scott Kostyshak [Thu, 1 Sep 2016 21:37:30 +0000 (17:37 -0400)]
he/splash.lyx: mark \LaTeX{} insets as English

This makes sure they're output in the correct direction, consistent
with the previous commit (although this does not change the exit
code of the export).

For more details, see:
https://www.mail-archive.com/search?l=mid&q=20160828233923.guhveaqxdxh356nm%40steph

7 years agohe/splash.lyx: fix compilation
Scott Kostyshak [Thu, 1 Sep 2016 21:32:16 +0000 (17:32 -0400)]
he/splash.lyx: fix compilation

We need to mark the LyX inset as English to avoid "missing glyph"
errors.

For more details, see:
https://www.mail-archive.com/search?l=mid&q=20160828233923.guhveaqxdxh356nm%40steph

7 years agoctests: update tests to reflect lualatex fixes
Scott Kostyshak [Thu, 1 Sep 2016 21:12:09 +0000 (17:12 -0400)]
ctests: update tests to reflect lualatex fixes

europeCV and modernCV examples can now be exported to PDF using
LuaTeX. For the specific output that was fixed, look at the diff and
see the description in suspiciousTests that was removed by this
commit. The output was checked manually and appears fine. These
tests are thus "uninverted".

Exporting those examples to DVI with LuaTeX does not exit with
error, but the output drops characters with accents. Thus, these
tests are now marked with the "wrong_output" label. I reported this
issue on the LuaTeX mailing list at [1], but since DVI export is not
given high priority, I don't expect much action.

Note that these changes reflect an updated TeX Live 2016
installation.

[1]
https://www.mail-archive.com/search?l=mid&q=20160831134006.4fewxothddqfeyw4%40steph

7 years agoRemove unused 'glue' parameter
Jean-Marc Lasgouttes [Tue, 30 Aug 2016 15:20:21 +0000 (17:20 +0200)]
Remove unused 'glue' parameter

It was probably useful at some time, but not now.

7 years agoRemove unused struct members
Jean-Marc Lasgouttes [Tue, 30 Aug 2016 15:06:13 +0000 (17:06 +0200)]
Remove unused struct members

Interestingly, cppcheck detected that they were not initialized (see
8a047a41), but not that they were unused.

7 years agoImprove status check of LFUN_BUFFER_ZOOM_{OUT,IN}
Scott Kostyshak [Tue, 19 Jul 2016 05:44:39 +0000 (01:44 -0400)]
Improve status check of LFUN_BUFFER_ZOOM_{OUT,IN}

buffer-zoom-out can actually zoom in (by giving a positive number as
the argument), so it should only be disabled at the minimum zoom
level if it is indeed zooming out.

Similarly, buffer-zoom-in can zoom out, so it should be disabled if
the user is at the minimum zoom and it is called to zoom out.

This commit amends 8884c404.

7 years agoCmake build: Add format V2.2 to export tests
Kornel Benko [Mon, 29 Aug 2016 16:14:37 +0000 (18:14 +0200)]
Cmake build: Add format V2.2 to export tests

7 years agoAmend b583fb26e89
Jean-Marc Lasgouttes [Mon, 29 Aug 2016 10:03:33 +0000 (12:03 +0200)]
Amend b583fb26e89

It failed in the case where a selection already existed (the anchor would be wrongly reset).

7 years agoAmend previous commit, 0e49231b
Scott Kostyshak [Mon, 29 Aug 2016 00:08:40 +0000 (20:08 -0400)]
Amend previous commit, 0e49231b

Thanks to Guillaume.

7 years agoConvert deprecated '\rm' to '\textrm' in examples
Scott Kostyshak [Sun, 28 Aug 2016 23:12:20 +0000 (19:12 -0400)]
Convert deprecated '\rm' to '\textrm' in examples

This change fixes the export of our FeynmanDiagrams.lyx example
files on the latest TeX Live 2016.

The IJMP(C|D).lyx examples compiled before the change but might as
well convert these instances of '\rm' also.

The changes were made with the help of the following command:

  find ./ -iregex .*lyx -exec sed -i 's/\\rm /\\textrm /g' {} \;

and the resulting diff was confirmed manually.

This commit is consistent with 3cecd4d3.

7 years agoAction.cpp: replace a reference with a shared_ptr
Guillaume Munch [Wed, 3 Aug 2016 21:06:20 +0000 (22:06 +0100)]
Action.cpp: replace a reference with a shared_ptr

Replace the member reference to FuncRequest in Action.cpp with a
shared_ptr. Compared to copying the FuncRequest, the shared_ptr has two
advantages:

* Recreating the menu each time creates a lot of new actions, so we avoid a lot
  of copies.

* FuncRequest can remain forward-declared in Action.h.

7 years agoChange "Format" into "Formats"
Guillaume Munch [Sun, 28 Aug 2016 15:51:15 +0000 (16:51 +0100)]
Change "Format" into "Formats"

The plural form seems more appropriate and the tag [[output]] is added for
disambiguation (e.g. for the French translation).

7 years agoproducesOutput() should not be redeclared as producesOutput(bool).
Richard Heck [Sun, 28 Aug 2016 04:02:43 +0000 (00:02 -0400)]
producesOutput() should not be redeclared as producesOutput(bool).

7 years agoTrivial clean-up
Guillaume Munch [Sun, 28 Aug 2016 01:34:34 +0000 (02:34 +0100)]
Trivial clean-up

7 years agoFix Unicode use in Format's prettyname
Guillaume Munch [Sun, 28 Aug 2016 00:27:37 +0000 (01:27 +0100)]
Fix Unicode use in Format's prettyname

The field prettyname can accept Unicode and therefore must be parsed into a
docstring.

Little simplification of the code on the way.

* For other fields, either a validator should be set to prevent non-ascii input
  in the preferences, or they should be transformed into docstring too.

7 years agoFix the compare_locale function by relying on Qt's (#9030)
Guillaume Munch [Sun, 28 Aug 2016 00:25:41 +0000 (01:25 +0100)]
Fix the compare_locale function by relying on Qt's (#9030)

7 years agoAdd more lib/symbols unicodemapping
Georg Baum [Sat, 27 Aug 2016 09:52:31 +0000 (11:52 +0200)]
Add more lib/symbols unicodemapping

There are still many math symbols in lib/symbols that lack a corresponding
entry in lib/unicodesymbols, although a clear mapping exists. This commit
adds some of them (not all yet). In the future we should probably move the
information from both files into one database.

7 years agoUpdate it.po
Enrico Forestieri [Fri, 26 Aug 2016 17:05:04 +0000 (19:05 +0200)]
Update it.po

7 years agoAdd a wrong_output ctest for mixing inTitle #10347
Scott Kostyshak [Fri, 26 Aug 2016 15:35:19 +0000 (11:35 -0400)]
Add a wrong_output ctest for mixing inTitle #10347

As of 0b1cf133 we now warn in the GUI of this issue, but there is a
discussion about whether we should change our LaTeX output and allow
for the workflow of mixing inTitle layouts. For more information,
see #10347.

7 years agoUpdate sk.po
Kornel Benko [Fri, 26 Aug 2016 10:54:44 +0000 (12:54 +0200)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Fri, 26 Aug 2016 10:49:41 +0000 (12:49 +0200)]
de.po

7 years agoImplement proper dialog titles in InsetParamsDialogs
Juergen Spitzmueller [Fri, 26 Aug 2016 09:35:12 +0000 (11:35 +0200)]
Implement proper dialog titles in InsetParamsDialogs

Fixes: #10329
7 years agoFix \@ifundefined check for covexample(s)
Juergen Spitzmueller [Fri, 26 Aug 2016 08:45:15 +0000 (10:45 +0200)]
Fix \@ifundefined check for covexample(s)

Fixes: #10340
7 years agoDo not set layout for no-op paragraph break
Jean-Marc Lasgouttes [Wed, 24 Aug 2016 13:29:17 +0000 (15:29 +0200)]
Do not set layout for no-op paragraph break

When breaking paragraph in an empty top-level paragraph, nothing
happens on screen but yet there is an undo step because the layout is
reset to what it already was.

Avoid this case.

Fixes bug #10089.

7 years agoMove correctly the end of proof marker when row is large
Jean-Marc Lasgouttes [Tue, 23 Aug 2016 15:43:38 +0000 (17:43 +0200)]
Move correctly the end of proof marker when row is large

This was a regression from 2.1.x in LtR mode, and it never worked correctly in RtL mode.

Fixes bug #10344.

7 years agoReset anchor before selecting with S-button1
Jean-Marc Lasgouttes [Tue, 23 Aug 2016 10:22:35 +0000 (12:22 +0200)]
Reset anchor before selecting with S-button1

7 years agoLet M-x give focus to minibuffer when it is already open
Jean-Marc Lasgouttes [Fri, 19 Aug 2016 12:53:31 +0000 (14:53 +0200)]
Let M-x give focus to minibuffer when it is already open

7 years agoCorrect library name of installed hunspell framework (it does not match the patch...
Stephan Witt [Mon, 22 Aug 2016 07:02:50 +0000 (09:02 +0200)]
Correct library name of installed hunspell framework (it does not match the patch version number)

7 years agoRemove unused variable warning and remove preprocessor switch.
Guillaume Munch [Sat, 20 Aug 2016 15:05:41 +0000 (16:05 +0100)]
Remove unused variable warning and remove preprocessor switch.

7 years agoQuote filenames used for forward-search with SumatraPDF
Enrico Forestieri [Sun, 21 Aug 2016 21:33:01 +0000 (23:33 +0200)]
Quote filenames used for forward-search with SumatraPDF

Single quotes are special to our parser and must be either escaped or
quoted if they are part of a filename, otherwise they are stripped out.

See #10342.

7 years agoFix regression of 88603655
Georg Baum [Sun, 21 Aug 2016 18:34:40 +0000 (20:34 +0200)]
Fix regression of 88603655

The XHTML entries were added in the wrong field, if they are given we need
extra xhtml requires. The order is inconsistent, there are discussions on the
list about that but for now I'll use the existing order to fix the export tests.

The format of the lib/symbols file does not support "" for empty strings.
One would have to use x for fields that are not set (this is a hack), but
actually we know how to fill the extra field.

7 years agoAdd check for existance of Qt translations directory
Stephan Witt [Sun, 21 Aug 2016 15:50:48 +0000 (17:50 +0200)]
Add check for existance of Qt translations directory

7 years agoUse only one file for dummy implementations
Enrico Forestieri [Fri, 19 Aug 2016 22:41:04 +0000 (00:41 +0200)]
Use only one file for dummy implementations

7 years agoUpdate sk.po
Kornel Benko [Fri, 19 Aug 2016 20:54:17 +0000 (22:54 +0200)]
Update sk.po

7 years agoAdd missing entries in syntax.default
Jean-Marc Lasgouttes [Fri, 19 Aug 2016 14:02:36 +0000 (16:02 +0200)]
Add missing entries in syntax.default

These are: \cellcolor, columncolor and rowcolor

Fix \rotatebox

Remove ",," in argument of color command, this is actually not used.

7 years agoRemove horizontal spacing around previews
Jean-Marc Lasgouttes [Thu, 21 Jul 2016 18:16:27 +0000 (20:16 +0200)]
Remove horizontal spacing around previews

This concerns the preview version of InsetPreview and InsetIPA.

Fixes bug #10304.

7 years agoSimplify menus when there is only one caption type
Jean-Marc Lasgouttes [Fri, 19 Aug 2016 12:01:00 +0000 (14:01 +0200)]
Simplify menus when there is only one caption type

This removes the submenu indirection in Insert and the type changer in
contextual menu. Interestingly, the code was there, but it did not
work at all.

7 years agoCmake build: Add verbose variable to some dummy_functions.cpp
Kornel Benko [Fri, 19 Aug 2016 09:15:10 +0000 (11:15 +0200)]
Cmake build: Add verbose variable to some dummy_functions.cpp

7 years agoWarn in GUI when mixing Title and InTitle layouts
Scott Kostyshak [Wed, 17 Aug 2016 02:09:57 +0000 (22:09 -0400)]
Warn in GUI when mixing Title and InTitle layouts

Since we process layouts sequentially, we export LaTeX code for the
title once we arrive to a layout that has InTitle false. If the
document then later has a layout with InTitle true, we do not
(currently) go back to add it to the title and just output it
in-place. We previously warned with LYXERR0, but since this can
cause missing or unexpected output we now warn in the GUI.

For more information, see the following lyx-devel thread:
https://www.mail-archive.com/search?l=mid&q=a65ae226-d3bd-8fc5-a93b-7bb23f1cda82%40lyx.org

7 years agoFix exit code from runCommand on Windows
Enrico Forestieri [Wed, 17 Aug 2016 20:58:13 +0000 (22:58 +0200)]
Fix exit code from runCommand on Windows

On Windows, runCommand has never returned the exit code of the
spawned process but the result of correctly closing the input handle.

Fixes #10327

7 years agoAdd verbose option
Enrico Forestieri [Wed, 17 Aug 2016 20:32:14 +0000 (22:32 +0200)]
Add verbose option

Using the option -v (--verbose) all spawned commands are print
on the terminal. Note that this was done by default on previous
versions.

7 years agoUse proper QPalette::NoRole enum value instead of our own
Jean-Marc Lasgouttes [Wed, 17 Aug 2016 10:10:25 +0000 (12:10 +0200)]
Use proper QPalette::NoRole enum value instead of our own

7 years agoA more radical approach to inset background painting
Jean-Marc Lasgouttes [Wed, 17 Aug 2016 09:21:38 +0000 (11:21 +0200)]
A more radical approach to inset background painting

Now by default all insets paint their own background when needed. This
means that 63cf3297 and part of 9940acc5 can be reverted.

To avoid extra painting, background drawing is disabled for
InsetCommand and InsetCollapsable. These insets draw background as
part of their normal drawing activity.

This will avoid drawing artifacts with InsetNewpage, InsetVSpace and
probably some others.

7 years agoA PainterInfo variable should be named `pi'.
Jean-Marc Lasgouttes [Tue, 16 Aug 2016 12:29:58 +0000 (14:29 +0200)]
A PainterInfo variable should be named `pi'.

7 years agoAssertions when doing Export As... (#10321)
Guillaume Munch [Thu, 4 Aug 2016 16:00:21 +0000 (17:00 +0100)]
Assertions when doing Export As... (#10321)

Fix assertion with gcc 6: The comparison function must be a strict weak
orderings and not give x < x.

Fix assertion when a custom exportable document format is given a non-ASCII
name. Use qt_ to be consistent with the rest of the code.

Use Qt's locale-aware comparison for appropriate sorting.

7 years agoAdapt code to comment
Enrico Forestieri [Mon, 15 Aug 2016 01:22:01 +0000 (03:22 +0200)]
Adapt code to comment

7 years agoCorrect comment
Enrico Forestieri [Sat, 13 Aug 2016 15:43:03 +0000 (17:43 +0200)]
Correct comment

According to C++11 rules, static locals are thread safe for
the first-time initialization.

See also:
http://stackoverflow.com/questions/12302057/c11-safe-double-checked-locking-for-lazy-initialization-possible

7 years agoCommands to select the posix variant for the mingw cross-compilation script
Guillaume Munch [Sun, 7 Aug 2016 12:13:08 +0000 (13:13 +0100)]
Commands to select the posix variant for the mingw cross-compilation script

The win32 thread model of gcc does not support the <thread> and <mutex> headers
yet.

7 years agoFoils.lyx: fix output of author
Scott Kostyshak [Tue, 9 Aug 2016 16:53:56 +0000 (12:53 -0400)]
Foils.lyx: fix output of author

By moving date and author above the standard layouts, author is now
output in the PDF and the terminal error from LyX about mixing an
InTitle layout with non-InTitle layouts is gone.

7 years agoLiterate.lyx: move date with other InTitle layouts
Scott Kostyshak [Tue, 9 Aug 2016 03:43:15 +0000 (23:43 -0400)]
Literate.lyx: move date with other InTitle layouts

This leads to the date being output in the PDF and gets rid of the
terminal error from LyX about mixing an InTitle layout with
non-InTitle layouts.

7 years agoImprove a layout LYXERR0 message
Scott Kostyshak [Tue, 9 Aug 2016 03:41:59 +0000 (23:41 -0400)]
Improve a layout LYXERR0 message

The name of the layout is now included in an error message about
layouts. This will help with finding the root issue of several
documents we have.

7 years agoUpdate tex2lyx tests.
Richard Heck [Mon, 8 Aug 2016 20:47:06 +0000 (16:47 -0400)]
Update tex2lyx tests.

7 years agoCmake build: Ignore also files with extension .patch --
Kornel Benko [Mon, 8 Aug 2016 19:23:20 +0000 (21:23 +0200)]
Cmake build: Ignore also files with extension .patch --

These files should not be installed.

7 years agoFix dviluatex exports of Sweave/knitr/Lily/noweb
Scott Kostyshak [Sun, 7 Aug 2016 17:31:41 +0000 (13:31 -0400)]
Fix dviluatex exports of Sweave/knitr/Lily/noweb

After the fix at fe06ef0e, several converter chains to DVI
(dviluatex) were broken because they had previously gone through an
incorrect link in the chain.

This commit adds converters for the above formats to dviluatex and
fixes the following ctests:

  export/examples/Literate_dvi3_texF
  export/examples/Literate_dvi3_systemF
  export/examples/knitr_dvi3_texF
  export/examples/knitr_dvi3_systemF
  export/examples/lilypond_dvi3_texF
  export/examples/lilypond_dvi3_systemF
  export/examples/noweb2lyx_dvi3_texF
  export/examples/noweb2lyx_dvi3_systemF
  export/examples/sweave_dvi3_texF
  export/examples/sweave_dvi3_systemF
  export/templates/RJournal_dvi3_texF

7 years agoCmake build: Amend 41e409f8: Use std::call_once only if it is actually available
Kornel Benko [Sun, 7 Aug 2016 09:32:53 +0000 (11:32 +0200)]
Cmake build: Amend 41e409f8: Use std::call_once only if it is actually available

7 years agoUse std::call_once only if it is actually available
Enrico Forestieri [Sun, 7 Aug 2016 02:58:41 +0000 (04:58 +0200)]
Use std::call_once only if it is actually available

7 years agoRemove debugging code.
Richard Heck [Sat, 6 Aug 2016 01:39:58 +0000 (21:39 -0400)]
Remove debugging code.

7 years agoFix XHTML export of German Additional Features manual.
Richard Heck [Fri, 5 Aug 2016 02:43:17 +0000 (22:43 -0400)]
Fix XHTML export of German Additional Features manual.

There was an oddity in the manual that exposed a problem with the
test for the "special case" of an inset all by itself in a pargraph.
If a font change is applied to that inset, we still need to open the
paragraph.

7 years agoInsetNote is not output for XHTML.
Richard Heck [Fri, 5 Aug 2016 02:17:09 +0000 (22:17 -0400)]
InsetNote is not output for XHTML.

Also fixes whitespace.

7 years agoDebugging code.
Richard Heck [Fri, 5 Aug 2016 02:00:24 +0000 (22:00 -0400)]
Debugging code.

7 years agoWe don't need to crash here, but can try to continue in release
Richard Heck [Fri, 5 Aug 2016 01:57:13 +0000 (21:57 -0400)]
We don't need to crash here, but can try to continue in release
mode.

7 years agoRemove stray "typewriter" font.
Richard Heck [Fri, 5 Aug 2016 01:40:37 +0000 (21:40 -0400)]
Remove stray "typewriter" font.

7 years agoSpecial characters should be output to the TOC.
Richard Heck [Fri, 5 Aug 2016 01:09:32 +0000 (21:09 -0400)]
Special characters should be output to the TOC.

7 years agoFix bug #10320.
Richard Heck [Thu, 4 Aug 2016 21:45:10 +0000 (17:45 -0400)]
Fix bug #10320.

Layout::write needs to allow for the possility that the name of the
style may contain a space. It seems sufficient just always to quote it.

7 years agoLet InsetSpecialChar draw its background when necessary
Jean-Marc Lasgouttes [Thu, 4 Aug 2016 21:20:18 +0000 (23:20 +0200)]
Let InsetSpecialChar draw its background when necessary

This is the same fix as in 9940acc5 for auote inset and math macro template.

7 years agoPartially revert "Replace static with thread_local when used for caching"
Guillaume Munch [Thu, 4 Aug 2016 12:30:47 +0000 (13:30 +0100)]
Partially revert "Replace static with thread_local when used for caching"

As noticed by Stephan, clang on Mac is nowhere near to support thread_local for
some reason:
http://stackoverflow.com/questions/28094794/why-does-apple-clang-disallow-c11-thread-local-when-official-clang-supports

It does not look realistic to me to provide a configure-based alternative. The
solution is to not use thread_local until it is reasonably supported on
Mac. According to sources, this means requiring Xcode >= 8.

This reverts commit 82d4f1a446260333ef1590f3622196e7c76e414d partially.