\documentclass[journal,letterpaper]{IEEEtran} \usepackage{fp} \begin{document} \newcommand\bitfieldwidth{32} \newcommand\bitfielddivision{8} \makeatletter \FPeval{\bitcolumnwidth}{(\strip@pt\textwidth) / \bitfieldwidth} \makeatother \begin{tabular}{|c|c|} \hline variable & value \\ \hline textwidth &\the\textwidth \\ \hline columnwidth &\the\columnwidth \\ \hline bitcolumnwidth &$\bitcolumnwidth$ \\ \hline \end{tabular} \end{document}The rendered table is:
Friday, June 17, 2016
\strip@pt undefined in LaTeX, and the fix.
I could not get the statement \strip@pt in LaTeX to parse. It would always just give an undefined value. The solution is to change context, which is such as hack, but that's how you do it.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment