{datatool} is a tool to create and manipulate databases.

learn more… | top users | synonyms

0
votes
0answers
11 views

insert \hline in datatool importing .csv

I'm trying make a table with the datatool package and a .csv created from an Excel file. I'd like this code to be the more generic as possible since I will have to import a lot of .csv in this ...
1
vote
1answer
34 views

Building a list of non-duplicated labels from text on the fly

As a followup to Difference in compilation time between two slightly different versions I wrote Deleting duplicates from a comma-separated list of strings. Summary of issue: The former question ...
2
votes
1answer
18 views

Spacing and embedded calls to \DTLifnullorempty

It seems that embedding calls to \DTLifnullorempty inside one another leads to an extra space for each call to \DTLifnullorempty. Is there a way to prevent this behavior? In particular, I would like ...
1
vote
1answer
37 views

“Misplaced \noalign” error with datatool

Attempting to compile the following file gives the following error: ! Misplaced \noalign. \pagebreak ->\noalign {\ifnum `}=0\fi \@testopt {\LT@no@pgbk -}4 l.47 \end{letter} ...
3
votes
1answer
69 views

Filesize command amount dependent?

When writing a cv I decided to separate tex file from content. I copied the content to a csv file in order to load it with datatool. But this greatly increases the size of the PDF: Complete content ...
2
votes
1answer
52 views

Difference in compilation time between two slightly different versions

This question is a byproduct of earlier questions: Creating a list of labels automatically for use by datatool and Automatically creating a table from datatool using references in the text. Here is a ...
1
vote
1answer
65 views

Creating a list of labels automatically for use by datatool

The following is partly a followup to an earlier question, and Enrico's answer, as given in Automatically creating a table from datatool using references in the text. The method outlined there works, ...
4
votes
1answer
84 views

Document using datatool is slow to compile

The following document uses the datatool package, and is slow to compile, though the resulting PDF file is only 3 pages long. On my computer it takes of the order of 17 sec. I'm hoping for suggestions ...
4
votes
1answer
52 views

Creating table using tabularx and datatool from csv file

I am trying to create a vocabulary list from a csv file containing the vocabulary using tabularx and datatool. This is what I have tried: \documentclass{article} \usepackage{datatool,tabularx} ...
0
votes
1answer
38 views

Speed up CSV loading with datatools package?

I am using the datatool package to read some CSV files. I've used the csvsimple package before, which I finally managed to break by adding more and more requirements to the mix. Now I'd like to switch ...
3
votes
1answer
42 views

Merging two datatool databases from different files but with the same columns

Consider the following example code. This is not quite an MWE, because it contains elements that are strictly unnecessary. I'd like to merge the two datatool databases, corrDB and docDB vertically ...
3
votes
1answer
58 views

Conditional table construction with datatool

The following minimal example creates a 3-row table width a horizontal rule separating rows 2 and 3: \documentclass{article} \usepackage{filecontents,datatool,booktabs} \usepackage[table]{xcolor} ...
1
vote
1answer
73 views

Creating lables - using data from excel sheets - selecting specific column

I have to create desk slips (labels). For this data is available in excel sheet. The column names are - RollNo, Subject, Venue of Exam (examination center). Presently we are creating desk slips using ...
3
votes
2answers
54 views

On sorting a string with multiple entries

In my LaTeX-file I create a variable \authors which could have content: [Doe] John Doe; [Potter] Harry Potter; [Clinton] Bill Clinton; [Obama] Barack Obama; ... This is dynamically created, so I ...
1
vote
0answers
56 views

Problem with packages siunitx, datatool and xkeyval

After having read several articles concerning the siunitx problem I am still struggling with my problem. Your comments and your help is highly appreciated. The following error occurs when I switch on ...
4
votes
2answers
62 views

Is there a way to store information in something like an array

I'd like to store some basic information on people in a file, and want to be able for LaTeX to process this information. More specifically, I'd like to store something like: id:john1; fname: John; ...
3
votes
1answer
185 views

I want to take a CSV file, process the data, and generate a report file, where can I go to learn how to do this?

I have access to MATLAB for data processing, and TeXstudio for the report. I am familiar with MATLAB about 100x more than LaTeX. The data flow I am trying to create: CSV file is generated with 50 ...
6
votes
4answers
154 views

Sending Same Letter to multiple addresses

I'm sending the same letter to multiple addresses. The addresses are stored in a csv document. I've so far created a loop to create multiple letters, but I have not been successful in finding a ...
1
vote
1answer
111 views

Custom table from csv file (multiple header rows)

I would like to create custom tables from .csv files. By custom I mean, that I only want LaTex to read in the body of the table, i.e. "a & b & ... \ ..." but I want to write my own header and ...
1
vote
1answer
61 views

Problem with gb4e's spacing when using datatool

Say that I have a .csv file with sentences in IPA, their glosses, and their translations that I want to incorporate into a document. However, using datatool to loop over the .csv doesn't work with ...
1
vote
1answer
73 views

bulk letter with datatool: how to handle linebreak csv-field

I'm generating a bulk letter using datatool. Therefore I import my data from an external csv-file using the following syntax: \documentclass[11pt]{dinbrief} \usepackage[T1]{fontenc} ...
0
votes
1answer
143 views

Dynamic Courtesy Receipt PDF Generator For PHP

The title needs a bit of help, but I'm wondering if it's possible to dynamically create a beautiful customized receipt for purchases from my website using LaTeX, where LaTeX gets its data from my ...
0
votes
0answers
38 views

Display bibtex entry in latex document

I'm trying to display a bibtex code written in a .bib file inside a document. Does anyone know how to include bibtex code, e.g. : @book{Darwin59, author={Darwin,Charles}, title={On the Origin of ...
0
votes
0answers
28 views

Logarithmic axes using \DTLplot

I am working with the dataplot package for quite some time and find it useful for my purpose. But now I have to display a log-log diagram and failed to find a suitable function; is there any command ...
3
votes
1answer
115 views

Mail merge using datatool with letter class

I am trying to adapt this question/answer on how to do mail merge to work with the letter document class. The linked answer works great for me, but when I try to change the document class to letter I ...
1
vote
1answer
140 views

Pie Chart with datatool

I am totally stuck with a problem. Is there any appropriate package for pie charts? I am using datatool right now. But there are a lot of problems: E.g. the labels are overlapping. Do you have any ...
2
votes
1answer
88 views

Modify Pie Charts (delete the labels)

I am totally new to LaTeX and pgfplots,... I copied an example for pie charts from another blog. The problem: I don't want the labels in my pie chart. Could you please help me? This is what I have ...
3
votes
1answer
105 views

Using \DTLforeach for defining multiple \newtcolorbox

Concerning this project, I'm now trying to define an own tcolorbox environment for every conversational partner by creating a "conversational partner database" with the datatool package and then using ...
5
votes
3answers
226 views

Use datatool to read a row from a CSV file, then use the variables in the document?

I'm confused about how to use "datatool" to read variables from a row in my database, and pass them on to be formatted in my text. I don't want to make a table, but that's about all there seems to be ...
7
votes
0answers
139 views

What kind of data can be gleaned from a PDF created in LaTeX?

As I use LaTeX for the creation of many of my business instruments, and since I send these all over the world to different clients I just wanted to know if there are any data embedded in a PDF that ...
4
votes
0answers
87 views

How can I typeset *some* fields from a (YAML) dataset?

I'm building a dataset of sorts with long strings, tags, some of which will be used for survey research (a q-sort, actually). This dataset needs to: be reasonably human-readable play nice with ...
4
votes
1answer
98 views

datatool group by?

I try to display the results of a survey where students of 2 different classes could choose their favorite subject. In the result table I find Surname, Name, ClassID, Subject. The data in the file ...
0
votes
0answers
20 views

Adding blank pages when generating multiple copies of a document [duplicate]

I'm generating multiple copies (right now, 2, but a general solution would be nice) of a letter with minor variations using datatool. I just realised that if I'm printing it double-sided. and if the ...
1
vote
0answers
361 views

File `datatool.sty' not found [closed]

I am making a latex document with class {article} I want to make a page for glossaries I added the below in my preamble \usepackage{datatool} \usepackage{datatool-base} \usepackage{glossaries} ...
1
vote
1answer
85 views

Inserting names on invitations, two per page in specific locations

I am doing a wedding invitation and I want the RSVP to have the person's name on it. I also need the name to appear in another, very specific location on the invitation. The invitation only takes up ...
4
votes
1answer
189 views

Rotating a pie chart

How can I rotate a pie chart with 50,50 distribution so that it is divided vertically rather than horizontally? \documentclass{beamer} \usepackage{multicol} \usepackage{datapie} \usetheme{Warsaw} ...
2
votes
1answer
58 views

datatool: why does \DTLifstringeq not work in the address part of a bulk letter

I'm trying to create a bulk letter using the package dinbrief and datatool. I created the whole letter and except from one problem everything works fine (that's why I don't want to change any major ...
2
votes
1answer
224 views

The datatool package is not reading the csv file

I have the csv file as follows: The csv file in sublime looks like this: Now the code reads each quote and author in the quote environment at the footer in the center. But it doesn't print the ...
1
vote
1answer
351 views

The footer styling in fancyhdr - Center text

\fancypagestyle{myfancy}{ \fancyhf{} \fancyhead[LE,RO]{\slshape\nouppercase{\leftmark}} \fancyfoot[LE,RO]{\tikz[baseline={(0,0)},anchor=center] ...
3
votes
1answer
148 views

Why does datatool/pgfplots only plot for last row in table?

I'm trying to use datatool to put a bunch of circles on a pgfplots plot. I tried the following: \documentclass{article} \usepackage{datatool,tikz,pgfplots} \pgfplotsset{compat=1.9} ...
6
votes
2answers
214 views

Automatically creating a table from datatool using references in the text

This question is based on Peter Grill's answer to "Table including rows of a master table".. The function \PrintDTLTable takes an optional list of rowIDs (first row of the data file) as its first ...
5
votes
1answer
156 views

Using `ifthenelse` to combine two related functions into one

This question is based on Peter Grill's answer to "Table including rows of a master table".. The function PrintDTLTable was in Peter's original answer. I wanted a version that would run over all ...
2
votes
1answer
74 views

Handling blank rows for use with multirow automatically when using datatool

The following example code is slightly adapted from Peter Grill's answer to "Table including rows of a master table". The problem I'm having is that if I have a multirow, then I need an extra blank ...
7
votes
1answer
83 views

Multiple instances of xelatex in parallel without overwriting generated PDF's

I've one TeX file abc.tex which is executed using xelatex abc.tex to generate the PDF file abc.pdf Inside abc.tex I'm using the datatool package to read data from an external CSV file (say pqr.csv). ...
4
votes
1answer
108 views

Eso-pic and data-tool

Csv files can be easier to prepare for the person who is not used to LaTeX syntax. I would like to use a csv file containing Id, myauthor, mydate, myaddress Sebastian, 12.12.2012, XYZ road, ...
1
vote
1answer
92 views

esopic and repeating part of document

This answer nicely illustrate the use of eso-pic to repeat part of document. Repeating part of document on every page But when the text entered is large, it is cut-off from the page. It possibly ...
1
vote
1answer
169 views

Line-breaking long cell contents when using longtable through datatool

I'm trying to display a table loaded from a CSV file and displaying it like this: \DTLloadrawdb[]{myDB}{myDB.csv} \DTLdisplaylongdb[% caption={myDB caption},% label={tab:myDB},% ...
1
vote
1answer
140 views

Datatool (datagidx) index with special characters

When I define multiple terms that contain an underscore and begin with the same string ex_ 1, ex_ 2 (as shown in the example below) I get the following error: ! TeX capacity exceeded, sorry [input ...
4
votes
1answer
71 views

Indexes using datagidx where multiple terms have a single index entry

I'm building off of an example here from the LaTeX Community. What I want to do is create an index where multiple terms link to the same word in the index. So for example if the terms toyota, ford, ...
4
votes
1answer
187 views

text wrapping and \DTLdisplaydb from datatool

I'm trying to adjust width column of tabular generated by \DTLdisplaydb from datatool package like here for tabular environment. But I didn't come up with any solution. I tried something pretty bad: ...