diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty b/Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty index 6a9e4f7cf32..03f6c4be8b4 100644 --- a/Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty +++ b/Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2011 by Enrico Gregorio +%% Copyright (C) 2011-2018 by Enrico Gregorio %% <Enrico dot Gregorio at univr dot it> %% ------------------------------------------------------- %% @@ -29,9 +29,9 @@ %% newunicodechar.ins %% and the derived file newunicodechar.sty. %% -\NeedsTeXFormat{LaTeX2e}[2008/04/05] +\NeedsTeXFormat{LaTeX2e}[2018/04/01] \ProvidesPackage{newunicodechar} - [2012/11/12 v1.1 Defining Unicode characters] + [2018/04/08 v1.2 Defining Unicode characters] \@ifundefined{eTeXversion} {\PackageError{newunicodechar}{LaTeX engine too old, aborting} {Please upgrade your TeX system}\@@end}{} @@ -77,14 +77,14 @@ \expandafter\endinput \fi % End of code for Unicode engines \def\nuc@stop{\PackageWarningNoLine{newunicodechar} - {This package won't work without loading\MessageBreak - `inputenc' or `inputenx' with the `utf8' option}% + {This package only works if the document\MessageBreak + encoding is `utf8'}% \let\newunicodechar\@gobbletwo\endinput} -\@ifpackageloaded{inputenx} - {\def\nuc@tempa{inputenx}} - {\@ifpackageloaded{inputenc}{\def\nuc@tempa{inputenc}}{\nuc@stop}} -\@ifpackagewith{\nuc@tempa}{utf8}{}{\nuc@stop} -\@ifpackagewith{\nuc@tempa}{utf8x}{\nuc@stop}{} +\edef\@tempa{\detokenize{utf8}} +\edef\@tempb{\detokenize\expandafter{\inputencodingname}} +\ifx\@tempb\@tempa\else + \nuc@stop +\fi \def\newunicodechar#1#2{% \@tempswafalse \edef\nuc@tempa{\detokenize{#1}}% |