When write = True (default) call write_ly(expr) and write_pdf(expr) and then open the resulting PDF.
When write = False call show(expr) only.
The purpose of this function is to conditionally save named PDF and named .ly output corresponding to expr.
New in version 1.1.1: Optional footer keyword.