]> git.lyx.org Git - features.git/log
features.git
7 years ago Update fr.po
jpc [Wed, 1 Feb 2017 10:00:16 +0000 (11:00 +0100)]
     Update fr.po

7 years agoMake sanitize more robust to dangling pointers.
Jean-Marc Lasgouttes [Fri, 27 Jan 2017 15:36:06 +0000 (16:36 +0100)]
Make sanitize more robust to dangling pointers.

It is necessary to sanitize the new_word iterator too.

7 years agoRevert "Fix crash"
Jean-Marc Lasgouttes [Wed, 1 Feb 2017 09:11:20 +0000 (10:11 +0100)]
Revert "Fix crash"

A better fix is forthcoming.

This reverts commit 177ad3d4a4c6d9d96391a471630d6164170aca39.

7 years agoFix crash
Guillaume Munch [Tue, 31 Jan 2017 21:52:12 +0000 (22:52 +0100)]
Fix crash

Thanks Kornel for the report:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg198630.html

Apparently sanitize can crash. Use the safer fixIfBroken even though it
truncates the cursor.

7 years agoImplement rule 17
Guillaume Munch [Sun, 27 Nov 2016 21:45:51 +0000 (22:45 +0100)]
Implement rule 17

* Convert the kerning into a proper right margin for mathnormal, mathscr and
  mathcal (fonts with \fontdimen2 == 0 as per rule 17 from TeXBook).

* Simulate the fact that characters in mathnormal fonts have a 0-width left
  bearing.

* Implement subscript positioning in the case of rule 17 using negative italic
  correction (kerning_).

7 years agoAdd \math{rel,bin,op,ord} to the math toolbar
Guillaume Munch [Sun, 18 Dec 2016 21:53:41 +0000 (22:53 +0100)]
Add \math{rel,bin,op,ord} to the math toolbar

Styles becomes Styles & Classes.

Add 4 nice icons.

7 years agoNomencl.ui: minor layout improvement.
Juergen Spitzmueller [Mon, 30 Jan 2017 08:14:21 +0000 (09:14 +0100)]
Nomencl.ui: minor layout improvement.

7 years agode.po
Juergen Spitzmueller [Mon, 30 Jan 2017 08:02:12 +0000 (09:02 +0100)]
de.po

7 years agoUpdate tex2lyx tests
Juergen Spitzmueller [Mon, 30 Jan 2017 07:29:16 +0000 (08:29 +0100)]
Update tex2lyx tests

7 years agoCheck if literal param exists before querying value.
Juergen Spitzmueller [Mon, 30 Jan 2017 07:27:53 +0000 (08:27 +0100)]
Check if literal param exists before querying value.

Otherwise LyX asserts.

7 years agoExtend LATEXIFY command param handling and add literal param.
Juergen Spitzmueller [Mon, 30 Jan 2017 06:44:55 +0000 (07:44 +0100)]
Extend LATEXIFY command param handling and add literal param.

File format change.

This allows for the relevant InsetCommand-based dialogs (such as
citation text before/after, Bibitem label, hyperlink name etc.)
to provide both the input of verbatim code or text that is transformed
to proper LaTeX code.

Some dialogs (Nomencl, Href) already had some methods (although they
could not be toggled), which are now centralized and streamlined.

