Reputation
1,935
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
11 34
Impact
~350k people reached

Apr
7
revised How can I create a new table environment wrapper for pgfplotstable?
added working code
Apr
7
asked How can I create a new table environment wrapper for pgfplotstable?
Apr
7
comment How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
Awesome. So it is possible. Is it also possible to post-process cell content starting after row 0? My intention: I'd like to format row 0 (the new header row) bold and orange. Everything else should be black and not formatted by the pgf settings. You mentioned "reseting" row 0…
Apr
6
awarded  Enthusiast
Apr
4
comment How can I wrap the text in certain columns using pgfplotstable?
@percusse I see why you might think so. I wrote my question this way because it is was intention to wrap text in cells—ultimately the goal of the question (I could have asked "How can I set the width of arbitrary columns in pgfplotstable?") Your example does not actually show any text being wrapped, although it does function that way. I will leave the question as is unless you can provide a reasonably strong argument to the contrary.
Apr
4
accepted How can I wrap the text in certain columns using pgfplotstable?
Apr
3
revised How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
deleted unneeded things and tried to explain issue better
Apr
3
revised How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
added 12 characters in body
Apr
3
asked How can I wrap the text in certain columns using pgfplotstable?
Apr
3
revised How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
add specifics of problem
Apr
2
revised How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
fixed question
Apr
2
comment How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
+1 Thanks. I see the trouble. The deal is that we have certain macros like product release names or whatever that are set by a server process (and sometimes those names include formatting commands for colors or italics etc. e.g. product name.\texttt{product line}). These variables might appear in a table header. In that case I could maybe find a way to define the column names in the parameters and substitute them for text names like you said.
Apr
2
revised How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
added explicit error example
Apr
2
comment How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
Ah! I see the source of confusion. No, that is not what I meant. You interpreted my line % <-- I want to replace a cell with \test{}as wanting to create a function that replaces that cell's contents in a preprocess, correct?. I meant simple typing for example \\test{} or \texttt instead of good—directly in the tabular code. I will update my question immediately.
Apr
2
comment How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
Ok. After updating it worked, however, your answer still fails to meet my requirement of writing \texttt{}or some other macro in a cell. I mean, I know you got one cell to appear as if a macro were there, but that solution is unscalable (therefore defeating the purpose of pgfplotstable). I am dealing with hundreds of tables and I am trying to bring some order into their formatting.
Apr
2
revised How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
updated problem (just forgot to mention \newcommand)
Apr
2
comment How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
Thanks for the great explanation! Such a refreshing answer…until the end haha. Despite your report, I am going to keep my hope alive for a solution. pgfplotstable has too much potential for my purposes :)
Apr
2
comment How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
I tried typesetting your code and I ended up with: Package pgfkeys Error: Choice '1.12' unknown in choice key '/pgfplots/compat/anchors' I am going to ignore this key.
Apr
2
comment How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
"So in the end what you end up with is an auto-generated tabular code." <-- The gravity of that statement is incredible. That is exactly why pgfplotstable is so great! I'm dealing with a multiple of documents (edited by many people at any time via subversion) that require the same look. Maybe my expectation are too high, but you can probably see why I am so excited! Thanks for your insights too.
Apr
1
revised How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?
edited title