Questions tagged [csvsimple]

{csvsimple} provides a simple LaTeX interface for the processing of files with comma separated values (CSV).

Filter by
Sorted by
Tagged with
2
votes
0answers
392 views

create table from csv, set proper parameters, include it in contents [closed]

I have following csv file that I want to read and display as table: "";"a01";"a02";"a03";"a04";"a05";"b01";"b02";"b03";"b04";"b05";"t01" "a01";0;147632;181326;199650;271006;197441;215211;291227;...
2
votes
2answers
159 views

Possible conflict between dcolumn and csvsimple

Ok, so I'm trying to add a table to a document using a .csv file. After tinkering with it I've got this for the table: \usepackage{makeidx} % allows for indexgeneration \usepackage[utf8]{inputenc} \...
2
votes
0answers
819 views

csvautotabular with macro code headers [closed]

The manual states that macro code is allowed and will be processed accordingly using csvautotabular (section 4.3, page 31). The header allows some math mode macros such as underlines (X_{1}) and ...
1
vote
3answers
6k views

How to import CSV files into my own style of tables?

I've been using LaTeX to write lab reports for a year now, which includes manually entering data into tables. However, now I am performing experiments that have way more datapoints that manually ...
1
vote
2answers
145 views

I have a rogue '%' symbol beside a table. How do I remove it?

I am using the csvsimple package to read a csv, and am doing some minimal formatting in Latex. The csv consists of strings formatted as percentages. I have created hacks to get around most of the ...
1
vote
3answers
2k views

csvreader and respect all (special characters in the csv file)

I'm trying to use csvsimple to read in a file with elements that contain special characters (underscores in this example) and create a table that only has a some of the columns. I can read in the file ...
1
vote
2answers
1k views

how to import CSV table with header containing spaces

The header column names in my CSV contain spaces. Is there a way to still import it using csvsimple or maybe some other package? That way I would be able to specify data in CSV, import it and render ...
1
vote
1answer
3k views

Resizing a csvsimple table

I'm writting a two column document, which is essentially the extended abstract of another document I have. I've been trying to include some of the tables I have in the extended abstract, but simply ...
1
vote
2answers
1k views

csvsimple filtering problem

The following code works as I would expect. \documentclass{scrartcl} \usepackage{csvsimple,filecontents} \begin{document} \begin{filecontents*}{chunk.csv} AAAA,aaaaa BBBB,bbbbb CCCC,ccccc DDDD,...
1
vote
2answers
320 views

Importing CSV as Long Table Not Working

I tried implementing the solution found here with multiple columns, but it is not working for me. It is just replicating the third column three times. What am I doing wrong? I know I wouldn't need a ...
1
vote
3answers
252 views

How to count rows of a csv?

I am using \csvreader to read a csv and I am trying to do some basic manipulation like counting the number of values and print that value in the document. For instance, how do I calculate the number ...
1
vote
1answer
892 views

Loading data to fill a table from a csv file with multicolumn header

I'm trying to create a table that looks like this . Currently I'm doing this ... \begin{table}[ht!] \centering \begin{tabular}{|l|l|l|l|l|l|l|l|l|l|} \hline \multicolumn{1}{|...
1
vote
1answer
130 views

csvsimple's csvreader error inside \ExplSyntaxOn \ExplSyntaxOff

When I put a minimal \csvreader from csvsimple inside a \ExplSyntaxOn, \ExplSyntaxOff, I get a pgfkeys error: ! Package pgfkeys Error: I do not know the key '/csv/columnnames', to which you ...
1
vote
1answer
4k views

Table csvreader with eleven columns

The \csvreader to build a table without a header with eleven columns does not seem to work. \documentclass{standalone} \usepackage{array} \usepackage{longtable} \usepackage{csvsimple} \begin{...
1
vote
1answer
965 views

Does the package csvsimple support auto pagination?

I have a csv file that will probably take two pages, and doing \csvautotabular{Foo.csv} just makes my table run off the page. I checked the documentation but did not see anything about pagination of ...
1
vote
2answers
932 views

\csvreader doesn't show the table

Mainly I want to do something similar this- \documentclass{article} \usepackage{csvsimple} \begin{document} This is the summary \csvreader[autotabular]{coefficient.csv} \end{document} but this is ...
1
vote
1answer
441 views

Filter ifnumgreater not working with csvsimple

LaTeX gives me an error every time I add the line containing the filter. It works fine without the filter. What have I done wrong? Here is my LaTeX entry: \documentclass{article} \usepackage{float} \...
1
vote
1answer
302 views

Missing \endgroup in csv longtable

I am trying to read in a very long csv file to a longtable, but I am getting a missing \endgroup inserted error when compiling. I cannot figure out what is missing. \documentclass{standalone} \...
1
vote
1answer
17 views

csvsimple pdflatex hangs without error

The following minimal example, using csvsimple hangs without any error. \documentclass[a4paper,11pt]{article} \usepackage{csvsimple} \begin{document} \begin{tabular}{ll} a & b\\ \hline \...
1
vote
1answer
45 views

Compilation error when string testing using csvsimple

Consider this minimal working example: \documentclass{beamer} \usepackage{csvsimple,filecontents} \begin{document} \begin{filecontents*}{data.csv} id,type 1,a 2,b \...
1
vote
1answer
63 views

Don't do anything if CSV column is empty — How do I achieve this?

MWE (actually not totally MWE, but I think it's easier to see what happens this way): \documentclass{article} \usepackage{csvsimple} \usepackage{graphicx} \begin{document} \setlength\unitlength{1cm}...
1
vote
1answer
136 views

Csvsimple with colored rows gives black cell in the next table

What is wrong with: \documentclass[12pt]{article} \usepackage{fontspec} \usepackage[american]{babel} \usepackage{libertine} \usepackage{xcolor} \usepackage{colortbl} \usepackage{csvsimple} \...
1
vote
1answer
646 views

csvreader longtable caption repeated on every page

I am using csvreader with longtable and I added a caption in table head below is my code: \csvreader[ longtable=ccc, table head=\caption{Caption goes here. }\label{tab:sometab} \\ \toprule\...
1
vote
2answers
431 views

Cannot import csv file data to table in latex using csvsimple

I don't know why the data rows not shows up. Only the header, here is my csv file: method,name,error,occurences socket,socket,"ConnectionResetError(54, 'Connection reset by peer')",12 socket,socket,"...
1
vote
1answer
208 views

csvsimple with minted environment issues

I am trying to parse a csv file with csvsimple in order to output values inside a minted environment. Issue While trying to output the value from the csv row inside mintinline it seems to break the ...
1
vote
1answer
832 views

One of the fields in the csv read by csvreader has a lot of comma

I am using \csvreader to print out a table. However, one of the fields contains a lot of comma \begin{filecontents*}{sairis7.csv} weights, accuracy, duration [0.3837762, 0.3441996, 0.6423321, 0....
1
vote
1answer
1k views

“Undefined control sequence” while creating a tabular from a csv file

This issue is to say the least, very weird. I have a 12 columns csv file about several macroeconomics indicators: n,pibreal,pibnom,deflactor,c,isr,trc,tdeflactado,trcdeflactado,I,x,m 2000,...
1
vote
1answer
344 views

Underfull \hbox warning about alignement in a csvsimple table

The following csvsimple table keeps returning warnings of the type: Underfull \hbox (badness 10000) in paragraph at lines: \csvreader[no head, longtable=|p{\dimexpr 0.2\linewidth-2\tabcolsep}|p{\...
1
vote
1answer
964 views

Simple import of data with special characters for table

I'm currently trying to import a set of data from a file (comma or tabbed delimited, doesn't matter) for creating a table. Below is an example of this data (DH parameters in case you're curious): ...
1
vote
1answer
256 views

package incompatibility: csvsimple & etextools

The following code fails to compile: \documentclass{beamer} \usepackage{csvsimple} \usepackage{etextools} \begin{document} Hello! \end{document} The error message is ! LaTeX Error: Command \...
1
vote
1answer
19 views

Boldface CSV headings

(question updated from 1 to 3 columns) I am trying to do something supremely simple: typeset a table such as what.csv First,Last,Style Bob,Marley,Reggae Fritz,Wunderlich,Lieder with boldface ...
1
vote
1answer
32 views

csvsimple no page output

Following tex source using csvsimple does not produce any output: \documentclass[a4paper,11pt]{article} \usepackage{csvsimple} \begin{document} \csvreader[head to column names,separator=semicolon]{...
1
vote
1answer
175 views

trouble with a simple csvsimple and csvautotabular table

I have a csv file, keywords_table.csv. I made it in Excel. Here it is: Keyword Category,Number of keywords used in searches,Examples Names of drugs,111,"tamoxifen, aspirin, tamiflu" Names of ...
1
vote
2answers
135 views

Reading CSV file with quotes

I'm trying to read a CSV file into latex and produce a new page for every row in the file. Unfortunately, the file quotes every field, uses semicolons as delimiters, and contains underscores in the ...
1
vote
1answer
547 views

csvsimple table going off of page

I have the following CSV dow_distribution.csv file: dow,ANZ Volume,BHP Volume,CBA Volume,MQG Volume,NAB Volume,QAN Volume,RHC Volume,TLS Volume,WBC Volume,WOW Volume,AORD Volume,Total Volume Monday,3....
1
vote
1answer
45 views

Csvsimple: Customize the method of output

\documentclass[12pt]{article} \usepackage{csvsimple,filecontents} \usepackage{fontspec} \usepackage[american]{babel} \usepackage{libertine} \begin{filecontents*}{test.csv} H1, H2 X1, Y1 X2, Y2 X3, ...
1
vote
1answer
178 views

How to use a semicolon separator with csvsimple together with babel (french language)?

1) Semicolon ; separator and babel Using the package csvsimple, I found that I can use a semicolon ; separator only if the babel package is not loaded: \documentclass[varwidth,margin=0.5cm]{...
1
vote
1answer
294 views

csvsimple longtable header issue

I am trying to create a longtable from a CSV file with the help of the package csvsimple. I managed to get almost everything in order except for one extra line below the first header (it does not ...
1
vote
1answer
132 views

how to print a column with a delimiter in csvsimple

I'm using csvsimple for my tables. One of the columns contains data such as "(73,1)". Since it's quoted, it is proper csv. How can I configure csvsimple to treat this data as part of one column and ...
1
vote
1answer
455 views

csvsimple filter for floating point precision

I am using the csvsimple package to create a table from a csv file. I am using the following options: \csvreader[tabular=lllll, table head=\toprule Instance & Best & Worst & ...
1
vote
1answer
480 views

Add vertical line to csv simple table

I cannot figure out how to modify the Code given in this post in order to create an horizontal line over the last entry of the last column. That means I want the table to look like this (please excuse ...
1
vote
2answers
1k views

Simple table with csvsimple, with no headers

I am not managing to make a simple table in csvsimple. My data is like this: value 1, 5.5 value 2, 3806.0 value 3, 601.0 value 4, 26.8 value 5, 150.0 value 6, 2.0 value 8, 75.0 value 9, 21 I have ...
1
vote
1answer
465 views

Make a csvsimple longtable appear on the list of tables

My question is somewhat related to my previous one (See Underfull \hbox warning about alignement in a csvsimple table I need to add a caption to a csvsimple-generated longtable, but if I enclose my ...
1
vote
1answer
320 views

CSV table header alignment

I have a simple two-lines csv file, which I've imported to latex with csvsimple like this: \begin{filecontents*}{data.csv} 1,2,3,4,5 101,102,104,105,106 -1,-2,-3,-4,-5 \end{filecontents*} ......
1
vote
1answer
759 views

csv long table in landscape

I want to import a csv table, but the table has too many columns i.e. too wide. So I put it in landscape environment and use the \csvautolongtable. The specific code is the following: \usepackage{...
1
vote
2answers
93 views

How can I input only certain columns using macros outside csvsimple?

I want to define a command, like \newcommand \Fruittype {Strawberries} and only input the data from the column that contains it. Can someone help me? \documentclass[a4paper,12pt,hidelinks]{article} \...
1
vote
1answer
490 views

Package csvsimple: How do I reject the last line of a csv file

Ultimately I want to read a csv (comma separated variable) file into LaTeX and display a table. I'm doing this within the beamer document class. I'm currently using the \csvautobooktabular command ...
1
vote
0answers
21 views

Is csvsimple compatible with multicolumn in rows other than the header?

I want to shorten a tabular by making text in the first column consume more than one cell in the last (rather than first) rows of the tabular. I know csvsimple accepts macros however lines can't be ...
1
vote
1answer
48 views

Alternative to adjustbox for table full page width

I have a few multi column csv tables I am importing with \csvreader. Some are smaller than page width (Table 1), others are larger (Table 2). I would like to make them all exactly the full page width (...
1
vote
0answers
58 views

Cannot input utf8 encoding with csvreader

I am trying to generate a table with \csvreader. The problem is latex is ignoring when I have some german chars such as; ü,ä,ö How can I fix this? Here is the code: \documentclass{article} \...