issue with amsmath

Issue #11 invalid
Ronald Phlypo created an issue

Dear developers,

there seems to be an issue when both using the amsmath and the pdfcomment package in the same document. The first three errors are

(1) ! Illegal unit of measure (pt inserted).<to be read again>.. (2) ! Package calc Error: `m' invalid at this point.See the calc package documentation for explanation.Type H <return> for immediate help.... (3) ! Incompatible glue units.<recently read> \calc@B ...

If I either do not use amsmath, or pdfcomment, these errors disappear (the reference line for the errors is the same line, i.e., an equation)

I think this is a major issue, based on the popularity of amsmath as a package!

Thanks in advance

Comments (5)

  1. Josef Kleber repo owner

    Hi,

    can you please provide a minimal example. In general, it is often difficult to find an example that demonstrate the problem.

    Thank you,

    Josef

  2. Ronald Phlypo reporter

    Sure Josef, here you go:

    %%% cut here %%% \documentclass{article}

    \usepackage{amsmath} \usepackage{pdfcomment}

    % Identity matrix / Identity operator \newcommand{\Id}[1]{\ensuremath{\boldsymbol{I}{{0mu} #1\times #1\endgroup}}}}

    \begin{document}

    The identity matrix in $F^n$ will be denoted by $\Id{n}$.

    \end{document} %%% cut here %%%

  3. Josef Kleber repo owner

    Hi Ronald,

    it's not really a issue with pdfcomment, as the following example shows:

    \documentclass{article}
    \usepackage{amsmath} 
    %\usepackage{calc}
    % Identity matrix / Identity operator 
    \newcommand{\Id}[1]{\ensuremath{\boldsymbol{I}{{\begingroup\setlength{\medmuskip}{0.1 mu} #1\times #1\endgroup}}}}
    \begin{document}
    The identity matrix in $F^n$ will be denoted by $\Id{n}$.
    \end{document}
    

    pdfcomment is a vivtim of a drive-by-shooting! ;-)

    pdfcomment needs to load calc for calculations. You should contact the maintainers of calc and/or amsmath.

    Nothing i can do from pdfcomment,

    Josef

  4. Log in to comment