New editions of McGraw-Hill's history textbooks were ready for the printer when terrorists hijacked airliners and crashed them into the World Trade Center and Pentagon. Suddenly, the books seemed horribly outdated.

The challenge for Roger Rogalin, president of MacMillan/McGraw-Hill, was to update the books and still meet deadlines that dictate the books be on the market by early February.

Since Sept. 11, textbook publishers have scrambled to revise their books to include references to the attacks. Writers accustomed to spending months, even years poring over the importance of world events, had weeks to make sense of the attacks and place them in a context that even children can understand for years to come.

Textbooks always require minor tweaks on deadline. This time, however, the stakes are higher, the job harder.

"It's very difficult for the publishers because events are still under way," said Gil Sewell of the American Textbook Council.

The new books, which students will not see until autumn of 2002 or 2003, must wear well over time, while providing reasonably current information, a seemingly impossible task.

Most textbooks are updated every two or three years, but states and school districts usually keep their books for five years or more. Many Texas schools, for instance, have hung on to their current-history textbooks since 1992, and students won't get the new books until autumn 2003.

Because school officials in Texas, the nation's largest single textbook buyer, are scheduled to review history and social studies books in February, publishers are racing to have the updated books ready. They have brought back writers, artists and editors, in some cases tearing up entire sections.

"It's some of the hardest writing I've ever done," said Michael Stoff, a University of Texas history professor who co-wrote the Prentice-Hall middle-school history textbook "The American Nation."

Before the attacks, the book included only a few paragraphs on terrorism. Stoff has since added several pages, creating a section that opens with Sept. 11 candlelight vigils in New York, and Washington lawmakers praying on Capitol Hill. It devotes several pages to the attacks and their aftermath.

The new text, he said, describes the events in a straightforward way, leaving out cataclysmic photos of crashing airliners, fireballs and collapsing office towers. Instead, it features scenes of rescuers and of the American flag being raised amid the rubble in New York.

In all, 20 pages were revised; sections on tensions in Korea and the end of apartheid in South Africa, among others, were condensed to make room.

Rogalin said McGraw-Hill's books will have more emphasis on world geography, including references to the region encompassing Afghanistan, Pakistan and Kazakhstan.

"All these `stans' out there, people have to understand them now," he said.

The tight deadline also meant that publishers had to decide quickly whether to include references to Saudi exile Osama bin Laden, whom President Bush has named as the mastermind behind the attacks without publicly offering proof.

Given the likelihood that a textbook will be in students' hands for most of the decade, do you include him or risk leaving out an important figure?

Chris Johnson, social studies editor for McDougal Littell, a division of Houghton Mifflin, said his team had only two weeks to redo four books, their deadline falling before the United States and its allies began bombing Afghanistan. The books do not mention bin Laden.

"It seemed to us it was just too early to say that the primary responsibility was Osama bin Laden," he said.