[texhax] prob datatool
Renato Pontefice
renato.pontefice at gmail.com
Mon May 16 10:25:22 CEST 2011
Yes,
Finaly I solved. The prob was the source (.csv) I created it exporting from
libreoffice as CSV, but the datatool did not love it. I had to erase the last
space and replace all the comma (I had to be sure that there were a character
- comma -character)
Thank you
Renato
In data lunedì 16 maggio 2011 08:36:02, Uwe Lueck ha scritto:
> "Renato Pontefice" <renato.pontefice at gmail.com> wrote 26.04.2011 15:36:21:
> > I'm using datatool to made mail merge letter.
> >
> > I don't know why, from my (maybe last, but not sure) last modification,
> > I'm not able to compile and have the letter with address.
> > This is the .tex. I also use a .csv (as a data base) and two .png as
> > image.
> >
> > the letter text works well, but I have no more one addr.
> >
> > Can some one help me? I could send .csv in private mesg (I don't want to
> > fill the mail box of any one :-) )
>
> Has this been solved? Have you asked the package author,
> Nicola Talbot?
>
> All the best,
>
> Uwe.
>
> >-----------------------
> >\documentclass[]{letteracdp}
> >\usepackage[italian]{babel}
> >\usepackage{graphicx}
> >\usepackage{fancyhdr}
> >\usepackage{datatool}
> >
> >\DTLloaddb{indirizzi}{/home/kde/Dropbox/edile_150/xxx_yyy.csv}
> >
> >\pagestyle{fancy}
> >
> >\fancypagestyle{firstpage}{ % note opening bracket
> >
> > \fancyhf{} %<<<<----- clear all fields
> > \fancyhead[L]{\includegraphics[width=.2\columnwidth]{logo}\quad }
> > \fancyfoot[C]{\tiny Via xxxx 1/Q zzz yyyy (AR)\\C.F. qqqq\\www.xyz.it -
> >
> >presidente at xyz.it
> >\\Associazione confederata \includegraphics[width=.1\columnwidth]{logo2}}
> >} % closing bracket
> >
> >\fancyhf{}
> >
> >\fancyhead[R]{ \includegraphics[width=.2\columnwidth]{logo}\quad }
> >\fancyfoot[C] {\hrulefill}
> >\renewcommand{\headrulewidth}{0pt}
> >\renewcommand{\footrulewidth}{0pt}
> >\renewcommand{\familydefault}{\sfdefault}
> >
> >%\address{Sign. Topolino,\\
> >
> > % via Astuti, 34 \\
> > % Topolinia}
> >
> >\signature{Topolino}
> >
> >\begin{document}
> >
> >\DTLforeach*{indirizzi}{%
> >\cognome=cognome,\nome=nome,
> >\via=via,\civico=civico,
> >\localita=localita,\cap=cap,\provincia=provincia,}{%
> >\begin{letter}{\nome\ \cognome\\
> >\via, \civico\\
> >\localita\\
> >\cap, \provincia}
> >
> >%\DTLdisplaydb{indirizzi}
> >
> >%{Sign. Pippo,\\
> >
> > % via Distratti, 77 \\
> > % Topolinia}[dolor, nec molestie justo]
> >
> >\opening{Buongiorno,}
> >
> >%\title{consectetur}
> >
> >\thispagestyle{firstpage}
> >
> >pellentesque augue et mauris ultrices a consectetur risus lobortis.
> >Suspendisse ut tincidunt nulla. Nunc elementum consectetur diam, non
> >laoreet nunc aliquam vitae. Vivamus ut enim eget orci tincidunt feugiat
> >vel nec ipsum. Integer in mattis ante. Fusce sit amet sapien lorem, a
> >eleifend dui. Curabitur luctus rutrum porttitor. Suspendisse potenti.
> >Curabitur nisl nisi, fermentum ac venenatis nec, consectetur sit amet
> >lectus. Aliquam varius elit at arcu volutpat quis rhoncus neque pretium.
> >Sed facilisis nisi ac risus consectetur vulputate accumsan dolor
> >dignissim. Suspendisse tempus velit eu massa tincidunt a malesuada urna
> >semper.
> >
> >Donec et metus dolor, nec molestie justo. Duis ornare leo vitae justo
> >auctor tempus elementum augue rhoncus. Proin in nisi et leo pretium
> >eleifend. In posuere pulvinar adipiscing. Ut varius arcu nec enim dapibus
> >sed gravida dui dapibus. Quisque eu ante nec felis feugiat rhoncus.
> >Phasellus eget tortor et lectus tempus vestibulum. Nunc neque lacus,
> >pulvinar at adipiscing ac, egestas sit amet leo. Sed gravida erat sit
> >amet est luctus sed tempus nisl eleifend. Phasellus eget ipsum felis, id
> >ultricies risus. Proin eu nulla sed massa condimentum scelerisque semper
> >nec metus. Nullam mollis ultrices justo, a pellentesque elit imperdiet
> >eu. Pellentesque odio tellus, iaculis et consequat sit amet, consequat in
> >tortor. Proin et libero sapien, a cursus massa.
> >
> >Vestibulum turpis lorem, mattis sed volutpat
> >
> >%\begin{itemize}
> >
> > % \item consequat a enim.
> > %\item us ullamcorper consectetur.
> > %\item Nam cursus ulla
> >
> >%\end{itemize}
> >
> >iaculis, consequat a enim. Nam cursus ullamcorper consectetur. Nullam at
> >augue nec lectus pulvinar mattis et ac risus. Donec euismod dapibus
> >sapien, ut pulvinar nisi pellentesque vel. Curabitur neque enim, posuere
> >sit amet cursus eget, venenatis quis turpis. Aliquam ut eleifend ante. Ut
> >imperdiet vestibulum libero, non tempor arcu volutpat dapibus. Aenean nec
> >imperdiet eros. In in pulvinar urna. Vivamus nec pharetra lectus. Morbi
> >ut scelerisque neque. Maecenas cursus volutpat purus, eget aliquet felis
> >tempus consectetur. Vivamus suscipit justo nec metus commodo aliquet.
> >
> >Duis tempor fringilla augue, ac pharetra risus viverra a. Sed volutpat
> >venenatis metus at sagittis. Nam venenatis commodo elementum. Fusce quis
> >leo justo. Etiam lacus justo, volutpat et ullamcorper et, bibendum nec
> >magna. Sed viverra erat id elit aliquam ut feugiat lorem interdum. Nullam
> >venenatis vulputate nisl et sagittis. Nulla non velit nunc. Aliquam diam
> >erat, auctor in molestie et, imperdiet ut purus. Mauris dignissim quam
> >vel sem cursus mattis. Quisque at tortor tempor urna pharetra scelerisque
> >feugiat vitae libero. Duis et est elit. Vestibulum eget ipsum eu augue
> >viverra fringilla ac a metus. In vel tortor lectus. Ut tempor ultricies
> >libero, et rutrum quam suscipit ut. Maecenas et mauris mauris, vel
> >commodo justo. Cum sociis natoque penatibus et magnis dis parturient
> >montes, nascetur ridiculus mus.
> >
> >Suspendisse eros dolor, facilisis a rhoncus sit amet.
> >
> >congue at turpis. Praesent dui tortor, elementum vitae blandit non,
> >adipiscing eu felis. Integer gravida, leo vitae fringilla egestas, felis
> >libero viverra arcu, volutpat malesuada lacus velit at mauris. Curabitur
> >commodo ipsum vel ipsum dictum lacinia. Nulla facilisi. In pulvinar
> >pulvinar ante, euismod imperdiet turpis sagittis in. Etiam in lacus
> >tellus, et suscipit ante. Morbi vel dui vel neque interdum rhoncus. Fusce
> >tristique neque congue nulla lobortis porta. Duis eu nisi ipsum. Ut
> >varius gravida mi, eu pellentesque risus blandit ut. Vestibulum ante
> >ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
> >Mauris scelerisque lorem elit, ac sodales urna. Phasellus sed metus
> >libero, ac pulvinar dolor. Aenean quis diam a neque vestibulum commodo.
> >
> >\closing{Saluti,}
> >
> >\PS
> >Qui ci va un eventuale post scriptum.
> >
> >\cc{Commissario Basettoni,\\
> >
> > via Grassi, 100\\
> > Topolinia \\[.5\baselineskip]
> > Sign.na Minny\\
> > via delle Rose, 77\\
> > Topolinia}
> >
> >\begin{enclosures}
> >\item primo allegato;
> >\item secondo allegato.
> >\end{enclosures}
> >
> >\end{letter}
> >}
> >
> >\end{document}
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
More information about the texhax
mailing list