MiKTeX and proTeXtConfiguration problem. Miktex 2.9. openout_any parameter

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
medved7
Posts: 2
Joined: Mon Apr 20, 2015 8:31 am

Configuration problem. Miktex 2.9. openout_any parameter

Post by medved7 »

I have a tex script that creates a .bat file while translating a latex file with MikTex 2.9 x64. I get the error "Can't write on file ....bat". (The same script works with Miktex 2.4 without any questions.)

It seems that the problem is due to the "openout_any" parameter. But neither setting openout_any Windows environment variable to "a", nor adding line "openout_any=a" to miktex\config\texmf-defaults.ini file helps.

What am I to do?
Last edited by medved7 on Mon Apr 20, 2015 2:00 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.

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

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Configuration problem. Miktex 2.9. openout_any parameter

Post by Stefan Kottwitz »

Wecome to the forum!

Perhaps post a Infominimal working example, so we can test it on our MiKTeX installation, or with TeX Live.

Stefan
LaTeX.org admin
medved7
Posts: 2
Joined: Mon Apr 20, 2015 8:31 am

Re: Configuration problem. Miktex 2.9. openout_any parameter

Post by medved7 »

Thank you for your reply. But I have found the solution to the problem.
http://tex.stackexchange.com/a/2214
For Miktex one must use MIKTEX_ALLOWUNSAFEOUTPUTFILES=1 environment variable. Standart openout_any does not work.
Post Reply