Questions tagged [csv]

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

A CSV (Comma Separated Values) file contains tabular data in the form of sequences of characters (and not for example binary data). The data structure is typically ordered rows (or records) of comma separated values separated by line breaks. The files contain records of data consisting of identical sequences of fields. The records can be either in the form of the rows or columns resulting from the comma separation.

366 questions
7
votes
2 answers

"escape underscore" environment with csvreader

I want to put the content of a csv file in a tabular environment. However, this includes text with underscores "_". Because this triggers the math environment, it gives the error: Missing $ inserted. Using escape underscore to show the actual text…
4
votes
0 answers

How to read csv file with semicolon as delimiter

Suppose I have the following scientists.csv file: name,surname;age Albert,Einstein;133 Marie,Curie;145 Thomas,Edison;165 Now I want to use ; as the only delimiter: How can I do…
hola
  • 4,026
  • 3
  • 35
  • 72
2
votes
1 answer

How to read csv into table with custom header?

I want to read a csv into a table that I defined like follows: \begin{table}[bp] \centering \caption{Reading csv.} \label{table:csv} \begin{tabular}{cccc} \toprule \multirow{2}{1.4cm}{\parbox{1\linewidth}{\vspace{1mm}A}} &…
aripod
  • 107
2
votes
2 answers

Converting CSV file into PDF dynamically

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 mactex. It will be helpful, if you help me in…
Amanda
  • 387
2
votes
1 answer

Omit repeated values in CSV file with csvsimple

I want to use the csvsimple package to turn a CSV file into a set of paragraphs, using the value of column 1 as a subsubsection header. I can't see from the documentation any way to do an action only on first occurrence of a value. Is this possible…
Peter Flynn
  • 2,870
2
votes
0 answers

csv string to table without external files

I'm trying to create a Latex table from a CSV string. I saw a similar question , after which I started playing around with the csvsimple package (manual). What I don't understand is the need for filecontents. When something…
icy
  • 121
1
vote
0 answers

create bib files from csv

I have bibliographical references ordered in a spreadsheet and I want to create a .bib file to use then in latex documents. I have found the way to transforma a .bib file into a csv, but not the inverse.
1
vote
0 answers

CSV Reader does not compile special characters

I am creating tables from a csv file by using "csvsimple" package. The "autotabular" option is included, so that I don't have to manually count the number of cells and manually set the cell alignment. Whenever there is a "\" in the first row of the…
Ashok
  • 1,094
0
votes
1 answer

readcsv not working

I started learning LaTeX (on Overleaf) and I have to insert a table. Due to the size of the table, for convenience I want to import it as CSV. I replicated the same code from internet (as Importing csv file into latex as a table ) With this…
0
votes
0 answers

Displaying data from csv file to fit the page

I am writing the code where I need to update the data from csv file directly without mentioning any details but when I try to do that the heading of the column is not displayed properly. Is there anyway I can put - and use it. Below is the code I am…
0
votes
0 answers

Export text from CSV or Excel to Latex document

Similar to this creating multiple generic letters from pulling info from an excel/csv file, how can I create multiple files from LaTeX without using r? I do not have any issues with running LaTeX code multiple times.
user199
  • 37
  • 1
  • 5
0
votes
1 answer

Converting a date from a csv file to a number

I try to only display items from the csv file for which the date lies in the futere \begin{tabular}{rlll} % Date&&&\\\ \csvreader[ filter test=\ifnumgreater{\datum}{\today},]% {test.csv}{date=\datum,time=\time,titel=\titel, price=\price}% { \datum…