9

I have a .bib file called "A B C.bib" which is assigned to "A B C.tex". When I run .tex file and then .bib file I get the following error:

 White space in argument---line 18 of file A B C.aux
 : \bibdata{'A
 :             B C'}
I'm skipping whatever remains of this command
Naji
  • 1,505
  • 3
    I don't think BibTeX supports files with spaces in their names. The control about spaces in the file name is built in BibTeX. – egreg May 05 '13 at 15:36
  • @egreg Sorry but I didn't understand your response. What do you mean that control about spaces is built in BibTeX?? – Naji May 05 '13 at 15:40
  • What should I do?
  • – Naji May 05 '13 at 15:42
  • That error message is issued by BibTeX, which doesn't accept file names with a space as legal .bib files. What can you do? Rename your .bib file omitting the spaces. – egreg May 05 '13 at 15:43
  • Then bibTeX looks for the .aux file with the same name as .bib which means I have to change the name of .tex file as well! – Naji May 05 '13 at 15:45
  • 1
    BibTeX inputs the .aux file you tell it to, which usually isn't the same name as the .bib file. If your TeX file is called naji.tex the .bib file can be anything, as long as it hasn't spaces in its name. – egreg May 05 '13 at 15:47
  • I didn't know that. My .bib files has only reference information. Can I ask you what is the command to change the default which looks for .aux file with the same name? – Naji May 05 '13 at 15:49
  • This looks like a duplicate of http://tex.stackexchange.com/q/102258/15925 – Andrew Swann May 05 '13 at 16:34