Skip to main content

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
1 answer
78 views

How to pass a tl or seq containing & to a function?

I am using CSVsimple to make a catalogue of products, each having a variable sized table with different header. So first I scan the file for header-names, save these in variables and then later feed ...
Fibecker's user avatar
1 vote
0 answers
22 views

How to store individual entries of a CSV file in variables with csvsimple

I would like to save different entries from a csvfile as variables in Latex. Here is my code \begin{filecontents*}{DateTime.csv} Group;Date;Time Group 1;27.05.2024;13:00 Group 2;28.05.2024;18:00 Group ...
Roman's user avatar
  • 21
0 votes
1 answer
26 views

Problem with csvsimple and csvrerader. Not every Data type gets show

Here is my code: \begin{filecontents*}{DateTime.csv} Gruppe;Date;Time Gruppe 1;27.05.2024;13:00 Gruppe 2;28.05.2024;18:00 Gruppe 3;29.05.2024;21:00 Gruppe 4;30.05.2024;12:00 Gruppe 5;27.09.2024;22:00 \...
Roman's user avatar
  • 21
3 votes
2 answers
69 views

Problem using csvsimple package to customize a tabular

I got a table table.txtcontaining: $nTracks$ | $PT(\Lambda_b)$ | $\eta(\Lambda_b)$ | $Dira(\Lambda_b)$ | 0 | 0.039 | 0.045 | 0.017 | 1 | 0.042 ...
RedQuark's user avatar
1 vote
1 answer
39 views

Trouble formating presorted table with csvsimple

\documentclass{article} \usepackage{caption} \usepackage{booktabs} \usepackage{csvsimple} \csvstyle{mystyle}{ tabular=|c|c|c|, table head=\hline Gruppe & Buchstabe & Zahl \\ \hline, ...
Roman's user avatar
  • 21
1 vote
2 answers
65 views

Table csvreader: loop over columns

I have a csv file called "data.csv" containing the following data: 1,2,3 4,5,6 I am writing the following table in Latex by using \csvreader: \begin{table} \centering \begin{tabular}{|c|c|c|}...
MattiaP's user avatar
  • 43
2 votes
2 answers
111 views

Filtering CSV file

I managed to confuse myself with filtering data from a CSV file. For example, in the below example, how do I insert the relevant text? \documentclass{article} \usepackage{fontspec} \usepackage{...
blackened's user avatar
  • 4,201
1 vote
1 answer
46 views

csvsimple csvreader doesn't use option separator

My csv is separated by tabs. When loading it with \csvautotabular the option separator=tab works fine. But when loading it with with \csvreader just like in the example of the documentation it only ...
stef9998's user avatar
4 votes
2 answers
175 views

Create graph from CSV of percentage figures

I am trying to draw this graph in LaTeX: This is my attempt: \documentclass[12pt,a4paper]{article} \usepackage[margin=2.5cm]{geometry} \usepackage{tikz,pgfplots,pgfplotstable} \pgfplotsset{compat=1....
user avatar
2 votes
1 answer
66 views

How can I use csvsimple inside NiceTabular from nicematrix package?

I´m new to Latex and a bit overwhelmed by the difficulty of getting a table that looks just as I want from a csv. I got so far to display my csv table in latex with gray and white rows using this ...
nils_toepfer's user avatar
0 votes
0 answers
30 views

Filtering in csvsimple by inequalities with row number

I am trying to make tables from a csv file with row ranges (e.g. 1st 25 rows, 2nd 25 rows, etc) using csvsimple. I can get a table with the first n rows for various values of n by using a filter such ...
User3487632's user avatar
1 vote
1 answer
53 views

csvsimple and \multispan ->\omit \@multispan

I want some cells in a table generated via CSV to be \multicolumn - it works fine as the 3rd row of the table, but if the 2nd row is \multicolumn, this will not compile. Compare using data1.csv (which ...
James's user avatar
  • 105
2 votes
0 answers
43 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 ...
SummoningPepper's user avatar
1 vote
0 answers
33 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 ...
scsagg's user avatar
  • 11
0 votes
0 answers
21 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}...
someonr's user avatar
  • 8,561
1 vote
1 answer
149 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. ...
BernhardWebstudio's user avatar
1 vote
1 answer
58 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 ...
Christophe's user avatar
1 vote
1 answer
92 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 ...
DevNoteHQ's user avatar
  • 111
0 votes
0 answers
128 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 ...
MathTeX's user avatar
  • 129
0 votes
1 answer
128 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[...
Dau Zi's user avatar
  • 392
0 votes
0 answers
80 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 ...
qqv dao's user avatar
  • 33
0 votes
0 answers
30 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{...
Clem105's user avatar
0 votes
1 answer
75 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=\...
coucou's user avatar
  • 61
1 vote
1 answer
122 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 ...
djmarti's user avatar
  • 13
0 votes
1 answer
181 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 ...
user199's user avatar
  • 57
0 votes
1 answer
75 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 ...
Jasper Habicht's user avatar
2 votes
2 answers
613 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 ...
g_don's user avatar
  • 809
2 votes
1 answer
354 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 ...
g_don's user avatar
  • 809
0 votes
1 answer
47 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}}, ...
Certes's user avatar
  • 35
2 votes
1 answer
141 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 ...
Certes's user avatar
  • 35
-2 votes
1 answer
77 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 ...
Certes's user avatar
  • 35
4 votes
4 answers
432 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 ...
AdamLabus's user avatar
0 votes
1 answer
37 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} \...
Certes's user avatar
  • 35
5 votes
1 answer
129 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} \...
user125198's user avatar
0 votes
1 answer
392 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 ...
user270659's user avatar
0 votes
0 answers
76 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 ...
user270659's user avatar
0 votes
0 answers
40 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 ...
Mac McMahan's user avatar
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 ¿ ...
Hasnain Shafqat's user avatar
1 vote
1 answer
56 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,% ...
akichii's user avatar
  • 65
0 votes
1 answer
100 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);...
Christophe Andre's user avatar
0 votes
1 answer
462 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 ...
IH Pro's user avatar
  • 141
0 votes
2 answers
526 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&...
c_bfx's user avatar
  • 48
0 votes
1 answer
203 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 ...
Girgias's user avatar
  • 101
1 vote
2 answers
311 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 ...
Darkproduct's user avatar
0 votes
0 answers
367 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 ...
Chris's user avatar
  • 1
1 vote
2 answers
540 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 ...
Imran's user avatar
  • 3,116
1 vote
3 answers
631 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 ...
Tobias Lykke Pinndal's user avatar
0 votes
1 answer
140 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} \...
Harry's user avatar
  • 4,041
2 votes
3 answers
651 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,...
Big Monday's user avatar
1 vote
2 answers
314 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 \...
Jackson Wright's user avatar

1
2 3 4 5 6