# Line numering with multicolumn mode

Here I faced challenge for fixing line number style as like the attached image could any one help how to fix this.

Note: Required style as indicated in green color

MWE

\documentclass{book}
\usepackage{multicol}
\begin{document}
\section{Overview}
Numerous videos
and interactivities are embedded just
where you need them, at the point of

When a new suburb is established today, roads and footpaths are built,
services such as water and electricity are connected, and underground
pipes are installed to take away sewage and
stormwater. All these facilities are
usually in place before any homes are built,
and even the construction of the
houses is governed by strict building regulations.
The situation was very
different two hundred years ago.

\begin{multicols}{2}
As we learned in topic 2, the population increased dramatically in
Britain during the Industrial Revolution. Changes in agricultural
practices,  as well as job opportunities in the
newly established factories, brought
large numbers of people into rapidly growing towns and cities. This
influx of people was not matched by the provision
of the types of server

As we learned in topic 2, the population increased dramatically in
Britain during the Industrial Revolution. Changes in agricultural
practices, as well as job opportunities in the newly established
factories, brought large numbers of people into rapidly
growing towns and cities. This
influx of people was not matched by the provision
of the types of server
\end{multicols}
\end{document}


Is this what you want? This solution assumes you only want line numbers in the left column. If you want them in all columns, delete the docolaction macro that wraps the \underline macro.

\documentclass{book}
\usepackage[colaction]{multicol}
\usepackage{lineno}

\setlength{\columnsep}{36pt} % to make room
\setlength{\linenumberwidth}{12pt}
\renewcommand{\linenumberfont}{\normalsize}%
\renewcommand{\LineNumber}{%
\docolaction{%
\underline{\makebox[\linenumberwidth][r]{\ifnum\thelinenumber=1 1\else \themodulolinenumber\fi}}%
}{}{}%
}

\begin{document}
\section{Overview}
Numerous videos
and interactivities are embedded just
where you need them, at the point of

When a new suburb is established today, roads and footpaths are built,
services such as water and electricity are connected, and underground
pipes are installed to take away sewage and
stormwater. All these facilities are
usually in place before any homes are built,
and even the construction of the
houses is governed by strict building regulations.
The situation was very
different two hundred years ago.

\begin{multicols}{2}
\linenumbers%
As we learned in topic 2, the population increased dramatically in
Britain during the Industrial Revolution. Changes in agricultural
practices,  as well as job opportunities in the
newly established factories, brought
large numbers of people into rapidly growing towns and cities. This
influx of people was not matched by the provision
of the types of server

As we learned in topic 2, the population increased dramatically in
Britain during the Industrial Revolution. Changes in agricultural
practices, as well as job opportunities in the newly established
factories, brought large numbers of people into rapidly
growing towns and cities. This
influx of people was not matched by the provision
of the types of server
\end{multicols}
\end{document}


Here's the result:

• Thank you so much! Karl. It does really match and works what I required. – Rajesh Kumar Sep 20 '18 at 7:16
• If it solves your problem, don't forget to accept the solution. – Karl Hagen Sep 21 '18 at 11:38