]> git.lyx.org Git - lyx.git/log
lyx.git
10 years agoAdd support for the sectionbox and tcolorbox packages.
Juergen Spitzmueller [Wed, 2 Jul 2014 11:48:01 +0000 (13:48 +0200)]
Add support for the sectionbox and tcolorbox packages.

They will be used by the conference poster classes that will be supported in a minute.

10 years agoBabel now supports Swiss German
Juergen Spitzmueller [Wed, 2 Jul 2014 11:19:07 +0000 (13:19 +0200)]
Babel now supports Swiss German

10 years agoPolyglossia now supports Austrian German
Juergen Spitzmueller [Wed, 2 Jul 2014 11:14:11 +0000 (13:14 +0200)]
Polyglossia now supports Austrian German

10 years agoctests: un-invert some tests after updates
Scott Kostyshak [Wed, 2 Jul 2014 01:14:29 +0000 (21:14 -0400)]
ctests: un-invert some tests after updates

David Carlisle fixed some EuropeCV issues and other updates
on TeX Live 2014 fixed a few more exports.

10 years agoMake IconvProcessor::Impl noncopyable
Georg Baum [Tue, 1 Jul 2014 20:23:06 +0000 (22:23 +0200)]
Make IconvProcessor::Impl noncopyable

The compiler-generated copy-constructor and assigment operators would be wrong
for IconvProcessor::Impl, since cd would be copied, and iconv_close() could
thus be called twice on the same descriptor. The old code did work, but now
IconvProcessor::Impl cannot be copied by accident in the future.

10 years agoFix memory leak and assignment operator signature
Georg Baum [Tue, 1 Jul 2014 20:13:54 +0000 (22:13 +0200)]
Fix memory leak and assignment operator signature

The IconvProcessor assignment operator did not delete pimpl_ and used a
non-standard signature. If you want to know why the standard signature is
important, read "Effective C++" by Scott Meyers.

10 years agoThe flush should be done on either branch.
Richard Heck [Sun, 29 Jun 2014 19:40:17 +0000 (15:40 -0400)]
The flush should be done on either branch.

10 years agoUpdate it.po
Enrico Forestieri [Sat, 28 Jun 2014 17:19:35 +0000 (19:19 +0200)]
Update it.po

10 years agoRestore compilation of AEA template for TeX Live
Scott Kostyshak [Sat, 28 Jun 2014 02:38:48 +0000 (22:38 -0400)]
Restore compilation of AEA template for TeX Live

After the previous change this document failed to compile under
TeX Live 2013 and 2014. By using a different bib file, it
compiles. For more information, see
  https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg183786.html

10 years agoAEA.lyx: update format
Scott Kostyshak [Sat, 28 Jun 2014 02:34:46 +0000 (22:34 -0400)]
AEA.lyx: update format

10 years agoWork around MSVC warning
Georg Baum [Thu, 26 Jun 2014 19:05:40 +0000 (21:05 +0200)]
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.

10 years agoRemove an incorrect/expired FIXME
Scott Kostyshak [Mon, 23 Jun 2014 12:03:44 +0000 (08:03 -0400)]
Remove an incorrect/expired FIXME

Both Richard and JMarc think it is incorrect. See
  https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg184758.html

10 years agoCMake: full path of an include needed for ver <3.0
Scott Kostyshak [Sun, 22 Jun 2014 00:43:06 +0000 (20:43 -0400)]
CMake: full path of an include needed for ver <3.0

10 years agoCmake tests: Optimizing the cmake configuration time
Kornel Benko [Sat, 21 Jun 2014 19:15:54 +0000 (21:15 +0200)]
Cmake tests: Optimizing the cmake configuration time

The configuration time suffers mostly on checking, which of the export tests
is to be reverted.
1.) There is a new configuration flag now, "LYX_ENABLE_EXOPRT_TESTS.
   If not set (default) no export tests are created.
2.) If set, then the optimization halves the time needed for creation of tests.

