LaTeX-uniinput: added support for modern engines

This commit is contained in:
hrnz 2020-10-25 15:20:33 +01:00
parent 7f56fbca69
commit 33bd6a56d0
No known key found for this signature in database
GPG Key ID: 06E88726998AB3C7
1 changed files with 21 additions and 2 deletions

View File

@ -101,8 +101,27 @@
% \section{Implementierung}
%
% \begin{macrocode}
\RequirePackage{textcomp}
\RequirePackage{marvosym}
% XeTeX/LuaTex-Code von https://tex.stackexchange.com/a/195460
% genommen, von egreg geschrieben
\RequirePackage{ifxetex,ifluatex}
\newif\ifunicode
\ifxetex\unicodetrue\fi
\ifluatex\unicodetrue\fi
\ifunicode
\RequirePackage{fontspec}
\RequirePackage{newunicodechar}
\newcommand{\DeclareUnicodeCharacter}[2]{%
\begingroup\lccode`|=\string"#1\relax
\lowercase{\endgroup\newunicodechar{|}}{#2}%
}
\else
\RequirePackage[utf8]{inputenc}
\RequirePackage{textcomp}
\RequirePackage{marvosym}
\fi
\RequirePackage{amsmath}
% Griechische Buchstaben: