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 -
- How to include graphics with spaces in their path?
- How to include graphics with spaces in their path?
MRE:
.tex 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} - After running xelatex
. . . (/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.
- After doing running bibtex
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)