The effect on my side:
        a.) Until now the time was:        ~ 26 seconds
        b.) The optimized time is now:     ~ 16 seconds
        c.) With not enabled export tests: ~  5 seconds

10 years agoctests: Use regular expressions
Kornel Benko [Thu, 19 Jun 2014 19:04:18 +0000 (21:04 +0200)]
ctests: Use regular expressions

10 years agoUpdate ctests to reflect inputenc changes
Scott Kostyshak [Thu, 19 Jun 2014 14:26:15 +0000 (10:26 -0400)]
Update ctests to reflect inputenc changes

There were changes to inputenc and luainputenc that are now
released in Tex Live 2014 that affect several exports. Some
exports that produced good PDFs now fail. Others that produced
incorrect PDFs (with gibberish) now correctly fail. Several
IEEEtran-* exports failed before and now export correct PDFs.

For more information, see

  http://tug.org/pipermail/tex-live/2014-May/035338.html
  https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg184435.html

10 years agoFix a comment
Scott Kostyshak [Thu, 19 Jun 2014 05:34:17 +0000 (01:34 -0400)]
Fix a comment

10 years agoGive more tips in beamer-article.lyx
Scott Kostyshak [Thu, 19 Jun 2014 05:44:15 +0000 (01:44 -0400)]
Give more tips in beamer-article.lyx

10 years ago* sk.po: spellcheck changes
Kornel Benko [Wed, 18 Jun 2014 13:51:27 +0000 (15:51 +0200)]
* sk.po: spellcheck changes

10 years agoFix license string according to http://spdx.org/licenses/.
Pavel Sanda [Tue, 17 Jun 2014 16:50:28 +0000 (09:50 -0700)]
Fix license string according to http://spdx.org/licenses/.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg184749.html

10 years agoOn Linux show in crash message box the backtrace
Peter Kümmel [Sat, 7 Jun 2014 09:12:31 +0000 (11:12 +0200)]
On Linux show in crash message box the backtrace

10 years agoSelect word on double click even when at boundary
Scott Kostyshak [Fri, 13 Jun 2014 13:43:26 +0000 (09:43 -0400)]
Select word on double click even when at boundary

