No line numbers in scrivenings?

Any particular reason why View / Text Editing / Show Line Numbers doesn’t show in scrivenings ?

Is it supposed to be like that ?

image
No mention (that I could find) in the manual.

How is it for the Mac version ?
. . . . . . . . . . . . . .

There also seems to be a bug with it in composition mode (single document) :
image

You only get a bit of it (top left corner) until you change the paper width a little.

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.)
image

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.

2 Likes

Did I miss something ?
Is there currently a way to compile them ?

The method you already described above is how you would number paragraphs.

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.

In compile, it is in the “styles” tab of your compile format.
You have to add the styles for which you want your paragraphs to be numbered,

and :
image

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 :

  1. carriage return → return<$n>
  2. return<$n>return<$n>return → return-return-return (without the - )
  3. 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.
Inked2022-03-15 10_51_55-Compile Format Designer_LI
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.

I’d rather use styles :wink:

Thanks for all the details, now do I have to create a paragraph specific style or would using the body (assume body of text) work the same way?

Any styles, as long as you add the <$n> as paragraph prefix (styles tab) to all the styles used in the editor.

But if you meant using “no style”, no, read my previous post again…

Yes.
Or try the second method I proposed.