5

I was wondering what are the forbidden characters in file name using XeLaTeX.

I know that the forbidden characters for Windows files are \ / ? : * " > < |

Also, I have found another character that is forbidden by XeLaTeX which is the apostrophe (') because it generated an error.

Anyone knows if there's a list of forbidden characters?

EDIT: I think my problem might be when I call the XeLaTeX in command line

" -output-directory \"C:/Pdf\" \"C:/Pdf/Doe_John_BURCUS Gregoire (F) - 121217.tex\""

MiKTeX doesn't recognize the file name. If I delete the parentheses, MiKTeX is able to generate the pdf.

  • 5
    may be related Naming LaTeX files: best practice? – texenthusiast Dec 20 '12 at 15:52
  • 1
    Some characters may be disallowed by the OS; but, for instance, with appropriate quoting, I'm able to input files with all those characters in their name (not on Windows, I admit). – egreg Dec 20 '12 at 16:16
  • thanks for your responses, i have edited my question, maybe the source of the problem is my command line – Paul Dec 20 '12 at 16:47
  • 3
    I don't really know about Windows, but in general it's not a good idea to use file names with spaces in TeX; avoiding special characters is also good practice. – egreg Dec 20 '12 at 16:51
  • 1
    Though I’m still convinced you used the " not correctly, I see now, that there is really a bug: The xelatex call strips the parentheses, so it will be searched for another file. – And you are lucky, if this not exists! – Speravir Dec 21 '12 at 0:03