We’re rewarding the question askers & reputations are being recalculated! Read more.

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
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
810 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....
0
votes
2answers
777 views

Duplicate caption and table header with csvsimple and csvreader

My CSV file has two headers in the first two rows (first row has static keywords, second row is the header to display) and I am displaying it using csvreader. I want to use the second row header as a ...
7
votes
1answer
2k views

Skip rows in csvsimple

Similar to this question, I need to skip some rows both from the top and bottom. For example, in this MWE: \documentclass{article} \usepackage{csvsimple,filecontents} \begin{filecontents*}{...
3
votes
1answer
290 views

Load CSV file + landscape

I hope someone is able to help me. I'm trying to create landscape pages, that are holding my survey items. After several tries with CSV files, I wrote everything by hand, but it's just too inflexible, ...
4
votes
1answer
152 views

Last Column problem with csvsimple and siunitx

I don't understand why it gives me the error Extra }, or forgotten $. <recently read> } in the part ...entoIdraulico & \RendimentoMeccanico } \\ if I change in S the last c of the part \...
3
votes
1answer
904 views

CsvSimple with tabular: set specific number of rows

For a tabular environment with csvsimple I would like to set the number of rows specifically. This example is an attempt to show only the first two rows: \documentclass{article} \usepackage{...
4
votes
2answers
965 views

Error while trying to read csv file to create table

I have a csv like the following: CategoryName,Pageviews Restaurants,37951 Shopping,22002 Things to do,20067 Nightlife,10612 Gifts,9194 Food Shopping,8655 Useful Stuff,8536 Parenting ,8353 Home,7654 ...
4
votes
2answers
736 views

Why “Missing \endcsname inserted.” when importing a csv with csvsimple with babel set to spanish?

After figuring out why my MCVE wasn't working as expected, I think I've found a bug in either babel or csvsimple package. This compiles: \documentclass{article} \usepackage{filecontents} \begin{...
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,...
5
votes
2answers
974 views

bold or higlight first row and column of tabe created from csv file

I'm using csvreader from csvsimple package to read csv data and create table from it. My goal is to bold or somehow highlight first row and first column. Here is my MWE: \documentclass{article} \...
2
votes
0answers
388 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
1answer
172 views

csvloop, spreadsheet difference in \expandafter\newcommand\csname and \csxdef

I don't know why but when I test a simple .tex file my csvloop works fine, but when I test in my case, that is much more complex, it doesn't compiles and I don't have any error message, so it becomes ...
1
vote
1answer
459 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
339 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
305 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*} ......
2
votes
1answer
982 views

csvreader and special characters in the csv header

I have a question quite similar to this question. But I do have the underscore character in the heading which causes issure. One column has the name q_u. When I try: \csvreader[ respect all, ...
4
votes
2answers
8k views

Csvsimple \csvautotabular and \csvautobooktabular with centered columns' content

I'm using csvsimple for making tables, and csvautotabular and csvautobooktabular are working great. However, I'd like the content of each column to be centered instead of aligned to the left. An ...
2
votes
1answer
974 views

Problem using csvsimple with tab-delimited file

The problem I am having a problem reading tab-delimited files using csv-simple. My question is how do I fix it, and why is it occuring in the first place MWE \documentclass[a4paper]{article} \...
1
vote
1answer
736 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{...
0
votes
2answers
2k views

How to make tables with horizontal lines with csvautotabular of csvsimple?

How do you make tables with horizontal lines between rows with the csvautotabular function of the csvsimple package? Example .csv file. header, 104, 1 312, 0.223 518, 0.198 726, 0.139 932, 0.077
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{...
5
votes
2answers
663 views

csvsimple and siunitx

I'm trying to import data from a csv file and using the S column type from siunitx to format the numbers with this code: \documentclass{article} \usepackage{siunitx} \usepackage{csvsimple} \begin{...
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} \...
2
votes
2answers
859 views

using csvsimple, how do I put a line under the header?

I can make a simple table like this: \documentclass{article} \usepackage{csvsimple} \begin{filecontents*}{words.csv} num, word 1, apple 2, dog 3, pizza \end{filecontents*} \begin{document} \begin{...
5
votes
2answers
2k views

Create a caption for table using the \csvautolongtable command from the csvsimple package

I successfully included a .csv table using the \csvautolongtable command from the csvsimple package (the table is more than one page, this is why I am using this command). Now I want to add a caption ...
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 ...
3
votes
1answer
68 views

Adding code (pagebreak) after value change in csvsimple

Background I want to create a document with the user data of our network at school, which should be handed out to the user. This should be done class by class. Approach The user data are given in a ...
2
votes
2answers
157 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} \...
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 ...
0
votes
1answer
168 views

Is it possible to enter csv data into csvsimple directly?

I'm using csvsimple to turn a CSV file into a table. I would like to embed the content of the CSV file into the LaTeX source file itself. Is this possible? \documentclass{article} \usepackage{...
1
vote
1answer
476 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 ...
5
votes
2answers
194 views

new command is expanding as blank

So I'm trying to import a large list of values that are used throughout my report. However when i do this the results are always blank... \documentclass{scrreprt} \usepackage{csvsimple} % \csvloop{...
2
votes
2answers
764 views

csvsimple Vertical Header

I'm trying to create a table from .csv files using csvsimple. Here are the contents of my file: Degrees,10,20,30,40,50,60,70,80,90 Time,1.33,0.90,0.72,0.63,0.50,0.43,0.41,0.40,0.38 This is a table ...
3
votes
1answer
1k views

csvsimple and longtable (automatic headerline)

Helping a other communitymember (see using csvreader to read from csv giving invalid output) on a csvreading task I have tried to solve a problem, like the following... \begin{filecontents*}{test-...
5
votes
2answers
2k views

using csvreader to read from csv giving invalid output

I am trying to output a *.csv file to LaTeX, but I keep on getting invalid output. I am using mactex on a yosemite environment. code.csv: code,subcd CITY,LIMA CITY,PUEBLOLIBRE CITY,JESUSMARIA CITY,...
1
vote
1answer
945 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): ...
6
votes
1answer
2k views

How to deal with csv file whoese fields are enclosed by quote?

I have a csv file whose fields contain text. As fields can contains newlines, they are enclosed by double quotes. Editing these file works well with my favourite spreadsheet (libreoffice). I want to ...
3
votes
1answer
1k views

Tabularx or Tabulary populated by csvsimple

I am using csvsimple to import table data. Some cell information is too long and I would like to dynamically manage the column width. I have tried combining the tabularx and tabulary environments ...
1
vote
1answer
681 views

Shell Escape in Miktex 2.9 for CSVsimple

I am quite new to LateX and I have been trying for the past few days to do a Shell escape in Miktex 2.9/ TeXworks in my pdflatex+Makeindex+bibtex typesetter so that I could be able to use the ...
4
votes
1answer
842 views

Recreating formatting of an Excel table using simplecsv

I'm trying to recreate a wholesale price list in LaTeX so that the data can be updated automatically from CSV files. I'm able to import data using \csvautolongtable but I'm struggling with the ...
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 ...
2
votes
0answers
815 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 ...
2
votes
1answer
1k views

csvsimple creating multiple lines out of one entry

Data looks like this: name,job,age John,student,21 Frederik,student,18 Johnson,professor,49 I'd like to generate a table, that when for the first time a new job show up (the list is sorted by job), ...
5
votes
1answer
490 views

problematic extra cell when importing CSV to latex

I have a table that spans several pages I will be including in an appendix that I would like to import into my LaTex document from a csv. I found the long table answer post very helpful: Importing CSV ...
0
votes
1answer
368 views

Can not use csvsimple and have accent characters at the same time

When parsing in XeLaTeX the template available in SIGCHI with the package csvsimple and "fontspec" (to include special UTF8 accent characters), I'm able to see "áéíóú" in the body of the document but ...
2
votes
2answers
686 views

Build PGF/TikZ matrix from CSV file

I want to automatically build a PGF/TikZ based drawing based on some external data that is read using csvsimple. My main issue at the moment is that most of the nodes are part of a matrix, mainly to ...
4
votes
1answer
282 views

You can't use a prefix with `\char"FB': error when importing csv into latex

I'm trying to use the package csvsimple to create a table from a csv file. This worked so far, but when I try to add new figures/tables afterwards I get multiple errors. It looks like the \end ...
3
votes
1answer
554 views

How to make convert csv to fancy tables?

I want convert csv to fancy tables like this : First, I make a basic table with my MWE like this : \documentclass{article} %\usepackage{csvsimple} \usepackage{pgfplotstable,filecontents} \...
3
votes
1answer
899 views

Nested CSV with csvsimple

I have two csv files. I want to use the first (countries.csv) to generate sections, and then filter the second (bottles.csv) by the name of the section. Below is an MWE - you can see that the nested ...