Conversion Tools[Help] Error when import csv file to LaTeX.

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
Post Reply
GustoErvas
Posts: 2
Joined: Wed Jan 05, 2011 6:06 pm

[Help] Error when import csv file to LaTeX.

Post by GustoErvas »

i have a big problem, i didn't understand why my code don't load incritos.csv file. but if i use listas-participantes.csv file,and change some things ,he work perfectly.

i'm sorry another error of language.

if anyone can help me,the TEX file is here.

thanks
crachas-exemplo1.zip
(28.9 KiB) Downloaded 353 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

[Help] Error when import csv file to LaTeX.

Post by frabjous »

There are several problems with both the .tex file and the .csv file. Here are the ones I noticed.
  1. inscritos.csv has 12 commas in its first line -- the labels, but most of the entries have 13 commas per line; hence, one of the columns of the table does not have a label, and this causes problems.
  2. inscritos.csv uses characters like \ and _ which are interpreted in a special way by TeX/LaTeX without escaping them. For example, there are many instances of things such as "Procura projecto/disserta\xc3\xa7\xc3\xa3o de mestrado". This will return errors since LaTeX is interpreting \xc \xa, etc., as names of LaTeX commands which do not exist. You may need to change each "\" in the file to "{\textbackslash}" or similar.
  3. cracha-exemplo.tex uses a \begin{letter} and \end{letter} environment, but the document class does not define any such thing. (The example from the csvtools documentation is obviously designed for use with a letter-based document class, as it mentions in a footnote.)
  4. You cannot use the command \insertfiliacao-empresa -- command names cannot have hyphens in them like this. If you want "filiacao-empresa" as the name of one of your fields, you need to use \insertbyname{filiacao-empresa} instead, as explained on page 3 of the csvtools documentation.
There may be other problems too. Those are just the ones I noticed. I don't really understand what's going on with the minipage, for example; the minipage seems to be the same size as the actual page!
GustoErvas
Posts: 2
Joined: Wed Jan 05, 2011 6:06 pm

Re: [Help] Error when import csv file to LaTeX.

Post by GustoErvas »

thanks :D
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

[Help] Error when import csv file to LaTeX.

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
Post Reply