improve conversion from notebook to PDF