summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-05-24 07:45:35 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-05-24 07:45:35 (GMT)
commit7bb6b4792a95626685df5750a6ab79b675c9fd60 (patch)
tree2a44e372568fc911e40993de0580ae645fb4fcf3 /templates
parentf4544b7508bde732dacb1172e8200e88ac07c82b (diff)
downloadDoxygen-7bb6b4792a95626685df5750a6ab79b675c9fd60.zip
Doxygen-7bb6b4792a95626685df5750a6ab79b675c9fd60.tar.gz
Doxygen-7bb6b4792a95626685df5750a6ab79b675c9fd60.tar.bz2
Small problems when having code in LaTeX output
Also part in doxygen.sty made valid for plain latex
Diffstat (limited to 'templates')
-rw-r--r--templates/latex/doxygen.sty12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/latex/doxygen.sty b/templates/latex/doxygen.sty
index bee23c5..7f77174 100644
--- a/templates/latex/doxygen.sty
+++ b/templates/latex/doxygen.sty
@@ -113,19 +113,19 @@
\normalsize%
}
-% Redefining not defined charcaters, i.e. "Replacement Character" in tex output.
+% Redefining not defined characters, i.e. "Replacement Character" in tex output.
\def\ucr{\adjustbox{width=\CodeWidthChar,height=\CodeHeightChar}{\stackinset{c}{}{c}{-.2pt}{%
\textcolor{white}{\sffamily\bfseries\small ?}}{%
\rotatebox{45}{$\blacksquare$}}}}
% Choosing right setup for "Replacement character"
-\ifpdf
- \RequirePackage[utf8]{inputenc}
- \DeclareUnicodeCharacter{FFFD}{\ucr}
-\else
+\ifthenelse{\isundefined{\DeclareUnicodeCharacter}}{%
\catcode`\�=13
\def�{\ucr}
-\fi
+}{%
+ \RequirePackage[utf8]{inputenc}
+ \DeclareUnicodeCharacter{FFFD}{\ucr}
+}
% Used by @example, @include, @includelineno and @dontinclude
\newenvironment{DoxyCodeInclude}{%