Only works in single document mode. I don’t have my Mac with me to check there, but assume it is the same.
In composition mode you have to adjust the paper width. The line numbers are not a part of the paper itself, so you need to adjust the paper width to see them. Most people probably don’t use them - I tried but they are of limited value. I can see where the line numbers are a must for legal documents, but they are designed to be printed in the legal document with specific formatting.
Well, about paper width, that screenshot I posted is taken right after switching composition mode on.
I know that line numbering can’t be compiled, but here is how and why I use it :
I have all my paragraphs <$n>ed in my printout compile format. ( {<$n>} as a prefix.)
So, after editing on paper, that gives me a reference paper vs screen, so I don’t have to look that much for where my longhand edits go.
(If you systematically <$n> all your paragraphs in the compile format, the numbers match.)
The feature was mainly designed for poets to count lines. I don’t think it would be of much use for legal work, as what I’ve seen of that is each individual line being counted, wherever soft-wrapping may cause multiple lines. This counts hard lines, or what we think of as paragraphs most often—and so it can be useful as a proofing tool as well.
As for its limited availability, that’s just a technical limitation, nothing intentional. I’ve added a note to mention Scrivenings as well as Page View, in the Windows manual.
Never knew that but interesting that line numbers shows up in composition mode but if open up at 100% paper width do not see in windows version till adjust size to less than 100% and if reexpand stays visible. Also I am to see line number in page view in the editor window in windows.
Would be helpful to see line numbering or paragraph numbering in scrivenings view.
Vincent, I tried to find paragraph numbering option in compile and could not find, can you tell me where that setting is. Thanks.
The { } is not necessary. I just have it there for visual output.
You could put <$n>-space-space, or <$n> dash dash, anything really. Putting just <$n> compiles as :
26I woke up early…
This way I get {26}I woke up early.
(There is actually an extra space after, that is invisible in my screenshot.)
So I actually get
{26} I woke up early…
P.S. The way I work, at this stage every paragraph is styled. Not sure there is a way to achieve the same result, while matching line numbers, not using styles.
→ I guess one could replace (return) with (return<$n>). But if this works somewhat, it’ll number empty lines, therefor throwing off the numbering. It won’t match what is on screen anymore.
One way that might be fixed (but I haven’t tested it) :
Replacements :
carriage return → return<$n>
return<$n>return<$n>return → return-return-return (without the - )
return<$n>return → return-return (without the - )
[EDIT]…But then again, you’d end up with paragraph 1 unnumbered, and paragraph 2 as “1”.
Meaning that you would have to also add an extra return<$n> as a section prefix (post title) in the Section Layouts tab.
And if the replacement stage messes it up (adding a one too many <$n> – numbering 1st paragraph twice), remove the <$n> (leaving only the carriage return) in the section’s prefix.