]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoMerge branch 'master' into biblatex2
Juergen Spitzmueller [Fri, 13 Jan 2017 08:11:04 +0000 (09:11 +0100)]
Merge branch 'master' into biblatex2

7 years agoAssure long tooltip is correctly formatted.
Juergen Spitzmueller [Fri, 13 Jan 2017 08:07:44 +0000 (09:07 +0100)]
Assure long tooltip is correctly formatted.

Amendment to ffb195b5e9fa

7 years agoAdd Martin Brown to credits.
Richard Heck [Thu, 12 Jan 2017 15:31:58 +0000 (10:31 -0500)]
Add Martin Brown to credits.

7 years agoMerge branch 'master' into biblatex2
Juergen Spitzmueller [Thu, 12 Jan 2017 15:13:13 +0000 (16:13 +0100)]
Merge branch 'master' into biblatex2

7 years agoconfigure.py: Add raster image viewers
Günter Milde [Thu, 12 Jan 2017 14:42:02 +0000 (15:42 +0100)]
configure.py: Add raster image viewers

Add common raster image viewing applications:

gwenview: KDE image viewer,
eog: Eye of Gnome, the Gnome default viewer,
xviewer:  Eye of Gnome successor for MATE and Cinnamon,
ristretto:  XFCE image viewer,
gpicview: LXDE image viewer,
lximage-qt: QXDE image viewer,

xdg-open:    generic file handler

The problem with xdg-open is, that it calls the browser (firefox) as fallback. This is not good for DVI and PDF, but still better than an editor (Gimp) for raster images.

Kee Gimp as last option for viewing, and default choice for editing.

7 years agoconfigure.py: Make 'notepad' last in text editor list
Günter Milde [Thu, 12 Jan 2017 14:35:24 +0000 (15:35 +0100)]
configure.py: Make 'notepad' last in text editor list

Place "notepad" at the end of the text editor selection list.

* Under Linux, notepad comes with the Windows emulator "wine"
but it is not a good choice for the default text editor.
 * Most Windows users will not have the Linux programs
and not see any change.
* Windows users with the Windows version of "geany"
will see this (syntax highlighting) editor preferred over notepad by default.

7 years agoconfigure.py: Add 'xed' editor (gedit fork)
Günter Milde [Wed, 11 Jan 2017 19:18:15 +0000 (20:18 +0100)]
configure.py: Add 'xed' editor (gedit fork)

'xed' is the 'gedit/plume' successor by Linux-Mint.
It inherits gedit's functionaly and adds a traditional UI matching the
XFCE, MATE and Cinnamon desktop environments.
See: https://de.wikipedia.org/wiki/X-Apps

7 years agoconfigure.py: Add 'xreader' document viewer (evince fork)
Günter Milde [Wed, 11 Jan 2017 17:23:03 +0000 (18:23 +0100)]
configure.py: Add 'xreader' document viewer (evince fork)

'xreader' is the successor of 'evince' by Linux-Mint.
It inherits evince's functionaly and adds a traditional UI
matching the XFCE, MATE and Cinnamon desktop environments.
See: https://de.wikipedia.org/wiki/X-Apps

7 years agoconfigure.py: Add 'evince' as DVI viewer
Günter Milde [Wed, 11 Jan 2017 17:10:50 +0000 (18:10 +0100)]
configure.py: Add 'evince' as DVI viewer

The GNOME document viewer "evince" supports also DVI.
See https://wiki.gnome.org/Apps/Evince/SupportedDocumentFormats/

7 years agoMerge branch 'master' into biblatex2
Juergen Spitzmueller [Thu, 12 Jan 2017 13:29:55 +0000 (14:29 +0100)]
Merge branch 'master' into biblatex2

7 years agoUse master buffer params when appropriate
Juergen Spitzmueller [Thu, 12 Jan 2017 11:19:14 +0000 (12:19 +0100)]
Use master buffer params when appropriate

7 years agoFix drawing of empty boxes
Jean-Marc Lasgouttes [Thu, 12 Jan 2017 11:15:17 +0000 (12:15 +0100)]
Fix drawing of empty boxes

They were actually bigger than their metrics.

7 years agoRename InsetMathNest::metrics to cellsMetrics
Jean-Marc Lasgouttes [Thu, 12 Jan 2017 10:22:51 +0000 (11:22 +0100)]
Rename InsetMathNest::metrics to cellsMetrics

Re-using the name of a virtual method with different semantics is not
a good idea anyway.

7 years agoImplement mathClass() for \big and friends
Jean-Marc Lasgouttes [Thu, 12 Jan 2017 09:27:41 +0000 (10:27 +0100)]
Implement mathClass() for \big and friends

The information here is obtained by reading LaTeX sources.

