Questions tagged [csv]

The CSV tag concerns text-based files containing tabular material using commas as a separator.

Filter by
Sorted by
Tagged with
1
vote
2answers
17 views

Using pgfplotstable and longtable with a .csv

I'm trying to import a .csv while using longtable and pdfplotstabletypeset. I can't get the longtable command to work. \documentclass[12pt,a4paper,oneside]{report} \usepackage{booktabs} \usepackage{...
0
votes
0answers
14 views

Percentage sign in .csv with \pgfplotstabletypeset

I'm trying to enter a percentage sign (%) into a table. The table is in a .csv format. Using \% does not work. The problem might be in the document class, but I can't change the document class. The ...
1
vote
2answers
18 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 (...
3
votes
2answers
62 views

How to look up a cell value of a multi-column csv file?

Following up this answer, how can I have an optional argument of the command \getValue that specifies the column in which I look up the cell value so that it has the following syntax? \getValue\<...
2
votes
0answers
43 views

Generate wedding Invitations using tex

I am looking at creating a bunch of PDFs that I can send out as wedding invitations. I tried using Python and Latex to create the invitations and then send them, but I have hit a brick wall. I have ...
0
votes
1answer
14 views

Store previous element of loop in intermediate variable for dynamic command creation

I am dynamically creating commands and would like to define them based on the current value in an iteration list. The problem is that the current value appears as the last value of the iterated ...
0
votes
0answers
31 views

3D surface plot from csv data

I am trying to plot velocity data from a probe measured across a channel. The goal is a surface spanned over the measured points and colored according to the velocity value (v) and viewed from the top ...
0
votes
1answer
32 views

Iterating through CSV file - command viewed as one item

I'm trying to iterate through a CSV file, but am running into trouble. The file is multiple lines and I want to go through the CSV items one-by-item. When using the etoolbox docsvlist, it inerprets ...
0
votes
0answers
42 views

Simplest fastest typed LaTeX code for time series plot with different lines for multiple data sources and error bars?

I have two codes and want to create a figure that's fast to implement like the second code or reads csv files and includes line labels and error bars. I want to fuse the second code concerning ...
0
votes
0answers
27 views

CSVREADER in creating a fancy table

I'm really struggling to create the following table in LaTeX where only the data comes from a csv file (the numbers in the file is in exactly the same format as it is in this table). The challenge is ...
2
votes
2answers
43 views

How do I sum CSV-values in to cells?

I am both new here on stackexchange and fairly new to TeX. I have tried searching for similar questions but found none. I am working on a document where I need to pppulate a table from a csv file. The ...
0
votes
0answers
21 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 ...
1
vote
1answer
27 views

tikz: load data range from csv file

With this code, I can plot from .csv file \documentclass[12pt]{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis}[xmin=0] \addplot +[] table[...
0
votes
0answers
24 views

Iterate over comma separated values and optional argument [duplicate]

I would like to adapt this answer of another post for one optional argument but my MWE is just a M(not)WE. \documentclass{article} \usepackage{xparse} \newcommand\test[2]{#1+#2\par} \ExplSyntaxOn ...
0
votes
1answer
47 views

How to create a tabular of hyperref from a csv file in LaTeX?

I am working on the auto-creation of a report after running a parametric study. In order to summarize all the results, I put the the important data as well as the case name in a table. For convenience ...
0
votes
0answers
29 views

pgfplots Error when trying to read a copy of a .csv file that works if not renamed

I'm writing my thesis and this is the first time, I've ever encountered this kind of problem. So, I'm constantly working with csv files, with no problem. Yesterday, this started to happen: This block ...
0
votes
0answers
11 views

Sorting one csv file and get data from the second one placed in the right place in pgfplots

I have 2 csv files that looks like this : First one : class,met ABDOMINAL,341 ADVANCED-CAD,556 ALCOHOL-ABUSE,31 Second one : class,met ABDOMINAL,136 ADVANCED-CAD,100 ALCOHOL-ABUSE,13 I currently use ...
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 ...
4
votes
1answer
66 views

Build glossaries from csv with datatool using with longnewglossaryentry

I'm trying to build a glossary from a csv using datatool and \longnewglossaryentry. I haven't been able to get this to work. Let's start with something that does compile: \documentclass[10pt, a4paper]{...
0
votes
0answers
30 views

How do include a csv hyperlink, so that a csv file is downloaded when the hyperlink is clicked in the pdf?

I want to have a hyperlink in my pdf which downloads a csv file to the users computer when clicked. How do I go about achieving this? Please note, I would prefer it if the csv file was able to be ...
1
vote
1answer
32 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 [...
0
votes
0answers
59 views

How to allow non-unique column names in PgfPlotsTable?

I have been struggling with PgfPlotsTable for a while. Problem is that I cannot get rid of '-indexNum' appended at the end of my column names. Does anyone know if there's an option to have non-unique ...
0
votes
0answers
17 views

\longtable with imported csv data

I am trying to spread an imported csv table on two pages. Somehow this doesn't work. Does anyone have advice for me? \begin{landscape} \begin{document} \begin{longtable} \csvautotabular[]{Tables/...
2
votes
2answers
219 views

How do I plot time series graphs?

I want to display time on the y axis. I have developed this code, but it is not showing any output. \usepackage{filecontents} \begin{filecontents}{mwe.csv} Time,a,b 00:00,0,10 10:30,6,4 11:30,5,5 ...
2
votes
1answer
159 views

ConTeXt: List -> Table

I have a list (not a table) that I want to typeset as a grid for filing labels. The list is in CSV-ish format with comments where similar entries are grouped into a single line. \startseparatedlist[...
1
vote
1answer
84 views

Import csv file: How can I merge information from different lines?

I am trying to compile a bilingual dictionary from a spreadsheet file that was exported as csv. The file contains columns with the kinds of information that one would expect from a dictionary: lexeme, ...
2
votes
1answer
56 views

Use data in .csv file as arguments for macro in TiKZ

I have a .csv file with numbers I'd like to use as arguments in a TiKZ macro I've created. I've tried several different approaches but seem to be running into problems with expanding arguments (really ...
1
vote
1answer
101 views

Serial letter from csv with table with multiple lines in one cell

I'm struggeling with creating a "serial letter" (not really a letter, but a document wich I will need different versions of for different people). I have all the data I need to insert in a csv file. ...
2
votes
3answers
247 views

Read csv values as key-value pairs [duplicate]

I have a csv file that contains the following: "N","n","M" 200,100,50 How can I read it with LaTeX such that \N, \n_trees and \M then returns respectively 200, 100 and 50 ? Or some other internal ...
1
vote
1answer
40 views

LaTeX: Get Variables out of a cvs row

I want to quickly swap out different values in a tex file - like for a batch print so far I'm using multiple .tex files and swap out the \input examplefile.tex in my header. examplefile.tex: \...
1
vote
1answer
111 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 & ...
1
vote
1answer
57 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
261 views

Plotting graph (tikz, pgf) from .csv. Error: Missing \endcsname inserted

I'm getting following error trying to plot .csv table (link to the table: https://github.com/JKhay/LaTeX) to an article: Missing \endcsname inserted. <to be read again> \...
1
vote
0answers
64 views

How to generate personalized PDF documents from a LaTeX file linked to a text file or database with the names

Say you need to generate certificates of assitance to a course. You compose a LaTeX document and want to link it to a CSV or a database file, where the names of the assistants are stored. Is Latexdb ...
0
votes
0answers
79 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={...
1
vote
1answer
36 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
95 views

Import CSV to Latex

Have tried all of the prior responses questions but just can not seem to get any of them to work. I have tried all the various csvreader but can't seem to figure it out. I am trying to import the ...
2
votes
1answer
112 views

shape C not found in the files.csv (tikz-network package)

Following the first example on page 33 of https://github.com/hackl/tikz-network/blob/master/manual.pdf I have been getting the following error below. ! Package pgf Error: No shape named C is known. ...
3
votes
1answer
127 views

Error at compiling example from the Manual tikz-network

As per example on page 26 of the manual https://github.com/hackl/tikz-network/ when doing latexmk -pdflua -pvc or latexmk -pdfxe -pvc I get the following error below. Note: already tried https://...
1
vote
0answers
151 views

Using external (delimited) data files for Asymptote contour plots

I need to plot two-dimensional data, which I would like to do in a contour plot. From my personal experience in trying to get nice contour plots using pgf/tikz and what I read in Fill a contour-plot, ...
4
votes
1answer
54 views

Print range of many group rows in datatools

I use this code from this answer: \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{product.tex} %Type =1,2...10 No,Type,Name,Description 1,1,A1,D1 2,1,A1,D2 3,1,A1,D3 30,1,A1,...
1
vote
1answer
76 views

PGFPlots - Missing number, treated as zero error - when loading data from file

I am drawing a heatmap/scatter plot with the mark colour determined based on a score. I have mapped scores to Red, Green and Blue values, and trying to colour the marks based on the RGB values. The ...
2
votes
1answer
61 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: \...
1
vote
1answer
1k views

Color table with data from csv file with colors from csv file

I am trying to create a table (which is from a csv file) which cells are colored (from another csv file (this way I can do preprocessing externally)). I have looked briefly at tools such as datatool, ...
2
votes
1answer
131 views

How do you put two CSV Tables next to each other?

How do you put two CSV files as a table next to each other? I have the sample effort: \begin{table}[!htb] \begin{minipage}{2 in} \begin{tabular}{1|c} \bfseries Terahertz (THz) & \bfseries ...
2
votes
2answers
96 views

Drawing two curves from a csv file

Hello fellows and folks! I am working with python and I need to draw the following picture in latex by using the values from the variables. They are a ton, so it is not like the usual stuff where I ...
4
votes
3answers
170 views

Find the locations of blank lines in .csv file

This is related to a previous question I asked - Plotting data blocks of varying length using PGFPlots and gnuplot. Here is a minimum working example: % !TeX TXS-program:compile = txs:///pdflatex/[--...
2
votes
2answers
364 views

Converting CSV file into PDF dynamically [duplicate]

I have a simple CSV file that looks similar to: pens, 23 bottles, 5 spoons, 6 chairs, 5 books, 12 I want to convert this into a PDF document. I have no clue on how could I do this. I have installed ...
0
votes
1answer
192 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
86 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,...

1
2 3 4 5 6