I have been writing a paper and used tikz for some of my figures. Then when we decided to submit to a particular conference, and used the style file they provided, the figure broke (failed to compile). I dissected their style file and found that the line "\p@=1bp" is responsible for the problem, but I do not know what that line is and how to work around it. Simply removing the line is not a solution since I have no control over the style file they will use for the final publishable version.
This version works correctly:
\documentclass{minimal}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill [blue!25] (1,1) rectangle (2,2);
\end{tikzpicture}
\end{document}
This version generates the error mentioned in the title:
\documentclass{minimal}
\makeatletter
\p@=1bp
\makeatother
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill [blue!25] (1,1) rectangle (2,2);
\end{tikzpicture}
\end{document}
Curiously, it works again when I remove the "!25" after "blue":
\documentclass{minimal}
\makeatletter
\p@=1bp
\makeatother
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill [blue] (1,1) rectangle (2,2);
\end{tikzpicture}
\end{document}
I am using pdflatex: pdfTeX 3.14159265-2.6-1.40.17 (TeX Live 2016/MacPorts 2016_4).
I am looking for a way to specify the color "blue!25" without modifying the style file. That is, with the following snippet present in the preamable:
\makeatletter
\p@=1bp
\makeatother
Thank you.
\makeatletter \p@=1bp \makeatother
will completely break latex arithmetic and lead to errors such as the one you show.\dimen@=0.5\p@
which is0.5pt
then to get back to 0.5 you can use\the\dimen@
but if you change the value of\p@
all the values are multiplied by 72.27/27 ....