changes to remove error in PDF build Issues/111

PDF build checked on issues/111 branch #111 
Please merge the changes with master if all OK.