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
0
votes
0answers
17 views

csvsimple inside tabular environment, but csv data includes LaTeX arrays/tables/aligned etc

I am trying to import a csv using csvsimple, and I have already overcome the challenge of the csv delimiter (by adding curly braces around every field), but I am now stuck with a admittedly weird ...
0
votes
2answers
32 views

Place nodes in tikz axis using csvreader

I'm trying to place nodes inside a TikZ axis using \csvreader command from simplecsv package. However, somehow, the following does not work: \documentclass{article} \usepackage[utf8]{inputenc} \...
1
vote
0answers
20 views

csvreader merge two files columnwise in table

I would like to put together data columnwise! Ideally I would like to take it from the same file, please see the example below. \usepackage{filecontents} \usepackage{csvsimple} \usepackage{multirow} \...
0
votes
0answers
19 views

Why are only the column headers being formed in the latex document when I import the CSV file

This is a very basic version of what I am trying to do \documentclass(article} \usepackage(csvsimple} \begin{document} \csvautotabular{example.csv} \end{document} I have also attached a small portion ...
0
votes
1answer
22 views

How to split CSV table over 2 pages?

I have options of various length, so sometimes they go over the page. Is there an option on csvreader to split pages, similar to longtable? Sample code: \documentclass[a4paper,12p]{article} %%% ...
3
votes
1answer
41 views

Tabularx, csvsimple and multicol on first row lead to \omit error

I've been breaking my head over this, obviously must be missing something. I'm trying to get a table built from a csv with the first columns acting as a header as long is it stays the same, pretty ...
0
votes
1answer
48 views

Command csvloop is already defined… How do I find the conflicting package?

In this MWE: \documentclass[12pt]{article} \usepackage[slovene]{babel} \usepackage{lipsum} \usepackage{acronym} \usepackage{graphicx} \usepackage{mathpazo} \usepackage{longtable} \usepackage{...
1
vote
1answer
41 views

csv to latex chart

What I want: to make a chart from a csv file (exp1.csv). Problem: I don't get all the data visible in the chart The header of my table is not consistent (see \hline) Could you help me to solve ...
1
vote
1answer
27 views

How to escape the # character in csvreader

I'm following this csvsimple documentation and I've come across an issue with my csv file having a reserved character: # and I've tried escaping it with a blackslash(\) and I've tried appending [...
1
vote
1answer
37 views

Image from \csvreader cell

I want to display the title of the system but also an image of the system. User will pick system in an Excel file. \documentclass[a4paper,11pt]{article} \usepackage{csvsimple} \begin{filecontents*}{...
0
votes
1answer
56 views

CSV: How to write commas

I have a CSV document, similar to the one in the example code. \documentclass[a4paper,12p]{article} \usepackage[textwidth=450pt, textheight=680pt,top=3cm, left=2.5cm]{geometry} %margins \usepackage{...
0
votes
2answers
27 views

conflict between ctable and csvsimple?

The following MWE produces an error upon compilation: \documentclass{article} \usepackage{ctable} \usepackage{csvsimple} \begin{document} test \end{document} The error is: ! Undefined control ...
1
vote
1answer
51 views

csvsimple having trouble with tab-delimited file

I'm trying to use csvsimple to make a table with a tab-delimited input file. Here is an tab-separated file generic.tsv to put into a table (these are tabs in my file, not spaces, although ...
0
votes
0answers
44 views

latex csvreader table wrap cells with long strings

I am using csvreader to import a csv file and display it as a table. The first column contains strings that are very long and so the column takes up most of the page, meaning the table continues off ...
3
votes
0answers
33 views

Escape special character in variable

I like to print a list of names and email addresses in LaTeX. These come from a CSV file and I read it with csvsimple package. A problem arised with email addresses like foo_bar@foo.bar... (underscore)...
1
vote
1answer
76 views

CSV reader leaves a blank line at bottom of table

I am using csvsimple to read a CSV file into my document. Here is the document: \documentclass[12pt]{article} \usepackage{csvsimple} \begin{document} \begin{tabular}{|c|c|c|} \hline Col1 & ...
0
votes
0answers
27 views

csvsimple display bug

I want to creat a figure using information from à CSV file. I used the example from the csvsimple manual and replace it with my file to start and I get a display bug: the whole header is written on ...
1
vote
1answer
43 views

Importing a csv column with numbers and characters to latex using siunitx

When I try to import a csv table from an external file that has both numbers and characters in the same column, siunitx package gives the following error. Package siunitx Error: Invalid token 'n' in ...
0
votes
1answer
75 views

Using csvreader in a sentence

I am using csvreader for dynamic reporting. I would like to call values from specific cells using the csvreader function for example: Thank you \csvreader[head to column names, filter={\...
1
vote
0answers
29 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
83 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 (...
0
votes
0answers
69 views

CSV File reading slash (“/”) in latex table

I have csv file having 6 columns where first column have "/" in it. I am using below code: \documentclass{article} \usepackage{csvsimple} \usepackage{datatool} \begin{document} \DTLloadrawdb[keys={...
0
votes
0answers
51 views

Longtable breaks PDFtex output with table in fancyhdr header

I'm having an issue where if the table I pull using csvsimple is too long, the PDF won't build. BUT this is only an issue if my fancyhdr header has a table of any kind in it. If you take 20 or so ...
3
votes
2answers
38 views

Physical page breaks when using csvsimple and pgfpages

I would like to print initial account data for individual students and place 8 cards on a physical page. This is my MWE. \documentclass[fontsize=12pt, paper=a7, paper=landscape, parskip=half]{...
1
vote
1answer
28 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
23 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
37 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]{...
0
votes
0answers
53 views

Multicolumn table with csvsimple

I'm working on a class for a document (derived from article) and one of the components I want to have in the report is a distribution list. This list should be populated with a CSV-file (name, ...
5
votes
2answers
81 views

having problems with greek characters in a table using csvsimple

Hi this is what I wrote: \documentclass{article} \usepackage{amsmath} \usepackage{gensymb} \usepackage[utf8]{inputenc} \usepackage{csvsimple} \usepackage{booktabs} \usepackage{longtable} \usepackage[...
2
votes
1answer
115 views

creating csv simple double header

I am trying to include to first two rows as headers. I would like to have the units - - m m m etc. on every page and another line below. I am not an advanced user of csvsimple, and I have not been ...
3
votes
1answer
50 views

Error in longtable with csvreader

I am getting an error while creating a longtable by importing a csv file. The MWE is as given below. \begin{filecontents*}{monodisperse15.csv} 20,2.825,5.967,0.0,0.0,0.0,0.0 22,2.85,15.516,0....
0
votes
1answer
109 views

How to set the width of the last column with tabular package? [duplicate]

I want to generate a table with fixed column width. This works for all the columns except for the last column. Working example (fixed column width for all column except the last one) \documentclass{...
2
votes
1answer
56 views

How to update the generated .csv file in csvsimple package

I just started using csvsimple which looks like a great package. I wonder if it was possible to do the following Let's say that I have a .csv file that I copy into the .tex file as follows: \...
0
votes
0answers
32 views

CSVReader Align Columns

Is there a way to right justify the second field (after the \dotfill)? I tried using flushright, but that did not do what I was hoping for. \documentclass{report} \usepackage{csvsimple} \usepackage{...
1
vote
1answer
76 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 \...
2
votes
1answer
71 views

How can I strip the percent char of a number read by csvsimple?

I have a CSV table containing some numbers in percent with the percent char explictily written in the CSV data (that can’t be changes). Is there a (LaTeX3) way to strip the percent char and preceding ...
1
vote
0answers
84 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} \...
2
votes
3answers
172 views

csvreader with tabular (to generate entire table) with caption

I have the following MWE that works: \begin{filecontents*}{\jobname.csv} Project, Size A_b,-0.1237466 b,0.04632737 \end{filecontents*} \documentclass{article} \usepackage{...
1
vote
1answer
349 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 ...
3
votes
2answers
275 views

csvsimple respect dollar not working

I'm using csvsimple to import some columns from a csv file into a tabular environment. The CSV file contains a column where all the values are dollar amounts, so just including it directly gives ...
0
votes
0answers
130 views

Sizing table to page

Apologies for a general question but I need some help strategizing about how to include a fairly large amount of data in an article document. Basically I have several 35x35 matrices that I need to ...
0
votes
1answer
166 views

Removing quotes in csvsimple

Before someone marks this as a duplicate question, I have read this answer, and it has not helped. I have a csv file: "headline","similarity" "Tesco directors in scandal","" "Tesco suspends three ...
3
votes
1answer
82 views

Possible Bug in passing variables from CSV

I think there's a bug in calling decimal numbers from CSV files. Have a look. Create a Folder. Add a CSV file called texDemo.CSV with the following in it. UniqueID,Name,DecimalPercentageComplete,...
2
votes
1answer
33 views

Combine datetime2 and csvsimple

How can I make the following code compile: \documentclass{standalone} \usepackage{csvsimple} \usepackage{datetime2} \usepackage{filecontents} \begin{filecontents*}{test.csv} a,b 2019,00:00:00 2019,...
1
vote
1answer
94 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}...
2
votes
1answer
89 views

Adding/subtracting to the /thecsvrow number in csvsimple

Assume a simple example centered on the csvsimple package. \documentclass{standalone} \usepackage{csvsimple} \usepackage{fp} \usepackage[table]{xcolor} \begin{filecontents*}{input.csv} Foo,...
2
votes
1answer
81 views

Color background for title row in csvsimple

Assume a simple example centered on the csvsimple package. \documentclass{standalone} \usepackage{csvsimple} \usepackage{fp} \usepackage{xcolor} \begin{filecontents*}{input.csv} Foo,Bar,Baz,...
2
votes
1answer
67 views

Strange csvsimple output when the line starts with an accented character

The code example below produces an undesirable result, where an Omega appears on the 5th line and all data from the 6th line appears glued to the last cell in the 5th line. Does anyone knows what ...
13
votes
3answers
612 views

Populate information from a csv file into a LaTeX document (specifically into the fields/arguments of commands therein)

I have some personal information stored in a plain CSV file personal_info.csv in the following format: personal_info.csv 83 Fancy Avenue,Nowheresville,Gotham City 24061 123 456 7890 someone@xyz.com I ...
5
votes
1answer
129 views

Automated truncating and compilation of mean and uncertainty pairs for display in table from csv file

I have to display data from a number of CSV files containing pairs of mean and uncertainty values grouped in columns, the first column containing the mean values, the second the uncertainty values and ...