I need to write a formal document, with numbered lines (package lineno) and with some particular "float" out of paragraph margins.
I found that the CTAN package documentation style is perfect for my needs, like the one I'm posting here:
Do you guys know if there's a CTAN style template I can download for my personal use?
Thank you, Rosario

docpackage layout, part of the corebaselatex distribution. See the sourcehanging.dtxof the document you show. – David Carlisle Oct 05 '22 at 09:45.dtxfile there's a macro calledmacrocodewhich allows to write code within the line numbering. What if I want the line numbering in the whole document and not only in themacrocodeportion? Thank you, Rosario – Dawson Oct 05 '22 at 10:27linenopackage but I'm not sure it would make sense: the line numbers inmacrocodeare numbering code lines and relate to the package files that will be extracted, the numbering of general paragraph text lines in the pdf after linebreaking to the text width is a rather different thing and doing both in the same document sounds confusing. – David Carlisle Oct 05 '22 at 11:02macrocodemacro and then thedescribemacrocommand are a black box that I can't customize unfortunately.I've read the link posted by @user202729, very useful actually! The problem that guy has is exactly the same I have: customize the text to the left of each starting paragraph. Now I have something like this
– Dawson Oct 05 '22 at 14:29