Now when double clicking on a boundary of a word, the
word is selected. This also causes single-letter words
to now be selected (fixes #9159).

10 years agoFix checkmark on current entry for InsetSeparator context menu
Jean-Marc Lasgouttes [Fri, 13 Jun 2014 08:30:25 +0000 (10:30 +0200)]
Fix checkmark on current entry for InsetSeparator context menu

The code supposed to do that contained a typo and was not completely correct.

10 years agoFrench documentation files: port today's changes
Uwe Stöhr [Thu, 12 Jun 2014 23:27:19 +0000 (01:27 +0200)]
French documentation files: port today's changes

10 years agoAdd comment and fix a typo
Scott Kostyshak [Thu, 12 Jun 2014 21:34:04 +0000 (17:34 -0400)]
Add comment and fix a typo

10 years agoCmake build: Symplify use of linking optional libraries found via find_package
Kornel Benko [Thu, 12 Jun 2014 17:02:29 +0000 (19:02 +0200)]
Cmake build: Symplify use of linking optional libraries found via find_package

10 years agoApple has builtin native spell checker, no need to warn for missing Aspell, hunspell...
Stephan Witt [Thu, 12 Jun 2014 12:55:56 +0000 (14:55 +0200)]
Apple has builtin native spell checker, no need to warn for missing Aspell, hunspell or Enchant

10 years agoCmake tests: Added parser_tools test to the lyx2lyx group tests
Kornel Benko [Thu, 12 Jun 2014 07:07:57 +0000 (09:07 +0200)]
Cmake tests: Added parser_tools test to the lyx2lyx group tests

10 years agoCmake build: Use LYX_USE_QT to determine if QT uses X11
Kornel Benko [Thu, 12 Jun 2014 05:52:45 +0000 (07:52 +0200)]
Cmake build: Use LYX_USE_QT to determine if QT uses X11

10 years agoCmake build: Added magic library to some link commands.
Kornel Benko [Thu, 12 Jun 2014 05:49:17 +0000 (07:49 +0200)]
Cmake build: Added magic library to some link commands.

Needed due to the use of magic_(open|load|error|file|close) after recent changes.

10 years agoMake binary file detection more robust.
Enrico Forestieri [Wed, 11 Jun 2014 21:04:39 +0000 (23:04 +0200)]
Make binary file detection more robust.

The magic library can detect the charset used by a file. While this
detection is not full proof, actually the library seems to be infallible
as regards the binary nature of a file. So, use libmagic for the detection
and fallback to the previous method if the library is not installed or
its database cannot be loaded.

10 years agoSet the default locale at startup.
Enrico Forestieri [Wed, 11 Jun 2014 16:23:44 +0000 (18:23 +0200)]
Set the default locale at startup.

On startup, the default locale is "C", meaning that all system
functions assume an ascii codeset. The environment's locale
settings should be selected by calling setlocale(LC_ALL,"").
This is done by Qt during the QCoreApplication initialization
but this inizialization is never performed for batch processing
and, as a result, LyX is not able to process files whose names
contain non-ascii characters. This is not an issue on Windows,
where the file names are always stored as UTF-16, so the call is
only performed for unix-like platforms (this also includes cygwin,
due to its own filenames management that allows using characters
which are forbidden to native programs).

10 years agoFix thinko in loop detection
Georg Baum [Mon, 9 Jun 2014 20:06:58 +0000 (22:06 +0200)]
Fix thinko in loop detection

10 years agoFix wrong "externally modified" message
Georg Baum [Mon, 9 Jun 2014 11:17:40 +0000 (13:17 +0200)]
Fix wrong "externally modified" message

This was a regression of 10364082c835.

10 years agoRemove unsafe method FileName::tempName()
Georg Baum [Mon, 9 Jun 2014 11:05:50 +0000 (13:05 +0200)]
Remove unsafe method FileName::tempName()

FileName::tempName() created a new temp file name by using qt to create a
temporary file with a unique name, and then deleting that file and returning
the name. This was unsafe, since other processes or even other threads of the
running LyX could create files with the same name between deletion and then
using the temp name.
This is fixed by using the TempFile class instead. As a side effect, a few
cases where the temp files were not deleted after usage were fixed as well.
The only place that is still unsafe is createTmpDir().

10 years agoDon't double delete by making TempFile noncopyable
Georg Baum [Mon, 9 Jun 2014 10:59:47 +0000 (12:59 +0200)]
Don't double delete by making TempFile noncopyable

The compiler generated copy constructor and assignment operator are wrong.
This could easily be fixed by implementing them manually, but a) they are
not needed, and b) the semantics would be unclear (should the copy point
to a new temp file or not?), so it is better to forbid them.

10 years agoImprove file saving strategy
Georg Baum [Mon, 9 Jun 2014 09:08:24 +0000 (11:08 +0200)]
Improve file saving strategy

- The TempFile class guarantees to generate a file name, we are not limited to
  100 tries of a predictable scheme anymore, which could break if LyX
  frequently crashes.
- The temp file name generation has no race condition against another LyX
  instance in the same directory anymore.
- Symlinks survive saving again (regression of 10364082c835).

10 years agoFix typo
Georg Baum [Sat, 7 Jun 2014 19:22:26 +0000 (21:22 +0200)]
Fix typo

10 years agoCmake build: Use LYX_COMBO() to select the qt-version to use.
Kornel Benko [Mon, 9 Jun 2014 08:08:32 +0000 (10:08 +0200)]
Cmake build: Use LYX_COMBO() to select the qt-version to use.

Collaboration with Scott Kostyshak

10 years agoCmake build: Early check for wrong combo values
Kornel Benko [Mon, 9 Jun 2014 08:03:56 +0000 (10:03 +0200)]
Cmake build: Early check for wrong combo values

