]>
git.lyx.org Git - lyx.git/log
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.
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 "
Juergen Spitzmueller [Sat, 7 Jan 2017 16:40:23 +0000 (17:40 +0100)]
Outsource jurabib specials to the style file.
Juergen Spitzmueller [Sat, 7 Jan 2017 16:38:25 +0000 (17:38 +0100)]
Limit InsetCitation tooltip to sensible length
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
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.
Juergen Spitzmueller [Sat, 7 Jan 2017 16:21:41 +0000 (17:21 +0100)]
Implement display of forceUpperCase
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).
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.
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.
Juergen Spitzmueller [Thu, 5 Jan 2017 13:30:26 +0000 (14:30 +0100)]
Merge branch 'master' into biblatex2
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.
Guillaume Munch [Thu, 5 Jan 2017 11:03:53 +0000 (12:03 +0100)]
Fine tune the math class of InsetMathScript after
a4676712
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.
Richard Heck [Wed, 4 Jan 2017 21:01:32 +0000 (16:01 -0500)]
Not sure why "notr = 'true'" got in there.
Richard Heck [Wed, 4 Jan 2017 17:50:51 +0000 (12:50 -0500)]
Some tooltips.
Juergen Spitzmueller [Wed, 4 Jan 2017 16:11:25 +0000 (17:11 +0100)]
Fix default biblio style detection
Juergen Spitzmueller [Wed, 4 Jan 2017 12:43:24 +0000 (13:43 +0100)]
Merge branch 'master' into biblatex2
Juergen Spitzmueller [Wed, 4 Jan 2017 12:30:50 +0000 (13:30 +0100)]
Extend cite engine style documentation
Juergen Spitzmueller [Wed, 4 Jan 2017 12:29:57 +0000 (13:29 +0100)]
Consider possibility of empty tooltip
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.
Juergen Spitzmueller [Tue, 3 Jan 2017 20:49:56 +0000 (21:49 +0100)]
Merge branch 'master' into biblatex2
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.
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.
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.
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
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.
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.
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.
Guillaume Munch [Mon, 12 Dec 2016 00:11:26 +0000 (01:11 +0100)]
Remove hardcoded values
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.
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.
Juergen Spitzmueller [Tue, 3 Jan 2017 14:35:57 +0000 (15:35 +0100)]
Add some documentation to the rather esoteric style files
Juergen Spitzmueller [Tue, 3 Jan 2017 14:05:55 +0000 (15:05 +0100)]
Fix the alias detection
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.
Juergen Spitzmueller [Tue, 3 Jan 2017 09:17:09 +0000 (10:17 +0100)]
Generalize uppercase test
Biblatex has \Textcite and friends.
Richard Heck [Tue, 3 Jan 2017 03:39:38 +0000 (22:39 -0500)]
Update documentation after recent changes to references.
Richard Heck [Tue, 3 Jan 2017 03:23:21 +0000 (22:23 -0500)]
Update tex2lyx tests to new format.
Richard Heck [Sun, 19 Jun 2016 02:24:27 +0000 (22:24 -0400)]
Adapt tex2lyx to the new file format.
Richard Heck [Sat, 18 Jun 2016 23:29:15 +0000 (19:29 -0400)]
Add ability to use refstyle's plural and capitalization features.
Richard Heck [Mon, 2 Jan 2017 23:14:41 +0000 (18:14 -0500)]
Update tex2lyx tests.
Richard Heck [Sat, 18 Jun 2016 22:38:24 +0000 (18:38 -0400)]
Label only command for reference dialog.
Juergen Spitzmueller [Mon, 2 Jan 2017 12:00:14 +0000 (13:00 +0100)]
Extend the Bibfiles cache
For biblatex, we need the file name as it was entered in the inset
(abs path, rel path, only file name) in order to resolve it properly
for the export (as in the BibTeX inset intself).
Therefore, we now store a pair<docstring, FileName>.
A FileNamePairList has been added to FileNameList for this purpose.
Juergen Spitzmueller [Mon, 2 Jan 2017 11:05:14 +0000 (12:05 +0100)]
Amend
8add88ee4995 : Show Biblatex files in the TeXInfo dialog
UI file was forgotten.
Juergen Spitzmueller [Mon, 2 Jan 2017 11:00:56 +0000 (12:00 +0100)]
Adapt menu string
Juergen Spitzmueller [Mon, 2 Jan 2017 11:00:10 +0000 (12:00 +0100)]
GuiLog: Detect Biber for the GUI.
Juergen Spitzmueller [Sun, 1 Jan 2017 11:43:23 +0000 (12:43 +0100)]
Use real command in runparams.bibtex_command
Juergen Spitzmueller [Sun, 1 Jan 2017 10:34:35 +0000 (11:34 +0100)]
Show Biblatex files in the TeXInfo dialog
Juergen Spitzmueller [Sun, 1 Jan 2017 09:49:22 +0000 (10:49 +0100)]
Add BufferParams::bibtexCommand()
This function returns the real command (either per lyxrc or bufferparam)
Juergen Spitzmueller [Sun, 1 Jan 2017 07:37:56 +0000 (08:37 +0100)]
Make biblio_style private
This should never ever be accessed directly
Juergen Spitzmueller [Sun, 1 Jan 2017 07:36:13 +0000 (08:36 +0100)]
whitespace
Juergen Spitzmueller [Sun, 1 Jan 2017 07:08:34 +0000 (08:08 +0100)]
Merge branch 'biblatex2' of git.lyx.org:features into biblatex2
Juergen Spitzmueller [Sat, 31 Dec 2016 18:45:25 +0000 (19:45 +0100)]
TeXFiles.py: scan for biblatex *.bbx and *.cbx files
Juergen Spitzmueller [Sat, 31 Dec 2016 18:44:32 +0000 (19:44 +0100)]
Add a CiteFramework tag
This is to distinguish the biblatex and bibtex paradigms
Juergen Spitzmueller [Sat, 31 Dec 2016 16:38:26 +0000 (17:38 +0100)]
Improve style.
Thanks, José!
Juergen Spitzmueller [Sat, 31 Dec 2016 15:01:11 +0000 (16:01 +0100)]
Fix isDefaultBiblio() test
Juergen Spitzmueller [Sat, 31 Dec 2016 13:57:09 +0000 (14:57 +0100)]
Rework default bibliography style UI
* Use a combo with all available styles
* Correctly reset default on engine change
* Consider that EngineTypes might have different defaults
Juergen Spitzmueller [Sat, 31 Dec 2016 08:28:51 +0000 (09:28 +0100)]
Properly support the cite engines in the GUI
Instead of hardcoding 3 engines, we now support all engines which are
defined in the *.citeengines files.
Juergen Spitzmueller [Fri, 30 Dec 2016 15:22:08 +0000 (16:22 +0100)]
Disentangle CiteEngines and Modules
These two are different beasts and thus should be handled differently.
Juergen Spitzmueller [Sat, 31 Dec 2016 18:45:25 +0000 (19:45 +0100)]
TeXFiles.py: scan for biblatex *.bbx and *.cbx files
Juergen Spitzmueller [Sat, 31 Dec 2016 18:44:32 +0000 (19:44 +0100)]
Add a CiteFramework tag
This is to distinguish the biblatex and bibtex paradigms
Juergen Spitzmueller [Sat, 31 Dec 2016 16:38:26 +0000 (17:38 +0100)]
Improve style.
Thanks, José!
Juergen Spitzmueller [Sat, 31 Dec 2016 15:01:11 +0000 (16:01 +0100)]
Fix isDefaultBiblio() test
Guillaume Munch [Sat, 31 Dec 2016 14:16:15 +0000 (15:16 +0100)]
Fix memory leak with WordLists
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg198230.html
Guillaume Munch [Sat, 31 Dec 2016 14:22:07 +0000 (15:22 +0100)]
Convert a pointer to a reference
The validity of the reference is guaranteed by QThreadLocalStorage
Guillaume Munch [Sat, 31 Dec 2016 14:16:15 +0000 (15:16 +0100)]
Remove a redundant deletion of a QObject
Guillaume Munch [Sat, 31 Dec 2016 14:16:15 +0000 (15:16 +0100)]
TocWidget: Remove possibly dangling BufferView pointer
Guillaume Munch [Sat, 31 Dec 2016 14:16:15 +0000 (15:16 +0100)]
Fix dangling inset pointers after buffer reload
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg198191.html
The root of the issue is in Buffer::reload() called during "Save As". After
loadLyXFile() there, all the insets have been deleted, and therefore the Inset
pointer GuiView::documentBufferView()->cursor().inset() is dangling. Immediately
after loadLyXFile(), reload() calls updateBuffer() which causes a segfault.
While debugging I got other segfaults caused by the same dangling Inset pointer
in Cursor, notably: 1) a trace identical to the second one from
<http://www.lyx.org/trac/ticket/10520>, and 2) a similar segfault in the
critical path after emergency saving (call to inMathed()).
Having to "refresh" by hand the inset pointer cache in CursorSlice is very
unsatisfactory, but there does not appears to be a consistent strategy for
managing these Inset pointers in CursorSlice.
Guillaume Munch [Sat, 31 Dec 2016 14:01:12 +0000 (15:01 +0100)]
Remove outdated comment
UpdateToolbars is no longer slow
Juergen Spitzmueller [Sat, 31 Dec 2016 13:57:09 +0000 (14:57 +0100)]
Rework default bibliography style UI
* Use a combo with all available styles
* Correctly reset default on engine change
* Consider that EngineTypes might have different defaults
Juergen Spitzmueller [Sat, 31 Dec 2016 08:39:32 +0000 (09:39 +0100)]
Merge branch 'biblatex2' of git.lyx.org:features into biblatex2
Juergen Spitzmueller [Sat, 31 Dec 2016 08:28:51 +0000 (09:28 +0100)]
Properly support the cite engines in the GUI
Instead of hardcoding 3 engines, we now support all engines which are
defined in the *.citeengines files.
Juergen Spitzmueller [Fri, 30 Dec 2016 15:22:08 +0000 (16:22 +0100)]
Disentangle CiteEngines and Modules
These two are different beasts and thus should be handled differently.
Juergen Spitzmueller [Sat, 31 Dec 2016 08:28:51 +0000 (09:28 +0100)]
Properly support the cite engines in the GUI
Instead of hardcoding 3 engines, we now support all engines which are
defined in the *.citeengines files.
Juergen Spitzmueller [Fri, 30 Dec 2016 15:22:08 +0000 (16:22 +0100)]
Disentangle CiteEngines and Modules
These two are different beasts and thus should be handled differently.
Richard Heck [Sun, 18 Dec 2016 03:16:49 +0000 (22:16 -0500)]
Don't need the else, since all codepaths return.
Richard Heck [Sun, 18 Dec 2016 03:13:37 +0000 (22:13 -0500)]
Invert logic.
Richard Heck [Sun, 18 Dec 2016 03:12:27 +0000 (22:12 -0500)]
Re-organize, whitespace.
Richard Heck [Sun, 18 Dec 2016 03:09:03 +0000 (22:09 -0500)]
Remove useless for loop.
Juergen Spitzmueller [Thu, 29 Dec 2016 16:36:55 +0000 (17:36 +0100)]
More precise format description
Juergen Spitzmueller [Thu, 29 Dec 2016 15:48:22 +0000 (16:48 +0100)]
The usual tex2lyx tests update after file format change
Juergen Spitzmueller [Thu, 29 Dec 2016 15:45:19 +0000 (16:45 +0100)]
Add support for the Crimson font
We use the more comprehensive cochineal package if available and fall
back to the crimson package, if not.
Math support is provided by means of newtxmath
Fixes: #9974, #9976
Scott Kostyshak [Fri, 25 Nov 2016 02:47:45 +0000 (21:47 -0500)]
Warn if child has diff non-Tex font settings
It is easy to come across problems when the settings are not the
same.
This is consistent with our current warning about different document
classes.
For discussion and a motivating MWE, see:
https://www.mail-archive.com/search?l=mid&q=
20161121024539 .kn6rsqotaw4n2efk%40klay
Kornel Benko [Thu, 29 Dec 2016 08:43:00 +0000 (09:43 +0100)]
Update sk.po
Juergen Spitzmueller [Thu, 29 Dec 2016 08:17:53 +0000 (09:17 +0100)]
Fix two hyperlink-insert problems
1. Do not prematurely cut selection (#10306); patch proposed by Daniel Ramöller
2. Obey lfun argument, even if there is a selection
Juergen Spitzmueller [Thu, 29 Dec 2016 08:04:22 +0000 (09:04 +0100)]
de.po
Jean-Marc Lasgouttes [Wed, 28 Dec 2016 21:44:40 +0000 (22:44 +0100)]
Fixup
c49cd699 : QString::toStdString is not always available
This method requires STL support in Qt. Fortunately, it is not needed
here.
Juergen Spitzmueller [Wed, 28 Dec 2016 15:50:25 +0000 (16:50 +0100)]
Add Joel Kulesza to the credits
Juergen Spitzmueller [Wed, 28 Dec 2016 15:34:44 +0000 (16:34 +0100)]
From
c7899a30a0b5975bf599a69ecd11ab25e1cdf1a4 Mon Sep 17 00:00:00 2001
From: "Joel A. Kulesza" <jkulesza@gmail.com>
Date: Mon, 24 Oct 2016 17:37:58 -0600
Subject: [PATCH] Add "Swap & Reverse" to math delimiter dialog
When "Keep matched" is unchecked, a button becomes enabled to "Swap &
Reverse" the left and right delimiters. This is expected to be of use
with line-wrapped equations featuring one or more set of delimiters that
break across the lines. When "Keep matched" is checked, the button is
visible but disabled.
The most common use case is expected to be the user entering a pair of
unmatched delimiters on the first line of an equation (e.g., "(" and
"(None)"), entering the inner text, going to the next line, and
inserting the opposite set of delimiters (e.g., "(None)" and ")").
This button will negate the need to find the correct corresponding
combination. However, it relies on the dialog's memory of the previous
unmatched set.
This change addresses Ticket #10457
-----------
Modifications by spitz to the original patch:
* Only enable the button if an unmatched pair is selected
* Consider l7n when locating the string "(None)"
* Add an accelerator and a tooltip to the dialog
* Simplify the code a bit
Guillaume Munch [Tue, 27 Dec 2016 18:25:46 +0000 (19:25 +0100)]
Status bar information for InsetMathKern
\mkern is invisible in mathed as a consequence of
10c8d51b . Add information in
the status bar when it is there.
Juergen Spitzmueller [Tue, 27 Dec 2016 15:02:31 +0000 (16:02 +0100)]
Add some line breaks
Kornel Benko [Tue, 27 Dec 2016 11:22:46 +0000 (12:22 +0100)]
Update sk.po
Juergen Spitzmueller [Tue, 27 Dec 2016 11:06:54 +0000 (12:06 +0100)]
Improve quotation mark opening/closing guess
Fixes: #8831
This introduces
* a new inset member isPartOfTextSequence() that returns
whether the inset produces something visible at the current position
in the text flow
* an isOpenPunctuation() test that returns whether a character is in the
'Punctuation, Open' unicode class. This is used instead of just checking
for two (Western, ASCII) opening brackets
It also fixes the isChar() and isLetter() value of InsetSpecialChar,
since some types have not been assigned correctly.
Juergen Spitzmueller [Tue, 27 Dec 2016 07:39:06 +0000 (08:39 +0100)]
Update quote-insert bindings
Juergen Spitzmueller [Mon, 26 Dec 2016 13:41:14 +0000 (14:41 +0100)]
Handle the case of TeX fonts LuaTeX
Juergen Spitzmueller [Mon, 26 Dec 2016 13:04:52 +0000 (14:04 +0100)]
update tex2lyx tests
Juergen Spitzmueller [Mon, 26 Dec 2016 13:03:48 +0000 (14:03 +0100)]
Support for CJK quotation marks
File format change
Fixes: #2712
Juergen Spitzmueller [Mon, 26 Dec 2016 10:25:34 +0000 (11:25 +0100)]
Do not attempt to add dynamic quotes to the style combo
Juergen Spitzmueller [Mon, 26 Dec 2016 09:47:28 +0000 (10:47 +0100)]
add missing bit
Juergen Spitzmueller [Sun, 25 Dec 2016 16:23:07 +0000 (17:23 +0100)]
Use master buffer params for quote style
+ some formatting polishment