I am trying to add line numbers to a reading passage. The issue is that I can't get them to display when I try to number lines within a minipage environment. Can anyone answer what seems to be a simple problem?
\documentclass[letterpaper,12pt]{book}
\usepackage{lineno}
\usepackage{lipsum}
\newsavebox{\fmbox}
\newenvironment{fmpage}[1]
{\begin{lrbox}{\fmbox}\begin{minipage}{#1}}
{\end{minipage}\end{lrbox}\fbox{\usebox{\fmbox}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
Introduction: \\
\lipsum[1]
\begin{center}
\begin{fmpage}{5in}
\vspace{.25cm} % Maybe look into frame sep
{ %
Satellites \\
\modulolinenumbers[2]
\begin{linenumbers}
When you watch the news and see pictures of weather from around the United States
or the world, you are seeing data from NOAA's environmental satellites. NOAA's
environmental satellites provide data from space to monitor the Earth to analyze the
coastal waters, relay life-saving emergency beacons, and track tropical storms and
hurricanes.
\end{linenumbers}
\ldots and then there are some multiple-choice questions about it.
}
\vspace{.25cm}
\end{fmpage} \end{center}%
\end{document}
Best Answer
The package
lineno
provides the possibility to add frame numbers inside boxes byinternallinnumbers
Here the resulting mwe: