summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-04-08 20:06:28 +0000
committerKarl Berry <karl@freefriends.org>2018-04-08 20:06:28 +0000
commit65a6cc78ea8d1397df8fd68fb8379d54ce8d63b9 (patch)
tree99e6a6928f7c03906d0f93fb8ea6dd2c7dd86a90 /Master/texmf-dist/tex/latex
parentc6208e4a8a2515a9151a24fc5327db290e85321c (diff)
newunicodechar (8apr18)
git-svn-id: svn://tug.org/texlive/trunk@47382 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty20
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}}%