Skip to content

Commit

Permalink
Small problems when having code in LaTeX output
Browse files Browse the repository at this point in the history
Also part in doxygen.sty made valid for plain latex
  • Loading branch information
albert-github committed May 24, 2018
1 parent f4544b7 commit 7bb6b47
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/latex/doxygen.sty
Original file line number Diff line number Diff line change
Expand Up @@ -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}{%
Expand Down

0 comments on commit 7bb6b47

Please sign in to comment.