I am new to LaTeX and am compiling a document right now using TeXworks. I am trying to create CSV tables into my document right now, and although I succeed in between I must have some small bug in the code which I just cannot spot (trust me I looked for hours).
My code is the following:
\documentclass[9pt]{article}
% Load packages
%************************************************************
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{geometry}
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=0.75in,rmargin=0.75in}
\usepackage{textcomp}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{rotating}
\usepackage{datatool} % Allows importing tables
\usepackage{enumerate} % Allows latin I option
\renewcommand{\tabcolsep}{2pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\DTLsetseparator{,}
\DTLloaddb{tarea}{table_test.csv}
\begin{table}
\caption{Area}
\centering
\DTLdisplaydb{tarea}
\end{table}
\end{document}
Latex gives me the following errors:
Error 1
undefined
34
! Argument of \@dtl@trim has an extra }.
<inserted text>
\par
l.34 \beginstable}
Error 2
undefined
?
LaTeX Warning: Unused global option(s):
[9pt].
Error 3
undefined
?
Package geometry Warning: The marginal notes overrun the paper.
Add 21.7975pt and more to the right margin.

.logoutput) for error 1? What is written before "undefined"? – Werner Apr 24 '12 at 15:52table_test.csvfile. I understand if that you may not want to provide that complete file, but what I would recommend is that you start removing chunks of that file until the error goes away - then you know that the problem was in the last chunk you deleted. Repeat this process until you are able to get thetable_test.csvas small as possible. If the problem is not obvious, you could post that here, and change any confidential text. – Peter Grill Apr 24 '12 at 16:47