]>
git.lyx.org Git - lyx.git/log
Guillaume Munch [Thu, 29 Sep 2016 18:20:33 +0000 (20:20 +0200)]
Fix borders of InsetMathGrid
* New virtual functions leftMargin() and rightMargin() to get rid of
drawWithMargin()
* Factor and rewrite code for borders.
* Fix several offset calculations.
Known issues:
* Borders of multicols look too good and do not correspond to the pdf
output. (non-regression)
* Bounding box for Hull (Regexp) not pixel-perfect.
* Bounding boxes of Diagram, XYmatrix, are too tight when there are
borders. Also border should be disabled. (non-regression)
Enrico Forestieri [Tue, 4 Oct 2016 23:31:14 +0000 (01:31 +0200)]
Amend
ccc0e03f
Better adding the break, even if falling through would be Ok,
as LyX requires xcolor when both xcolor and color are requested.
Enrico Forestieri [Tue, 4 Oct 2016 23:18:15 +0000 (01:18 +0200)]
In mathed, require xcolor instead of color when appropriate
Fixes bug #10417.
Guillaume Munch [Mon, 3 Oct 2016 22:51:31 +0000 (00:51 +0200)]
Continue with the documentation of the SVG+LaTeX external template
Martin Vermeer [Tue, 6 Sep 2016 03:34:20 +0000 (06:34 +0300)]
... and RELEASE-NOTES
Martin Vermeer [Tue, 6 Sep 2016 03:23:29 +0000 (06:23 +0300)]
Further fixes due to remarks by Pavel Sanda Sep. 5, 2016
Martin Vermeer [Sat, 3 Sep 2016 14:17:45 +0000 (17:17 +0300)]
Initial commit of Inkscape SVG LaTeX + PDF support
Based on Daniel Groger's work of five years ago, with minor changes
http://www.mail-archive.com/lyx-devel%40lists.lyx.org/msg169820.html
This extends the support for Xfig LaTeX + PDF to a more modern and
actively developed vector graphics editor. Embedded Objects manual
updated, also to include a workaround for an Inkscape 0.91 bug.
Scott Kostyshak [Sat, 1 Oct 2016 03:21:45 +0000 (23:21 -0400)]
Initialize a member variable before it is used
Valgrind spotted a conditional jump depending on an uninitialised
value.
Thanks to Pavel for the help. For more information, see:
https://www.mail-archive.com/search?l=mid&q=
20160928204810 .e5ylny3raa7jgmgw%40Opti1604
jpc [Fri, 30 Sep 2016 17:09:41 +0000 (18:09 +0100)]
Update French translation of seminar.lyx & solve listslide title issue
Günter Milde [Fri, 30 Sep 2016 13:07:25 +0000 (15:07 +0200)]
fix and test lib/unicodesymbols: Blocks 87 - 92
Günter Milde [Thu, 29 Sep 2016 19:59:54 +0000 (21:59 +0200)]
Update seminar layout and doc.
Enrico Forestieri [Thu, 29 Sep 2016 16:35:26 +0000 (18:35 +0200)]
Force local language switch in IPA insets
Otherwise we get latex errors when using polyglossia.
jpc [Thu, 29 Sep 2016 12:52:44 +0000 (13:52 +0100)]
Update French translation of seminar.lyx
Guillaume Munch [Wed, 28 Sep 2016 19:57:54 +0000 (21:57 +0200)]
Work around dangling pointer
A better solution would be to entirely get rid of this borrowed pointer with
unclear lifetime, but this requires to introduce a new signal for when the
buffer view attached to the GuiView has changed.
Guillaume Munch [Wed, 28 Sep 2016 21:04:10 +0000 (23:04 +0200)]
Clarify that the Dialog::lyxview_ pointer is in fact a reference
Guillaume Munch [Wed, 28 Sep 2016 14:05:10 +0000 (16:05 +0200)]
Fix horizontal lines in math arrays
They must end at the end of the last column, not at the start of the last+1
column.
Günter Milde [Thu, 29 Sep 2016 08:42:03 +0000 (10:42 +0200)]
ctests: uninvert solved problems and make samples robust
Specify non-TeX fonts that work in the source for documents that
fail with "missing characters" if compiling with "non-TeX fonts"=true.
(This does not interfere with the default output in any way.)
Günter Milde [Thu, 29 Sep 2016 07:40:06 +0000 (09:40 +0200)]
Fixes to seminar.layout and documentation.
Thanks to Jean-Marc for test and report.
jpc [Wed, 28 Sep 2016 10:20:45 +0000 (11:20 +0100)]
French translation updated
Enrico Forestieri [Tue, 27 Sep 2016 21:00:29 +0000 (23:00 +0200)]
Also track local language switches
Until now this was not done for essentially two reasons. The first
one is that local switches are used for short text insertions, so that
they are unlikely crossing environment boundaries. The second one
is that if we have to close a language at the end of an environment
we would be missing the right termination command. As this last
issue can be overcome by simply storing in the stack the current
nest level with a sign denoting the kind of switch, there is no
reason anymore not to track also local languages switches.
Also factor out some commonly used constructs in order to improve
readability.
Enrico Forestieri [Tue, 27 Sep 2016 19:41:13 +0000 (21:41 +0200)]
Do not unnecessarily open the document language
If the document language is opened outside of any environement, we risk
not closing it if no other language switch occurs. Indeed, the stack is
emptied only at the end of an enviroment. We could of course also empty
it at the end of the document, but we would have an unnecessary language
switch.
Enrico Forestieri [Tue, 27 Sep 2016 19:32:40 +0000 (21:32 +0200)]
Shut up compiler warning
Günter Milde [Mon, 26 Sep 2016 20:57:41 +0000 (22:57 +0200)]
ctests: move test cases with permanent problems to "ignored".
Also sort ignoredTests (even if the sublabels will normally not be shown).
Günter Milde [Mon, 26 Sep 2016 20:55:58 +0000 (22:55 +0200)]
seminar: major documentation (example) update.
jpc [Wed, 21 Sep 2016 08:11:31 +0000 (09:11 +0100)]
Change a line to avoid bad hyphenation
THe pdf output showed a very visible line overfull. I slightly changed the text to
avoid this without adding an hyphenation point, not appropriate in documents for beginners.
jpc [Sun, 25 Sep 2016 16:29:16 +0000 (17:29 +0100)]
Typo
Enrico Forestieri [Sun, 25 Sep 2016 22:48:44 +0000 (00:48 +0200)]
Update it.po
Enrico Forestieri [Sun, 25 Sep 2016 18:31:13 +0000 (20:31 +0200)]
Do not rely on math macros being updated
Trying to spare a few cycles by avoiding computing metrics during
screen updates and export. See also
8f86ee74 ,
72cf7c8f , and
e36a8903 .
Guillaume will tell whether this also avoids crashing his documents ;)
Enrico Forestieri [Sun, 25 Sep 2016 16:59:07 +0000 (18:59 +0200)]
Amend
6a3ced3c
ERT macros are also math insets, sigh...
Enrico Forestieri [Sun, 25 Sep 2016 06:56:12 +0000 (08:56 +0200)]
No need to clutter runparams...
Enrico Forestieri [Sun, 25 Sep 2016 06:20:34 +0000 (08:20 +0200)]
Correctly track opened polyglossia languages
A language switch may also occur outside of output_latex.cpp, apparently.
Enrico Forestieri [Sun, 25 Sep 2016 00:00:55 +0000 (02:00 +0200)]
Do not confuse global commands with ERT macros
Enrico Forestieri [Sat, 24 Sep 2016 23:11:16 +0000 (01:11 +0200)]
Correctly classify macros
Some macros defined in the lib/symbols file are classified are texmode.
But the MathMacro class was missing a currentMode method for returning
this information.
Enrico Forestieri [Sat, 24 Sep 2016 01:15:02 +0000 (03:15 +0200)]
Sort the language nesting mess with polyglossia
When using polyglossia, lyx was making a real mess when changing
language inside nested insets. The \begin{language} and
\end{language} commands were not well paired such that they could
easily occur just before and after the start or end of an
environment. Of course this was causing latex errors such that
"\begin{otherlanguage} ended by \end{environment}".
There may still be some cases I did not take into account.
Guillaume Munch [Fri, 23 Sep 2016 22:50:03 +0000 (00:50 +0200)]
Fix compilation with MSVC 2015
Guillaume Munch [Sat, 3 Sep 2016 22:54:05 +0000 (23:54 +0100)]
Reverse search: select a whole row
TexRow now returns a range {start, end} when looking up a particular row.
Reverse-search now selects the whole range instead of simply moving the cursor.
Guillaume Munch [Sun, 4 Sep 2016 22:24:57 +0000 (23:24 +0100)]
Fix: shift-mouse selection doesn't work well across insets
(FIXME in the code, no corresponding ticket found even though it is pretty
annoying)
Guillaume Munch [Sun, 4 Sep 2016 21:17:32 +0000 (22:17 +0100)]
Helpers to set selections to arbitrary DocIterators
Guillaume Munch [Sun, 4 Sep 2016 02:02:47 +0000 (03:02 +0100)]
Remove option to disable texrow
I suspect that the gain was negligible, yet it made debugging and maintainance
harder.
Guillaume Munch [Sat, 3 Sep 2016 22:51:10 +0000 (23:51 +0100)]
explicit operator bool
Guillaume Munch [Sat, 3 Sep 2016 22:52:55 +0000 (23:52 +0100)]
Fix type of pos
Guillaume Munch [Mon, 20 Jun 2016 02:47:40 +0000 (03:47 +0100)]
TexRow: clean up and simplify
In particular merge the current_row_ with the rowlist_, which simplifies the
logic.
Pass by value for small PODs.
Kornel Benko [Fri, 23 Sep 2016 11:39:23 +0000 (13:39 +0200)]
Cmake package: Correct description.
The new cmake 3.6 now also inserts correctly
this file into its control-file. But the syntax of the control-file
expects the description lines be indented by a space.
Also empty lines (only spaces) are not allowed.
Jean-Marc Lasgouttes [Fri, 23 Sep 2016 09:17:20 +0000 (11:17 +0200)]
Simplify the code that sets the read-only emblem in status bar
Actually QIcon is able to handle transparently the svg icons.
Patch from Enrico.
Günter Milde [Fri, 23 Sep 2016 07:04:03 +0000 (09:04 +0200)]
Fix #10394 Do not error on missing characters in "nullfont".
Add an exception to the conversion of "missing character" warnings into errors.
The PGF package deliberately uses the dummy font "nullfont" to suppress output.
Therefore, warnings about missing characters in "nullfont" are really only warnings.
Also updated the comment: "Missing character" warnigns are especially widespread
in XeTeX/LuaTeX but can also happen with "classical" 8-bit TeX.
Feel free to port this to branch.
Scott Kostyshak [Fri, 23 Sep 2016 02:55:35 +0000 (22:55 -0400)]
Amend
40c262cb
Use LyX note instead of comment. This is less invasive that
converting Beamer frames to fragile to accommodate the comment
environment.
(cherry picked from commit
e81f6b04bcf878a1170d46b3820e8345436b4db5 )
Scott Kostyshak [Fri, 23 Sep 2016 02:12:59 +0000 (22:12 -0400)]
Amend and extend
9f3518bc
The comment is now in a comment inset. This change is extended to
all versions of beamer.lyx.
Change tracking is not used because it only affects a comment
(consistent with
aa81ae7e ).
This change is made according to updated conversation at:
https://www.mail-archive.com/search?l=mid&q=nruubc%24uu0%241%40blaine.gmane.org
(cherry picked from commit
40c262cbd865805d35aba65e25e919fc8dee6e69 )
Günter Milde [Thu, 22 Sep 2016 21:54:18 +0000 (23:54 +0200)]
ctests: found reason for "seminar" failure.
Günter Milde [Thu, 22 Sep 2016 10:10:39 +0000 (12:10 +0200)]
lib/unicodesymbols tests: add comments and remove spurious test samples.
Günter Milde [Thu, 22 Sep 2016 10:09:39 +0000 (12:09 +0200)]
ctests: update labeling patterns.
Guillaume Munch [Sun, 28 Aug 2016 20:57:17 +0000 (21:57 +0100)]
Better title for ViewSource
The title is changed to "LaTeX (pdflatex) Preview", etc. depending on the
format. The actual default format is computed.
The menu name "Source Pane" is replaced by "Code Preview Pane" to better reflect
its purpose.
Jean-Marc Lasgouttes [Wed, 21 Sep 2016 14:11:53 +0000 (16:11 +0200)]
Do not hardcode required packages for Note inset
This does not change the default behavior, but allows to customize it.
Jean-Marc Lasgouttes [Wed, 21 Sep 2016 11:56:28 +0000 (13:56 +0200)]
Do not use em dash in window title
It seems that only KDE does that. Gnome does not, Windows does not either.
I do not think that we can/want to detect a KDE environment at run-time.
Jean-Marc Lasgouttes [Fri, 9 Sep 2016 08:37:42 +0000 (10:37 +0200)]
Make *-lyxformat-* backup files use .lyx~ extension
At least now that look like real backup files
Uwe Stöhr [Tue, 20 Sep 2016 21:17:09 +0000 (23:17 +0200)]
French beamer.lyx: accept changes
I think this can be accepted without further explanation since it is in a comment
Juergen Spitzmueller [Tue, 20 Sep 2016 09:51:04 +0000 (11:51 +0200)]
Improve bibliography info (general), part II
Consider collection and proceedings
Juergen Spitzmueller [Tue, 20 Sep 2016 09:45:25 +0000 (11:45 +0200)]
Improve bibliography info (general)
Consider all thesis types.
Juergen Spitzmueller [Tue, 20 Sep 2016 09:35:05 +0000 (11:35 +0200)]
Improve info display for biblatex databases, part IV
Consider biblatex's new field names: location (address),
journaltitle (journal), institution (school).
Biblatex provides alias for the legacy bibtex field names. Hence check
for the new names only if the legacy names are not used.
Juergen Spitzmueller [Tue, 20 Sep 2016 09:34:17 +0000 (11:34 +0200)]
Amend
2c4673af58f6
Also consider xrefs in crossref'ed entries.
Günter Milde [Tue, 13 Sep 2016 20:10:32 +0000 (22:10 +0200)]
lib/unicodesymbols: tests and fixes, Blocks 87 - 91
Also add more "stmaryrd" symbols.
Günter Milde [Tue, 20 Sep 2016 05:59:30 +0000 (07:59 +0200)]
lib/unicodesymbols: replace TABs.
Scott Kostyshak [Tue, 20 Sep 2016 02:23:41 +0000 (22:23 -0400)]
Fix compilation of fr/beamer.lyx with XeTeX
The compilation did not succeed before because of an é in an ERT
inset. This is changed to \'{e}.
Also correct spelling of "decouvert" to "découvert".
Alternatives would be to use a LyX note or a comment inset. Since
the original version uses ERT, I do not change that.
This commit fixes the following ctest:
export/examples/fr/beamer-article_pdf4_texF
It likely also fixes the corresponding test for fr/beamer.lyx, but
since the default output format is set to pdf2 we do not run the
test.
For more information, see:
https://www.mail-archive.com/search?l=mid&q=
20160919192413 .ftnz4gk6dl5w3k5c%40Opti1604
(cherry picked from commit
9f3518bcd2c440f928e88622947df5b376c6fe7a )
Juergen Spitzmueller [Mon, 19 Sep 2016 17:09:42 +0000 (19:09 +0200)]
Improve info display for biblatex databases, part III
When resolving biblatex's xdata references, consider that xdata fields
can contain a comma-separated list of keys, not just a single key like
crossref.
Enrico Forestieri [Mon, 19 Sep 2016 09:57:39 +0000 (11:57 +0200)]
Document the new behaviour in mathed
Scott Kostyshak [Sun, 18 Sep 2016 20:24:15 +0000 (16:24 -0400)]
ctests: invert 'id_UserGuide_dvi3_systemF'
This is consistent with the LuaTeX systemF test also being inverted.
The log notes that:
Language bahasai not found in language.dat.lua
Günter Milde [Sun, 18 Sep 2016 15:08:56 +0000 (17:08 +0200)]
lib/unicodesymbols tests and fixes: Block Dingbats.
Scott Kostyshak [Sun, 18 Sep 2016 13:51:16 +0000 (09:51 -0400)]
Fix ctest inversions of ja_wrong_auto_encoding.lyx
I think that when ja_wrong_auto_encoding.lyx was moved the inversion
regex did not match correctly.
Guillaume Munch [Sun, 18 Sep 2016 13:43:26 +0000 (14:43 +0100)]
Juergen Spitzmueller [Sun, 18 Sep 2016 10:59:43 +0000 (12:59 +0200)]
Regex fix for endyear
As of biblatex 3.5, years and endyears can be negative (BCE).
Juergen Spitzmueller [Sun, 18 Sep 2016 10:44:12 +0000 (12:44 +0200)]
Improve info display for biblatex databases, part II
In addition to the classic crossref, biblatex introduces xdata
references in order to source-out common data of entries. Entries
that have "xdata = {somekey}" just inherit all fields from the
respective @xdata entry, if the field is not already defined in
the entry itself (just like crossref, with the exception that @xdata
entries themselves are _never_ output on their own). @xdata entries can
themselves inherit to other @xdata entries (ad infinitum). So you can,
for instance, setup an xdata entry for a book series with series name
that inherits an xdata entry with information of the publisher
(publisher, address). Any book of that series would just need to refer
to the series xdata and add the number.
BiblioInfo now checks, in addition to crossrefs, for such xdata
references and inherits missing fields.
Nte that biblatex also introduces an "xref" field as an alternative to
crossref. We must not care about that, since the point of xref is that
it does not inherit fields from the target (just cites that one if a
given number of refs to it exist)
Juergen Spitzmueller [Sun, 18 Sep 2016 08:33:33 +0000 (10:33 +0200)]
Improve info display for biblatex databases
If an entry does not have a year field, check for a date field
(the common type in biblatex databases) and extract the year(s).
Candidate for branch.
Juergen Spitzmueller [Sun, 18 Sep 2016 07:10:24 +0000 (09:10 +0200)]
Remove unnecessary directives and preset search on fly.
Juergen Spitzmueller [Sun, 18 Sep 2016 07:02:23 +0000 (09:02 +0200)]
Connect filter reset button and remove unnecessary directives.
Enrico Forestieri [Sat, 17 Sep 2016 20:38:27 +0000 (22:38 +0200)]
Improve systemlyxdir handling
Do not assume that the /systemlyxdir path prefix in \origin refers
to the system directory of the running instance, but check through
some heuristics what the real system dir is. In this way, a document
in the system dir of any other LyX installation is correctly spotted
and the \origin tag properly updated. For example, one can use an
installed version of lyx to edit a document in the lib/doc dir of a
git repo and obtain the same result as when running lyx in place.
Kornel Benko [Sat, 17 Sep 2016 14:39:58 +0000 (16:39 +0200)]
Update sk.po
Juergen Spitzmueller [Sat, 17 Sep 2016 11:24:11 +0000 (13:24 +0200)]
de.po
Juergen Spitzmueller [Sat, 17 Sep 2016 11:06:41 +0000 (13:06 +0200)]
Fix string
Juergen Spitzmueller [Sat, 17 Sep 2016 11:03:33 +0000 (13:03 +0200)]
Clean up the crossrefs dialog.
Juergen Spitzmueller [Sat, 17 Sep 2016 08:00:25 +0000 (10:00 +0200)]
de.po
Uwe Stöhr [Fri, 16 Sep 2016 21:25:04 +0000 (23:25 +0200)]
Development.lyx: update documentation rules
Günter Milde [Fri, 16 Sep 2016 19:01:55 +0000 (21:01 +0200)]
ctests: rename pattern file "suspiciousTests" to "invertedTests". part 2
Juergen Spitzmueller [Fri, 16 Sep 2016 17:39:53 +0000 (19:39 +0200)]
Keep citation style settings bot within and between sessions.
Fixes: #10256
Kornel Benko [Fri, 16 Sep 2016 14:16:40 +0000 (16:16 +0200)]
Update sk.po
Juergen Spitzmueller [Fri, 16 Sep 2016 11:48:10 +0000 (13:48 +0200)]
de.po: update
Juergen Spitzmueller [Fri, 16 Sep 2016 11:47:26 +0000 (13:47 +0200)]
Citation dialog: add & improve tooltips.
Günter Milde [Fri, 16 Sep 2016 10:03:17 +0000 (12:03 +0200)]
ctests: rename pattern file "suspiciousTests" to "invertedTests".
Günter Milde [Fri, 16 Sep 2016 08:04:28 +0000 (10:04 +0200)]
lib/unicodesymbols tests and fixes: Block Miscellaneous Symbols.
* add \Coffeecup and \Wheelchair
* add "force=utf8" where required
* uninvert tests: ctest works again after Kornel fixed the problem in
9f1b80a2af08c
Kornel Benko [Fri, 16 Sep 2016 09:00:48 +0000 (11:00 +0200)]
Update sk.po
Kornel Benko [Fri, 16 Sep 2016 08:47:18 +0000 (10:47 +0200)]
Update sk.po
Juergen Spitzmueller [Fri, 16 Sep 2016 08:35:06 +0000 (10:35 +0200)]
CitationUi: Fix small layout glitch
Juergen Spitzmueller [Fri, 16 Sep 2016 08:05:04 +0000 (10:05 +0200)]
de.po
Juergen Spitzmueller [Fri, 16 Sep 2016 07:21:04 +0000 (09:21 +0200)]
Citation dialog redesign
Enrico Forestieri [Fri, 16 Sep 2016 00:15:52 +0000 (02:15 +0200)]
Correctly distinguish ERT macros from predefined ones such as \alpha
Enrico Forestieri [Thu, 15 Sep 2016 22:43:04 +0000 (00:43 +0200)]
Correctly distinguish LyX macros from those defined in ERT
At this time the MacroData of a macro is still uninitialized,
so the macro() method always returns null.
Enrico Forestieri [Thu, 15 Sep 2016 22:37:04 +0000 (00:37 +0200)]
Avoid inserting spurious \text insets in mathed
This amends
5cdbaf51 .
Enrico Forestieri [Thu, 15 Sep 2016 22:32:35 +0000 (00:32 +0200)]
Do not prematurely close \ensuremath or \lyxmathsym on export
Kornel Benko [Thu, 15 Sep 2016 19:55:47 +0000 (21:55 +0200)]
Cmake tests: Use mkpath from module 'File::Path' to recursively
create the directory path.
Günter Milde [Thu, 15 Sep 2016 19:05:31 +0000 (21:05 +0200)]
Remove inversion of tests failing because of LuaTeX bug now solved upstream.
Günter Milde [Thu, 15 Sep 2016 16:15:07 +0000 (18:15 +0200)]
lib/unicodesymbols tests: split 2-page test and fix missing command.
Günter Milde [Thu, 15 Sep 2016 15:17:34 +0000 (17:17 +0200)]
ctests: Test dedicated LaTeX test samples with LaTeX export only.
Move them to a subdir, ignore this subdir for other tests.
Dedicated test samples for LaTeX-specific problems don't give additional value if tested for loading, conversion, or other exports.