在这里,我面临的挑战是修复行号样式,如附图所示,有人可以帮助解决这个问题吗?
注意:绿色表示必填样式
平均能量损失
\documentclass{book}
\usepackage{multicol}
\begin{document}
\section{Overview}
Numerous videos
and interactivities are embedded just
where you need them, at the point of
\subsection{Links with our times}
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}
答案1
这是您想要的吗?此解决方案假设您只希望在左列显示行号。如果您希望在所有列中都显示行号,请删除docolaction
包装宏的宏\underline
。
\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
\subsection{Links with our times}
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}
结果如下: