I had a high school librarian like that. She would zero in on the people who were studying, actually using the library for what it was for. Threaten them with a vice-principal office visit then throw them out. Why she knew they would leave!
You should have tried hiding in a closet with a girl, and staying real quiet.