\RequirePackage{shellesc}
\ShellEscape{latexpand main.tex > main-staged1.tex}
\documentclass{book}
\title{Demonstrating latexdiff}