Text FormattingScript-generated Output vs. manually created Output

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
koszta5
Posts: 7
Joined: Sat Jan 15, 2011 8:28 pm

Script-generated Output vs. manually created Output

Post by koszta5 »

Hi,

I am having a really weird problem - when I run PDFLaTeX within my Perl script the PDF file doesn't get generated properly ...

I run

Code: Select all

pdflatex -output-directory /tmp /tmp/perl.tex
When I run it like that I get this in the log file:

Code: Select all

[1{/usr/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map
Error: pdflatex (file /usr/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map):
 fflush() failed
 ==> Fatal error occurred, the output PDF file is not finished!
Now the funny part is when I run it normaly from the command line with the same .tex file (pdflatex -output-directory /tmp /tmp/perl.tex) I dont get any errors and the PDF file is generated just fine.

What the heck is the problem?! When I run the PDFLaTeX command from any script (Perl, bash...) it doesn't work and gives me the error shown above, but when I run it manually there is no error and it works... Can anybody help? :)

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply