The book, "Baron Trump's Marvelous Underground Journey", by Ingersoll Lockwood, came out in 1893. It's about a boy named Baron Trump who can time travel. His next book was called "The Last President", of which the president had a cabinet member named Pence. The entire text of both booths are posted in the two links below.
https://archive.org/stream/barontrumpsmarve00lock#page/n8/mode/1up
https://archive.org/details/1900orlastpresid00lock