[Tex/LaTex] Package ifpdf Error


I am trying to use amspset. Here is my minimum code:


% info for header block in upper right hand corner


When compiling, there is an error:

! Package ifpdf Error: Name clash, \ifpdf is already defined.

I was wondering why and how to solve the problem? Thanks!

Best Answer

This error occurs because the \ifpdf switch is getting defined by two different packages. Normally the ifpdf package should be used for that, but amspset seems to do this by its own.

To fix this, mark it as undefined after the \documentclass using:


I can't test it with my TeXLive installation because it doesn't have amspset. If it doesn't work try to move the above line around a little.

Related Question