Permalink
Browse files

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

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Jan 12, 2014
1 parent 09a5fc1 commit ac813134a85ba9bd999fb4cf8271c74e02cd4ebb
Showing with 4 additions and 3 deletions.
  1. +1 −0 src/latexgen.cpp
  2. +3 −3 src/util.cpp
View
@@ -323,6 +323,7 @@ static void writeDefaultHeaderPart1(FTextStream &t)
" \\fontseries{bc}\\selectfont%\n"
" \\color{darkgray}%\n"
"}\n"
"\\newcommand{\\+}{\\discretionary{\\mbox{\\scriptsize$\\hookleftarrow$}}{}{}}\n"
"\n";
// Define page & text layout
View
@@ -6527,9 +6527,9 @@ void filterLatexString(FTextStream &t,const char *str,
case '^': t << "$^\\wedge$"; break;
case '&': t << "\\&"; break;
case '*': t << "$\\ast$"; break;
case '_': if (!insideTabbing) t << "\\-";
case '_': if (!insideTabbing) t << "\\+";
t << "\\_";
if (!insideTabbing) t << "\\-";
if (!insideTabbing) t << "\\+";
break;
case '{': t << "\\{"; break;
case '}': t << "\\}"; break;
@@ -6566,7 +6566,7 @@ void filterLatexString(FTextStream &t,const char *str,
((c>='A' && c<='Z' && pc!=' ' && pc!='\0') || (c==':' && pc!=':') || (pc=='.' && isId(c)))
)
{
t << "\\-";
t << "\\+";
}
t << (char)c;
}

0 comments on commit ac81313

Please sign in to comment.