1

In org-mode, in a file with a \bibliography line, C-c [ failed. With (setq debug-on-error t), the error message was

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  re-search-forward(nil 10001 t)
  tex-main-file()
  reftex-TeX-master-file()
  reftex-tie-multifile-symbols()
  reftex-access-scan-info(nil)
  reftex-citation()
  funcall-interactively(reftex-citation)
  call-interactively(reftex-citation nil nil)
  command-execute(reftex-citation)

It has worked intermittently before. How to get it working again?

1 Answer 1

1

The system lacked the auctex package. tex-main-file referred to the non-existing file tex-mode.el.

Install auctex to fix this. F.ex. for Ubuntu

sudo apt install auctex

fixed the problem.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.