Skip to main content
3 of 4
edited tags
moewe
  • 185.6k
  • 23
  • 296
  • 895

Include a file path (.bib) containing spaces & special characters

I have this path "~/Library/Mobile Documents/com~apple~CloudDocs/Sync/160329_3DPP.bib". I cannot change that since the .bib file is synced through iCloud and updated frequently. I read that it is advised to use filename without spaces & special characters in latex. Isn't there any workaround yet (including packages that might handle this)?

I found some old & related topics that cannot provide a working solution, such as -

MRE:

. file

\documentclass[11pt]{article} % use "amsart" instead of "article" for AMSLaTeX format %\geometry{a4paper} % ... or a4paper or a5paper or letterpaper or... \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent \usepackage[sort&compress]{natbib} \usepackage[sectionbib]{chapterbib}%bibliography after each chapter \usepackage{hyperref} \title{Title} \author{massisenergy} %\date{} % Activate to display a given date or no date \begin{document} Lorem Ipsum Odor \cite{2020FutomaThe-myth} \bibliographystyle{unsrt} \bibliography{/Users/massisenergy/Library/Mobile Documents/com~apple~CloudDocs/Sync/160329_3DPP.bib} 
  1. After running

. . . (/usr/local/texlive/2023/texmf-dist/tex/latex/base/ts1cmr.fd)

Package chapterbib Warning: The sectionbib option changes "\section *" to "\sec tion *" in \thebibliography on input line 285. (./2023_RS_AI.out) (./2023_RS_AI.out) [1] (./2023_RS_AI.bbl

Package natbib Warning: Empty `thebibliography' environment on input line 3. ) [2] (./2023_RS_AI.aux) ) Output written on 2023_RS_AI.pdf (2 pages). SyncTeX written on 2023_RS_AI.synctex.gz. Transcript written on 2023_RS_AI.log.

  1. After doing running

This is BibTeX, Version 0.99d (TeX Live 2023) The top-level auxiliary file: 2023_RS_AI.aux The style file: unsrt.bst White space in argument---line 18 of file 2023_RS_AI.aux : \bibdata{/Users/massisenergy/Library/Mobile : Documents/com\protect \unhbox \voidb@x \protect \penalty @M \ {}apple\protect \unhbox \voidb@x \protect \penalty @M \ {}CloudDocs/Sync/160329_3DPP.bib} I'm skipping whatever remains of this command I found no database files---while reading file 2023_RS_AI.aux Warning--I didn't find a database entry for "2020FutomaThe-myth" (There were 2 error messages)