summaryrefslogtreecommitdiffstats
path: root/templates/latex
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-07-23 16:47:56 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-07-23 16:47:56 (GMT)
commit0f8902275a4c02196d4eb1398e621a349355410a (patch)
tree760015456f1166f992f7205921109465bdfd8bd1 /templates/latex
parent198abce439d91d9d877570ec335bfd26a31d8526 (diff)
downloadDoxygen-0f8902275a4c02196d4eb1398e621a349355410a.zip
Doxygen-0f8902275a4c02196d4eb1398e621a349355410a.tar.gz
Doxygen-0f8902275a4c02196d4eb1398e621a349355410a.tar.bz2
Improvements in handling special characters in Latex
- In case a corrupted character is found LaTeX shows this as a U+FFFD , the character in the code is 0xef 0xbf oxbd. This character was in the LaTex Code already replaced with `\ucr` but this didn't work properly with TexLive 2015 and the code is now detected i the doxygen code and directly replaced `\ucr` - other special characters are now handled, in a way that works in all engines, by means of `\newunicodechar` - the size of the `\ucr` was not set in case it was used in 'running text' and not inside e.g. a code section.
Diffstat (limited to 'templates/latex')
-rw-r--r--templates/latex/doxygen.sty13
1 files changed, 4 insertions, 9 deletions
diff --git a/templates/latex/doxygen.sty b/templates/latex/doxygen.sty
index 842d101..7798d48 100644
--- a/templates/latex/doxygen.sty
+++ b/templates/latex/doxygen.sty
@@ -87,6 +87,8 @@
% Necessary for redefining not defined charcaters, i.e. "Replacement Character" in tex output.
\newlength{\CodeWidthChar}
\newlength{\CodeHeightChar}
+\settowidth{\CodeWidthChar}{?}
+\settoheight{\CodeHeightChar}{?}
% Necessary for hanging indent
\newlength{\DoxyCodeWidth}
@@ -117,6 +119,8 @@
}{%
\normalfont%
\normalsize%
+ \settowidth{\CodeWidthChar}{?}%
+ \settoheight{\CodeHeightChar}{?}%
}
% Redefining not defined characters, i.e. "Replacement Character" in tex output.
@@ -124,15 +128,6 @@
\textcolor{white}{\sffamily\bfseries\small ?}}{%
\rotatebox{45}{$\blacksquare$}}}}
-% Choosing right setup for "Replacement character"
-\ifthenelse{\isundefined{\DeclareUnicodeCharacter}}{%
- \catcode`\�=13
- \def�{\ucr}
-}{%
- \RequirePackage[utf8]{inputenc}
- \DeclareUnicodeCharacter{FFFD}{\ucr}
-}
-
% Used by @example, @include, @includelineno and @dontinclude
\newenvironment{DoxyCodeInclude}[1]{%
\DoxyCode{#1}%