diff options
author | albert-github <albert.tests@gmail.com> | 2014-01-15 12:37:01 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2014-01-15 12:37:01 (GMT) |
commit | dd2c137847e16d0a7c6086053f55bce501d84a0c (patch) | |
tree | 324281ae6b269144c0230383cffb308604b4a2e3 /src/latexdocvisitor.cpp | |
parent | de9e2e0b72c5f460e38f0157039836fcdfb35c21 (diff) | |
download | Doxygen-dd2c137847e16d0a7c6086053f55bce501d84a0c.zip Doxygen-dd2c137847e16d0a7c6086053f55bce501d84a0c.tar.gz Doxygen-dd2c137847e16d0a7c6086053f55bce501d84a0c.tar.bz2 |
Enabling possibility to have { and } in (latex) index items
In the doxygen manual the index items for \{ and \} were missing due to the missing support for the usage of { and } in parts of the code.
This patch fixes this problem by introducing 2 new latex commands. See also http://tex.stackexchange.com/questions/153291/index-unmatched-braces-in-latex
Further improvements in the index are:
- consistency in different places
- correction of index for \::
- placing \~ on a more logical place (together with other special characters, ~ is in the ASCII table after a-z whilst other characters are before this range)
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r-- | src/latexdocvisitor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp index 91064a3..bc8e5a5 100644 --- a/src/latexdocvisitor.cpp +++ b/src/latexdocvisitor.cpp @@ -44,6 +44,9 @@ static QCString escapeLabelName(const char *s) case '%': result+="\\%"; break; case '|': result+="\\texttt{\"|}"; break; case '!': result+="\"!"; break; + case '{': result+="\\lcurly{}"; break; + case '}': result+="\\rcurly{}"; break; + case '~': result+="````~"; break; // to get it a bit better in index together with other special characters default: result+=c; } } @@ -79,6 +82,8 @@ QCString LatexDocVisitor::escapeMakeIndexChars(const char *s) case '|': m_t << "\\texttt{\"|}"; break; case '[': m_t << "["; break; case ']': m_t << "]"; break; + case '{': m_t << "\\lcurly{}"; break; + case '}': m_t << "\\rcurly{}"; break; default: str[0]=c; filter(str); break; } } |