diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-01-12 20:25:00 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-01-12 20:25:00 (GMT) |
commit | ac813134a85ba9bd999fb4cf8271c74e02cd4ebb (patch) | |
tree | 5214f98a620b1c117c9c6f70816d24ce4632f969 /src | |
parent | 09a5fc198a98d697d3e50c1c76392b8373f1af12 (diff) | |
download | Doxygen-ac813134a85ba9bd999fb4cf8271c74e02cd4ebb.zip Doxygen-ac813134a85ba9bd999fb4cf8271c74e02cd4ebb.tar.gz Doxygen-ac813134a85ba9bd999fb4cf8271c74e02cd4ebb.tar.bz2 |
Use hook arrow for hyphens in symbol names in the LaTeX output.
Diffstat (limited to 'src')
-rw-r--r-- | src/latexgen.cpp | 1 | ||||
-rw-r--r-- | src/util.cpp | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 6db6148..8b8c835 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -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 diff --git a/src/util.cpp b/src/util.cpp index 54be42d..a4600d1 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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; } |