简体   繁体   English

Latex-Bibtex / BibLatex-如何在路径中包含空格的文件?

[英]Latex - Bibtex/BibLatex - How can I include a file with space in the path?

I am using Mac and 我正在使用Mac和

\usepackage{natbib}

It seems that the space in the path caused problems, ie Box Sync. 路径中的空间似乎引起了问题,即Box Sync。

\bibliography{/Users/c082213/Box Sync/AA_My_Papers/MyStats.bib}

I have tried to put them in double "", and it doesn't work on Mac. 我试图将它们放在双“”中,但在Mac上不起作用。 Is there anyway that we can fix this? 无论如何,我们可以解决这个问题吗?

Many thanks! 非常感谢!

one solution is to use a relative path. 一种解决方案是使用相对路径。 If the .bib and the .tex file are in the same folder you can just write: 如果.bib和.tex文件位于同一文件夹中,则可以编写:

\bibliography{MyStats}

On the other hand, there are many other possible solutions to handle the problem with with spaces in the path. 另一方面,还有许多其他可能的解决方案来解决路径中存在空格的问题。 My suggestion is: avoid it to name folders or files with spaces. 我的建议是:避免使用带有空格的文件夹或文件命名。 It will produce problems for some reasons. 由于某些原因,它将产生问题。

我在Box上也遇到了同样的问题,它是默认使用的空格,所以我创建了一个没有空格的软链接: ln -s "Box Sync" Boxsync然后,我可以像往常一样使用书目命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM