[texhax] Detecting new UTF-8 input encoding default

David Carlisle d.p.carlisle at gmail.com
Sat Apr 14 23:21:40 CEST 2018


you shouldn't normally need to test for the new style as it is more of
less the same as
\usepackage[utf8]{inputenc}

so in a new or old format utf8 processing is in effect  if this says UTF-8

\def\xxx{utf8}
\ifx\xxx\inputencodingname  UTF-8\else not\fi

similarly in an old or new format either inputencoding has not been
used, or it has been backed out with \UseInputEncodeing if this says
RAW

\ifx\undefined\inputencodingname  RAW\else not\fi


David





On 14 April 2018 at 22:09, Brian Dunn <bd at bdtechconcepts.com> wrote:
>
> Hi all,
>
> I'm wondering what is the recommended way to detect whether pdflatex is
> running with the older "raw" default input encoding or the newer "utf8"
> default input encoding, if the inputenc package is not being used.
>
> Also, how to detect whether the new \UseRawInputEncoding macro has been used.
>
> Thanks,
>
> Brian
>
>
> --
> Brian Dunn
> BD Tech Concepts LLC
> http://www.BDTechConcepts.com
> bd at BDTechConcepts.com
>
> http://www.linkedin.com/in/bdtechconcepts/
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org


More information about the texhax mailing list