]>
git.lyx.org Git - lyx.git/log
Juergen Spitzmueller [Sat, 4 Feb 2017 12:44:05 +0000 (13:44 +0100)]
update tex2lyx tests
Juergen Spitzmueller [Sat, 4 Feb 2017 11:08:20 +0000 (12:08 +0100)]
Update documentation for multiple bibliographies
Juergen Spitzmueller [Sat, 4 Feb 2017 11:02:00 +0000 (12:02 +0100)]
Support for multiple bibliographies
Using refsection=unit in biblatex, or bibtopic's btUnit environments
in BibTeX.
File format change.
Jean-Marc Lasgouttes [Fri, 3 Feb 2017 09:47:33 +0000 (10:47 +0100)]
Fixup
89662a68 : remove markers that should not be there
InsetMathDelim does not need markers because the delimiters are
visually enough.
CommandInset (like InsetMathRef) does have cells, but they are hidden
(only for storage). Therefore the default InsetMath::markers() method
mistakenly added markers. In practice, the markers were never active
(since the cursor cannot go into the inset), but some space was
reserved for them.
Juergen Spitzmueller [Fri, 3 Feb 2017 09:31:34 +0000 (10:31 +0100)]
de.po
Kornel Benko [Thu, 2 Feb 2017 20:33:36 +0000 (21:33 +0100)]
Update sk.po
Jean-Marc Lasgouttes [Thu, 2 Feb 2017 15:14:23 +0000 (16:14 +0100)]
Simplify TextMetrics::checkInsetHit
The main point is to use CoordCacheBase::covers to see whether a point
is inside a given isnet.
Jean-Marc Lasgouttes [Thu, 2 Feb 2017 14:23:20 +0000 (15:23 +0100)]
Move TextMetrics::findRowElement to Row class
Jean-Marc Lasgouttes [Wed, 7 Dec 2016 11:16:41 +0000 (12:16 +0100)]
Add RtL information to Row
This allows to somewhat simplify the text and avoid some uses of
Paragraph (in the long term, RowPainter should not have to access
these things).
At the same time do a small cleanup to RowPainter: rename
text_metrics_ to tm_, remove pm_ and width_.
Jean-Marc Lasgouttes [Thu, 2 Feb 2017 13:33:38 +0000 (14:33 +0100)]
Fix drawing of rectangle in old-style macro editing mode
The width was a bit to short.
Jean-Marc Lasgouttes [Wed, 1 Feb 2017 16:46:53 +0000 (17:46 +0100)]
Make MathRow tokens completely generic
The enum values BEG_MACRO/END_MACRO and BEG_AR/END_AR are replaced by a
single BEGIN/END pair.
The MathRow code now only knows about insets and math arrays.
Jean-Marc Lasgouttes [Wed, 1 Feb 2017 14:20:06 +0000 (15:20 +0100)]
Introduce hooks to encapsulate macro code of MathRow
New hooks (before|after)(Metrics|Draw) are run by the MathRow code
as needed. They are actually also used internally by the MathMacro
code.
The gain is that most traces of explicit macro handling (and
the MathRow::Element::macro member) have been removed from MathRw.cpp.
The next step will be to extend the tokenizing process to allow for
linearizing insets other than macros.
Jean-Marc Lasgouttes [Wed, 1 Feb 2017 10:53:23 +0000 (11:53 +0100)]
Linearize macros also when editing them
In the case of inline editing, this avoids unpleasant jumping issues.
This may requires to enter monochrome mode before painting the macro
elements.
jpc [Wed, 1 Feb 2017 10:00:16 +0000 (11:00 +0100)]
Update fr.po
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.
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 .
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.
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_).
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.
Juergen Spitzmueller [Mon, 30 Jan 2017 08:14:21 +0000 (09:14 +0100)]
Nomencl.ui: minor layout improvement.
Juergen Spitzmueller [Mon, 30 Jan 2017 08:02:12 +0000 (09:02 +0100)]
de.po
Juergen Spitzmueller [Mon, 30 Jan 2017 07:29:16 +0000 (08:29 +0100)]
Update tex2lyx tests
Juergen Spitzmueller [Mon, 30 Jan 2017 07:27:53 +0000 (08:27 +0100)]
Check if literal param exists before querying value.
Otherwise LyX asserts.
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.
Juergen Spitzmueller [Sun, 29 Jan 2017 14:05:36 +0000 (15:05 +0100)]
Update Additional.lyx wrt Biblatex
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.
Juergen Spitzmueller [Sat, 28 Jan 2017 12:00:33 +0000 (13:00 +0100)]
Whitespace
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.
Juergen Spitzmueller [Fri, 27 Jan 2017 08:15:47 +0000 (09:15 +0100)]
Handle backslash in escape function.
Fixes: #4595.
Candidate for stable
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.
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
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.
Uwe Stöhr [Thu, 26 Jan 2017 01:19:27 +0000 (02:19 +0100)]
Win installer: fix 2 bugs and update libraries
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
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 .
Tommaso Cucinotta [Wed, 25 Jan 2017 01:08:28 +0000 (02:08 +0100)]
Long time no use of the autotests machinery, needs an update.
Tommaso Cucinotta [Wed, 25 Jan 2017 02:09:41 +0000 (03:09 +0100)]
turned message about disabled converters from prefs from warning to error
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.
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.
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.
Kornel Benko [Sun, 22 Jan 2017 08:08:21 +0000 (09:08 +0100)]
Update sk.po
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.
Juergen Spitzmueller [Sat, 21 Jan 2017 13:57:16 +0000 (14:57 +0100)]
de.po
Juergen Spitzmueller [Sat, 21 Jan 2017 13:46:43 +0000 (14:46 +0100)]
update tex2lyx tests
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.
Enrico Forestieri [Fri, 20 Jan 2017 19:30:06 +0000 (20:30 +0100)]
Add clarifying comment
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]
Pavel Sanda [Fri, 20 Jan 2017 01:00:18 +0000 (17:00 -0800)]
Fix make check.
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.
Richard Heck [Thu, 19 Jan 2017 20:39:14 +0000 (15:39 -0500)]
Regenerate contributions.
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.
Richard Heck [Thu, 19 Jan 2017 20:29:14 +0000 (15:29 -0500)]
Typo.
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.
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).
Richard Heck [Thu, 19 Jan 2017 02:47:40 +0000 (21:47 -0500)]
Do not replace "--" with "\twohyphens" in formula macros.
Enrico Forestieri [Wed, 18 Jan 2017 22:28:29 +0000 (23:28 +0100)]
Update it.po
Jean-Marc Lasgouttes [Tue, 17 Jan 2017 15:31:34 +0000 (16:31 +0100)]
Revert "BOX tweak"
This reverts commit
596c9065e6feb8cfaadf79abd8cc73233d9442f1 .
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 .
Jean-Marc Lasgouttes [Fri, 13 Jan 2017 09:17:05 +0000 (10:17 +0100)]
BOX tweak
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).
Richard Heck [Sun, 15 Jan 2017 16:35:50 +0000 (11:35 -0500)]
Remove very old debug code.
Juergen Spitzmueller [Sun, 15 Jan 2017 14:40:20 +0000 (15:40 +0100)]
Don't load bibtopic with Biblatex
Juergen Spitzmueller [Sun, 15 Jan 2017 11:48:43 +0000 (12:48 +0100)]
Fix revert_bibpackopts lyx2lyx routine
Juergen Spitzmueller [Sun, 15 Jan 2017 11:19:37 +0000 (12:19 +0100)]
Merge branch 'master' of git.lyx.org:lyx
Juergen Spitzmueller [Sun, 15 Jan 2017 11:19:18 +0000 (12:19 +0100)]
de.po
Guillaume Munch [Thu, 5 Jan 2017 22:23:33 +0000 (23:23 +0100)]
Fix font of macro template name
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.
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.
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.
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.
Günter Milde [Sat, 14 Jan 2017 21:44:46 +0000 (22:44 +0100)]
Document changes to configure.py.
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)
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.
Kornel Benko [Sat, 14 Jan 2017 18:33:13 +0000 (19:33 +0100)]
Update sk.po
Juergen Spitzmueller [Sat, 14 Jan 2017 17:11:39 +0000 (18:11 +0100)]
Fix Description parsing
Juergen Spitzmueller [Sat, 14 Jan 2017 16:48:37 +0000 (17:48 +0100)]
Minor string fixes
Juergen Spitzmueller [Sat, 14 Jan 2017 16:47:38 +0000 (17:47 +0100)]
de.po
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
Juergen Spitzmueller [Sat, 14 Jan 2017 13:44:18 +0000 (14:44 +0100)]
Some master/child biblio fixes.
Juergen Spitzmueller [Sat, 14 Jan 2017 13:28:35 +0000 (14:28 +0100)]
Trim biblio options and biblatex styles
Juergen Spitzmueller [Sat, 14 Jan 2017 13:25:03 +0000 (14:25 +0100)]
Address FIXME
Kornel Benko [Sat, 14 Jan 2017 11:54:08 +0000 (12:54 +0100)]
Cmake tests: Use correct 'if' statement to handle language strings
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.
Juergen Spitzmueller [Sat, 14 Jan 2017 08:59:33 +0000 (09:59 +0100)]
Allow new buffer params to be reset to empty
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.
Juergen Spitzmueller [Fri, 13 Jan 2017 17:27:38 +0000 (18:27 +0100)]
update tex2lyx tests
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.
Kornel Benko [Fri, 13 Jan 2017 16:18:25 +0000 (17:18 +0100)]
Cmake build: Missed to install citeengines dir in commit
cf3f481
Kornel Benko [Fri, 13 Jan 2017 12:21:05 +0000 (13:21 +0100)]
Update sk.po
Kornel Benko [Fri, 13 Jan 2017 12:17:12 +0000 (13:17 +0100)]
Adapt the cmake-build-system to the reworked biblatex handling
Juergen Spitzmueller [Fri, 13 Jan 2017 10:57:39 +0000 (11:57 +0100)]
update tex2lyx tests once more
Juergen Spitzmueller [Fri, 13 Jan 2017 10:53:22 +0000 (11:53 +0100)]
Implement "key only" citation style
File format change.
Juergen Spitzmueller [Fri, 13 Jan 2017 09:57:53 +0000 (10:57 +0100)]
Clear styles widgets only if needed.
Juergen Spitzmueller [Fri, 13 Jan 2017 09:13:47 +0000 (10:13 +0100)]
Update tex2lyx tests
Juergen Spitzmueller [Fri, 13 Jan 2017 09:09:20 +0000 (10:09 +0100)]
Bump layout formats
Juergen Spitzmueller [Fri, 13 Jan 2017 08:11:04 +0000 (09:11 +0100)]
Merge branch 'master' into biblatex2
Juergen Spitzmueller [Fri, 13 Jan 2017 08:07:44 +0000 (09:07 +0100)]
Assure long tooltip is correctly formatted.
Amendment to
ffb195b5e9fa
Richard Heck [Thu, 12 Jan 2017 15:31:58 +0000 (10:31 -0500)]
Add Martin Brown to credits.
Juergen Spitzmueller [Thu, 12 Jan 2017 15:13:13 +0000 (16:13 +0100)]
Merge branch 'master' into biblatex2
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.