TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer
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. – Bruno Le Floch May 23 '11 at 2:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.