> >>>\usepackage{usernames]{color} > That one is clearly wrong. I don't know whether the color package > has an option "usernames", but the brackets are clearly mismatched.
Sorry, my typo. Lyx inserts \usepackage[usenames]{color} into the generated latex file and caused the compiling errors. I apologize for the confusion. Bo