0

I get a very weird "error" just momentarily when I compile my document but when the compilation is finished it disappears and I have no errors or warnings. As you can see the "error" is huge and it keep going as there is a scrolling bar. This started happening the time that I used the \usepackage{steinmetz} and its command \phase{}. If I delete them then everything is ok. Why is this happenning and how can I fix it?

A MWE which has that problem when compiled:

\documentclass[12pt]{article}
\usepackage[top=0.7in, bottom=1.2in, left=0.8in, right=0.8in]{geometry}

\setlength{\parindent}{0cm}

\usepackage{xltxtra}
\usepackage{xgreek}
\setmainfont[Mapping=tex-text]{GFSArtemisia.otf}
\setsansfont[Mapping=tex-text]{GFSArtemisia.otf}

\setmainfont[
  Ligatures=TeX,
  Extension=.otf,
  UprightFont=*,
  BoldFont=*Bold,
  ItalicFont=*It,
  BoldItalicFont=*BoldIt,
]{GFSArtemisia}

\usepackage[fleqn]{amsmath}
\usepackage{unicode-math}

\usepackage{steinmetz}

\everymath{\displaystyle}

\newcommand{\3}{\vspace{0.3cm}}

\newcommand{\1}{\vspace{1cm}}

\newcommand{\rr}
{
\hrule

\vspace{0.3cm}
}

\begin{document}

$Y=|Y|\cdot e^{j\phi}=|Y|\phase{\phi}$

\end{document}

enter image description here

I don't know if this helps but these are the settings of my Texmaker:

enter image description here

After using the solution proposed by Ulrike Fischer all this "scary" warning disappears and in its place appears the following. It is of the same nature which means that it appears during compilation and disappears after the compilation is complete. What is that?

enter image description here

Adam
  • 4,684

1 Answers1

3

As I mentioned in my comment, steinmetz loads pict2e, and this package needs to load the correct driver. The loading of the driver is done in pict2e.cfg which on miktex is from 2005 (completly outdated) and so doesn't load the suitable driver for xetex but the dvips driver instead. In Tex Live there is no problem. Make a bug report on the miktex site. A work-around for the problem is to force pict2e to load the correct driver:

\usepackage[xetex]{pict2e}
\usepackage{steinmetz}
Ulrike Fischer
  • 327,261