Commit ac813134 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Use hook arrow for hyphens in symbol names in the LaTeX output.

parent 09a5fc19
...@@ -323,6 +323,7 @@ static void writeDefaultHeaderPart1(FTextStream &t) ...@@ -323,6 +323,7 @@ static void writeDefaultHeaderPart1(FTextStream &t)
" \\fontseries{bc}\\selectfont%\n" " \\fontseries{bc}\\selectfont%\n"
" \\color{darkgray}%\n" " \\color{darkgray}%\n"
"}\n" "}\n"
"\\newcommand{\\+}{\\discretionary{\\mbox{\\scriptsize$\\hookleftarrow$}}{}{}}\n"
"\n"; "\n";
// Define page & text layout // Define page & text layout
......
...@@ -6527,9 +6527,9 @@ void filterLatexString(FTextStream &t,const char *str, ...@@ -6527,9 +6527,9 @@ void filterLatexString(FTextStream &t,const char *str,
case '^': t << "$^\\wedge$"; break; case '^': t << "$^\\wedge$"; break;
case '&': t << "\\&"; break; case '&': t << "\\&"; break;
case '*': t << "$\\ast$"; break; case '*': t << "$\\ast$"; break;
case '_': if (!insideTabbing) t << "\\-"; case '_': if (!insideTabbing) t << "\\+";
t << "\\_"; t << "\\_";
if (!insideTabbing) t << "\\-"; if (!insideTabbing) t << "\\+";
break; break;
case '{': t << "\\{"; break; case '{': t << "\\{"; break;
case '}': t << "\\}"; break; case '}': t << "\\}"; break;
...@@ -6566,7 +6566,7 @@ void filterLatexString(FTextStream &t,const char *str, ...@@ -6566,7 +6566,7 @@ void filterLatexString(FTextStream &t,const char *str,
((c>='A' && c<='Z' && pc!=' ' && pc!='\0') || (c==':' && pc!=':') || (pc=='.' && isId(c))) ((c>='A' && c<='Z' && pc!=' ' && pc!='\0') || (c==':' && pc!=':') || (pc=='.' && isId(c)))
) )
{ {
t << "\\-"; t << "\\+";
} }
t << (char)c; t << (char)c;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment