Add chunk setting to output figures to pdf