7 years agoMerge branch 'master' into biblatex2
Juergen Spitzmueller [Thu, 12 Jan 2017 08:05:28 +0000 (09:05 +0100)]
Merge branch 'master' into biblatex2

7 years agoUpdate tex2lyx tests.
Richard Heck [Wed, 11 Jan 2017 19:15:51 +0000 (14:15 -0500)]
Update tex2lyx tests.

7 years agoRe-implement math markers logic.
Jean-Marc Lasgouttes [Fri, 6 Jan 2017 08:52:10 +0000 (09:52 +0100)]
Re-implement math markers logic.

The goal of this patch is to be able to properly remove the space
needed for markers in the case of insets that are inside macros and do
not need these markers. This was attempted at 9a9a6a8, but did not
work reliably.

To this end, the following simplifications are made:

* instead of drawing its own markers, each inset has a virtual method
  marker() which prescribes either NO_MARKER, MARKER (normal bottom
  marker) or MARKER2 (top and bottom marker). All explicit calls to
  (draw|metrics)Markers(|2) are removed.

* the space necessary for the markers is now counted in the
  before/above margins in the row structure. Therefore painting will
  not happen at (x + 1, y), but just (x,y).

* the methods drawDecoration are removed.

* the helper methods InsetMath::(draw|metrics)Markers(|2) are removed
  and replaced by a new function drawMarkers in MathRow.cpp.

Now the marker type is kept in the MathRow::Element object (and set to
NO_MARKER in not editable context) and the marker is accounted for in
MathRow::(metrics|draw).

Moreover, the extra pixel for the marker is taken on the before/After
space if possible. The marker will only require extra space when
before/after is 0.

See comment 168 of #8883 to understand what issues are fixed.

7 years agoFix issues with macro_nesting handling
Jean-Marc Lasgouttes [Thu, 5 Jan 2017 12:25:28 +0000 (13:25 +0100)]
Fix issues with macro_nesting handling

The rewrite of macro_nesting done at 0f15dcc6 was faulty, in
particular since the information should be available also at draw
time. To this end, we revert the patch of the said commit that removes
macro nesting information from MathRow::Element. In the next commit,
we will change the marker code so that MathRow::draw does not need the
nesting information.

Actually the code is now cleaner since the macro nesting stack of
MathRow::metrics can be removed.

7 years agoUpdate man page
Juergen Spitzmueller [Wed, 11 Jan 2017 09:43:54 +0000 (10:43 +0100)]
Update man page

7 years agoMerge branch 'master' into biblatex2
Juergen Spitzmueller [Wed, 11 Jan 2017 09:45:48 +0000 (10:45 +0100)]
Merge branch 'master' into biblatex2

7 years agoPython formatting (no change to function).
Günter Milde [Wed, 11 Jan 2017 09:42:32 +0000 (10:42 +0100)]
Python formatting (no change to function).

* remove trailing whitespace,
* remove/replace NL-escaping backslashs,
* wrap long lines.

7 years agoTypo
Kornel Benko [Wed, 11 Jan 2017 09:17:25 +0000 (10:17 +0100)]
Typo

7 years agoCmake tests: Allow ignoring some latex error messages
Kornel Benko [Wed, 11 Jan 2017 09:15:13 +0000 (10:15 +0100)]
Cmake tests: Allow ignoring some latex error messages

New file: ignoreLatexErrorsTests
The sublabels in this list of export-testnames specify which error
messages should be ignored.
For each sublabel (for example "xxx") the lyx-command line is expanded with
  "--ignore-error-message xxx"

7 years agoCommand line option to ignore error msgs
Juergen Spitzmueller [Wed, 11 Jan 2017 08:21:13 +0000 (09:21 +0100)]
Command line option to ignore error msgs

Needed by the test framework

7 years agoFix display of empty box in nested macros
Jean-Marc Lasgouttes [Mon, 9 Jan 2017 17:23:17 +0000 (18:23 +0100)]
Fix display of empty box in nested macros

The rewrite of nesting handling at 0f15dcc6 was incomplete: the
macro nesting has to be reset to 0 when inside a macro argument at
level 1.

7 years agoMerge branch 'master' into biblatex2
Juergen Spitzmueller [Tue, 10 Jan 2017 07:20:49 +0000 (08:20 +0100)]
Merge branch 'master' into biblatex2

7 years agoReorganise and simplify
Guillaume Munch [Mon, 9 Jan 2017 22:15:16 +0000 (23:15 +0100)]
Reorganise and simplify

7 years agoRemove comments about enumification of toc types
Guillaume Munch [Mon, 9 Jan 2017 22:15:16 +0000 (23:15 +0100)]
Remove comments about enumification of toc types

This is no longer likely to happen.

7 years agomerge recent changes from master
Juergen Spitzmueller [Mon, 9 Jan 2017 19:04:32 +0000 (20:04 +0100)]
merge recent changes from master