10 years agoCombine OutlineIn and OutlineOut blocks
Scott Kostyshak [Sat, 7 Jun 2014 04:41:20 +0000 (00:41 -0400)]
Combine OutlineIn and OutlineOut blocks

They differ only by adding/subtracting 1.

10 years agoCmake build: Add combo-values to the list of displayed lyx options
Kornel Benko [Sat, 7 Jun 2014 19:00:46 +0000 (21:00 +0200)]
Cmake build: Add combo-values to the list of displayed lyx options

10 years agoExplain why the binary detection works
Georg Baum [Sat, 7 Jun 2014 15:48:23 +0000 (17:48 +0200)]
Explain why the binary detection works

Extracted from Enricos comment at bug 9146.

10 years agoDocument class file name rule
Georg Baum [Sat, 7 Jun 2014 09:32:15 +0000 (11:32 +0200)]
Document class file name rule

This rule was followed in practice, but not documented so far.

10 years agoCmake build: Select full path to library
Kornel Benko [Sat, 7 Jun 2014 08:49:49 +0000 (10:49 +0200)]
Cmake build: Select full path to library

Testing for QT_USES_X11 links ok now also if the the qt-libraries
are on some non-conform place. (Like self compiled but not installed).

10 years agoFix bug #7954 (now really)
Georg Baum [Sat, 7 Jun 2014 08:50:11 +0000 (10:50 +0200)]
Fix bug #7954 (now really)

Thanks to maciejr we know now what the remaining problem was with bug 7954:
My unicode symbol fallback works fine, the problem was that a font named
"Symbol" is available on OS X, but it does not use the font-specific encoding
we expect: Almost all glyphs are at their unicode code point.
Therefore the bug is fixed by re-enabling the unicode workaround and blocking
the Symbol font on OS X.

10 years agoCmake build: Added convenience macro LYX_COMBO
Kornel Benko [Sat, 7 Jun 2014 08:45:13 +0000 (10:45 +0200)]
Cmake build: Added convenience macro LYX_COMBO

Will be used later to allow selection between multiple alternatives.

10 years agostd::min/max are defined in <algorithm>
Peter Kümmel [Sat, 7 Jun 2014 06:17:20 +0000 (08:17 +0200)]
std::min/max are defined in <algorithm>

handle error in msvc12 when linking against msvc10 libs

10 years agobuild with mingw on Windows and Linux
Peter Kümmel [Sat, 7 Jun 2014 05:59:52 +0000 (07:59 +0200)]
build with mingw on Windows and Linux

10 years agoExpand module names instead of buttons in settings
Scott Kostyshak [Tue, 27 May 2014 21:37:58 +0000 (17:37 -0400)]
Expand module names instead of buttons in settings

Maximizing the document settings window when on the modules pane,
the horizontal space is now given to the module names and so no
scrollbar is needed. Before, even when maximized, a scrollbar was
sometimes needed because the horizontal space was given to the
buttons in the middle, which did not provide an extra benefit.

The default sizeType was "Expanding" and is now changed to "Minimum"
for the horizontal spacer above the middle buttons.

10 years agoFix bug #9153 (Using mathpanel to insert matrix creates extra space on top)
Enrico Forestieri [Fri, 6 Jun 2014 14:14:24 +0000 (16:14 +0200)]
Fix bug #9153 (Using mathpanel to insert matrix creates extra space on top)

The code was setting the current index before filling the
combo box items.

10 years agoRefine fix for bug #9151.
Enrico Forestieri [Fri, 6 Jun 2014 13:35:24 +0000 (15:35 +0200)]
Refine fix for bug #9151.

Now the cursor in LyX jumps to the right spot instead of simply the
beginning of the paragraph. This is most useful for branch insets,
for example, which may contain long paragraphs.

10 years agoFix bug #9151 (Wrong reverse search for images and tables).
Enrico Forestieri [Thu, 5 Jun 2014 21:46:18 +0000 (23:46 +0200)]
Fix bug #9151 (Wrong reverse search for images and tables).

