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

learn more… | top users | synonyms

3
votes
1answer
50 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 ...
3
votes
1answer
303 views

Using collcell package with csvsimple, or datatool

I was trying to compose an answer to Bold one cell in table using CSV reader using the collcell package, and can't seem to get it to work either with the csvsimple tabluar, nor datatool. With the ...
7
votes
3answers
884 views

datatool with longtable

I have a CSV file that has many rows. I want to typeset these rows into a table using longtable and datatool package. However just before before the "lastfoot" (which says concluded) I am getting ...
1
vote
1answer
74 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
64 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
55 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
100 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 ...
5
votes
0answers
87 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
62 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
73 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 ...
4
votes
1answer
63 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, ...
0
votes
0answers
18 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
198 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} ...
0
votes
1answer
70 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
146 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
37 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
175 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
114 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
105 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} ...
3
votes
1answer
120 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
116 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
61 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
65 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
89 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
77 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 ...
0
votes
0answers
113 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
100 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 ...
2
votes
1answer
111 views

Highlight smallest number in table

I would like to highlight the smallest number in each row. How would I go about doing this. In the following for example, would like to highlight 3 and 3. \documentclass{article} ...
4
votes
1answer
144 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: ...
5
votes
1answer
71 views

datatool: How to reliably store database in \AtEndDocument (or similar hook)

In a big report with many subfiles and authors, I am using the datatool package to write out some data collected across the document. At the end of the document, the data should be stored in a CSV ...
3
votes
1answer
280 views

Combining invoice and datatool to create serial invoices

I want to generate invoices based on a CSV table. My approach looks like this: \documentclass{letter} \usepackage{invoice} \usepackage{datatool} \address{ABC AG \\ Nonamestreet 4 \\ 1100 ...
5
votes
1answer
88 views

Using counter within database

I try to add a countervalue into a database. But if the database content will be printed, the value is allways the maximum value. I have a simple code example ...
4
votes
1answer
162 views

Sort database with datatool

I use the datatool package to read CSV files and print them as tables. Before printing I want to sort the rows. The problem is that the file was written with R and some rows contain normal numbers ...
5
votes
1answer
238 views

Is it possible to use commands defined in DTLforeach as conditions in a tikz environment?

I have been tearing out my hair with this one all afternoon and was hoping someone could help me. Essentially the problem I have is that I'm using a DTLforeach loop to iterate over values in a .csv ...
2
votes
1answer
126 views

Use \DTLifoddrow in preamble

I'm putting many tables in many files generated by csv files. I'm using datatools (opposed to say pgfplotstable) because it is much more forgiving in terms of the csv input format (e.g. it ignores ...
5
votes
2answers
324 views

Can't use utf8 encoding with datatool

I am using datatool to manage tables and I am getting errors when the data.csv file (encoded either as UTF-8 or ANSI) has characters like 'รก'. I can get it around by having data.csv encoded as ANSI ...
4
votes
1answer
143 views

Datatool cannot use math macros in tabular headers from csv file

I am making a LaTeX table using a CSV file and the datatools package. Here is a minimal working example: \documentclass{minimal} \usepackage{datatool} \usepackage{filecontents} ...
5
votes
1answer
117 views

How to cherry pick from datatool DB and calculate totals

I have a CSV file with current prices/item. These prices are updated regularly. I have loaded a DB with datatool. I would like to use these prices to calculate totals according to quantities I have ...
8
votes
1answer
252 views

LaTeX's datatool package together with siunitx

I want to use the datatool package to read csv files and parse them to LaTeX tables. Furthermore I want to use siunitx to format the numbers from the csv file. Have a look at the following example: ...
8
votes
1answer
108 views

Datatool control precision

How can I bring down the number of decimal points in following code to only 2: \documentclass{article} \usepackage{datatool} \begin{filecontents*}{test2.csv} Name, Age, stDev Adam, 17.2344, ...
4
votes
2answers
230 views

How do I solve “Undefined color `\dtlpie@segcolix '”?

I have the following LaTeX file: \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{2mm} \usepackage{datapie} %\usepackage{xcolor} ...
4
votes
1answer
269 views

How to draw and scale for large data values as a sparklines-like diagram with datatool & TikZ?

I want to draw rectangles by the measure of ++(1pt, 4pt) at (x, y) where x and y are based on external data, but I am unsure on how I can proceed to get a proper graph for this. The obvious ideal ...
2
votes
1answer
124 views

Datatool split page vertically

There is a CSV file, which has 1-6 records, I need to load it and display on the letter page into two columns (each row in a column is block with all text from CSV row), right column appears only for ...
5
votes
1answer
347 views

How to mark up different entry types (index/glossary/acronym/notation) at the same time in datagidx package?

I came across datagidx package, which is part of the datatool bundle, the killing feature of this package is that you can use it independently, not relying on external indexing applications, e.g., ...
6
votes
2answers
166 views

How to put content from multiple databases in one table using datatool?

Almost too easy: I have two databases "First" and "Second", both get their data from tab-delineated files "First.txt" and "Second.txt" Both contain two columns ('year' and 'number') and an equal ...
1
vote
1answer
125 views

envlab and datatool for labels

I'm trying to use datatool and envlab to print to and from addresses on a biglabel. Currently my code is close, but not quite there. It will print one combination of to/from on a page and with ...
5
votes
1answer
92 views

Obtain all different values of a specific column in a datatool database

how can I get all different values of a specific column in a datatool database? Example is the following table read into a datatool database: Name,Town,Age Adam,Xcity,20 Berta,Ytown,30 ...
4
votes
1answer
139 views

Search specific entries in database

I have written a command, which takes five arguments to interpolate between two points. Now I tried to get the two points from an csv file. \documentclass{article} \usepackage{expl3} ...
3
votes
1answer
175 views

Problems in creating graphs using dataplot

I have four simple databases: db1 dy,volume 2009,120000 2010,160000 2011,400000 2012,650000 2013,1000000 2014,1500000 db2 dy,volume 2009,400000 2010,500000 2011,1600000 2012,2200000 2013,2500000 ...
3
votes
1answer
167 views

Reading datafile entry by entry

In order to use pstricks in a certain fashion, I would like to access a datafile line by line, inside a multido loop. For example, let's say my file is called Datafile.dat. It contains the (x,y) ...