1

I noticed when my .tex file names contain spaces, that TeXworks (on Windows) is having issues when I try to typeset the document.

Even putting the $fullname argument in quotes (like this "$fullname") doesn't seem to work.

For example when using the file name Spaces in file name.tex and my custom latexmk tool (chain):

I get this output:

Latexmk: This is Latexmk, John Collins, 19 Jan. 2017, version: 4.52c.

------------
Latexmk: Could not find file [Spaces].
-- Use the -f option to force complete processing.

Weirdly enough using the default pdfLaTeX tool (chain) works.

Note: No difference whether I put $fullname in quotes or not

3
  • 1
    Welcome to TeX.SX! Spaces are causing many problems.
    – Bobyandbob
    Commented Oct 25, 2017 at 19:10
  • @Bobyandbob yeah, I've noticed. Using latexmk from the command line works fine though.
    – BrainStone
    Commented Oct 25, 2017 at 19:33
  • 1
    Maybe an issue on their bug tracker would be appropriate?
    – BrainStone
    Commented Oct 29, 2017 at 18:55

1 Answer 1

1

I had a similar problem, where I wrote a batch file which I want to execute from TeXworks, with $fullname as a parameter. the batchfile looked like this:

someprogram "%1"

yet the program failed to find the file when it contains spaces. I solved the problem by using two pairs of quotation marks:

someprogram ""%1""

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .