+ if (getCmdName() == "keyonly") {
+ // Special command to only return the key
+ if (!bi.isBibtex(getParam("key")))
+ // escape chars with bibitems
+ os << escape(cleanupWhitespace(getParam("key")));
+ else
+ os << cleanupWhitespace(getParam("key"));
+ return;
+ }
+ vector<CitationStyle> citation_styles = buffer().masterParams().citeStyles();
+ CitationStyle cs = asValidLatexCommand(buffer().masterParams(),
+ getCmdName(), citation_styles);