namespace {
-
+
// FIXME See the header for the issue.
string defaultCiteCommand(CiteEngine engine)
{
return str;
}
-
+
string asValidLatexCommand(string const & input, CiteEngine const engine)
{
string const default_str = defaultCiteCommand(engine);
}
-inline docstring wrapCitation(docstring const & key,
+inline docstring wrapCitation(docstring const & key,
docstring const & content, bool for_xhtml)
{
if (!for_xhtml)
else
label += wrapCitation(*it, author, for_xhtml) + sep_str;
}
- }
+ }
// nocite
else if (cite_type == "nocite") {
label += *it + sep_str;
- }
+ }
// (authors1 (<before> year); ... ;
// authors_last (<before> year, <after>)
else if (cite_type == "citet") {
case ENGINE_BASIC:
break;
}
- }
- // author, year; author, year; ...
+ }
+ // author, year; author, year; ...
else if (cite_type == "citep" ||
cite_type == "citealp") {
if (engine == ENGINE_NATBIB_NUMERICAL) {
label += wrapCitation(*it, author + ", " + year, for_xhtml) + sep_str;
}
- }
+ }
// (authors1 <before> year;
// authors_last <before> year, <after>)
else if (cite_type == "citealt") {
wrapCitation(*it, citenum, for_xhtml) + sep_str;
break;
case ENGINE_JURABIB:
- label += before_str +
+ label += before_str +
wrapCitation(*it, author + ' ' + year, for_xhtml) + sep_str;
break;
case ENGINE_BASIC:
break;
}
-
- }
+
+ }
// author; author; ...
else if (cite_type == "citeauthor") {
label += wrapCitation(*it, author, for_xhtml) + sep_str;
label = before_str + label;
}
- if (cite_type == "citep" || cite_type == "citeyearpar" ||
+ if (cite_type == "citep" || cite_type == "citeyearpar" ||
(cite_type == "cite" && engine == ENGINE_BASIC) )
label = op + label + cp;