mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
consider style-specifics for citation alias
This commit is contained in:
parent
6603c5362f
commit
08c0377f0c
@ -3755,10 +3755,17 @@ bool BufferParams::fullAuthorList() const
|
||||
|
||||
string BufferParams::getCiteAlias(string const & s) const
|
||||
{
|
||||
vector<string> commands =
|
||||
documentClass().citeCommands(citeEngineType());
|
||||
bool realcmd = false;
|
||||
vector<CitationStyle> const styles = citeStyles();
|
||||
for (size_t i = 0; i != styles.size(); ++i) {
|
||||
// only include variants that are supported in the current style
|
||||
if (styles[i].name == s && isActiveBiblatexCiteStyle(styles[i])) {
|
||||
realcmd = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// If it is a real command, don't treat it as an alias
|
||||
if (find(commands.begin(), commands.end(), s) != commands.end())
|
||||
if (realcmd)
|
||||
return string();
|
||||
map<string,string> aliases = documentClass().citeCommandAliases();
|
||||
if (aliases.find(s) != aliases.end())
|
||||
|
Loading…
Reference in New Issue
Block a user