Still struggling with the \expandafter
and \noexpand
tex macros.
I'm trying to put a table together using pgfplotstable
.
In this case the code is something like
\documentclass{article}
\usepackage{pgfplotstable}
\def\outline{\noexpand\fbox{{##1}}}
\begin{document}
\pgfplotstableread[row sep=\\,col sep=&,header=false]{%
1 & 2 & 3 & 4\\%
5 & 6 & 7 & 8\\%
9 & 10 & 11 & 12\\%
}\mytable
\pgfplotstabletypeset[
debug,
column name={},
every row 2 column 1/.style={postproc cell content/.style={@cell content=\outline}}
]\mytable
\end{document}
and gives the error you can't use macro parameter character in horizontal restricted mode
. I f I escape the ##1
it replaces cell contents with ##1
.
What I'm trying to do is eventually have a line that says something like:
every row 2 column 1/.style=\outline
and a macro along the lines of
\def\outline{%
\{postproc cell content.style=%
\{@cell content=\noexpand\fbox{##1}\}\}}
What am I doing wrong?