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}
\linenumbers
after\usepackage{lineno}
, you'll see that the entire block -minipage
- is considered as a "line". That's howlineno
works. – Werner Mar 18 '13 at 22:35minipage
means that the contents has to be gathered/assembled into a block, and the setting of it (at which time line numbers are added) is then void of any idea of having lines; it's now just a block of "something" that fits on a "very tall line." Is the eventual output you're interested in a line-numbered block of framed text of specific width? – Werner Mar 18 '13 at 23:27