// Corresponding LaTeX code, for double and single quotes.
char const * const latex_quote_t1[2][5] = {
- { "\\quotesinglbase ", "'", "`",
- "\\guilsinglleft{}", "\\guilsinglright{}" },
+ { "\\quotesinglbase", "'", "`",
+ "\\guilsinglleft", "\\guilsinglright" },
{ ",,", "''", "``", "<<", ">>" }
};
char const * const latex_quote_ot1[2][5] = {
- { "\\quotesinglbase ", "'", "`",
- "\\guilsinglleft{}", "\\guilsinglright{}" },
- { "\\quotedblbase ", "''", "``",
- "\\guillemotleft{}", "\\guillemotright{}" }
+ { "\\quotesinglbase", "'", "`",
+ "\\guilsinglleft", "\\guilsinglright" },
+ { "\\quotedblbase", "''", "``",
+ "\\guillemotleft", "\\guillemotright" }
};
char const * const latex_quote_babel[2][5] = {
- { "\\glq ", "'", "`", "\\flq{}", "\\frq{}" },
- { "\\glqq ", "''", "``", "\\flqq{}", "\\frqq{}" }
+ { "\\glq", "'", "`", "\\flq", "\\frq" },
+ { "\\glqq", "''", "``", "\\flqq", "\\frqq" }
};
char const * const html_quote[2][5] = {
// Specific guillemets of French babel
// including correct French spacing
if (side_ == LeftQuote)
- qstr = "\\og "; //the spaces are important here
+ qstr = "\\og";
else
- qstr = " \\fg{}"; //and here
+ qstr = " \\fg"; // the space is important here
} else if (fontenc_ == "T1" && !runparams.use_polyglossia) {
// Quotation marks for T1 font encoding
// (using ligatures)
}
os << from_ascii(qstr);
+
+ if (prefixIs(qstr, "\\"))
+ // properly terminate the command depending on the context
+ os << termcmd;
}