LaTeX forum ⇒ GeneralLatex unable to generate pdf

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
MjK
Posts: 68
Joined: Fri Jan 28, 2022 6:09 pm

Latex unable to generate pdf

Postby MjK » Wed Nov 02, 2022 5:52 pm

Seems¹ your CSV file does not contain North America but North\nAmerica and North\America, and not Saudi Arabia but Saudi\nArabia. All three: \nAmerica, \America, and \nArabia would be macros in TeX. And as all three are unknown, you get error messages.

Best would be to fix the CSV file generation, not to add backslash sequences. However, you could (but I would not recommend to do so) define the commands added by mistakes in the CSV file generation, e.g.
\newcommand*{\nAmerica}{\linebreak America}
\newcommand*{\America}{\ America}
\newcommand*{\nArabia}{\linebreak Arabia}


However, if the CSV file generation also generates already existing TeX macros like \begin or other special characters, the LaTeX run can still fail. So I would really recommend to fix the CSV file generation.

___
1 I cannot say this definitely, because you are still keeping the CSV file from us, despite the fact, I've already asked for an example with the output.csv, that is part of the problem. Unfortunately, it is really hard to get valid information from you.
My main topics are KOMA-Script and other questions related to my packages. If I reply to any other topic or if you've not yet added a minimal working example, please do not expect any further response. And please don't forget to tag examples as code.

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
ls440
Posts: 8
Joined: Thu Oct 27, 2022 2:55 pm

Latex unable to generate pdf

Postby ls440 » Wed Nov 02, 2022 9:02 pm

Thanks, Right well I saw the same in the csv file. here is the example of csv file. So because of this it get stuck or ?
Last edited by ls440 on Thu Nov 03, 2022 10:20 am, edited 1 time in total.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9906
Joined: Mon Mar 10, 2008 9:44 pm

Latex unable to generate pdf

Postby Stefan Kottwitz » Wed Nov 02, 2022 9:13 pm

You can post the .csv file here as attachment if you like, perhaps it's good for testing.

Stefan
LaTeX.org admin

User avatar
MjK
Posts: 68
Joined: Fri Jan 28, 2022 6:09 pm

Latex unable to generate pdf

Postby MjK » Thu Nov 03, 2022 9:42 am

ls440 wrote:here is the example of csv file

An image is not a csv file. You can always add csv files like LaTeX code (most likely as filecontents environment of a Infominimal working example like I've already done above; please read the linked page and all linked pages of it completely and try to understand them) or (as last resort only!) as attatchment, but never ever as image! However, you can see the data mistakes already in the first column of the image. Fix them!
My main topics are KOMA-Script and other questions related to my packages. If I reply to any other topic or if you've not yet added a minimal working example, please do not expect any further response. And please don't forget to tag examples as code.

ls440
Posts: 8
Joined: Thu Oct 27, 2022 2:55 pm

Latex unable to generate pdf

Postby ls440 » Mon Nov 21, 2022 2:58 pm

Hi I am not getting margins generated properly what might be the issue.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9906
Joined: Mon Mar 10, 2008 9:44 pm

Latex unable to generate pdf

Postby Stefan Kottwitz » Sun Nov 27, 2022 12:00 pm

ls440 wrote:Hi I am not getting margins generated properly what might be the issue.


Use the geometry package to adjust the margins.

By the way, for a new issue please open a new topic (thread). It's hard to notice that you added to the topic "unable to generate PDF" an unrelated question about margins (I read here every day, and noticed there's one more question here after the thread on page 2). We have space here for a million topics, and a new topic is much better to notice and you may get more answers.

Stefan
LaTeX.org admin


Return to “General”

Who is online

Users browsing this forum: No registered users and 8 guests