[tex-live] Fatal fontspec error: "cannot-use-pdftex"

José Hissa Ferreira jose.hissa at gmail.com
Tue Apr 11 17:59:20 CEST 2017


David,

The "culprit" is the `dantelogo.sty' package:

\@tempswatrue% suppose latex or pdflatex

%

\ifXeTeX\@tempswafalse\else\ifLuaTeX\@tempswafalse\fi\fi

%

\if at tempswa% we have (pdf)latex

\message{We run (pdf)latex ... }%

\PassOptionsToPackage{T1}{fontenc}%

\RequirePackage{fontenc}%

\def\dante at font{\fontencoding{\encodingdefault}\fontfamily{DANTE}\selectfont}%

\else

\message{We run (lua)xelatex ... }%

\RequirePackage{fontspec}

\newfontfamily\dante at font{DANTE}%

[Extension=.otf,

BoldFont=*-Bold,

ItalicFont=*-Italic,

BoldItalicFont=*-Bold-Italic]

\fi

%


Maybe there is some issues with the first message line. Well, I removed 
it (don't know why I am using it) and now all works again.

Thanks,

JHissa

Em 11/04/2017 12:11, David Carlisle escreveu:
> the line
>
> Fatal fontspec error: "cannot-use-pdftex"
> cones from fontspec,  perhaps a package that you include now loads fontspec.
>
> Show the log file or terminal output from running pdflatex on your document.
>
> it will have an open bracket (...path/to/fontspec.sty  and looking for the
> preceding open brackets will show which file you are including has
> included fontspec.
>
>
> David
>
>
>
> On 11 April 2017 at 16:01, José Hissa Ferreira <jose.hissa at gmail.com> wrote:
>> Em 11/04/2017 11:44, David Carlisle escreveu:
>>>> This error message is wrong because I am using pdflatex to compile.
>>> The error message is because you used pdflatex.
>>> You have included the fontspec package, and that requires xelatex or
>>> lualatex and does not work with pdflatex.
>>>
>>> David
>> David, I did not include the fontspec package. Please note that I did get
>> that error just after I updated texlive today
>>
>> JHissa
>>
>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex-live/attachments/20170411/25823b19/attachment.html>


More information about the tex-live mailing list