No president that I know of, but an important American, nonetheless.
Benjamin Franklin wrote an essay about farts called "To the Royal Academy of *****", which is written like a legal proposal to insist that farts be made to smell better.
Many of his humorous writings are collected in the book Fart Proudly, which is in print and readily available.
Lee Kuan Yew
Ken Dryden
obama
To justify his decisions as president
The president that wrote a best selling autobiography was Jimmy Carter. His book, "Why Not the Best" was published in 1975.
Moments of Truth by Jan Carlzon.
Dwight D. Eisenhower wrote Crusade in Europe
H. Hoover
Atal Bihari Vajpayee Former Prime Minister of India.
Reagan was out of office when the cold war ended in 1989. As a former president he wrote a book, paid visits to other former leaders, and fought Alzheimer's. He died of the disease not remembering who he was or what he had done in his life. To answer your question he really didn't work with anyone.
Barbara Bush, the wife of George H.W. Bush wrote the children's book Millie.
Dwight D. Eisenhower