Briar: ({S}ome of )the numbers are created by Scrivener during Compile, as shown in the example.
Everything–that is, the entire project–is in one text file. That project file was created in Scrivener by importing a text. Starting with Word=Save As .rtf; then, in Scrivener, File=Import. Everything is in one text file.
This is somewhat of an unusual project in that the imported text file did not need much work after importing into Scrivener. It’s ready to go. Thus, there is no need to start with sections, extra folders, etc. If I’m starting from scratch I might add these either as I go along or at the beginning of the project.
SarsenLintel: thank you for answering. There are no Replacements called during Compile.
Code such as <$n> does not appear in the body of the text. However, I don’t know how to turn on hidden characters in Scrivener. There is nothing along the lines of “\chapter” or “\section” as in LaTeX (these would add numbers to a chapter and section, respectively. The command would not print.
reepicheep: Thank you too. The problem could well originate with the Word document and however Scrivener imports such a document after its conversion to rtf. The numbering:
–in the Word document is correct.
–in the rtf document is correct.
–in the pre-Compile Scrivener document is correct
–in the post-Compile Scrivener output document is incorrect.
This suggests that the problem is with Compile. In fact, I can’t replicate the problem except by Compiling.
Scrivener is a superlative first-draft document creation tool. Its Compile function is very powerful and so Scrivener can be used as a document output tool as well, generating both ebooks and pdf’s (a pdf can be an ebook as well, but most people think pdf’s have to be either A4 or letter size. They don’t.).
If there is something in the Scrivener Import function that is creating this anomaly, I have no way of figuring that out. But this is not a complex document: there are no tables or figures. There aren’t even any numbered or enumerated lists. The section headings came across as bold. The Table of Contents came across as blue links. By “came across” I mean, “after import.”
Is this a bug in Scrivener? Do I get a $2.38 check, like the famous checks from Donald Knuth?