I had a problem putting the column headers in bold (in a table of course) using pgfplotstable. You can see the problem here I found a way to work arround that. It isn't generic as I wanted it to be, but at least I know there is a way to do it.
The only thing I had to do was to add options to the table when creating it, just like this:
\pgfplotstabletypeset
[columns/col1/.style{column name=\textbf{col1}},
columns/col2/.style{column name=\textbf{col2}},
columns/col3/.style{column name=\textbf{col3}},
columns/col4/.style{column name=\textbf{col4}},
columns/col5/.style{column name=\textbf{col5}}
]{
col1 & col2 & col3 & col4 & col5 \\
1st & at me & agam & at us & againn \\
2st & at you & agat & at you & agaibh \\
3st & at him & aige & at them & acu \\
& at her & aici & & \\
}
As you can see it's not the best way to do things, especially when you're new to latex and trying to introduce people to latex, people who've never used latex before. That's the reason why I wanted to create a macro for all those options so that the others should simply add \mymacro(column1name, column2name, ...) to the side of the \pgfplotstabletypeset to make everything easier.
I tried this:
\newcommand\mymacro[3]{ % 3 is just an example, I did \mymacroone .. two .. %etc in order to be able to apply the same concept in different situations
columns/#1/.style{column name=\textbf{#1}},
columns/#2/.style{column name=\textbf{#2}},
columns/#3/.style{column name=\textbf{#3}}
}
But this jut generates an error and (can't use # in horizontal mode) doesn't compile. Does anyone know of a better way to do this, or how I can correct the expression to make iot compilable? I tried using {#}, #, {#}, ##, but haven't been able to do it right.

style={I assume notstyle{– David Carlisle Feb 21 '13 at 23:32