usepackage[modulo]{lineno} - need also linenumber on line 1

by LooselySubtle   Last Updated February 22, 2019 10:23 AM - source

I use lineno to number my lines, obviously.

I need a number every 5 lines so I enabled the option modulo.

But, because 1 mod 5 <> 0, the firstline does not get numbered. And as you already guessed by now, I need that number 1...

I can easily use another package if this is impossible with lineno.

screenshot

screenshot of the MWE

MWE

\documentclass[]{article}

\usepackage[modulo]{lineno} 
\usepackage[parfill]{parskip}

\begin{document}

    \begin{linenumbers} 
        \textbf{Oh lord, won't you give me, my linenumber 1\\}
        Lorem ipsum dolor sit amet, consectetur adipiscing elit.\\
        Donec sit amet diam vel sapien commodo tempor at at sem.\\
        Praesent mollis enim mauris. Integer eu consequat neque.\\
        Nullam hendrerit laoreet fringilla.\\
        Aenean massa dolor, tristique maximus aliquet vel, hendrerit non mi.\\
        Pellentesque euismod mattis lectus, vel pretium turpis condimentum efficitur.\\
        Ut commodo ante nec risus sagittis, vitae sodales massa dictum.\\
        Quisque scelerisque pretium faucibus.\\
        Duis gravida ex lorem, et tincidunt diam mattis quis.\\
        Aenean nibh elit, pretium id leo ornare, congue mollis est.\\
        Etiam dictum viverra libero in imperdiet.\\
        Integer vel scelerisque urna, et porttitor turpis.\\
        Mauris porta molestie tincidunt. Vivamus ut rutrum urna.
        Lorem ipsum dolor sit amet, consectetur adipiscing elit.\\
        Donec sit amet diam vel sapien commodo tempor at at sem.\\
    \end{linenumbers}

\end{document}


Related Questions


Change fontsize on line numbers in lineno package

Updated September 11, 2019 17:23 PM

line numbers (of tex file)

Updated June 22, 2018 16:23 PM



How to use lineno with amsmath align?

Updated November 21, 2018 20:23 PM