0

I have used reftex-toc for a while without problem, but a while back it started to show the wrong numbering in the toc-buffer. I don't think I have changed any settings. The latex-output is not affected, so it seems to only be a problem in the parsing of the buffer.

incorrect numbering by reftex-toc

tex-clean, refreshing the buffer or restart of Emacs does not help.

  • Does the problem persist when you load Emacs without your init file? ie., emacs -Q? – Tyler Dec 18 '18 at 14:22
  • @Tyler No, it doesn't. – trmdttr Dec 18 '18 at 14:40
  • 2
    That usually means there's something in your config causing the problem. Some pointers on debugging it are here: emacs.stackexchange.com/questions/28429/… – Tyler Dec 18 '18 at 14:43
  • @Tyler I seem to have found the problem. I had lots of section commands commented out in the file, and reftex-toc must have picked these up and parsed them anyway. – trmdttr Dec 19 '18 at 9:08
0

I had lots of section commands commented out in the file, and reftex-toc picked these up and parsed them anyway.

Not sure if this is a bug, but to remove commented section commands solved the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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