Fix the alias detection

This commit is contained in:
Juergen Spitzmueller 2017-01-03 15:05:55 +01:00
parent 958f6193ed
commit c88259453c

View File

@ -3253,6 +3253,11 @@ bool const & BufferParams::fullAuthorList() const
string BufferParams::getCiteAlias(string const & s) const
{
vector<string> commands =
documentClass().citeCommands(citeEngineType());
// If it is a real command, don't treat it as an alias
if (find(commands.begin(), commands.end(), s) != commands.end())
return string();
map<string,string> aliases = documentClass().citeCommandAliases();
if (aliases.find(s) != aliases.end())
return aliases[s];