From c88259453c7a9df12e79aeea221caa600a0f83d2 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 3 Jan 2017 15:05:55 +0100 Subject: [PATCH] Fix the alias detection --- src/BufferParams.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 5afb79ccd1..5c4524b0d4 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 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 aliases = documentClass().citeCommandAliases(); if (aliases.find(s) != aliases.end()) return aliases[s];