Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.