The following has worked for me for quite some time.
\documentclass[11pt]{book}
\usepackage[margin=1in]{geometry}
\geometry{letterpaper}
\usepackage[parfill]{parskip}
\usepackage{tikz, pgf, calc}
\usetikzlibrary{matrix, shapes, positioning, calc, decorations.pathreplacing, shapes.geometric, arrows}
\newcounter{Day}
\newcounter{pt}[Day] % CORRECTNESS POINTS FOR HW RUBRICS
\newcommand{\pt}[2] % NUMBER OF POINTS, ITEM IN STARBURST
{#2\begin{tikzpicture}[remember picture, overlay]
\node (A) [starburst,
draw = red, opacity = .8,
fill = red!20, fill opacity = .2,
xshift = -.5*\widthof{#2},
yshift = .5*\heightof{#2}
]
{\phantom{#2}};
\node (B) at (current page.west) {};
\path let \p1 = (A), \p2 = (B) in node [draw = red,
color = red] at (\x2+.625in,\y1) {#1 pt(s)};
\end{tikzpicture}
\addtocounter{pt}{#1}
}
\begin{document}
\pt{1}{lorem}
\end{document}
Recently, I updated several packages with MikTeX 2.9. Below is a screenshot of the packages that were updated.
Since the updates, the \widthof and \heightof commands are causing errors. If I change the xshift and yshift to something else, everything compiles just fine (but isn't the way I want my command to work). I have two questions:
- Why did this work before and not now?
- How can I change my code to make it work correctly again?
Thanks in advance for any help!



pgfthat removed support for\widthof, etc.: I'll see if I can track it down – Joseph Wright Feb 14 '17 at 20:22