Discussion:
[MiKTeX] pdflatex cannot write on file test.log
David Guaspari
2016-11-16 01:42:58 UTC
Permalink
I'm using MikTeX on Windows 10. If, from the context menu for test.tex, I
open test.tex with pdflatex (or with latex), execution blocks with an error
message saying that the program can't write on test.log. If, instead, I
open test.tex with TeXworks and invoke pdflatex (or latex) from there, it
succeeds. This suggests to me that it's not a permissions problem -- or
that, if it is, it's more subtle than I know how to deal with. Grateful for
any suggestions.
--
David Guaspari
111 Stewart Ave. #1-NE
Ithaca NY 14850
h: (607) 273-5856
c: (607) 227-1070
Iceland: +354 6251452 (don't leave a message)
***@gmail.com
https://dguaspari.wordpress.com <http://dguaspari.wordpress.com>
Mark Yagnatinsky
2016-11-16 20:39:31 UTC
Permalink
what happens if you try from a command line?
Post by David Guaspari
I'm using MikTeX on Windows 10. If, from the context menu for test.tex, I
open test.tex with pdflatex (or with latex), execution blocks with an error
message saying that the program can't write on test.log. If, instead, I
open test.tex with TeXworks and invoke pdflatex (or latex) from there, it
succeeds. This suggests to me that it's not a permissions problem -- or
that, if it is, it's more subtle than I know how to deal with. Grateful for
any suggestions.
--
David Guaspari
111 Stewart Ave. #1-NE
Ithaca NY 14850
h: (607) 273-5856
c: (607) 227-1070
Iceland: +354 6251452 (don't leave a message)
https://dguaspari.wordpress.com <http://dguaspari.wordpress.com>
------------------------------------------------------------
------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
David Guaspari
2016-11-16 23:46:52 UTC
Permalink
Good question. It runs from the command line.
Post by Mark Yagnatinsky
what happens if you try from a command line?
Post by David Guaspari
I'm using MikTeX on Windows 10. If, from the context menu for test.tex, I
open test.tex with pdflatex (or with latex), execution blocks with an
error
Post by David Guaspari
message saying that the program can't write on test.log. If, instead, I
open test.tex with TeXworks and invoke pdflatex (or latex) from there, it
succeeds. This suggests to me that it's not a permissions problem -- or
that, if it is, it's more subtle than I know how to deal with. Grateful
for
Post by David Guaspari
any suggestions.
--
David Guaspari
111 Stewart Ave. #1-NE
Ithaca NY 14850
h: (607) 273-5856
c: (607) 227-1070
Iceland: +354 6251452 (don't leave a message)
https://dguaspari.wordpress.com <http://dguaspari.wordpress.com>
------------------------------------------------------------
------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
------------------------------------------------------------
------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
--
David Guaspari
111 Stewart Ave. #1-NE
Ithaca NY 14850
h: (607) 273-5856
c: (607) 227-1070
Iceland: +354 6251452 (don't leave a message)
***@gmail.com
https://dguaspari.wordpress.com <http://dguaspari.wordpress.com>
Mark Yagnatinsky
2016-11-17 05:53:25 UTC
Permalink
Then I think the context menu item is doing some Really Strange. I don't
have a context menu item, so I guess you made it yourself. Maybe check
what it's doing.
Post by David Guaspari
Good question. It runs from the command line.
Post by Mark Yagnatinsky
what happens if you try from a command line?
Post by David Guaspari
I'm using MikTeX on Windows 10. If, from the context menu for
test.tex, I
Post by Mark Yagnatinsky
Post by David Guaspari
open test.tex with pdflatex (or with latex), execution blocks with an
error
Post by David Guaspari
message saying that the program can't write on test.log. If, instead, I
open test.tex with TeXworks and invoke pdflatex (or latex) from there,
it
Post by Mark Yagnatinsky
Post by David Guaspari
succeeds. This suggests to me that it's not a permissions problem -- or
that, if it is, it's more subtle than I know how to deal with. Grateful
for
Post by David Guaspari
any suggestions.
--
David Guaspari
111 Stewart Ave. #1-NE
Ithaca NY 14850
h: (607) 273-5856
c: (607) 227-1070
Iceland: +354 6251452 (don't leave a message)
https://dguaspari.wordpress.com <http://dguaspari.wordpress.com>
------------------------------------------------------------
------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
------------------------------------------------------------
------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
--
David Guaspari
111 Stewart Ave. #1-NE
Ithaca NY 14850
h: (607) 273-5856
c: (607) 227-1070
Iceland: +354 6251452 (don't leave a message)
https://dguaspari.wordpress.com <http://dguaspari.wordpress.com>
------------------------------------------------------------
------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
Ulrike Fischer
2016-11-17 08:31:52 UTC
Permalink
Post by David Guaspari
I'm using MikTeX on Windows 10. If, from the context menu for test.tex, I
open test.tex with pdflatex (or with latex), execution blocks with an error
message saying that the program can't write on test.log. If, instead, I
open test.tex with TeXworks and invoke pdflatex (or latex) from there, it
succeeds. This suggests to me that it's not a permissions problem -- or
that, if it is, it's more subtle than I know how to deal with. Grateful for
any suggestions.
I have absolutly no idea how you (or some other application) added
pdflatex or latex to the context menu but my guess would be that you
are then running something like "pdflatex full-path-to-your-tex"
while beeing in the bin-folder of pdflatex where external files
can't be created (for good reasons).
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
David Guaspari
2016-11-17 11:40:22 UTC
Permalink
I didn't modify the context menu. I simply used the features already
available:

right click > Open with > [browse for a program] > pdflatex.exe

And I did, a suggested, check that from the command line pdflatex.exe runs
without a problem.
Post by Ulrike Fischer
Post by David Guaspari
I'm using MikTeX on Windows 10. If, from the context menu for test.tex, I
open test.tex with pdflatex (or with latex), execution blocks with an
error
Post by David Guaspari
message saying that the program can't write on test.log. If, instead, I
open test.tex with TeXworks and invoke pdflatex (or latex) from there, it
succeeds. This suggests to me that it's not a permissions problem -- or
that, if it is, it's more subtle than I know how to deal with. Grateful
for
Post by David Guaspari
any suggestions.
I have absolutly no idea how you (or some other application) added
pdflatex or latex to the context menu but my guess would be that you
are then running something like "pdflatex full-path-to-your-tex"
while beeing in the bin-folder of pdflatex where external files
can't be created (for good reasons).
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
------------------------------------------------------------
------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
--
David Guaspari
111 Stewart Ave. #1-NE
Ithaca NY 14850
h: (607) 273-5856
c: (607) 227-1070
Iceland: +354 6251452 (don't leave a message)
***@gmail.com
https://dguaspari.wordpress.com <http://dguaspari.wordpress.com>
Klaus Hoeppner
2016-11-17 11:57:49 UTC
Permalink
From my point of view browsing for pdflatex.exe as app to open the document
with is a a perfect case of modifying the context menu.
And Ulrike's explaination is most probably right, that pdflatex is run
within the bin folder with the full path of the tex file as command line
parameter. You may write a batch file that changes the working dir to where
the doc is located.

Bye
Klaus

Am 17.11.2016 12:41 schrieb "David Guaspari" <***@gmail.com>:

I didn't modify the context menu. I simply used the features already
available:

right click > Open with > [browse for a program] > pdflatex.exe

And I did, a suggested, check that from the command line pdflatex.exe runs
without a problem.
Post by David Guaspari
I'm using MikTeX on Windows 10. If, from the context menu for test.tex, I
open test.tex with pdflatex (or with latex), execution blocks with an
error
Post by David Guaspari
message saying that the program can't write on test.log. If, instead, I
open test.tex with TeXworks and invoke pdflatex (or latex) from there, it
succeeds. This suggests to me that it's not a permissions problem -- or
that, if it is, it's more subtle than I know how to deal with. Grateful
for
Post by David Guaspari
any suggestions.
I have absolutly no idea how you (or some other application) added
pdflatex or latex to the context menu but my guess would be that you
are then running something like "pdflatex full-path-to-your-tex"
while beeing in the bin-folder of pdflatex where external files
can't be created (for good reasons).
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
------------------------------------------------------------
------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
--
David Guaspari
111 Stewart Ave. #1-NE
Ithaca NY 14850
h: (607) 273-5856
c: (607) 227-1070
Iceland: +354 6251452 (don't leave a message)
***@gmail.com
https://dguaspari.wordpress.com <http://dguaspari.wordpress.com>
------------------------------------------------------------
------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml

Loading...