Questions tagged [csvsimple]
{csvsimple} provides a simple LaTeX interface for the processing of files with comma separated values (CSV).
256
questions
2
votes
0
answers
28
views
csvsimple struggles with loading UTF-8 characters
I am trying to get csvsimple to load a table column and display its contents in an enumerated list. I got to a point where it works for ASCII characters and even some letters with diacritics, but it ...
1
vote
0
answers
19
views
How to handle columns with brackets and spaces [closed]
I am exporting csv to pdf format as below and in one of the column i have spaces between words and brackets for some of the rows and also the texts are 26 characters long as below and I guess because ...
0
votes
0
answers
17
views
Use csvreader with seqsplit
How can I use seqsplit with csvreader? The line breaking isn't working.
MWE:
\documentclass{article}
\setlength\parindent{0pt}
\usepackage{csvsimple}
\usepackage{seqsplit}
\usepackage[utf8]{inputenc}...
0
votes
1
answer
40
views
How to add a caption to a long tabularray table read by csvreader?
I am reading data for a supplementary info from different CSV files using the csvsimple package.
To display things nicely, I have written my own csvstyle, as all the CSV files have the same format.
...
1
vote
1
answer
34
views
csvreader does not show anything
I'm trying to use for the first time the package csvsimple. It worked fine with my .csv file and the command \csvautobooktabular but I'm not able to use it with \csvreader. Here is a MWE. Could ...
0
votes
1
answer
53
views
LaTeX csvreader/longtable: Put long narrow table multiple times on page
I have a very narrow table (2 columns) imported from a csv using csvreader that currently stretches over 3 pages.
This looks a bit weird, so I would like to have all three pages of the table on the ...
0
votes
0
answers
37
views
Inserting a csv with multirow using csvsimple
I would like to read the following table with the values from the first column joined in a multirow.
\begin{filecontents*}{my_data.csv}
category, a, b
A,0,1
A,2,1,
B,1,1
B,0,0
...
0
votes
0
answers
59
views
csvsimple and tabularray - fit table to page
I have a code for creating a table from a CSV data file but the table size is very long.
I would like to automate the code so any table coming from any CSV file I use will fit into one page.
Here is ...
0
votes
0
answers
42
views
Round values to integers of a csv tabular
I want to know how can I round all the values from my table to integer values. The code I am using to import the csv file as a tabular in the document is the following:
\csvautotabular[respect ...
0
votes
0
answers
15
views
Reset Title and Author's block with csvsimple package
I use csvsimple to export data and want to create multiple pages with 'Title and Author blocks. I read this and this and am wondering if there is any simple way to address this?
\documentclass[...
0
votes
1
answer
68
views
Is there a way to include a table with comma in file name using csvsimple?
I have a file called "test,abc.csv" and I would like to use csvsimple to display this table.
\documentclass{article}
\usepackage{csvsimple}
\begin{document}
\begin{table}
\csvautotabular[...
0
votes
0
answers
56
views
Highlight a specific row using csvsimple marco
I want to highlight a specific row using the row number in csvsimple-l3 but I don't know how.
For example, I need to bold the 4th row but I don't want to add
row{4} = {font=\bfseries}
to mycsvstyle ...
0
votes
0
answers
28
views
Conditionnal CSV prompting
I'm asking for your help for a specific problem I have no clue about.
My goal is to have conditionnal CSV printed in a table (did not include that print part) :
\usepackage{csvsimple}
\usepackage{...
0
votes
1
answer
43
views
csvsimple with siunitx S columns
Similar to this: csvsimple and siunitx
Could there be a similar workaround but with \csvlinetotablerow instead of explicitly write every \csvcoli, \csvcolii ?
Here's my MWE :
\documentclass[varwidth=\...
1
vote
1
answer
107
views
Mapping categorical values to styles when reading data
I'd like to use tikz to generate an updated version of figures 10 and 11, from the superb book "Sustainable Energy -- without the hot air" by the late David JC MacKay.
These plots represent ...
0
votes
1
answer
102
views
exporting a specific row from CSV using csvsimple
What is the best way to obtain a specific row (or a subset of row) when I use csvsimple?
⧵csvreader[head to column names]{filename.csv}{}{}
For example, I would like to get only row three from the ...
0
votes
0
answers
86
views
How to correctly import csv files as table and split it on two page?
My goal is to import a .csv file as a table into my thesis and split it on two pages. I want also to skip the header line of the table to set the header in Overleaf.
Here is my .csv file (I need to ...
0
votes
1
answer
54
views
CSV generated with filecontents results in empty table rows when parsed with csvsimple
I just stumbled over an unexpected (or maybe actually not so unexpected) behaviour of csvsimple when feeding \csvreader with CSV data generated by filecontents.
It seems that starting with TeX Live ...
2
votes
2
answers
389
views
How to read a large .csv file as table with bookstyle?
I need to insert large tables in the appendix of my MSc thesis and I want to read the data from .csv files without fill the .tex file where I write.
I produce the tables with the help of ...
2
votes
1
answer
234
views
How to design a professional table by loading it from .csv file?
I found a similar question (useful_question) that I'm following to build my table but I'm not able to get the desired results, i.e. the following table but with the booktabs style (that I'm not able ...
0
votes
1
answer
32
views
howto obtain a striped table with csvloop?
Is this possible with csvloop command to change the row colors in order to obtain a striped longtable?
Something equivalent to late after line=\csvifoddrow{\\\rowcolor{white}{\\\rowcolor{gray!20}}, ...
0
votes
0
answers
58
views
Error message - pgfgantt - Missing number, treated as zero - using csvsimple inside a pgfgantt diagram
This post follows this one : 661375. The initial question was about how to use csv data file to generate milestone inside a pgfgantt diagram. Cicada proposed this solution which is plainly functional ...
2
votes
1
answer
100
views
Checkbox and `csvsimple`
I haven't found any clear and/or functional examples on how to insert a checkbox in a table generated with csvsimple.
For example, in this MWE, how can I modify the code to replace the checkbox ...
-2
votes
1
answer
62
views
using csvsimple inside a pgfgantt diagram?
Is there any possibility to use some data contained in a csv file to create milestone or bar inside a pgfgantt diagram ? And, if yes, how to do so ? Is this possible with csvsimple ? Is it possible to ...
4
votes
4
answers
286
views
How to create a \hline right before the last element of a table
I am trying to add a line between my last and one line before the last element of the table with csvsimple-l3. To reiterate I want a line between 9 and 10 - is there some neat solution for this?
My ...
0
votes
1
answer
32
views
Very weird results using macro inside data make
I am trying to test some macros inside csv data and I am obtaining very special results.
Test number 1 (look at the command \csvautobooktabular{macrodata.csv}):
\documentclass[a4paper,9pt]{book}
\...
5
votes
1
answer
111
views
Using \def in csv range
I would like to use a predefined list of numbers in the csvsimple-l3 range option.
The MWE will explain better:
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{csvsimple-l3}
\...
0
votes
1
answer
267
views
Pass tabular arguments from \newcommand
So I asked this question yesterday but I realized I didn't do a good job of explaining it. I basically need to read different csv files with different numbers of columns and I need to build a command ...
0
votes
0
answers
63
views
pass tabular argument from \newcommand
I want to pass the tabular argument|p{5cm}| p{1.5cm}| p{8cm}| from the newcommand \csvautotabularcenter{2.csv} since it will change as the number of columns change based on the input file . I know you ...
0
votes
0
answers
38
views
I can't seem to get anything to import a csv at all
I have a rather large .csv that I would rather not type by hand into LaTeX, and am trying to use the csvsimple package to import it. The csv is 51 rows long, with the first few looking like the ...
0
votes
0
answers
5
views
csvsimple problem: csvreader reads > as?, what can I do? [duplicate]
I'm a beginner using LaTex. Currently I'm doing my thesis project and I need to do a table from a csv. However, csvreader from the csvsimple package is giving me problems because it reads > as ¿ ...
1
vote
1
answer
44
views
How to filter case-insensitive in csvloop
I have a command like this:
\newcommand{\contactdetails}[1]{%
\csvloop{%
file={authors.csv},%
filter equal={#1}{\name},%
command=\printcontact,%
head=true,%
...
0
votes
1
answer
70
views
csvautotabular putting unwanted "" and ignoring lines
I'm trying to import my data from a .csv file into a table in LaTeX using csvsimple\csvautotabular. My .csv looks as follows
Inter-Studie;;;;;;;;;;;;
;P1;;P2;;P3;;P4;;mean (lat);std (lat);mean (med);...
0
votes
1
answer
345
views
color a csv table
I have a CSV file and I want some entries be colored and bold. for example "bezahlt" should be green and bold. "unbezahlt" should be red and bold. "offen" should be black ...
0
votes
2
answers
387
views
How to define table cell color depending on cell text value imported from the CSV file
I am trying to color table cell depending on the text value imported from the CSV file. The CSV file has three possible text values that are "High", "Intermediate" and "Low&...
0
votes
1
answer
151
views
CSVSimple ignoring line when enclosed field in double quotes has comma in it
I'm trying to display a very large CSV file as a table which is generated from a program.
The output of the program is a compliant RFC 4180 CSV file, and as such any field which contains a comma is ...
1
vote
2
answers
184
views
How to read variables from csv file based on context
I'm trying to read two variables from a csv file.
function,value
1. pos,some text
2. pos,some other text
This runs before \begin{document} and I wan't the value of 1. pos in \firstvar and the value ...
0
votes
0
answers
221
views
How can I import a csv with special characters using csvsimple?
I am quite new to LaTeX so apologies if this is very basic. I have a micro (µ) symbol in a csv file header that I want to import. This code I am using is:
\begin{table}[h]
\caption{This is the caption ...
1
vote
2
answers
397
views
Importing CSV data without header
I was trying to import CSV data into a table. The CSV file has no header and I want to include a header in the table without editing the CSV file. How can I do that?
Here is an MWE based on my ...
1
vote
3
answers
427
views
Importing csv file to table with a unique first column
Trying to make a table from a csv file, where i can define the first column manually or by a vector/column.
It works if the only different in the first column is the subscript from 1 to 12 as seen ...
0
votes
1
answer
127
views
Calculate tcolorbox title
In the depicted table, I would like to eliminate the gray "title bars" in rows two and three. How do I do that?
\documentclass{beamer}
\usepackage{tcolorbox,csvsimple}
\begin{document}
\...
2
votes
3
answers
501
views
CSV reader offsets first two rows in a table
I am trying to use CSV reader (from the csvsimple package) to print out some data to a table. However, I am observing a weird offset in the first two cells of the first column:
\documentclass[12pt,...
1
vote
2
answers
243
views
Only receiving the column titles when using csvsimple and \csvautotabular
I'm currently running into an issue where I'll only get the titles of my columns showing for my table when using csvsimple with \csvautotabular.
The current code I used to produce this is
\...
1
vote
1
answer
301
views
Highlight maximum value in each row in csvsimple table
I am currently using csvsimple (in pdfLaTeX) to generate a table from a csv file:
\documentclass{article}
\usepackage{xcolor}
\usepackage{csvsimple}
\usepackage{siunitx}
\usepackage{booktabs}
\...
0
votes
1
answer
81
views
Interpolation of a number using csvsimple Filters
I hav a .csv file where I am manipulating the value by reading the maximum value of Y variable and trying to find an extra polated X value for the manipulated Ymax.
Here is the code.
\csvreader[...
2
votes
1
answer
550
views
Are csvsimple and tabularray incompatible?
Is there an incompatibility between csvsimple and the new package tabularray? The following MWE throws an error. (Compile with XeLaTeX or LuaLaTeX)
\documentclass{article}
\usepackage[ngerman,french]{...
2
votes
1
answer
166
views
tabularx and csvreader putting everything in the last column with one row
This is the same problem I ran into from the previous question, I finally narrowed it down to some line break problem. I found several line of code, that suppose to work and tried it on with my ...
0
votes
1
answer
93
views
Was trying to import csv table to Texmaker, the last column gives error when I try to fix the width
I was trying to import a csv table to my Tex, with csvsimple. The idea was to fix every column width and make the text wrapped around. However, whenever I change the last column identifier l to p{2cm} ...
1
vote
2
answers
328
views
csvautotabular not displaying full data from .csv file
Problem
On section 1.2 First Steps of the csvsimple manual [link: https://ctan.math.washington.edu/tex-archive/macros/latex/contrib/csvsimple/csvsimple.pdf], the instructions are to use the following, ...
1
vote
1
answer
224
views
Creating a bold header for a table with the csvsimple, siunitx, and tokcycle packages
I found this post, illustrating how to typeset the header of a table in bold face. Combining it with \csvreader from the csvsimple package worked fine, as long as I don't format the numbers using ...