Questions tagged [csvsimple]
{csvsimple} provides a simple LaTeX interface for the processing of files with comma separated values (CSV).
230
questions
0
votes
1
answer
46
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
35
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
19
views
Making bold the maximum value in each column in csvsimple table
Here almost the same question is asked and answered for rows. But I don't know how to generalize this into columns.
I have this table and on it, I would like to make bold the highest values in the ...
0
votes
0
answers
35
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
20
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
36
views
csvautotabular putting unwanted "" and ignoring lines
So 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
102
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
85
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
36
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
53
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
34
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
70
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
83
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
59
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
155
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
102
views
Only receiving the column titles when using csvsimple and \csvautotabular
Stackexchange!
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 ...
1
vote
1
answer
120
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
52
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
228
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
76
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
39
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
131
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
96
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 ...
1
vote
1
answer
57
views
csvsimple repeats head elements instead of CSV row elements
I try to format a CSV file as a table and ran into the issue that the csvsimple package repeats the head elements after a % sign appears in the file. Consider the following MWE (strongly reduced from ...
1
vote
0
answers
65
views
Get the single data from .csv file using latex
\usepackage{filecontents}
\begin{filecontents*}{data.csv}
x,y
-10,96.5
-5,93.5
6,93.5
10,97
\end{filecontents*}
Assume that I have a data.csv file. I need one element of it, e.g., $x=-10$. However, I ...
1
vote
1
answer
732
views
How to use csvsimple
I want to include a csv file as a table into my overleaf-document.
\documentclass[a4paper]{article}
\usepackage{csvsimple}
\csvautotabular{population.csv}
I have no idea, why it is not working. Does ...
2
votes
3
answers
599
views
Create table from .csv file, Header line too long
I have a big table that I want to put into my latex Document. The problem that I have is that the header line (the top line) for the column names is too long. This is my state.csv file
game id,start,...
0
votes
1
answer
128
views
How can I pass a path name with underscore in a yaml-file to latex via pandoc?
I have a csv-file called test_csv.csv which has this content:
1_c,2,3,4
a2,b,c,d
I would like to print it with LaTeX and csvautobooklongtable but wihin a pandoc-workflow.
The pandoc-template (pandoc-...
1
vote
1
answer
126
views
'Continued on next page' for longtable out of csvreader
I have successful managed (with help from this forum) to display my options in a table with each line numbered and price displayed.
\csvreader[longtable= >{\stepcounter{RowNum}\theRowNum}r
>{\...
0
votes
1
answer
54
views
csvsimple causing page with \TRP1
I was successfully using the csvsimple package with longtable and booktabs to read in a csv and make a table out of it. All of a sudden, any import of csvsimple causes this weird page to pop up as the ...
0
votes
1
answer
428
views
csvsimple wrap table cells
I am using csvsimple package to embed csv files as tables into my latex document.
It looks like long cell contents break the rendering:
tokens.csv:
method,corpus,tokens
MI,Quran,"allah, thou, thi,...
1
vote
1
answer
158
views
TikZ calendar, loading data from .csv
My goal is to have a year calendar with boxes instead of days that get filled according to the type of exercise I did that day. These exercise would be loaded from a .csv file in a format such as:
...
2
votes
0
answers
48
views
How to generate a list containing the values of a table
I have a table containing two columns with x and y values respectively and I want to generate a list \coordinates containing (x,y) for each row of the column.
I tried defining a command that creates a ...
5
votes
2
answers
157
views
Adding a toprule below the header of a table read from csv where some rows are multicolumn
I have created a table using data from a csv, such that multicolumn rows are automatically detected in the csv.
In order to do this, I placed all the \\ before each line rather than after, otherwise a ...
1
vote
2
answers
109
views
Set filedirectory in LaTex individually for each data type(csvsimple)
I am new to LaTex coding; so if this question has already been asked just let me know and post the link :)
I try to put a lot of small csv tables into a LaTeX file and found this solution online (...
2
votes
2
answers
141
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
2
answers
89
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
0
answers
100
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
0
answers
70
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
1
answer
237
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}
%%% ...
5
votes
1
answer
97
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
1
answer
199
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
1
answer
114
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 ...
2
votes
1
answer
205
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
1
answer
46
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
1
answer
293
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{...
1
vote
2
answers
65
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
1
answer
417
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 ...
1
vote
0
answers
110
views
latex csvreader table wrap cells with long strings [duplicate]
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 ...