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
Conversion Tools ⇒ [Help] Error when import csv file to LaTeX.
-
- Posts: 2
- Joined: Wed Jan 05, 2011 6:06 pm
NEW: TikZ book now 40% off at Amazon.com for a short time.
[Help] Error when import csv file to LaTeX.
There are several problems with both the .tex file and the .csv file. Here are the ones I noticed.
- 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.
- 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.
- 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.)
- 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.
-
- Posts: 2
- Joined: Wed Jan 05, 2011 6:06 pm
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
[Help] Error when import csv file to LaTeX.
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
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10