SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2k stars 362 forks source link

References/citations in multi-file documents not working #269

Open Inequilibrium opened 10 years ago

Inequilibrium commented 10 years ago

I've just started using LaTeXTools in OS X, and I'm still working out how to take advantage of all of the functionality. My document has a root file that includes the bibliography. I've added the "!TEX root" line to the top of each chapter, and it is "working" in the sense that my references appear correctly after compiling.

However, as soon as I do this, the drop-down when I try to type a reference or citation stops appearing. If I try to access it via the keyboard shortcut, I get the error:

"Ref/cite: unrecognized format."

If I get rid of the root file line, the references work, but obviously citations are broken. Not sure if this is a bug or if I'm doing something wrong.

msiniscalchi commented 10 years ago

Which citation command are you using? Currently only the basic \cite{} plus the natbib variants are supported.

Inequilibrium commented 10 years ago

I've tried \cite{}, \citet{} and \citep{}. The point is that nothing is working: I'm also unable to use it with \ref{} or \eqref{}, and using the alternate method of getting the drop-down to appear gives that error.

At the moment, I seem to be stuck choosing between being able to compile from anywhere in the project without things breaking, and being able to use the referencing features. They won't both work at the same time.