]>
git.lyx.org Git - lyx.git/log
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.
Enrico Forestieri [Thu, 15 Sep 2016 00:39:30 +0000 (02:39 +0200)]
Really fix the problem with not updated macros
Revert to the strategy used at
8f86ee74 but not using mathedWordList
because it may be still uninitialized at load time. Instead, use the
globalMacros method for getting the same info.
There was a thinko at
8ec91e80 , because globalMacros always returns
null for user defined macros.
Jean-Marc Lasgouttes [Wed, 14 Sep 2016 20:33:56 +0000 (22:33 +0200)]
Set window title before stting modified state
Fixes message "QWidget::setWindowModified: The window title does not
contain a '[*]' placeholder" when opening a non-existent file.
Günter Milde [Wed, 14 Sep 2016 20:06:11 +0000 (22:06 +0200)]
lib/unicodesymbols tests and fixes.
Blocks Box Drawing, Block Elements, Geometric Shapes.
Juergen Spitzmueller [Wed, 14 Sep 2016 08:23:39 +0000 (10:23 +0200)]
Move wrap check for simple search/replace to lyxfind
This gets rid of some dirty dispatch tricks and fixes wrap-around
on replace and in the spellchecker
Fixes: #10378
Enrico Forestieri [Wed, 14 Sep 2016 00:51:56 +0000 (02:51 +0200)]
Partly revert the bits of
8f86ee74 that are not necessary anymore after
8ec91e80
Enrico Forestieri [Wed, 14 Sep 2016 00:27:18 +0000 (02:27 +0200)]
Make sure not to use a pointer that may be bogus
It may happen that mathedWordList is not still updated at load time,
so we would still be using a bogus pointer. Better fetching the
necessary info from the global macro table.
Günter Milde [Tue, 13 Sep 2016 20:23:53 +0000 (22:23 +0200)]
tex2lyx: Remove "textglobfall" hack.
tex2lyx tests for TIPA (test-inset-*) resulted in {End} in ERT after fixing lib/unicodesymbols.
Should be fine now.
Günter Milde [Tue, 13 Sep 2016 20:18:22 +0000 (22:18 +0200)]
lib/unicodetests: add test samples for Blocks 77-79
Günter Milde [Tue, 13 Sep 2016 20:08:24 +0000 (22:08 +0200)]
lib/unicodesymbols tests and fixes
* Test blocks Mathematical Symbols, Miscellaneous Technical, Control Pictures
* fix Fahrenheit symbol
* add force=utf8 where required
Günter Milde [Mon, 12 Sep 2016 16:08:53 +0000 (18:08 +0200)]
Remove pattern for tests that failed due to stale config files.
Enrico Forestieri [Tue, 13 Sep 2016 05:53:48 +0000 (07:53 +0200)]
Make sure that math macros are updated at export time.
The math macros system is quite complex. Macros are updated during
metrics calculation, so a missing update is very likely to cause a
crash. This commit tries to assure that they are updated at export
time, which also happens when the table of contents is updated.
Moreover, in order to circumvent a possible missing update, when
a math macro is detected we try to avoid using the sym_ member
of the MacroData class, as it may contain bogus values.
Günter Milde [Mon, 12 Sep 2016 09:44:45 +0000 (11:44 +0200)]
tex2lyx test: make box-color-*.tex sample compilable
Load required package textcomp.
Replace call to non-existent packages textcyr and textgreek with the backup definition of the commands as done by LyX export.
Do not load marvosym (clash with pifont) (LyX does not load the package either).
Remove invalid command \\ascii.
Günter Milde [Mon, 12 Sep 2016 09:39:59 +0000 (11:39 +0200)]
lib/unicodesymbols fixes
"vdots" fails in text mode, if "mathdots" is loaded.
package "ascii": remove invalid command "\\ascii", let LyX terminate commands
Kornel Benko [Mon, 12 Sep 2016 09:04:14 +0000 (11:04 +0200)]
Cmake build: Shuffle code around.
Enrico Forestieri [Mon, 12 Sep 2016 05:55:38 +0000 (07:55 +0200)]
Ensure consistency
On export, a macro defined in ERT (or not defined at all) is left
in the same environment it is entered. So, don't explicitly insert
it in an ensuremath environment when it is entered in a textmode one.
Enrico Forestieri [Mon, 12 Sep 2016 03:15:00 +0000 (05:15 +0200)]
Make sure a pointer is valid before using it
Scott Kostyshak [Sun, 11 Sep 2016 21:50:31 +0000 (17:50 -0400)]
Update tex2lyx test reference after
754cb3d1
From Günter [1]:
the difference is the textcommand for ETB which changed from
{\ascii\ETB} to
0x21a8 "\\ETB" "ascii" "force=utf8" # UP DOWN
ARROW WITH BASE
because the former resulted in
l.513 \ascii
\ETB{}
! Undefined control sequence.
[1]
https://www.mail-archive.com/search?l=mid&q=nr48qn%242gb%241%40blaine.gmane.org
Scott Kostyshak [Sun, 11 Sep 2016 13:38:52 +0000 (09:38 -0400)]
Fix compilation of ja/EmbeddedObjects.lyx
sidecap does not work well for some reason with the Japanese doc, so
the sidecap bool is set to false to restore compilation.
The following test now passes:
export/doc/ja/EmbeddedObjects_pdf3
Kornel Benko [Sun, 11 Sep 2016 13:34:58 +0000 (15:34 +0200)]
Cmake build: Add qt-svg-lib to be linked with lyx if used QT4.
Probably due to commit
82808fe , there were undefined references
such as e.g. QSvgRenderer::~QSvgRenderer().
Günter Milde [Sat, 10 Sep 2016 20:43:57 +0000 (22:43 +0200)]
Test and fix lib/unicodesymbols for Letterlike Symbols, Number Forms and Arrows blocks.
Enrico Forestieri [Sat, 10 Sep 2016 16:32:44 +0000 (18:32 +0200)]
Fix display and export of some latex macros
Fixes #9742.
Enrico Forestieri [Sat, 10 Sep 2016 11:36:45 +0000 (13:36 +0200)]
Fix bug #9616
Günter Milde [Sat, 10 Sep 2016 10:34:06 +0000 (12:34 +0200)]
ctests: samples for lib/unicodesymbols
Unocode Blocks <= 72
Günter Milde [Sat, 10 Sep 2016 08:50:06 +0000 (10:50 +0200)]
Fix export of Unicode characters (Unicode blocks <=72)
Fix problems revealed by hand-compiling an examining the test samples in autotests/export/Unicode-characters/:
* new definitions
* fixed definitions
* "force=utf8" when required
* some IPA symbols fail without the "extraipa" package
* fix direction of "textcommaaboveright"
Günter Milde [Sat, 10 Sep 2016 08:40:40 +0000 (10:40 +0200)]
ctests: samples for lib/unicodesymbols: only test export to 8-bit LaTeX.
Günter Milde [Sat, 10 Sep 2016 08:10:28 +0000 (10:10 +0200)]
ctests: Move tests failing only with newest luatex to unreliableTests.
Juergen Spitzmueller [Sat, 10 Sep 2016 08:32:40 +0000 (10:32 +0200)]
Minor amendment to
b95262f48772
Just for consistency.