]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoFine tune AddToToc options for Sweave, Knitr
Guillaume Munch [Sun, 8 Jan 2017 18:19:25 +0000 (19:19 +0100)]
Fine tune AddToToc options for Sweave, Knitr

7 years agoImplement IsTocCaption for InsetArgument
Guillaume Munch [Sun, 8 Jan 2017 18:17:57 +0000 (19:17 +0100)]
Implement IsTocCaption for InsetArgument

Shows the title of Sweave, Knitr chunks in the Navigate menu.

7 years agoImplement AddToToc layout command for Flex insets
Guillaume Munch [Sun, 22 Nov 2015 22:48:24 +0000 (22:48 +0000)]
Implement AddToToc layout command for Flex insets

Enables TOC for FiXme, ToDo, Knitr, Sweave (#7790)

7 years agoMenus: Factor Toc code
Guillaume Munch [Mon, 30 Nov 2015 15:27:43 +0000 (15:27 +0000)]
Menus: Factor Toc code

7 years agoMove Tocs to the "Other lists" submenu based on a blacklist
Guillaume Munch [Mon, 30 Nov 2015 15:27:43 +0000 (15:27 +0000)]
Move Tocs to the "Other lists" submenu based on a blacklist

This causes user-defined Tocs to appear in the main list

7 years agoAdditional.lyx: re-sync with branch
Uwe Stöhr [Mon, 9 Jan 2017 00:31:13 +0000 (01:31 +0100)]
Additional.lyx: re-sync with branch

I don't know what happened with the version in master because it contained outdated sections I already removed months ago in branch. I can also not see new inf that is special in LyX 2.3dev.

Therefore I re-sync hereby with the version in branch.

As I often request: please change the doc files in branch, only new features of LyX 2.3 are master-only because there is no reason not to update and improve the docs for every LyX release.

7 years agofix last traces of bug #10068
Uwe Stöhr [Mon, 9 Jan 2017 00:26:23 +0000 (01:26 +0100)]
fix last traces of bug #10068

7 years agoAvoid useless warning from Qt
Enrico Forestieri [Sun, 8 Jan 2017 22:11:04 +0000 (23:11 +0100)]
Avoid useless warning from Qt

When cloning InsetExternal, the tempname_ member of InsetExternalParams
has yet to be initialized. So, trying to remove it causes the warning
"QFile::remove: Empty or null file name".

7 years agoEscape link name for DocBook.
Richard Heck [Sun, 8 Jan 2017 18:38:48 +0000 (13:38 -0500)]
Escape link name for DocBook.

Thanks to Martin Brown for pointing out the bug, and the obvious
solution.

7 years agoFix DocBook DTD identifier for XML output.
Richard Heck [Sun, 8 Jan 2017 18:37:00 +0000 (13:37 -0500)]
Fix DocBook DTD identifier for XML output.

Thanks to Martin Brown for the correct one.

7 years agoFix typo
Juergen Spitzmueller [Sun, 8 Jan 2017 17:37:08 +0000 (18:37 +0100)]
Fix typo

7 years agoAllow use of noprefix option even if we're not using refstyle.
Richard Heck [Sat, 7 Jan 2017 22:26:06 +0000 (17:26 -0500)]
Allow use of noprefix option even if we're not using refstyle.

I'm not sure why that would be useful, but there's no reason not
to allow it.

7 years agoDirty Perl script for alphabetizing LyXAction.cpp, in case it
Richard Heck [Sat, 7 Jan 2017 21:04:12 +0000 (16:04 -0500)]
Dirty Perl script for alphabetizing LyXAction.cpp, in case it
should be needed again.

7 years agoAlphabetize the list of LFUNs in LyXAction.cpp.
Richard Heck [Sat, 7 Jan 2017 21:00:37 +0000 (16:00 -0500)]
Alphabetize the list of LFUNs in LyXAction.cpp.

No one seems to  have been adding them `thematically', and it's too
hard to know how to do that, anyway. This at least makes it easier
to scan through the list.

I have verified, by re-generating LFUNs.lyx, that no significant
changes have been made here.

7 years agoDocumentation for "no prefix" option.
Richard Heck [Sat, 7 Jan 2017 20:07:22 +0000 (15:07 -0500)]
Documentation for "no prefix" option.

7 years agoAdd a "noprefix" option to the "labelonly" version of the reference
Richard Heck [Sat, 7 Jan 2017 19:39:03 +0000 (14:39 -0500)]
Add a "noprefix" option to the "labelonly" version of the reference
inset.

If the reference is "sec:mysec", then this will output just "mysec".
This is what is needed, e.g., to use refstyle's range commands, e.g.,
    \secrangeref{mysec1}{mysec2}
You *cannot* use:
    \secrangeref{sec:mysec1}{sec:mysec2}
even if those are the actual labels.

Eventually, I'd like to add native support for this, but I'm a bit
frightened of trying to make the reference dialog support multiple
selections.

7 years agoCorrectly set quote styles combo
Juergen Spitzmueller [Sat, 7 Jan 2017 19:07:45 +0000 (20:07 +0100)]
Correctly set quote styles combo

7 years agoLost in refactoring
Guillaume Munch [Sat, 7 Jan 2017 13:38:00 +0000 (14:38 +0100)]
Lost in refactoring

7 years agoTweaks to the quotes GUI
Juergen Spitzmueller [Thu, 5 Jan 2017 13:25:36 +0000 (14:25 +0100)]
Tweaks to the quotes GUI

This follows some suggestions put forward yesterday.

7 years agoFine tune the math class of InsetMathScript after a4676712
Guillaume Munch [Thu, 5 Jan 2017 11:03:53 +0000 (12:03 +0100)]
Fine tune the math class of InsetMathScript after a4676712

7 years agoPolish plural and capitalized reference reversion.
Richard Heck [Thu, 5 Jan 2017 07:50:18 +0000 (02:50 -0500)]
Polish plural and capitalized reference reversion.

Thanks to Scott for noticing the problem.

7 years agoNot sure why "notr = 'true'" got in there.
Richard Heck [Wed, 4 Jan 2017 21:01:32 +0000 (16:01 -0500)]
Not sure why "notr = 'true'" got in there.

7 years agoSome tooltips.
Richard Heck [Wed, 4 Jan 2017 17:50:51 +0000 (12:50 -0500)]
Some tooltips.

7 years agoForgot format file for recent commits.
Richard Heck [Tue, 3 Jan 2017 22:03:42 +0000 (17:03 -0500)]
Forgot format file for recent commits.

Also, remove request regarding revision. This is much easier now
with git, anyway, and no one ever does it.

7 years agoDefine mathClass of MathMacro
Guillaume Munch [Tue, 3 Jan 2017 19:17:20 +0000 (20:17 +0100)]
Define mathClass of MathMacro

Enables intelligent splitting for math macros.

Crucially improves the detection of math words for the new Ctrl-Arrow movement.

7 years agoFix wrong parse of macro parameter and crash
Guillaume Munch [Tue, 3 Jan 2017 19:17:20 +0000 (20:17 +0100)]
Fix wrong parse of macro parameter and crash

Copy-pasting $#\n$ from text to LyX gives the error message:

    MathMacroArgument::MathMacroArgument: wrong Argument id

and it is not hard to get a crash soon after.

There are legitimate uses of # not followed by 1..9 in LaTeX and it is good to
parse them correctly when importing from LaTeX.

7 years agoNew word-movement behaviour in Math
Guillaume Munch [Fri, 27 May 2016 20:00:54 +0000 (21:00 +0100)]
New word-movement behaviour in Math

Following discussion on the list:
https://www.mail-archive.com/lyx-users@lists.lyx.org/msg103012.html

This defines a new behaviour for Ctrl[+Shift]+Arrow in math:

* Left/Right does not enter insets

* Left/Right jump groups of insets that have the same math class ("words")

* Enable Up/Down for consistency.

7 years agoSet mathrel for a few more lib/symbols
Guillaume Munch [Sun, 1 Jan 2017 20:23:07 +0000 (21:23 +0100)]
Set mathrel for a few more lib/symbols

Improve display of textmode macros in lib/symbols

7 years agoUse math class information from lib/symbols for intelligent splitting
Guillaume Munch [Mon, 12 Dec 2016 00:51:45 +0000 (01:51 +0100)]
Use math class information from lib/symbols for intelligent splitting

This was missing for macros defined in lib/symbols. This only affects the
equation splitting since global macros are always linearized. This fixes #10107.

7 years agoFix wrong mode on output for macros that shadow global macros
Guillaume Munch [Mon, 12 Dec 2016 00:17:41 +0000 (01:17 +0100)]
Fix wrong mode on output for macros that shadow global macros

Testcase: Define a math macro \AA, overriding the definition of \AA from
lib/symbols, then insert it in math mode.

* Before this commit: \text{\AA}, and \lyxmathsym{\AA} after deleting \text, but
  displayed like \AA.

* After this commit: \text{\AA} is inserted, but one gets \AA after deleting
  \text. The output is now consistent with the display and the meaning.

* Expected: only \AA is inserted. This is unfortuately not what one gets; for
  this to work, the scope of the macros would need to be resolved upon creating
  the inset.

7 years agoSome code factoring for changing mode.
Guillaume Munch [Mon, 12 Dec 2016 00:17:41 +0000 (01:17 +0100)]
Some code factoring for changing mode.

About removing the changeEnsureMath in MathMacro::{metrics,draw} : as it is only
called in edition mode, it only happened for user macros for which no ensureMath
is needed anyway. ChangeEnsureMath should indeed be applied for global macros,
but since they are linearized there is no obvious place to call it.

7 years agoRemove hardcoded values
Guillaume Munch [Mon, 12 Dec 2016 00:11:26 +0000 (01:11 +0100)]
Remove hardcoded values

7 years agoUpdate documentation after recent changes to references.
Richard Heck [Tue, 3 Jan 2017 03:39:38 +0000 (22:39 -0500)]
Update documentation after recent changes to references.

7 years agoUpdate tex2lyx tests to new format.
Richard Heck [Tue, 3 Jan 2017 03:23:21 +0000 (22:23 -0500)]
Update tex2lyx tests to new format.

7 years agoAdapt tex2lyx to the new file format.
Richard Heck [Sun, 19 Jun 2016 02:24:27 +0000 (22:24 -0400)]
Adapt tex2lyx to the new file format.

7 years agoAdd ability to use refstyle's plural and capitalization features.
Richard Heck [Sat, 18 Jun 2016 23:29:15 +0000 (19:29 -0400)]
Add ability to use refstyle's plural and capitalization features.

7 years agoUpdate tex2lyx tests.
Richard Heck [Mon, 2 Jan 2017 23:14:41 +0000 (18:14 -0500)]
Update tex2lyx tests.

7 years agoLabel only command for reference dialog.
Richard Heck [Sat, 18 Jun 2016 22:38:24 +0000 (18:38 -0400)]
Label only command for reference dialog.

7 years agoFix memory leak with WordLists
Guillaume Munch [Sat, 31 Dec 2016 14:16:15 +0000 (15:16 +0100)]
Fix memory leak with WordLists

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

7 years agoConvert a pointer to a reference
Guillaume Munch [Sat, 31 Dec 2016 14:22:07 +0000 (15:22 +0100)]
Convert a pointer to a reference

The validity of the reference is guaranteed by QThreadLocalStorage

7 years agoRemove a redundant deletion of a QObject
Guillaume Munch [Sat, 31 Dec 2016 14:16:15 +0000 (15:16 +0100)]
Remove a redundant deletion of a QObject

7 years agoTocWidget: Remove possibly dangling BufferView pointer
Guillaume Munch [Sat, 31 Dec 2016 14:16:15 +0000 (15:16 +0100)]
TocWidget: Remove possibly dangling BufferView pointer

7 years agoFix dangling inset pointers after buffer reload
Guillaume Munch [Sat, 31 Dec 2016 14:16:15 +0000 (15:16 +0100)]
Fix dangling inset pointers after buffer reload

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

The root of the issue is in Buffer::reload() called during "Save As".  After
loadLyXFile() there, all the insets have been deleted, and therefore the Inset
pointer GuiView::documentBufferView()->cursor().inset() is dangling. Immediately
after loadLyXFile(), reload() calls updateBuffer() which causes a segfault.

While debugging I got other segfaults caused by the same dangling Inset pointer
in Cursor, notably: 1) a trace identical to the second one from
<http://www.lyx.org/trac/ticket/10520>, and 2) a similar segfault in the
critical path after emergency saving (call to inMathed()).

Having to "refresh" by hand the inset pointer cache in CursorSlice is very
unsatisfactory, but there does not appears to be a consistent strategy for
managing these Inset pointers in CursorSlice.

7 years agoRemove outdated comment
Guillaume Munch [Sat, 31 Dec 2016 14:01:12 +0000 (15:01 +0100)]
Remove outdated comment

UpdateToolbars is no longer slow

7 years agoDon't need the else, since all codepaths return.
Richard Heck [Sun, 18 Dec 2016 03:16:49 +0000 (22:16 -0500)]
Don't need the else, since all codepaths return.

7 years agoInvert logic.
Richard Heck [Sun, 18 Dec 2016 03:13:37 +0000 (22:13 -0500)]
Invert logic.

7 years agoRe-organize, whitespace.
Richard Heck [Sun, 18 Dec 2016 03:12:27 +0000 (22:12 -0500)]
Re-organize, whitespace.

7 years agoRemove useless for loop.
Richard Heck [Sun, 18 Dec 2016 03:09:03 +0000 (22:09 -0500)]
Remove useless for loop.

7 years agoMore precise format description
Juergen Spitzmueller [Thu, 29 Dec 2016 16:36:55 +0000 (17:36 +0100)]
More precise format description

7 years agoThe usual tex2lyx tests update after file format change
Juergen Spitzmueller [Thu, 29 Dec 2016 15:48:22 +0000 (16:48 +0100)]
The usual tex2lyx tests update after file format change

7 years agoAdd support for the Crimson font
Juergen Spitzmueller [Thu, 29 Dec 2016 15:45:19 +0000 (16:45 +0100)]
Add support for the Crimson font

We use the more comprehensive cochineal package if available and fall
back to the crimson package, if not.

Math support is provided by means of newtxmath

Fixes: #9974, #9976
7 years agoWarn if child has diff non-Tex font settings
Scott Kostyshak [Fri, 25 Nov 2016 02:47:45 +0000 (21:47 -0500)]
Warn if child has diff non-Tex font settings

It is easy to come across problems when the settings are not the
same.

This is consistent with our current warning about different document
classes.

For discussion and a motivating MWE, see:
https://www.mail-archive.com/search?l=mid&q=20161121024539.kn6rsqotaw4n2efk%40klay

7 years agoUpdate sk.po
Kornel Benko [Thu, 29 Dec 2016 08:43:00 +0000 (09:43 +0100)]
Update sk.po

7 years agoFix two hyperlink-insert problems
Juergen Spitzmueller [Thu, 29 Dec 2016 08:17:53 +0000 (09:17 +0100)]
Fix two hyperlink-insert problems

1. Do not prematurely cut selection (#10306); patch proposed by Daniel Ramöller
2. Obey lfun argument, even if there is a selection

7 years agode.po
Juergen Spitzmueller [Thu, 29 Dec 2016 08:04:22 +0000 (09:04 +0100)]
de.po

7 years agoFixup c49cd699: QString::toStdString is not always available
Jean-Marc Lasgouttes [Wed, 28 Dec 2016 21:44:40 +0000 (22:44 +0100)]
Fixup c49cd699: QString::toStdString is not always available

This method requires STL support in Qt. Fortunately, it is not needed
here.

7 years agoAdd Joel Kulesza to the credits
Juergen Spitzmueller [Wed, 28 Dec 2016 15:50:25 +0000 (16:50 +0100)]
Add Joel Kulesza to the credits

7 years agoFrom c7899a30a0b5975bf599a69ecd11ab25e1cdf1a4 Mon Sep 17 00:00:00 2001
Juergen Spitzmueller [Wed, 28 Dec 2016 15:34:44 +0000 (16:34 +0100)]
From c7899a30a0b5975bf599a69ecd11ab25e1cdf1a4 Mon Sep 17 00:00:00 2001
From: "Joel A. Kulesza" <jkulesza@gmail.com>
Date: Mon, 24 Oct 2016 17:37:58 -0600
Subject: [PATCH] Add "Swap & Reverse" to math delimiter dialog

When "Keep matched" is unchecked, a button becomes enabled to "Swap &
Reverse" the left and right delimiters.  This is expected to be of use
with line-wrapped equations featuring one or more set of delimiters that
break across the lines.  When "Keep matched" is checked, the button is
visible but disabled.

The most common use case is expected to be the user entering a pair of
unmatched delimiters on the first line of an equation (e.g., "(" and
"(None)"), entering the inner text, going to the next line, and
inserting the opposite set of delimiters (e.g., "(None)" and ")").
This button will negate the need to find the correct corresponding
combination.  However, it relies on the dialog's memory of the previous
unmatched set.

This change addresses Ticket #10457

-----------

Modifications by spitz to the original patch:

* Only enable the button if an unmatched pair is selected
* Consider l7n when locating the string "(None)"
* Add an accelerator and a tooltip to the dialog
* Simplify the code a bit

7 years agoStatus bar information for InsetMathKern
Guillaume Munch [Tue, 27 Dec 2016 18:25:46 +0000 (19:25 +0100)]
Status bar information for InsetMathKern

\mkern is invisible in mathed as a consequence of 10c8d51b. Add information in
the status bar when it is there.

7 years agoAdd some line breaks
Juergen Spitzmueller [Tue, 27 Dec 2016 15:02:31 +0000 (16:02 +0100)]
Add some line breaks

7 years agoUpdate sk.po
Kornel Benko [Tue, 27 Dec 2016 11:22:46 +0000 (12:22 +0100)]
Update sk.po

7 years agoImprove quotation mark opening/closing guess
Juergen Spitzmueller [Tue, 27 Dec 2016 11:06:54 +0000 (12:06 +0100)]
Improve quotation mark opening/closing guess

Fixes: #8831
This introduces
* a new inset member isPartOfTextSequence() that returns
whether the inset produces something visible at the current position
in the text flow
* an isOpenPunctuation() test that returns whether a character is in the
'Punctuation, Open' unicode class. This is used instead of just checking
for two (Western, ASCII) opening brackets

It also fixes the isChar() and isLetter() value of InsetSpecialChar,
since some types have not been assigned correctly.

7 years agoUpdate quote-insert bindings
Juergen Spitzmueller [Tue, 27 Dec 2016 07:39:06 +0000 (08:39 +0100)]
Update quote-insert bindings

7 years agoHandle the case of TeX fonts LuaTeX
Juergen Spitzmueller [Mon, 26 Dec 2016 13:41:14 +0000 (14:41 +0100)]
Handle the case of TeX fonts LuaTeX

7 years agoupdate tex2lyx tests
Juergen Spitzmueller [Mon, 26 Dec 2016 13:04:52 +0000 (14:04 +0100)]
update tex2lyx tests

7 years agoSupport for CJK quotation marks
Juergen Spitzmueller [Mon, 26 Dec 2016 13:03:48 +0000 (14:03 +0100)]
Support for CJK quotation marks

File format change

Fixes: #2712
7 years agoDo not attempt to add dynamic quotes to the style combo
Juergen Spitzmueller [Mon, 26 Dec 2016 10:25:34 +0000 (11:25 +0100)]
Do not attempt to add dynamic quotes to the style combo

7 years agoadd missing bit
Juergen Spitzmueller [Mon, 26 Dec 2016 09:47:28 +0000 (10:47 +0100)]
add missing bit

7 years agoUse master buffer params for quote style
Juergen Spitzmueller [Sun, 25 Dec 2016 16:23:07 +0000 (17:23 +0100)]
Use master buffer params for quote style

+ some formatting polishment

7 years agode.po
Juergen Spitzmueller [Sun, 25 Dec 2016 16:13:42 +0000 (17:13 +0100)]
de.po

7 years agoUserGuide: Document the quotation mark changes
Juergen Spitzmueller [Sun, 25 Dec 2016 12:38:52 +0000 (13:38 +0100)]
UserGuide: Document the quotation mark changes

7 years agoUpdate tex2lyx tests
Juergen Spitzmueller [Sun, 25 Dec 2016 11:20:06 +0000 (12:20 +0100)]
Update tex2lyx tests

7 years agoImplement dynamic quotation marks
Juergen Spitzmueller [Sun, 25 Dec 2016 11:19:02 +0000 (12:19 +0100)]
Implement dynamic quotation marks

File format change.

7 years agode.po
Juergen Spitzmueller [Sat, 24 Dec 2016 14:08:04 +0000 (15:08 +0100)]
de.po

7 years agoUpdate tex2lyx tests
Juergen Spitzmueller [Sat, 24 Dec 2016 13:31:59 +0000 (14:31 +0100)]
Update tex2lyx tests

7 years agoSome new quote styles
Juergen Spitzmueller [Sat, 24 Dec 2016 13:27:00 +0000 (14:27 +0100)]
Some new quote styles

* b    `british'    (``inner quotation'')
* w    >>swedishg>> ('inner quotation')   ["g" = Guillemets]
* f    <<french>>   (``inner quotation'')
* i    <<frenchin>> (<<inner quotation>>) ["in" = Imprimerie Nationale]
* r    <<russian>>  (,,inner quotation``)

Rename "french" to "swiss"

Also rename "single/double" to "secondary/primary" ("inner/outer" in
the UI) and "left/right" to "opening/closing". Note that the inset
identifier string is left as is ("s/d" and "l/r")

7 years agoFix glitch introduced in 2e255b1c4f
Juergen Spitzmueller [Sat, 24 Dec 2016 12:32:49 +0000 (13:32 +0100)]
Fix glitch introduced in 2e255b1c4f

set correct combo values.

7 years agoRestructure InsetQuotes for better extensibilty
Juergen Spitzmueller [Sat, 24 Dec 2016 09:13:51 +0000 (10:13 +0100)]
Restructure InsetQuotes for better extensibilty

The current char-based implementation gets increasingly unreadable,
especially if styles are added that do not follow the strict
single-double paradigm.

7 years agode.po
Juergen Spitzmueller [Wed, 21 Dec 2016 14:22:32 +0000 (15:22 +0100)]
de.po

7 years agoAdd "Plain" quotation mark style
Juergen Spitzmueller [Wed, 21 Dec 2016 14:17:30 +0000 (15:17 +0100)]
Add "Plain" quotation mark style

File format change

7 years agoHandle fontenc in InsetQuotes::updateBuffer
Juergen Spitzmueller [Wed, 21 Dec 2016 11:29:32 +0000 (12:29 +0100)]
Handle fontenc in InsetQuotes::updateBuffer

7 years agoEmbeddedObjects.lyx: fix some typos and few improvements
Uwe Stöhr [Wed, 21 Dec 2016 01:21:59 +0000 (02:21 +0100)]
EmbeddedObjects.lyx: fix some typos and few improvements

7 years agoUpdate tex2lyx tests for format 519.
Juergen Spitzmueller [Tue, 20 Dec 2016 17:57:34 +0000 (18:57 +0100)]
Update tex2lyx tests for format 519.

7 years agoRename \\quotes_language to\\quotes_style
Juergen Spitzmueller [Tue, 20 Dec 2016 17:54:07 +0000 (18:54 +0100)]
Rename \\quotes_language to\\quotes_style

File format change.

7 years agoRename some quote-related params
Juergen Spitzmueller [Tue, 20 Dec 2016 16:55:43 +0000 (17:55 +0100)]
Rename some quote-related params

Quote Language -> Quote Style
Quote Times-> Quote Level

No change in functionality.

7 years agoCmake tests: Remove use of 'UNRELIABLE' label
Kornel Benko [Tue, 20 Dec 2016 15:26:07 +0000 (16:26 +0100)]
Cmake tests: Remove use of 'UNRELIABLE' label

Using this label in invertedTests expands the testname unnecessary, so that
we get e.g. labels like:
  SUSPENDED.UNRELIABLE.WRONG_OUTPUT.UNRELIABLE_export/doc/de/EmbeddedObjects_pdf4_texF
OTOH, if using label 'unreliable', we get a warning about label-names clash.
The best is to reset any previous label setting.

7 years agoUpdate description of cursor classes
Jean-Marc Lasgouttes [Tue, 20 Dec 2016 11:14:21 +0000 (12:14 +0100)]
Update description of cursor classes

7 years agoEmbeddedObjects.lyx: new description how to change table line colors within tables
Uwe Stöhr [Tue, 20 Dec 2016 01:46:47 +0000 (02:46 +0100)]
EmbeddedObjects.lyx: new description how to change table line colors within tables

will be backported the tomorrow

7 years agoThickness of \cancel
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Thickness of \cancel

7 years agoFix missing \bigg variants for \llbracket
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Fix missing \bigg variants for \llbracket

7 years agoFactor code for math axis height
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Factor code for math axis height

7 years agoAdd InsetMathClass to the list of math completions
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Add InsetMathClass to the list of math completions

7 years agoDo not rely on toolTip() to generate LaTeX code
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Do not rely on toolTip() to generate LaTeX code

7 years agoFix compilation with Qt5.8dev
Guillaume Munch [Mon, 19 Dec 2016 23:15:58 +0000 (00:15 +0100)]
Fix compilation with Qt5.8dev

7 years agoMathClass of xrightarrow & co
Guillaume Munch [Mon, 19 Dec 2016 23:15:58 +0000 (00:15 +0100)]
MathClass of xrightarrow & co

7 years agoUserGuide.lyx: fix 2 typos spotted by a user
Uwe Stöhr [Mon, 19 Dec 2016 22:49:47 +0000 (23:49 +0100)]
UserGuide.lyx: fix 2 typos spotted by a user

7 years agoAdd caching for the QTextLayout objects we use
Jean-Marc Lasgouttes [Tue, 5 Jul 2016 12:06:22 +0000 (14:06 +0200)]
Add caching for the QTextLayout objects we use

The QTextLayout handling is terribly slow on Qt 4.8.7, but some
caching has been added in Qt5 that makes it much faster. For some
reason, it is not that slow with Qt 4.8.1.

Caches are introduced for the three following methods

* width(doctring), controlled by CACHE_METRICS_WIDTH. This cache already
  existed, but the code has been cleaned up

* getTextLayout, controlled by CACHE_METRICS_QTEXTLAYOUT (disabled by
  default on Qt5, which does its own caching). This is used for pos2x
  and x2pos and now for drawing of text too. The previous code used a
  trivial caching scheme of the last used QTextLayout, but now they
  are properly kept in a QCache. Moreover, the cacheEnabled() property
  is enabled for these QTextLayout object (not sure what this does).

* breakAt, controlled by CACHE_METRICS_BREAKAT. This is the only user
  of QTextLayout which did not have some kind of caching already.

For some weird reasons related to Argument-dependent look-up, the
qHash(docstring) function has to be defined in std namespace, since
lyx::docstring is actually std::basic_string<wchar_t>.

[NOTE: this version has profiling hooks, enabled by commenting out the line
  #define DISABLE_PMPROF
that should eventually be removed.]

7 years agoFix segfault on null buffer in Converters::checkAuth(), introduced in [244de5d2/lyxgit].
Tommaso Cucinotta [Mon, 19 Dec 2016 09:40:03 +0000 (10:40 +0100)]
Fix segfault on null buffer in Converters::checkAuth(), introduced in [244de5d2/lyxgit].

7 years agoFurther improve quote-inserts documentation
Juergen Spitzmueller [Mon, 19 Dec 2016 10:39:56 +0000 (11:39 +0100)]
Further improve quote-inserts documentation

7 years agoUse xfrac package for "fraction characters".
Günter Milde [Sun, 18 Dec 2016 22:41:43 +0000 (23:41 +0100)]
Use xfrac package for "fraction characters".

The xfrac package is the "state of the art" for "split-level" (nice) fractions.
Character replacements look consistent, scale properly and fit in the line.

Fixes #5220.