mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 00:38:01 +00:00
* InsetCitation:
- use valid citation commands only (bug 4876) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24856 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a2f6539aff
commit
bcf3cbef4f
@ -94,13 +94,16 @@ string asValidLatexCommand(string const & input, CiteEngine const engine)
|
|||||||
string output;
|
string output;
|
||||||
switch (engine) {
|
switch (engine) {
|
||||||
case ENGINE_BASIC:
|
case ENGINE_BASIC:
|
||||||
output = input;
|
if (input == "nocite")
|
||||||
|
output = input;
|
||||||
|
else
|
||||||
|
output = default_str;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ENGINE_NATBIB_AUTHORYEAR:
|
case ENGINE_NATBIB_AUTHORYEAR:
|
||||||
case ENGINE_NATBIB_NUMERICAL:
|
case ENGINE_NATBIB_NUMERICAL:
|
||||||
if (input == "cite" || input == "citefield" ||
|
if (input == "cite" || input == "citefield"
|
||||||
input == "citetitle" || input == "cite*")
|
|| input == "citetitle" || input == "cite*")
|
||||||
output = default_str;
|
output = default_str;
|
||||||
else if (prefixIs(input, "foot"))
|
else if (prefixIs(input, "foot"))
|
||||||
output = input.substr(4);
|
output = input.substr(4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user