On 2012-06-25, Rich Shepard wrote:
> The datatools package can read a .csv file and produce a LaTeX table
> (which the docs refer to as a database). The LaTeX code is straight-forward,
> but I've not succeeded in implementing it within the LyX environment.
> I set up a float table and entered the caption. Under that I inserted ERT:
> \DTLloaddb{basin_characteristics}{basin_characteristics.csv}
> \DTLdisplaydb{basin_characteristics.csv}
> but this does not insert the data into a tabular environment even if I try
> to print a preview.
> I'd greatly appreciate a clue on how to import my
> 'basin_characteristics.csv' file to a table so I can futz with it and make
> it pretty.
Is there a usage example in the package documentation? Try to copy it (maybe
including a wrapping table) into an ERT box.
Try with a LyX table and compare the generated LaTeX (via View>Source or
export to LaTeX). Maybe it is impossible to re-create the required "bare"
table because table content is always in a table cell.
I assume CSV (or similar data) input via the datatools package might be
done with the "external material" inset instead.
Günter