pgfplotstable: Have every other row be a multicolumn The 2019 Stack Overflow Developer Survey Results Are In Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Do we need more moderators?Pgfplotstable without headings rowDouble row heading in pgfplotstableExcluding every nth row in pgfplotstableRemove row in table (pgfplotstable)How to plot every 4th row using pgfplotstable?PGFPLOTSTABLE configuration, bold style for headers, specific row, and specific formatting from CSVWhat options are there to globally format tables also allowing local overrides?Multicolumn in pgfplotstable headermulticolumn doesn't count columns property in pgfplotstablepgfplotstable, multicolumn sp
Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?
Can each chord in a progression create its own key?
Is every episode of "Where are my Pants?" identical?
How to support a colleague who finds meetings extremely tiring?
Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?
How to determine omitted units in a publication
Identify 80s or 90s comics with ripped creatures (not dwarves)
Store Dynamic-accessible hidden metadata in a cell
Can the DM override racial traits?
Is this wall load bearing? Blueprints and photos attached
What other Star Trek series did the main TNG cast show up in?
Sub-subscripts in strings cause different spacings than subscripts
What information about me do stores get via my credit card?
Button changing its text & action. Good or terrible?
Define a list range inside a list
How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time
Intergalactic human space ship encounters another ship, character gets shunted off beyond known universe, reality starts collapsing
Do working physicists consider Newtonian mechanics to be "falsified"?
"is" operation returns false even though two objects have same id
Make it rain characters
How to read αἱμύλιος or when to aspirate
Drawing vertical/oblique lines in Metrical tree (tikz-qtree, tipa)
Why doesn't a hydraulic lever violate conservation of energy?
Accepted by European university, rejected by all American ones I applied to? Possible reasons?
pgfplotstable: Have every other row be a multicolumn
The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Do we need more moderators?Pgfplotstable without headings rowDouble row heading in pgfplotstableExcluding every nth row in pgfplotstableRemove row in table (pgfplotstable)How to plot every 4th row using pgfplotstable?PGFPLOTSTABLE configuration, bold style for headers, specific row, and specific formatting from CSVWhat options are there to globally format tables also allowing local overrides?Multicolumn in pgfplotstable headermulticolumn doesn't count columns property in pgfplotstablepgfplotstable, multicolumn sp
I am trying to make a table using pgfplotstable
, and am having difficulties because the csv
's are jagged. Most rows have 4 columns, as do the headers, but some rows are only 1 column and I would like these 1-cell rows to span the width of the table.
How do I either have pgfplotstable
dynamically create multicolumns depending on the csv, or set every other row to be a multicolumn using data from the csv?
mwe (does not produce the proper layout):
documentclassarticle
usepackagepgfplotstable,multirow,booktabs
beginfilecontentsdata.csv
ColumnHeader1, ColumnHeader2, ColumnHeader3, ColumnHeader4
item1, string1, string2, string3
some-text-goes-here
item2, string1, string2, string3
some-more-text-goes-here
endfilecontents
begindocument
pgfplotstabletypeset[
col sep = comma,
column type = l,
string type,
multicolumn names,
every head row/.style=before row=toprule, after row=midrule,
every last row/.style=after row=bottomrule,
%every other row/.style = multicolumn4l...
]data.csv
enddocument
pgfplotstable multicolumn
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am trying to make a table using pgfplotstable
, and am having difficulties because the csv
's are jagged. Most rows have 4 columns, as do the headers, but some rows are only 1 column and I would like these 1-cell rows to span the width of the table.
How do I either have pgfplotstable
dynamically create multicolumns depending on the csv, or set every other row to be a multicolumn using data from the csv?
mwe (does not produce the proper layout):
documentclassarticle
usepackagepgfplotstable,multirow,booktabs
beginfilecontentsdata.csv
ColumnHeader1, ColumnHeader2, ColumnHeader3, ColumnHeader4
item1, string1, string2, string3
some-text-goes-here
item2, string1, string2, string3
some-more-text-goes-here
endfilecontents
begindocument
pgfplotstabletypeset[
col sep = comma,
column type = l,
string type,
multicolumn names,
every head row/.style=before row=toprule, after row=midrule,
every last row/.style=after row=bottomrule,
%every other row/.style = multicolumn4l...
]data.csv
enddocument
pgfplotstable multicolumn
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
Welcome to TeX.SX! Please add a minimal working example (MWE), not not just a fragment. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass and ending with enddocument
– albert
Aug 27 '18 at 17:51
add a comment |
I am trying to make a table using pgfplotstable
, and am having difficulties because the csv
's are jagged. Most rows have 4 columns, as do the headers, but some rows are only 1 column and I would like these 1-cell rows to span the width of the table.
How do I either have pgfplotstable
dynamically create multicolumns depending on the csv, or set every other row to be a multicolumn using data from the csv?
mwe (does not produce the proper layout):
documentclassarticle
usepackagepgfplotstable,multirow,booktabs
beginfilecontentsdata.csv
ColumnHeader1, ColumnHeader2, ColumnHeader3, ColumnHeader4
item1, string1, string2, string3
some-text-goes-here
item2, string1, string2, string3
some-more-text-goes-here
endfilecontents
begindocument
pgfplotstabletypeset[
col sep = comma,
column type = l,
string type,
multicolumn names,
every head row/.style=before row=toprule, after row=midrule,
every last row/.style=after row=bottomrule,
%every other row/.style = multicolumn4l...
]data.csv
enddocument
pgfplotstable multicolumn
I am trying to make a table using pgfplotstable
, and am having difficulties because the csv
's are jagged. Most rows have 4 columns, as do the headers, but some rows are only 1 column and I would like these 1-cell rows to span the width of the table.
How do I either have pgfplotstable
dynamically create multicolumns depending on the csv, or set every other row to be a multicolumn using data from the csv?
mwe (does not produce the proper layout):
documentclassarticle
usepackagepgfplotstable,multirow,booktabs
beginfilecontentsdata.csv
ColumnHeader1, ColumnHeader2, ColumnHeader3, ColumnHeader4
item1, string1, string2, string3
some-text-goes-here
item2, string1, string2, string3
some-more-text-goes-here
endfilecontents
begindocument
pgfplotstabletypeset[
col sep = comma,
column type = l,
string type,
multicolumn names,
every head row/.style=before row=toprule, after row=midrule,
every last row/.style=after row=bottomrule,
%every other row/.style = multicolumn4l...
]data.csv
enddocument
pgfplotstable multicolumn
pgfplotstable multicolumn
edited Aug 27 '18 at 20:04
KeBr
asked Aug 27 '18 at 17:33
KeBrKeBr
12
12
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
Welcome to TeX.SX! Please add a minimal working example (MWE), not not just a fragment. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass and ending with enddocument
– albert
Aug 27 '18 at 17:51
add a comment |
1
Welcome to TeX.SX! Please add a minimal working example (MWE), not not just a fragment. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass and ending with enddocument
– albert
Aug 27 '18 at 17:51
1
1
Welcome to TeX.SX! Please add a minimal working example (MWE), not not just a fragment. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass and ending with enddocument
– albert
Aug 27 '18 at 17:51
Welcome to TeX.SX! Please add a minimal working example (MWE), not not just a fragment. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass and ending with enddocument
– albert
Aug 27 '18 at 17:51
add a comment |
1 Answer
1
active
oldest
votes
If you want to have multicolumns by default, with the exception of the head row and possibly other exceptions, you can hack "typeset cell" from the columns.
The default is:
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
And you make it out of it:
pgfplotstableset
typeset cell/.code=%%
ifnumpgfplotstablerow=-1% Head Row (Exception)
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else
ifnumpgfplotstablerow=2% Another Exception Row ...
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else%
ifnumpgfplotstablecol=pgfplotstablecols% Standard
pgfkeyssetvalue/pgfplots/table/@cell content\%
else%
ifnumpgfplotstablecol=1%
pgfkeyssetvalue/pgfplots/table/@cell contentmulticolumn4c#1%
else%
pgfkeyssetvalue/pgfplots/table/@cell content%
fifififi%
,%%
MWE:
documentclass[margin=5pt,]standalone
%documentclassarticle
usepackagepgfplotstable,booktabs, filecontents
pgfplotssetcompat=1.12
beginfilecontents*jobname-data.csv
A,B,C,D
Some Text goes here in a multicolum., , ,
string1 (bad), string2, string3, string4
string1 (good), string2, string3, string4
Some more Text goes here in a multicolum., , ,
Some Text goes here in a multicolum., , ,
endfilecontents*
pgfplotstableset
typeset cell/.code=%%
ifnumpgfplotstablerow=-1% Head Row (Exception)
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else
ifnumpgfplotstablerow=2% Another Exception Row ...
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else%
ifnumpgfplotstablecol=pgfplotstablecols% Standard
pgfkeyssetvalue/pgfplots/table/@cell content\%
else%
ifnumpgfplotstablecol=1%
pgfkeyssetvalue/pgfplots/table/@cell contentmulticolumn4c#1%
else%
pgfkeyssetvalue/pgfplots/table/@cell content%
fifififi%
,%%
begindocument
pgfplotstabletypeset[col sep = comma,
string type,
column type = l,
multicolumn names,
every head row/.style=before row=toprule, after row=midrule,
every last row/.style=after row=bottomrule,
]jobname-data.csv
enddocument
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f448037%2fpgfplotstable-have-every-other-row-be-a-multicolumn%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you want to have multicolumns by default, with the exception of the head row and possibly other exceptions, you can hack "typeset cell" from the columns.
The default is:
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
And you make it out of it:
pgfplotstableset
typeset cell/.code=%%
ifnumpgfplotstablerow=-1% Head Row (Exception)
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else
ifnumpgfplotstablerow=2% Another Exception Row ...
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else%
ifnumpgfplotstablecol=pgfplotstablecols% Standard
pgfkeyssetvalue/pgfplots/table/@cell content\%
else%
ifnumpgfplotstablecol=1%
pgfkeyssetvalue/pgfplots/table/@cell contentmulticolumn4c#1%
else%
pgfkeyssetvalue/pgfplots/table/@cell content%
fifififi%
,%%
MWE:
documentclass[margin=5pt,]standalone
%documentclassarticle
usepackagepgfplotstable,booktabs, filecontents
pgfplotssetcompat=1.12
beginfilecontents*jobname-data.csv
A,B,C,D
Some Text goes here in a multicolum., , ,
string1 (bad), string2, string3, string4
string1 (good), string2, string3, string4
Some more Text goes here in a multicolum., , ,
Some Text goes here in a multicolum., , ,
endfilecontents*
pgfplotstableset
typeset cell/.code=%%
ifnumpgfplotstablerow=-1% Head Row (Exception)
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else
ifnumpgfplotstablerow=2% Another Exception Row ...
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else%
ifnumpgfplotstablecol=pgfplotstablecols% Standard
pgfkeyssetvalue/pgfplots/table/@cell content\%
else%
ifnumpgfplotstablecol=1%
pgfkeyssetvalue/pgfplots/table/@cell contentmulticolumn4c#1%
else%
pgfkeyssetvalue/pgfplots/table/@cell content%
fifififi%
,%%
begindocument
pgfplotstabletypeset[col sep = comma,
string type,
column type = l,
multicolumn names,
every head row/.style=before row=toprule, after row=midrule,
every last row/.style=after row=bottomrule,
]jobname-data.csv
enddocument
add a comment |
If you want to have multicolumns by default, with the exception of the head row and possibly other exceptions, you can hack "typeset cell" from the columns.
The default is:
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
And you make it out of it:
pgfplotstableset
typeset cell/.code=%%
ifnumpgfplotstablerow=-1% Head Row (Exception)
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else
ifnumpgfplotstablerow=2% Another Exception Row ...
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else%
ifnumpgfplotstablecol=pgfplotstablecols% Standard
pgfkeyssetvalue/pgfplots/table/@cell content\%
else%
ifnumpgfplotstablecol=1%
pgfkeyssetvalue/pgfplots/table/@cell contentmulticolumn4c#1%
else%
pgfkeyssetvalue/pgfplots/table/@cell content%
fifififi%
,%%
MWE:
documentclass[margin=5pt,]standalone
%documentclassarticle
usepackagepgfplotstable,booktabs, filecontents
pgfplotssetcompat=1.12
beginfilecontents*jobname-data.csv
A,B,C,D
Some Text goes here in a multicolum., , ,
string1 (bad), string2, string3, string4
string1 (good), string2, string3, string4
Some more Text goes here in a multicolum., , ,
Some Text goes here in a multicolum., , ,
endfilecontents*
pgfplotstableset
typeset cell/.code=%%
ifnumpgfplotstablerow=-1% Head Row (Exception)
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else
ifnumpgfplotstablerow=2% Another Exception Row ...
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else%
ifnumpgfplotstablecol=pgfplotstablecols% Standard
pgfkeyssetvalue/pgfplots/table/@cell content\%
else%
ifnumpgfplotstablecol=1%
pgfkeyssetvalue/pgfplots/table/@cell contentmulticolumn4c#1%
else%
pgfkeyssetvalue/pgfplots/table/@cell content%
fifififi%
,%%
begindocument
pgfplotstabletypeset[col sep = comma,
string type,
column type = l,
multicolumn names,
every head row/.style=before row=toprule, after row=midrule,
every last row/.style=after row=bottomrule,
]jobname-data.csv
enddocument
add a comment |
If you want to have multicolumns by default, with the exception of the head row and possibly other exceptions, you can hack "typeset cell" from the columns.
The default is:
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
And you make it out of it:
pgfplotstableset
typeset cell/.code=%%
ifnumpgfplotstablerow=-1% Head Row (Exception)
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else
ifnumpgfplotstablerow=2% Another Exception Row ...
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else%
ifnumpgfplotstablecol=pgfplotstablecols% Standard
pgfkeyssetvalue/pgfplots/table/@cell content\%
else%
ifnumpgfplotstablecol=1%
pgfkeyssetvalue/pgfplots/table/@cell contentmulticolumn4c#1%
else%
pgfkeyssetvalue/pgfplots/table/@cell content%
fifififi%
,%%
MWE:
documentclass[margin=5pt,]standalone
%documentclassarticle
usepackagepgfplotstable,booktabs, filecontents
pgfplotssetcompat=1.12
beginfilecontents*jobname-data.csv
A,B,C,D
Some Text goes here in a multicolum., , ,
string1 (bad), string2, string3, string4
string1 (good), string2, string3, string4
Some more Text goes here in a multicolum., , ,
Some Text goes here in a multicolum., , ,
endfilecontents*
pgfplotstableset
typeset cell/.code=%%
ifnumpgfplotstablerow=-1% Head Row (Exception)
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else
ifnumpgfplotstablerow=2% Another Exception Row ...
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else%
ifnumpgfplotstablecol=pgfplotstablecols% Standard
pgfkeyssetvalue/pgfplots/table/@cell content\%
else%
ifnumpgfplotstablecol=1%
pgfkeyssetvalue/pgfplots/table/@cell contentmulticolumn4c#1%
else%
pgfkeyssetvalue/pgfplots/table/@cell content%
fifififi%
,%%
begindocument
pgfplotstabletypeset[col sep = comma,
string type,
column type = l,
multicolumn names,
every head row/.style=before row=toprule, after row=midrule,
every last row/.style=after row=bottomrule,
]jobname-data.csv
enddocument
If you want to have multicolumns by default, with the exception of the head row and possibly other exceptions, you can hack "typeset cell" from the columns.
The default is:
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
And you make it out of it:
pgfplotstableset
typeset cell/.code=%%
ifnumpgfplotstablerow=-1% Head Row (Exception)
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else
ifnumpgfplotstablerow=2% Another Exception Row ...
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else%
ifnumpgfplotstablecol=pgfplotstablecols% Standard
pgfkeyssetvalue/pgfplots/table/@cell content\%
else%
ifnumpgfplotstablecol=1%
pgfkeyssetvalue/pgfplots/table/@cell contentmulticolumn4c#1%
else%
pgfkeyssetvalue/pgfplots/table/@cell content%
fifififi%
,%%
MWE:
documentclass[margin=5pt,]standalone
%documentclassarticle
usepackagepgfplotstable,booktabs, filecontents
pgfplotssetcompat=1.12
beginfilecontents*jobname-data.csv
A,B,C,D
Some Text goes here in a multicolum., , ,
string1 (bad), string2, string3, string4
string1 (good), string2, string3, string4
Some more Text goes here in a multicolum., , ,
Some Text goes here in a multicolum., , ,
endfilecontents*
pgfplotstableset
typeset cell/.code=%%
ifnumpgfplotstablerow=-1% Head Row (Exception)
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else
ifnumpgfplotstablerow=2% Another Exception Row ...
ifnumpgfplotstablecol=pgfplotstablecols%
pgfkeyssetvalue/pgfplots/table/@cell content#1\%
else%
pgfkeyssetvalue/pgfplots/table/@cell content#1 &%
fi%
else%
ifnumpgfplotstablecol=pgfplotstablecols% Standard
pgfkeyssetvalue/pgfplots/table/@cell content\%
else%
ifnumpgfplotstablecol=1%
pgfkeyssetvalue/pgfplots/table/@cell contentmulticolumn4c#1%
else%
pgfkeyssetvalue/pgfplots/table/@cell content%
fifififi%
,%%
begindocument
pgfplotstabletypeset[col sep = comma,
string type,
column type = l,
multicolumn names,
every head row/.style=before row=toprule, after row=midrule,
every last row/.style=after row=bottomrule,
]jobname-data.csv
enddocument
answered Nov 13 '18 at 20:56
ciscis
747516
747516
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f448037%2fpgfplotstable-have-every-other-row-be-a-multicolumn%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Welcome to TeX.SX! Please add a minimal working example (MWE), not not just a fragment. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass and ending with enddocument
– albert
Aug 27 '18 at 17:51