The initial work of this patch has been done by Georg Baum (see
http://www.lyx.org/trac/attachment/ticket/2751/x.diff)

Fixes: #2751, #8227.
7 years agoUpdate Additional.lyx wrt Biblatex
Juergen Spitzmueller [Sun, 29 Jan 2017 14:05:36 +0000 (15:05 +0100)]
Update Additional.lyx wrt Biblatex

7 years agoMove protectArgument function to lstrings
Juergen Spitzmueller [Sun, 29 Jan 2017 11:08:29 +0000 (12:08 +0100)]
Move protectArgument function to lstrings

This will be useful to other insets as well.

7 years agoWhitespace
Juergen Spitzmueller [Sat, 28 Jan 2017 12:00:33 +0000 (13:00 +0100)]
Whitespace

7 years agoFix flushing of row that was cut after an hyphen
Jean-Marc Lasgouttes [Fri, 27 Jan 2017 15:09:03 +0000 (16:09 +0100)]
Fix flushing of row that was cut after an hyphen

When using Qt stuff in breakAt, it may happen that the row is broken
after an hyphen (whereas the old code would only consider spaces).

The fact that we abuse the Row::right_boundary() property to detect when
a row should be flushed broke justification when a row is cut at an
hyphen.

Fix this by introducing a new Row::flushed() property and set it as needed.

7 years agoHandle backslash in escape function.
Juergen Spitzmueller [Fri, 27 Jan 2017 08:15:47 +0000 (09:15 +0100)]
Handle backslash in escape function.

Fixes: #4595.
Candidate for stable

7 years agoFix wrong DocIterator argument
Guillaume Munch [Thu, 26 Jan 2017 23:39:45 +0000 (00:39 +0100)]
Fix wrong DocIterator argument

Regression at 3391fed3.

The child's InsetText is the root, so we start with an empty DocIterator.

Thanks Scott for the report.

7 years agoUpdate child's TocBackend as well
Guillaume Munch [Thu, 26 Jan 2017 23:38:22 +0000 (00:38 +0100)]
Update child's TocBackend as well

Before 3391fed3, this was done in InsetInclude::addToToc

7 years agoFix wrong splitting of text row
Jean-Marc Lasgouttes [Thu, 26 Jan 2017 13:10:23 +0000 (14:10 +0100)]
Fix wrong splitting of text row

The code that tries to decide whether it is worth splitting a given
text row element had a shortcoming: it did not take into account the
left margin of the new row that would be created.

The problem is that this left margin is not the same as the left
margin of the current row, because there can be for example
indentation effects.

To fix this problem, we pass the amount of available space on the
next row as a parameter of Row::shortenIfNeeded.

Note that there is no need to care about RtL row elements at this
point, since the bidi algorithm will be applied to the row
subsequently.

7 years agoWin installer: fix 2 bugs and update libraries
Uwe Stöhr [Thu, 26 Jan 2017 01:19:27 +0000 (02:19 +0100)]
Win installer: fix 2 bugs and update libraries

7 years agoIgnore QT_SCALE_FACTOR for Qt < 5.6
Enrico Forestieri [Wed, 25 Jan 2017 19:00:54 +0000 (20:00 +0100)]
Ignore QT_SCALE_FACTOR for Qt < 5.6

This environment variable was introduced in Qt 5.6.0

7 years agoRevert "Long time no use of the autotests machinery, needs an update."
Tommaso Cucinotta [Wed, 25 Jan 2017 02:13:14 +0000 (03:13 +0100)]
Revert "Long time no use of the autotests machinery, needs an update."
Pushed by mistake ... not finished yet ... apologies.

This reverts commit be79d2cda8a80787e0ac054cd32d672a1c0243b1.

7 years agoLong time no use of the autotests machinery, needs an update.
Tommaso Cucinotta [Wed, 25 Jan 2017 01:08:28 +0000 (02:08 +0100)]
Long time no use of the autotests machinery, needs an update.

7 years agoturned message about disabled converters from prefs from warning to error
Tommaso Cucinotta [Wed, 25 Jan 2017 02:09:41 +0000 (03:09 +0100)]
turned message about disabled converters from prefs from warning to error

7 years agoUse Paragraph::getAlign in TextMetrics
Jean-Marc Lasgouttes [Tue, 24 Jan 2017 18:33:03 +0000 (19:33 +0100)]
Use Paragraph::getAlign in TextMetrics

This avoids some duplicate code. Note that the return value of
Paragraph::getAlign had to be changed. I suspect it was set to char to
avoid reading one header file in Paragraph.h.

7 years agoAvoid markers for macros without arguments
Jean-Marc Lasgouttes [Mon, 23 Jan 2017 09:14:20 +0000 (10:14 +0100)]
Avoid markers for macros without arguments

An example was the \neq macro, which exhibited white markers when selecting.

7 years agoGeneralize the protection of brackets in citation arguments
Juergen Spitzmueller [Sun, 22 Jan 2017 09:27:06 +0000 (10:27 +0100)]
Generalize the protection of brackets in citation arguments

Whenever an argument delimiter is used inside the argument, the argument
needs to be grouped, that is

\cites({text (text) text})

or

\cite[{text [text] text}]

This fixes the original case reported in #2751 which is independent
from the general issue that the pre- and postnote field take literal
code.

7 years agoUpdate sk.po
Kornel Benko [Sun, 22 Jan 2017 08:08:21 +0000 (09:08 +0100)]
Update sk.po

7 years agoAllow to properly scale the GUI with Qt5
Enrico Forestieri [Sun, 22 Jan 2017 00:06:00 +0000 (01:06 +0100)]
Allow to properly scale the GUI with Qt5

Starting with Qt 5.6, setting the environment variable QT_SCALE_FACTOR
makes everything accordingly bigger. So, if QT_SCALE_FACTOR=1.2, all
text and GUI elements are rendered 20% bigger. However, if an application
does not account for this, everything will also look "blocky".
With this commit, all text and images will be scaled remaining sharp.
This works whether a HiDpi screen is used or not, but is mostly useful
with a HiDpi screen, as all GUI elements are more spaced apart and one
can use the mouse for selecting things without requiring a high precision.

7 years agode.po
Juergen Spitzmueller [Sat, 21 Jan 2017 13:57:16 +0000 (14:57 +0100)]
de.po

7 years agoupdate tex2lyx tests
Juergen Spitzmueller [Sat, 21 Jan 2017 13:46:43 +0000 (14:46 +0100)]
update tex2lyx tests

7 years agoSupport for "qualified citation lists"
Juergen Spitzmueller [Sat, 21 Jan 2017 13:25:17 +0000 (14:25 +0100)]
Support for "qualified citation lists"

These are biblatex-specific multicite commands that allow for multiple
pre- and postnotes, as in:

\cites(pre)(post)[pre1][post1]{key1}[pre2][post2]{key2}...

with an optional general pre- and postnote, which applies to the whole
list (like [][] in normal cite commands) and an optional pre- and
postnotes for each item, so that pagination can actually be specified in
multi-cite references, as in:
(cf. Miller 2015, 2; furthermore Smith 2013, 23-23; Jenkins 2012, 103,
also refer to chapter 6 in this book)

See the biblatex manual, sec. 3.8.3., for details.

File format change.

7 years agoAdd clarifying comment
Enrico Forestieri [Fri, 20 Jan 2017 19:30:06 +0000 (20:30 +0100)]
Add clarifying comment

7 years agoFix metrics of math characters with 0 width
Jean-Marc Lasgouttes [Fri, 20 Jan 2017 09:32:40 +0000 (10:32 +0100)]
Fix metrics of math characters with 0 width

It seems that QTextLayout does not handle properly a single character
with 0 width. This breaks drawing of things like \not.

Actually the problem had been worked around already in lib/symbol. The
work around can therefore by removed now.
[additionally, remove extra spacing from \mapsto, \Mapsto]

7 years agoFix make check.
Pavel Sanda [Fri, 20 Jan 2017 01:00:18 +0000 (17:00 -0800)]
Fix make check.

7 years agoFix make distcheck, step1.
Pavel Sanda [Fri, 20 Jan 2017 00:42:43 +0000 (16:42 -0800)]
Fix make distcheck, step1.

This only let tarball creation to proceed, whether there
is something new needed by autotest needs to be tested
by anyone who is in charge.

7 years agoRegenerate contributions.
Richard Heck [Thu, 19 Jan 2017 20:39:14 +0000 (15:39 -0500)]
Regenerate contributions.

7 years agoAllow LyX to open empty files (created, e.g., via "touch").
Richard Heck [Thu, 19 Jan 2017 20:34:45 +0000 (15:34 -0500)]
Allow LyX to open empty files (created, e.g., via "touch").

Patch from new contributor Jan Niklas Hasse.

7 years agoTypo.
Richard Heck [Thu, 19 Jan 2017 20:29:14 +0000 (15:29 -0500)]
Typo.

7 years agoAdd some notes to User Guide about defining your own reference
Richard Heck [Thu, 19 Jan 2017 16:34:36 +0000 (11:34 -0500)]
Add some notes to User Guide about defining your own reference
formats.

7 years agoBOX tweak
Jean-Marc Lasgouttes [Fri, 13 Jan 2017 09:17:05 +0000 (10:17 +0100)]
BOX tweak

Add a pixel gap around boxes.

When a box is invisible, its width should be null (but keep the weight
to avoid drawing problems (think empty sqrt in a macro).

7 years agoDo not replace "--" with "\twohyphens" in formula macros.
Richard Heck [Thu, 19 Jan 2017 02:47:40 +0000 (21:47 -0500)]
Do not replace "--" with "\twohyphens" in formula macros.

7 years agoUpdate it.po
Enrico Forestieri [Wed, 18 Jan 2017 22:28:29 +0000 (23:28 +0100)]
Update it.po

7 years agoRevert "BOX tweak"
Jean-Marc Lasgouttes [Tue, 17 Jan 2017 15:31:34 +0000 (16:31 +0100)]
Revert "BOX tweak"

This reverts commit 596c9065e6feb8cfaadf79abd8cc73233d9442f1.

7 years agoFix glitch in drawing fractions
Jean-Marc Lasgouttes [Tue, 17 Jan 2017 15:28:48 +0000 (16:28 +0100)]
Fix glitch in drawing fractions

This is a fixup to 89662a68.

7 years agoBOX tweak
Jean-Marc Lasgouttes [Fri, 13 Jan 2017 09:17:05 +0000 (10:17 +0100)]
BOX tweak

7 years agoRevert 809b8b62 (Add FontEncoding to language descriptions).
Günter Milde [Mon, 16 Jan 2017 11:37:34 +0000 (12:37 +0100)]
Revert 809b8b62 (Add FontEncoding to language descriptions).

This breaks some existing documents and should be done
together with introducing the new fontenc="auto" setting (ticket #9741).

7 years agoRemove very old debug code.
Richard Heck [Sun, 15 Jan 2017 16:35:50 +0000 (11:35 -0500)]
Remove very old debug code.

7 years agoDon't load bibtopic with Biblatex
Juergen Spitzmueller [Sun, 15 Jan 2017 14:40:20 +0000 (15:40 +0100)]
Don't load bibtopic with Biblatex

7 years agoFix revert_bibpackopts lyx2lyx routine
Juergen Spitzmueller [Sun, 15 Jan 2017 11:48:43 +0000 (12:48 +0100)]
Fix revert_bibpackopts lyx2lyx routine

7 years agoMerge branch 'master' of git.lyx.org:lyx
Juergen Spitzmueller [Sun, 15 Jan 2017 11:19:37 +0000 (12:19 +0100)]
Merge branch 'master' of git.lyx.org:lyx

7 years agode.po
Juergen Spitzmueller [Sun, 15 Jan 2017 11:19:18 +0000 (12:19 +0100)]
de.po

7 years agoFix font of macro template name
Guillaume Munch [Thu, 5 Jan 2017 22:23:33 +0000 (23:23 +0100)]
Fix font of macro template name

7 years agoMake the generation of children's tocs more robust
Guillaume Munch [Fri, 13 Jan 2017 10:06:48 +0000 (11:06 +0100)]
Make the generation of children's tocs more robust

Let the children directly access the TocBuilders, instead of concatenating
after the fact.

7 years agoCollect the outliner names for the children's tocs
Guillaume Munch [Sat, 14 Jan 2017 17:40:58 +0000 (18:40 +0100)]
Collect the outliner names for the children's tocs

Fixes missing outliner names in various situations. Now if the warning "Missing
outliner name" appears in the console, this correctly hints at an actual issue
with the layout.

7 years agoSimplify
Guillaume Munch [Wed, 11 Jan 2017 22:36:20 +0000 (23:36 +0100)]
Simplify

The main point is the flag which is much simpler now.

7 years agoTwo separators collapse into one
Guillaume Munch [Wed, 11 Jan 2017 20:03:47 +0000 (21:03 +0100)]
Two separators collapse into one

It seems guaranteed by the Qt docs that two menu separators collapse into
one. This allows this little simplification.

7 years agoDocument changes to configure.py.
Günter Milde [Sat, 14 Jan 2017 21:44:46 +0000 (22:44 +0100)]
Document changes to configure.py.

7 years agoAdd FontEncoding to language descriptions.
Günter Milde [Sat, 14 Jan 2017 21:43:37 +0000 (22:43 +0100)]
Add FontEncoding to language descriptions.

Add FontEncoding tag for all languages with 8-bit hyphenation patterns
requiring a specific font encoding.
No FontEncoding tag means the language is either not supported with
Babel or accepts both, OT1 and standard text encodings.

Prerequisite for fontenc="auto" (ticket #9741)

7 years agoSection and Section* should have the same font size.
Richard Heck [Sat, 14 Jan 2017 21:12:58 +0000 (16:12 -0500)]
Section and Section* should have the same font size.

Going with normal corresponds better to how the PDF displays.

7 years agoUpdate sk.po
Kornel Benko [Sat, 14 Jan 2017 18:33:13 +0000 (19:33 +0100)]
Update sk.po

7 years agoFix Description parsing
Juergen Spitzmueller [Sat, 14 Jan 2017 17:11:39 +0000 (18:11 +0100)]
Fix Description parsing

7 years agoMinor string fixes
Juergen Spitzmueller [Sat, 14 Jan 2017 16:48:37 +0000 (17:48 +0100)]
Minor string fixes

7 years agode.po
Juergen Spitzmueller [Sat, 14 Jan 2017 16:47:38 +0000 (17:47 +0100)]
de.po

7 years agoprepare using Qt 5.7, change compiler and flags when using --enable-cxx11
Stephan Witt [Sat, 14 Jan 2017 15:05:50 +0000 (16:05 +0100)]
prepare using Qt 5.7, change compiler and flags when using --enable-cxx11

7 years agoSome master/child biblio fixes.
Juergen Spitzmueller [Sat, 14 Jan 2017 13:44:18 +0000 (14:44 +0100)]
Some master/child biblio fixes.

7 years agoTrim biblio options and biblatex styles
Juergen Spitzmueller [Sat, 14 Jan 2017 13:28:35 +0000 (14:28 +0100)]
Trim biblio options and biblatex styles

7 years agoAddress FIXME
Juergen Spitzmueller [Sat, 14 Jan 2017 13:25:03 +0000 (14:25 +0100)]
Address FIXME

7 years agoCmake tests: Use correct 'if' statement to handle language strings
Kornel Benko [Sat, 14 Jan 2017 11:54:08 +0000 (12:54 +0100)]
Cmake tests: Use correct 'if' statement to handle language strings

7 years agoMake Japanese Biblatex-aware
Juergen Spitzmueller [Sat, 14 Jan 2017 11:13:33 +0000 (12:13 +0100)]
Make Japanese Biblatex-aware

Biblatex can be used with Japanese, but then, biber (not pbibtex) should
be used as processor.

I this context, bring the jbibtex UI in line with bibtex, allowing for
a selection of alternatives.

7 years agoAllow new buffer params to be reset to empty
Juergen Spitzmueller [Sat, 14 Jan 2017 08:59:33 +0000 (09:59 +0100)]
Allow new buffer params to be reset to empty

7 years agoAdd an "Automatic" bibliography processor pref option
Juergen Spitzmueller [Fri, 13 Jan 2017 18:18:35 +0000 (19:18 +0100)]
Add an "Automatic" bibliography processor pref option

This is now set as default. It selects biber for Biblatex (with
fall-back to first bibtex8, then bibtex, if the former is not
installed), and bibtex for BibTeX-based engines.

With this, users do not normally need to care for the processor when
they switch cite engines.

7 years agoupdate tex2lyx tests
Juergen Spitzmueller [Fri, 13 Jan 2017 17:27:38 +0000 (18:27 +0100)]
update tex2lyx tests

7 years agoBasic support for natbib & jurabib options
Juergen Spitzmueller [Fri, 13 Jan 2017 17:23:42 +0000 (18:23 +0100)]
Basic support for natbib & jurabib options

This re-uses the options line edit introduced for biblatex.

7 years agoCmake build: Missed to install citeengines dir in commit cf3f481
Kornel Benko [Fri, 13 Jan 2017 16:18:25 +0000 (17:18 +0100)]
Cmake build: Missed to install citeengines dir in commit cf3f481

7 years agoUpdate sk.po
Kornel Benko [Fri, 13 Jan 2017 12:21:05 +0000 (13:21 +0100)]
Update sk.po

7 years agoAdapt the cmake-build-system to the reworked biblatex handling
Kornel Benko [Fri, 13 Jan 2017 12:17:12 +0000 (13:17 +0100)]
Adapt the cmake-build-system to the reworked biblatex handling

7 years agoupdate tex2lyx tests once more
Juergen Spitzmueller [Fri, 13 Jan 2017 10:57:39 +0000 (11:57 +0100)]
update tex2lyx tests once more

7 years agoImplement "key only" citation style
Juergen Spitzmueller [Fri, 13 Jan 2017 10:53:22 +0000 (11:53 +0100)]
Implement "key only" citation style

File format change.

7 years agoClear styles widgets only if needed.
Juergen Spitzmueller [Fri, 13 Jan 2017 09:57:53 +0000 (10:57 +0100)]
Clear styles widgets only if needed.

7 years agoUpdate tex2lyx tests
Juergen Spitzmueller [Fri, 13 Jan 2017 09:13:47 +0000 (10:13 +0100)]
Update tex2lyx tests

7 years agoBump layout formats
Juergen Spitzmueller [Fri, 13 Jan 2017 09:09:20 +0000 (10:09 +0100)]
Bump layout formats

7 years agoMerge branch 'master' into biblatex2 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.