If the reverse position corresponds to an inset, its paragraph id
does not follow the main text numbering. Typically, an inset has
only a few paragraph, so that we would jump near the beginning of
the document. In this way we at least jump at the beginning of the
inset.

10 years agoFix bug #9146.
Enrico Forestieri [Thu, 5 Jun 2014 15:33:25 +0000 (17:33 +0200)]
Fix bug #9146.

If LyX does not know about a given file format, it may easily
happen that the format is recognized as "latex" and this causes
bug #9146. This patch limits the check for a latex format to
non-binary files. The strategy for deciding that a file has
binary content is the same as that adopted by the "less" program.

10 years agosk.po: erroneous formats in strings
Kornel Benko [Thu, 5 Jun 2014 11:30:00 +0000 (13:30 +0200)]
sk.po: erroneous formats in strings

10 years agoFix crash when accepting change
Jean-Marc Lasgouttes [Thu, 5 Jun 2014 10:18:09 +0000 (12:18 +0200)]
Fix crash when accepting change

The problem is the use of cursor movement methods to update cursor.
Cursor::forwardPos() steps into insets, which is not always what we
want. The problem here is that there is a math inset just after the
accepted change, and that the cursor steps into it for some reason.

This code is a nightmare anyway.

Fixes: bug #9145
10 years agoFix a regression reported at #9146
Scott Kostyshak [Wed, 4 Jun 2014 17:52:42 +0000 (13:52 -0400)]
Fix a regression reported at #9146

This regression was introduced by me at 8b66f9ce. I did not take
into account that a call to a python script containing $$s is embedded
within a separate python script. Thus, when commandPrep() is called it
only sees the call to the outer python script, and does not see the
$$s contained in that python script. It therefore did not substitute
for it. This fix simply calls commandPrep() directly before writing
the embedded command.

