In the novel The Good That Men Do, while on the ship with Ehrehin one moment Trip is passing out/dying and Valdores forces are closing in and the next moment hes on earth and he doesnt mention anything about how he got there. How did he escape?
The answer is in Chapter 52 of the novel.
After Doctor Ehrehin stunned Trip by shocking him, the Doctor left the ship they were traveling in via escape pod, so that he could rejoin his Romulan compatriots. Prior to leaving, he programmed the ship's autopilot to re-enter warp after the escape pod was jettisoned, so that Trip could get away.
I found the sudden explained jump in the story puzzling as well. But, the snarky comments by the characters about the events of the last episode made it all worthwhile.