The Lyx RevTeX document seems to have a problem correctly compiling the table of contents (TOC) when it contains more entries. See the failed spacing on the left in the image below. failed TOC

This is a known problem, see here, which arises due to the need for RevTeX to compile 3 times according to the discussion there.

You have to compile several (three) times, without deleting .toc or .aux file.

At the first time, the toc is created. In the second run, the toc is displayed, but not yet all spaces for numbers reserved since they are now calculated and written to .toc or .aux, at the third time all is printed with correct placement and spacing.

How can we tell Lyx (pdflatex) to either compile this 3 times or maybe we can add the correct spacing in the preamble somehow?

I have been looking at Lyx>Preferences>File Handling>Converters and File Formats, but can't seem to figure it out.

I am using document class RevTex 4.1

Your Answer

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

Browse other questions tagged or ask your own question.