10 years agoDetect binary EPS files correctly (bug #9146)
Georg Baum [Wed, 4 Jun 2014 19:52:45 +0000 (21:52 +0200)]
Detect binary EPS files correctly (bug #9146)

The Adobe EPS file format specification (TN-5002, currently available at
http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf) specifies
a binary version of EPS files with integrated preview, sometimes also called
DOS EPS binary files. LyX 2.0 did recognize these files unreliably by
extension, but since f4eae12d they are misdetected as latex (bug #9146).
This change adds proper detection for these files using the officially
documented binary header.

10 years agoUse a different naming scheme, per Enrico's suggestion.
Richard Heck [Wed, 4 Jun 2014 16:46:42 +0000 (12:46 -0400)]
Use a different naming scheme, per Enrico's suggestion.

10 years agoFlush stream more often to help figure out where the mystery crash
Richard Heck [Tue, 3 Jun 2014 17:35:18 +0000 (13:35 -0400)]
Flush stream more often to help figure out where the mystery crash
originates.

10 years ago* sk.po
Kornel Benko [Wed, 4 Jun 2014 10:33:36 +0000 (12:33 +0200)]
* sk.po

10 years agoPer a suggestion of JMarc's, first write the saved file to a
Richard Heck [Tue, 3 Jun 2014 14:42:07 +0000 (10:42 -0400)]
Per a suggestion of JMarc's, first write the saved file to a
temporary name, then move it to its real location if we succeed.
This prevents our over-writing the existing file with a corrupt
one.

10 years agosk.po: Some shortcuts + new strings
Kornel Benko [Sun, 1 Jun 2014 10:00:34 +0000 (12:00 +0200)]
sk.po: Some shortcuts + new strings

10 years agoRemove superfluous conversion
Juergen Spitzmueller [Sat, 31 May 2014 08:46:49 +0000 (10:46 +0200)]
Remove superfluous conversion

10 years agoWhitespace
Juergen Spitzmueller [Sat, 31 May 2014 08:33:46 +0000 (10:33 +0200)]
Whitespace

10 years agoFix compilation on Solaris after last boost upgrade.
Enrico Forestieri [Thu, 29 May 2014 20:31:16 +0000 (22:31 +0200)]
Fix compilation on Solaris after last boost upgrade.

10 years agoCleanup seminar.layout after the upgrade to format 50.
Enrico Forestieri [Thu, 29 May 2014 20:07:37 +0000 (22:07 +0200)]
Cleanup seminar.layout after the upgrade to format 50.

10 years agoAdd missing bits of layout file format update
Georg Baum [Thu, 29 May 2014 19:25:08 +0000 (21:25 +0200)]
Add missing bits of layout file format update

This is needed so that the new format number is actually used. Since the
conversion is a noop I did not update the layout files (more updates will
come).

10 years agoUpdate layouts with separators to format 50
Georg Baum [Thu, 29 May 2014 19:22:15 +0000 (21:22 +0200)]
Update layouts with separators to format 50

10 years agoInclude lyx2lyx test in tarball
Georg Baum [Thu, 29 May 2014 13:13:59 +0000 (15:13 +0200)]
Include lyx2lyx test in tarball

10 years agoMake layout test compile
Georg Baum [Thu, 29 May 2014 13:07:07 +0000 (15:07 +0200)]
Make layout test compile

10 years agoExecute lyx2lyx unit test when running tests
Georg Baum [Thu, 29 May 2014 12:57:05 +0000 (14:57 +0200)]
Execute lyx2lyx unit test when running tests

Actually lyx2lyx has a tiny unit test. Add it to the autotools test machinery
and fix it: Since nobody knew about it the test was of course broken.

10 years agoFix the fix
Georg Baum [Thu, 29 May 2014 12:44:38 +0000 (14:44 +0200)]
Fix the fix

MAC-style (pre-OS X) line ends were not recognized anymore

10 years agoAdd layout tag that determines if/when a paragraph can be indented.
Juergen Spitzmueller [Thu, 29 May 2014 12:10:32 +0000 (14:10 +0200)]
Add layout tag that determines if/when a paragraph can be indented.

Fixes: #7327, #7458, #8670
10 years agoAdd some SVG versions of self-made icons found here on my box
Juergen Spitzmueller [Thu, 29 May 2014 11:32:09 +0000 (13:32 +0200)]
Add some SVG versions of self-made icons found here on my box

10 years agoDo not corrupt documents without newline at EOF
Georg Baum [Thu, 29 May 2014 11:15:07 +0000 (13:15 +0200)]
Do not corrupt documents without newline at EOF

trim_eol() assumes that a line always ends either with \n, \r, or \r\n.
This assumption is always valid except for the last line of a document, since it
may miss the trailing newline. LyX does not create such documents, bu they may
result from automatic creation tools, and LyX can read them, so lyx2lyx should
be able to read them as well.

10 years agoAvoid processing multiple times the same paragraph when converting latex arguments.
Enrico Forestieri [Thu, 29 May 2014 09:05:34 +0000 (11:05 +0200)]
Avoid processing multiple times the same paragraph when converting latex arguments.

10 years agoFix an off-by-one error in the reversion of beamer documents.
Enrico Forestieri [Thu, 29 May 2014 08:55:30 +0000 (10:55 +0200)]
Fix an off-by-one error in the reversion of beamer documents.

10 years agoFix reversion of box insets.
Enrico Forestieri [Thu, 29 May 2014 08:44:02 +0000 (10:44 +0200)]
Fix reversion of box insets.

10 years agoAvoid an assertion.
Enrico Forestieri [Wed, 28 May 2014 18:50:45 +0000 (20:50 +0200)]
Avoid an assertion.

Do not assert if an inset separator is the only item of a List
environment. Although it is a weird thing to do, both GUI and
latex output can deal with it.

10 years agoMake TextMetrics::editXY more robust
Jean-Marc Lasgouttes [Tue, 27 May 2014 13:14:14 +0000 (15:14 +0200)]
Make TextMetrics::editXY more robust

This fixes a crash in examples/fa/splash.lyx when selecting text
representing menu entries. This happens because menu names are in LTR
English, while the inset itself is in RTL.

The problem is that the current code relies on the fact that
 1. getColumnNearX and checkInsetHit share the same idea about cursor
    position.
 2. pos and pos + 1 are in general consecutive on screen.

It seems that 1. is wrong here (for reasons I did not try to
understand); the second assumption is definitely false with
bi-directional text. This makes editXY very fragile.

The new code should be more robust in this respect. The logic is:
 * if checkInsetHit finds an inset, use its position,
 * otherwise, ask getColumnNearX for the cursor position.

Fixes: #9142
10 years agoFix indentation of paragraphs after an environment.
Enrico Forestieri [Tue, 27 May 2014 23:07:47 +0000 (01:07 +0200)]
Fix indentation of paragraphs after an environment.

When deciding whether a paragraph should be indented or not, LyX
only takes into account default layouts. This is wrong, because
an environment could be nested into another one and thus a following
paragraph would not be "default". With this patch all paragraphs
after an environment are correctly indented, independently of
whether their layouts are "default" or not.
The latex output (which was modeled following the previous wrong
assumption) is also correspondingly adapted.

10 years agoNative support for \notag
Georg Baum [Tue, 27 May 2014 20:17:35 +0000 (22:17 +0200)]
Native support for \notag

This is mainly needed to reduce the amount of ERT if you convert AMS example
documents with tex2lyx. No GUI support is needed, since \notag is equivalent
to \nonumber.

10 years agoNative support for \smash[t] and \smash[b]
Georg Baum [Tue, 27 May 2014 20:10:02 +0000 (22:10 +0200)]
Native support for \smash[t] and \smash[b]

This is a follow-up of bug #8967. The implementation is self-explaining, the
only part which needs a comment is lyx2lyx: Since a 100% correct solution is
not possible, it has been decided not to switch amsmath off in the forward
conversion if no other ams command than \smash[t] and \smash[b] is used, but
to consider it a bug that older versions do not load amsmath automatically for
these commands. In the backward direction it is easy to keep the document
compilable, so just do that.

10 years agoAdd missing member initializations
Georg Baum [Sat, 24 May 2014 14:02:31 +0000 (16:02 +0200)]
Add missing member initializations

10 years agoAllow inserting a blank line also after a nested environment.
Enrico Forestieri [Mon, 26 May 2014 19:29:33 +0000 (21:29 +0200)]
Allow inserting a blank line also after a nested environment.

10 years agoClean up empty ERTs that are produced in comples beamer argument conversions
Juergen Spitzmueller [Sun, 25 May 2014 20:46:42 +0000 (22:46 +0200)]
Clean up empty ERTs that are produced in comples beamer argument conversions

10 years agoSupport spreaded argument delimiters in beamer block conversion
Juergen Spitzmueller [Sun, 25 May 2014 20:42:44 +0000 (22:42 +0200)]
Support spreaded argument delimiters in beamer block conversion

10 years agoIn collorary conversion, support argument delimiters spread over several ERTs
Juergen Spitzmueller [Sun, 25 May 2014 13:08:08 +0000 (15:08 +0200)]
In collorary conversion, support argument delimiters spread over several ERTs

The roundtrip still has issues.

10 years agoFixes in the beamer block routine
Juergen Spitzmueller [Sun, 25 May 2014 12:59:58 +0000 (14:59 +0200)]
Fixes in the beamer block routine

This makes beamerlyxexample1 open after the roundtrip, but the file does not compile yet (remaining issues in other routines)

10 years agoMake: improve detection of X11 with Qt 5
Kornel Benko [Sun, 25 May 2014 11:50:18 +0000 (13:50 +0200)]
Make: improve detection of X11 with Qt 5

In collaboration with Scott Kostyshak:
With Qt 4 we could use Q_WS_X11, defined by FindQt4.cmake. In Qt 5,
there is no FindQt5.cmake. Instead we now define our own variable,
QT_USES_X11 by using class QX11Info available only on X11.
(http://qt-project.org/doc/qt-5/QX11Info.html)

The main consequence of this improved support is that now the keytests
can be run (ctest -R "keytest") when LyX is compiled with Qt 5.
Before, with Qt 5 we did not know if X11 was available, which is
needed by xvkbd, so the tests were not enabled. Note, however, that
many tests fail with Qt version 5.2.1 because there was a change in
the event handling mechanism in Qt that causes xvkbd to be unable to
pass capital letters (so case sensitive greps in the tests fail). This
needs to be investigated and reported.

10 years agoAdd Sumatra as a PDF reader
Scott Kostyshak [Fri, 23 May 2014 10:58:21 +0000 (06:58 -0400)]
Add Sumatra as a PDF reader

It currently does not make a difference that it is before
Adobe Reader in configure.py because as Enrico points out
on Windows the default viewer configured in the OS is used.

10 years agoAdd a FIXME.
Richard Heck [Fri, 23 May 2014 15:36:12 +0000 (11:36 -0400)]
Add a FIXME.

10 years agoFix bug #9131 for development branch. There are two parts to the fix.
Richard Heck [Fri, 23 May 2014 14:59:12 +0000 (10:59 -0400)]
Fix bug #9131 for development branch. There are two parts to the fix.

The firs tinvolves a thinko in BibTeXInfo::expandFormat. We were previously
counting passes through this routine, which means: one for every character,
more or less. So long strings would hit the "recursion limit". But what
we are worried about is an infinite loop caused by misues of macros, so that
is what we need to count.

This prevents the error we were previously getting, but it reveals a huge
slowdown when one tries to open a citation inset with a large nubmer of keys.
So we also limit the number of keys we try to process, and the length of the
string we try to display, when we are generating citation information.

I'm convinced that there is a deeper problem in how citation information is
generated (see the bug tracker for more info), but that will require major
surgery and a file format change

10 years agoAdd some const-ref-ness, and remove some default arguments that are
Richard Heck [Fri, 23 May 2014 15:03:17 +0000 (11:03 -0400)]
Add some const-ref-ness, and remove some default arguments that are
never treated as defaults.

10 years agoFix up logic of BibTeXInfo::getInfo. We don't need to process the
Richard Heck [Fri, 23 May 2014 14:48:22 +0000 (10:48 -0400)]
Fix up logic of BibTeXInfo::getInfo. We don't need to process the
richtext stuff unless we actually need it.

10 years agoCmake export tests: Parse also for nameless layouts in lyx-files
Kornel Benko [Fri, 23 May 2014 09:32:19 +0000 (11:32 +0200)]
Cmake export tests: Parse also for nameless layouts in lyx-files

10 years agoFix another glitch with on-screen indentation.
Enrico Forestieri [Thu, 22 May 2014 21:47:38 +0000 (23:47 +0200)]
Fix another glitch with on-screen indentation.

If a new paragraph is created just before a nested environment,
the indentation of the nested environment is not computed
correctly because the parindent of the previous layout would
also be erroneously taken into account. This would cause the
nested environment to move back and forth when something is
added to the new paragraph.

10 years agoFix another crash similar to #9030
Georg Baum [Thu, 22 May 2014 20:00:58 +0000 (22:00 +0200)]
Fix another crash similar to #9030

This one occured after the fix for bug #9030 if the cursor is in a math inset
and the edit menu is opened.

10 years agoSimplify the test for inserting a parbreak separator.
Enrico Forestieri [Thu, 22 May 2014 19:47:10 +0000 (21:47 +0200)]
Simplify the test for inserting a parbreak separator.

Instead of simply taking into account the layout of the previous
paragraph, it is better considering the layout of the environment
in which the previous paragraph may be nested. This makes the test
simpler and, at the same time, more robust.