commit c88259453c7a9df12e79aeea221caa600a0f83d2
Author: Juergen Spitzmueller <[email protected]>
Date: Tue Jan 3 15:05:55 2017 +0100
Fix the alias detection
---
src/BufferParams.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index 5afb79c..5c4524b 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -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];