Use ASCII number in \char definition

The backtick version breaks in some cases (footnotes in sections)
This commit is contained in:
Juergen Spitzmueller 2017-02-18 10:18:36 +01:00
parent 5b03606482
commit e688b9876e
2 changed files with 5 additions and 5 deletions

View File

@ -123,19 +123,19 @@ static docstring const textquotedbl_def = from_ascii(
static docstring const textquotedblp_xetex_def = from_ascii(
"\\providecommand\\textquotedblplain{%\n"
" \\bgroup\\addfontfeatures{Mapping=}\\char`\\\"\\egroup}");
" \\bgroup\\addfontfeatures{Mapping=}\\char34\\egroup}");
static docstring const textquotedblp_luatex_def = from_ascii(
"\\providecommand\\textquotedblplain{%\n"
" \\bgroup\\addfontfeatures{RawFeature=-tlig}\\char`\\\"\\egroup}");
" \\bgroup\\addfontfeatures{RawFeature=-tlig}\\char34\\egroup}");
static docstring const textquotesinglep_xetex_def = from_ascii(
"\\providecommand\\textquotesingleplain{%\n"
" \\bgroup\\addfontfeatures{Mapping=}\\char`\\\'\\egroup}");
" \\bgroup\\addfontfeatures{Mapping=}\\char39\\egroup}");
static docstring const textquotesinglep_luatex_def = from_ascii(
"\\providecommand\\textquotesingleplain{%\n"
" \\bgroup\\addfontfeatures{RawFeature=-tlig}\\char`\\\'\\egroup}");
" \\bgroup\\addfontfeatures{RawFeature=-tlig}\\char39\\egroup}");
static docstring const paragraphleftindent_def = from_ascii(
"\\newenvironment{LyXParagraphLeftIndent}[1]%\n"

View File

@ -1225,7 +1225,7 @@ void Paragraph::Private::latexSpecialChar(otexstream & os,
}
break;
case '\"':
os << "\\char`\\\"" << termcmd;
os << "\\char34" << termcmd;
column += 9;
break;