The Boy in the Train is a poem written in Scots, by Mary Campbell (Edgar) Smith (1869-1960), first published in 1913. It is featured in many anthologies of Scottish verse, texts related to railway history, and is routinely quoted when discussing linoleum, and the history of the Scottish town Kirkcaldy. It is a popular poem in Scottish culture, often being a children’s party piece, and "recited by generations of primary school children". The crime-writer Val McDermid, who was born in Kirkcaldy, has said "As school kids we all had to learn The Boy in the Train".