7 years agoFix typo in Development.lyx
Scott Kostyshak [Mon, 9 Jan 2017 18:48:32 +0000 (13:48 -0500)]
Fix typo in Development.lyx

7 years agoClarify layout and add some tooltips
Juergen Spitzmueller [Mon, 9 Jan 2017 17:54:49 +0000 (18:54 +0100)]
Clarify layout and add some tooltips

Addresses: #9795

7 years agoImprove the list of equations
Guillaume Munch [Mon, 9 Jan 2017 16:37:50 +0000 (17:37 +0100)]
Improve the list of equations

Also convert other Tocs to TocBuilder when trivial, to make them customisable

7 years agoRemove some hardcoded addToToc: note, footnote, marginalnote, branch
Guillaume Munch [Mon, 9 Jan 2017 12:28:48 +0000 (13:28 +0100)]
Remove some hardcoded addToToc: note, footnote, marginalnote, branch

Define their Toc from the layout instead.

7 years agoDocument AddToToc
Guillaume Munch [Sun, 8 Jan 2017 20:55:56 +0000 (21:55 +0100)]
Document AddToToc

7 years agoImplement AddToToc for paragraph layouts
Guillaume Munch [Sun, 8 Jan 2017 20:57:02 +0000 (21:57 +0100)]
Implement AddToToc for paragraph layouts

Enables table of Theorems & Definitions

7 years agoUpdate Sweave, Knitr manual and showcase the new Navigate menu
Guillaume Munch [Sun, 8 Jan 2017 18:19:55 +0000 (19:19 +0100)]
Update Sweave, Knitr manual and showcase the new Navigate menu

Also mention needauth option

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 agoExtend and improve name list handling
Juergen Spitzmueller [Mon, 9 Jan 2017 16:54:56 +0000 (17:54 +0100)]
Extend and improve name list handling

This allows to generate different name lists depending on the need and
context.

Also addresses #8489.

7 years agoMerge branch 'master' into biblatex2
Juergen Spitzmueller [Mon, 9 Jan 2017 08:53:20 +0000 (09:53 +0100)]
Merge branch 'master' into biblatex2

7 years agol7n
Juergen Spitzmueller [Mon, 9 Jan 2017 08:50:34 +0000 (09:50 +0100)]
l7n

7 years agoRemove Requires and Excludes from CiteEngines
Juergen Spitzmueller [Mon, 9 Jan 2017 08:04:37 +0000 (09:04 +0100)]
Remove Requires and Excludes from CiteEngines

These are exclusive anyway.

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 agoMerge branch 'master' into biblatex2
Juergen Spitzmueller [Sun, 8 Jan 2017 17:41:11 +0000 (18:41 +0100)]
Merge branch 'master' into biblatex2

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

7 years agoUser Guide documentation.
Juergen Spitzmueller [Sun, 8 Jan 2017 16:11:01 +0000 (17:11 +0100)]
User Guide documentation.

Now only an adaptation of the Additional Features manual is needed,
but I leave this for now, since that manual apparently is undergoing
a major revision.

7 years agoNo punctuation in labels!
Juergen Spitzmueller [Sun, 8 Jan 2017 14:24:39 +0000 (15:24 +0100)]
No punctuation in labels!

7 years agoDocumentation bit.
Juergen Spitzmueller [Sun, 8 Jan 2017 11:45:56 +0000 (12:45 +0100)]
Documentation bit.

7 years agoBiblatex support
Juergen Spitzmueller [Sun, 8 Jan 2017 08:39:46 +0000 (09:39 +0100)]
Biblatex support

File format change

7 years agoMerge branch 'master' into biblatex2
Juergen Spitzmueller [Sun, 8 Jan 2017 08:06:26 +0000 (09:06 +0100)]
Merge branch 'master' into biblatex2

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 agoDynamically set final punctuation of bib entries
Juergen Spitzmueller [Sat, 7 Jan 2017 16:55:38 +0000 (17:55 +0100)]
Dynamically set final punctuation of bib entries

Fullcite does not need the punct.

7 years agoMake max_key_size limit adjustable
Juergen Spitzmueller [Sat, 7 Jan 2017 16:46:18 +0000 (17:46 +0100)]
Make max_key_size limit adjustable

This _must_ be increased for xhtml output of fullcite, else we get
fragmentary html code.

