SublimeText / LaTeXTools

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

Last Update: Cannot compile and having problems with \ref and \cite #1072

Open Windvast opened 7 years ago

Windvast commented 7 years ago

I have been using LaTexTools for months and everything went well until it updated automatically to v.3.13.5.

Problems are:

  1. There is no new pdf file after I press Ctrl + B, although there is "[Done!]" with warnings in the Output panel.
  2. When I type \cite{, a warning window pops out, saying "no bib files found". But it is possible to cite in the main tex file.
  3. There is no table of contents, lists of figures and tables, nor references.
r-stein commented 7 years ago
Windvast commented 7 years ago

r-stein,thanks for your reply. Yes I've restarted ST and computer. And I'm quite sure it LaTex(the first opinion).

r-stein commented 7 years ago

Does this occur on every latex document? 1 and 3 are a problems with texify/latexmk (we didn't change the builder), you can also try to compile it from the command line.

Windvast commented 7 years ago

2 occurs on every latex file while 1 and 3 occur only on one document that I'm editing currently. However, ShareLatex.com works fine with my current document, the compilation and final pdf are good.

r-stein commented 7 years ago

Open the .log file and take a look at the errors or start a cmd/bash in the folder an run texify document.tex (windows) or latexmk document.tex (linux/osx). We don't show all errors and all results in the output panel, because it has no strict format for that and we just try to parse them as good was we can. If something works with ShareLatex.com, but not with texify/latexmk this is not related to LaTeXTools, but to the underlaying tex distro.

Windvast commented 7 years ago

Compiling from the command line(pdflatex filename.tex) solved parts of problems, now it really compiles and creates TOC. But still, "LaTeX Warning: There were undefined references." Bibliography doesn't show properly. And it's impossible to double-click in SumatraPDF to jump back to tex files.

ig0774 commented 7 years ago

The compilation issues might be resolved (in ST) by deleting the temporary files (C-l,backspace or LaTeXTools: Delete temporary files from the command palette). Otherwise, the warnings displayed in the output panel might be helpful to indicate what the issue is.

ig0774 commented 7 years ago

Re 2: How are you referencing the main file in ST? I.e. are you using %!TEX root = ... at the start of your included file or using the TEXroot setting in a project file?

Windvast commented 7 years ago

ig0774, thanks for your reply. I tried to clean temp files, it didn't help. I add %! Tex root = ../main.tex at the start of subchapter files.

My question is that, is this because of LatexTools or ST or MikTex? Or is it my misoperation? I didn't change any settings(there is no need to do so) and it was the same document. But it failed to compile and do citations now.