def latex(self, force=False):
if sys.platform == '<STR_LIT:win32>':<EOL><INDENT>sys.stderr.write('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>ret_code = self._sphinx_build('<STR_LIT>')<EOL>os.chdir(os.path.join(BUILD_PATH, '<STR_LIT>'))<EOL>if force:<EOL><INDENT>for i in range(<NUM_LIT:3>):<EOL><INDENT>self._run_os('<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>')<EOL><DEDENT>raise SystemExit('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>self._run_os('<STR_LIT>')<EOL><DEDENT>return ret_code<EOL><DEDENT>
Build PDF documentation.