I am aware of the reason for this size limit (#8944) and have carefully
checked that this is not affected.

7 years agoAdd a couple more BiblioInfo conditionals
Juergen Spitzmueller [Sat, 7 Jan 2017 16:41:59 +0000 (17:41 +0100)]
Add a couple more BiblioInfo conditionals

* ifentrytype:<type> whether we are a specific entry type (e.g. "book")

* export: export context (as opposed to dialog or workarea)

* second: whether we are in the second item of a list (useful when you
  need to separate by " and " or ", and "

7 years agoOutsource jurabib specials to the style file.
Juergen Spitzmueller [Sat, 7 Jan 2017 16:40:23 +0000 (17:40 +0100)]
Outsource jurabib specials to the style file.

7 years agoLimit InsetCitation tooltip to sensible length
Juergen Spitzmueller [Sat, 7 Jan 2017 16:38:25 +0000 (17:38 +0100)]
Limit InsetCitation tooltip to sensible length

7 years agoAdd items to toggle "Force uppercase" and "Full author list" to the context menu
Juergen Spitzmueller [Sat, 7 Jan 2017 16:37:35 +0000 (17:37 +0100)]
Add items to toggle "Force uppercase" and "Full author list" to the context menu

7 years agoImplement display of starred cite commands
Juergen Spitzmueller [Sat, 7 Jan 2017 16:32:45 +0000 (17:32 +0100)]
Implement display of starred cite commands

This entails a change of getAbbrAuthor to getAuthorList (the default is
still abbreviated with respect to MaxCiteItems, but the list can be, at
explicit request, shortened or full notwithstanding MaxCiteItems.

7 years agoImplement display of forceUpperCase
Juergen Spitzmueller [Sat, 7 Jan 2017 16:21:41 +0000 (17:21 +0100)]
Implement display of forceUpperCase

7 years agoImplement CiteItem in the chain
Juergen Spitzmueller [Sat, 7 Jan 2017 16:12:08 +0000 (17:12 +0100)]
Implement CiteItem in the chain

This allows us to get rid of many idiosyncratic arguments and gives us
a cleaner chain (plus easier extensibility).

7 years agoAdd CiteItem class
Juergen Spitzmueller [Sat, 7 Jan 2017 15:46:00 +0000 (16:46 +0100)]
Add CiteItem class

This will be used to transfer any single-cite related information from
anywhere to BiblioInfo (instead of the many strings and bools we use
until now).

This is a prerequisite for some forthcoming fixes and enhancements.

7 years agoNew tag MaxCiteNames
Juergen Spitzmueller [Sat, 7 Jan 2017 15:44:27 +0000 (16:44 +0100)]
New tag MaxCiteNames

This determines the number of authors before "et al.". We had it
hardcoded to 2, but actually the nuumber differs.

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

7 years agoMerge branch 'master' into biblatex2
Juergen Spitzmueller [Thu, 5 Jan 2017 13:30:26 +0000 (14:30 +0100)]
Merge branch 'master' into biblatex2

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 agoFix default biblio style detection
Juergen Spitzmueller [Wed, 4 Jan 2017 16:11:25 +0000 (17:11 +0100)]
Fix default biblio style detection

7 years agoMerge branch 'master' into biblatex2
Juergen Spitzmueller [Wed, 4 Jan 2017 12:43:24 +0000 (13:43 +0100)]
Merge branch 'master' into biblatex2

7 years agoExtend cite engine style documentation
Juergen Spitzmueller [Wed, 4 Jan 2017 12:30:50 +0000 (13:30 +0100)]
Extend cite engine style documentation

7 years agoConsider possibility of empty tooltip
Juergen Spitzmueller [Wed, 4 Jan 2017 12:29:57 +0000 (13:29 +0100)]
Consider possibility of empty tooltip

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 agoMerge branch 'master' into biblatex2
Juergen Spitzmueller [Tue, 3 Jan 2017 20:49:56 +0000 (21:49 +0100)]
Merge branch 'master' into biblatex2

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 agoNo need to hardcode the possible cite commands
Juergen Spitzmueller [Tue, 3 Jan 2017 16:27:51 +0000 (17:27 +0100)]
No need to hardcode the possible cite commands

We fall back to a sensible default anyway.

7 years agoGeneralize starred cite commands
Juergen Spitzmueller [Tue, 3 Jan 2017 16:25:41 +0000 (17:25 +0100)]
Generalize starred cite commands

Not all of them expand the author list. Thus rename the parameter to
hasStarredVersion and provide a means to adjust the GUI accordingly.

7 years agoAdd some documentation to the rather esoteric style files
Juergen Spitzmueller [Tue, 3 Jan 2017 14:35:57 +0000 (15:35 +0100)]
Add some documentation to the rather esoteric style files

7 years agoFix the alias detection
Juergen Spitzmueller [Tue, 3 Jan 2017 14:05:55 +0000 (15:05 +0100)]
Fix the alias detection

7 years agoDifferentiate InsetCite
Juergen Spitzmueller [Tue, 3 Jan 2017 12:11:11 +0000 (13:11 +0100)]
Differentiate InsetCite

Next to the cmd name, introduce optional latex names (that might differ
from the cmd name) and aliases (that are "obsoleted by" the cmd).

This enhances portability between the engines.