LaTeX forum ⇒ General ⇒ Latex unable to generate pdf

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

Latex unable to generate pdf

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.

LaTeXguide.org • LaTeX-Cookbook.net

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

Latex unable to generate pdf

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.

Stefan Kottwitz
Posts: 9906
Joined: Mon Mar 10, 2008 9:44 pm

Latex unable to generate pdf

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

Stefan

MjK
Posts: 67
Joined: Fri Jan 28, 2022 6:09 pm

Latex unable to generate pdf

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 minimal 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

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

Stefan Kottwitz
Posts: 9906
Joined: Mon Mar 10, 2008 9:44 pm

Latex unable to generate pdf

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