mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +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;
|
||||
switch (engine) {
|
||||
case ENGINE_BASIC:
|
||||
output = input;
|
||||
if (input == "nocite")
|
||||
output = input;
|
||||
else
|
||||
output = default_str;
|
||||
break;
|
||||
|
||||
case ENGINE_NATBIB_AUTHORYEAR:
|
||||
case ENGINE_NATBIB_NUMERICAL:
|
||||
if (input == "cite" || input == "citefield" ||
|
||||
input == "citetitle" || input == "cite*")
|
||||
if (input == "cite" || input == "citefield"
|
||||
|| input == "citetitle" || input == "cite*")
|
||||
output = default_str;
|
||||
else if (prefixIs(input, "foot"))
|
||||
output = input.substr(4);
|
||||
|
Loading…
x
Reference in New Issue
Block a user