3

I have a generated CSV file which has line breaks (newline characters) in values. They are properly quoted. When reading this data with DTLloadrawdb LaTeX complains as those line breaks still breaks the reading. The problem is that I do not know how could I fix this with \DTLrawmap (to change newlines into \DTLpar). Or is there some other way to fix it? I would like to not have to preprocess CSV files outside of LaTeX.

0

1 Answer 1

5

The datatool documentation seems pretty clear that "each row of a data in an external file must not have a line break" (p.36). The pgfplotstable package can handle linebreaks in CSV files, but only if all cells are enclosed in braces.

1
  • It may be possible to solve Mitar's problem by changing the value of \endlinechar, and making the corresponding character active, \let (or \def ed) to \DTLpar. I don't know the datatool package, though. May 23, 2011 at 2:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .