In my code, I used to write
\DeclareUnicodeCharacter{27E6}{\begin{description}} % ⟦
\DeclareUnicodeCharacter{27E7}{\end{description}} % ⟧
\DeclareUnicodeCharacter{2022}{\item} % •
which worked great with pdflatex
. Moving to lualatex
the command does not compile. Is there a way I can define my version of \DeclareUnicodeCharacer
so that it still works?
Best Answer
I'd consider
as code obfuscation. Anyway, this works with all engines. However, for
pdflatex
it requiresutf8
passed toinputenc
orinputenx
(as opposed toutf8x
).If you want to reuse the declarations you already have, you could do like this: