GeneralTexStudio Cant create valid pdfs.

LaTeX specific issues not fitting into one of the other forums of this category.
pufik
Posts: 10
Joined: Tue Jun 06, 2023 12:15 pm

TexStudio Cant create valid pdfs.

Post by pufik »

Hi, I have recently started using latex to write my math documents. When I try to save the document, it saves it as a pdf, but when I try to open it I get this message. "does not look like a valid pdf document.. " although texstudio created it, when I try to compile latex i get this weird popup "Could not start Recompile Bibliography:PdfLaTeX:
pdflatex -synctex=1 -interaction=nonstopmode "nierówności".tex." three times. I am on mac, any help would be greatly appreciated!
Attachments
texput.log
(779 Bytes) Downloaded 183 times
Last edited by pufik on Tue Jun 06, 2023 2:24 pm, edited 1 time in total.

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
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

TexStudio Cant create valid pdfs.

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

Can you post the .log file here, as attachment to a post? The "Attachments" link is below the text edit field, when you write a post.

Thanks!

Stefan
LaTeX.org admin
pufik
Posts: 10
Joined: Tue Jun 06, 2023 12:15 pm

TexStudio Cant create valid pdfs.

Post by pufik »

Hi, thank you for the reply. I have attached the file to the post:)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

TexStudio Cant create valid pdfs.

Post by Stefan Kottwitz »

That's a pretty short log, there's an error (that I don't see) and no PDF is produced, so you cannot open it (or it's an older damaged PDF).

Code: Select all

! Emergency stop.
<*> nierówności.tex
                       
*** (job aborted, file error in nonstop mode)
...
!  ==> Fatal error occurred, no output PDF file produced!
Can you post a reduced copy of your document here? Without your text content, small enough but producing that error. If it's complete enough, we should be able to see the cause.

Stefan
LaTeX.org admin
pufik
Posts: 10
Joined: Tue Jun 06, 2023 12:15 pm

TexStudio Cant create valid pdfs.

Post by pufik »

Um the thing is this happens for all documents, new and old. For example even this.

Code: Select all

\documentclass{article}
\begin{document}
Hi!
\end{document}
Last edited by Stefan Kottwitz on Tue Jun 06, 2023 3:06 pm, edited 1 time in total.
Reason: code marked
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

TexStudio Cant create valid pdfs.

Post by Stefan Kottwitz »

There are special characters in the file name, can you test with simple ASCII characters in a file name?

Stefan
LaTeX.org admin
pufik
Posts: 10
Joined: Tue Jun 06, 2023 12:15 pm

TexStudio Cant create valid pdfs.

Post by pufik »

I tried that, making the name "test" still creates a corrupted pdf.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

TexStudio Cant create valid pdfs.

Post by Stefan Kottwitz »

What happens if you run it at the command prompt (terminal, cmd)? What is displayed when you run the command "pdflatex test"? Because, from the TeXbook:
TeX makes an "emergency stop" if it needs input from the terminal; this happens when a necessary file cannot be opened, or when no \end command was found in the input document.
Stefan
LaTeX.org admin
pufik
Posts: 10
Joined: Tue Jun 06, 2023 12:15 pm

TexStudio Cant create valid pdfs.

Post by pufik »

Could you please specify what I should run? In my tryings to make latex run, I decided to install vs code, and run it there. I get, I think the same weird error.
Attachments
Screenshot 2023-06-06 at 15.26.05.png
Screenshot 2023-06-06 at 15.26.05.png (28.18 KiB) Viewed 3542 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

TexStudio Cant create valid pdfs.

Post by Stefan Kottwitz »

Do you have an idea why a file called "com" is requested, from your own documents? That's not a part of LaTeX. Something in your installation is an issue. As it can be caused by packages (modified or old) in the project folder, can you try compiling a document in an otherwise empty, other folder?

Stefan
LaTeX.org admin
Post Reply