mypreamble = 'customlatexstuffgoeshere\n'
latex_elements = {'papersize': 'letterpaper', 'pointsize': '11pt',
    'preamble': mypreamble}
How do you change the code example font size in LaTeX PDF output with sphinx?