From: Alan G I. <ai...@am...> - 2007-05-24 22:11:13
|
>> which is fine, with the formatting of the csv-table >> .. csv-table:: Test Table >> :header-rows: 1 >> :stub-columns: 1 >> :delim: space >> :file: test.csv >> where test.csv hold the same data: >> aa bb cc dd ee ff gg hh >> 11 22 33 44 55 66 77 88 >> 11 22 33 44 55 66 77 88 >> The latter spills off the page. On Thu, 24 May 2007, (CEST) gr...@us... apparently wrote: > the problem is your example isnt a csv-file, they look more like :: > "lager", "beer", 12.00 > "lager", "wine", 4.3 > "bar", "fish and chips", 3.5 > "bar up at the penthouse ", "caviar on seagras, with lemon juice", 134.0 I'm not sure I understand. I set the delimiter to "space", so I have a fine csv file. Right? Certainly nothing in the docs suggests otherwise. The problem is not my data, but rather the number of columns, and the failure of the column width computation to account for intercolumn space. Right? > so which colwidth should be assumed? My preference would be to have an option to set no column width. I prefer to let LaTeX decide. Of course this won't work well with CSV files that have lengthy text strings as data. In that case you have two choices. Either do a serious computation of the width, or eyeball it. Here is a way to eyeball it: colwidth = (80/numcols)*(1-numcols/100) In my case that would give a columwidth of 9, which would fix things. Cheers, Alan Isaac |