More about Relative Line Numbering for Overleaf's publisher:Håkon.
Check details of Relative Line Numbering for Overleaf