Hi Ute,

the solution is to modify 'typeset cell' : it should check if we are 
before the first row and clear the cell content in that case:

\pgfplotstabletypeset[
   typeset cell/.append code={%
         \ifnum\pgfplotstablerow<0
             \pgfkeyssetvalue{/pgfplots/table/@cell content}{}%
         \fi
   },
   outfile={table},
   header=false,
   columns/0/.style={string type,column type=r},
   columns/1/.style={string type,column type=l},
   columns/2/.style={string type,column type=l}
   ]
{
   185          g                 weiche~Butter
   150          g                 Zucker
   2              ~                 Eier
   1           P"ack.             Vanillezucker
   375           g                 Mehl
   3              TL                Backpulver
   ca.~350    ml                Sprudelwasser
}

Here, the /.append code  causes the argument to be appended to the 
original functionality. It overwrites the cell content for the header 
row (which has row index -1).

I will think about how to improve the manual here: it did not mention 
the possibility (sorry).

Best regards

Christian


Am 04.01.2012 22:44, schrieb Ute Perkons:
> Hi,
>
> I am trying to create a table _without_ a header (but at the same time
> I want to specify the column layout, example code see below).
> To be clearer: The example below always produces a header line
> consisting of '0&1&2\\%' in the generated tabular code.
> If I set the column names explicitly with column name={} (to produce
> an "empty string"), I get '&&\\%', resulting in an additional empty
> header row in the generated pdf.
>
> Is there a possibility to get rid of the autogenerated header line?
>
> Thanks in advance,
> Ute
>
>
> \pgfplotstabletypeset[
>    outfile={table},
>    header=false,
>    columns/0/.style={string type,column type=r},
>    columns/1/.style={string type,column type=l},
>    columns/2/.style={string type,column type=l}
>    ]
> {
>    185          g                 weiche~Butter
>    150          g                 Zucker
>    2              ~                 Eier
>    1           P"ack.             Vanillezucker
>    375           g                 Mehl
>    3              TL                Backpulver
>    ca.~350    ml                Sprudelwasser
> }
>
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> _______________________________________________
> Pgfplots-features mailing list
> Pgfplots-features@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgfplots-features


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to