When Richard W. Merritt signed on as a staff attorney with Powell Goldstein more than a year ago, the law firm had to be impressed with his background: eight years as a Marine officer and a degree from the University of Southern California Law School.

Merritt didn’t mention on his resume, however, that he had just won a publishing contract for a book, “Secrets of a Gay Marine Porn Star,” which appears in bookstores this week.