if spec.geometry is not None:
spec.texout.write(b'\\usepackage[' +
spec.geometry.encode('UTF-8') +
b']{geometry}\n')
spec.texout.write(b'\\begin{document}\n')
if spec.geometry is not None:
spec.texout.write(b'\\usepackage[' +
spec.geometry.encode('UTF-8') +
b']{geometry}\n')
spec.texout.write(b'\\begin{document}\n')