old_contents: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  # Use sphinx-quickstart to create your own conf.py file!
  # After that, you have to edit a few things.  See below.
  
  # Select nbsphinx and, if needed, add a math extension (mathjax or pngmath):
  extensions = [
      'nbsphinx',
      'sphinx.ext.mathjax',
  ]
  
  # Exclude build directory and Jupyter backup files:
  exclude_patterns = ['_build', '**.ipynb_checkpoints']
  
  # Default language for syntax highlighting in reST and Markdown cells
  highlight_language = 'none'
  
  # List of arguments to be passed to the kernel that executes the notebooks:
  #nbsphinx_execute_arguments = ['--InlineBackend.figure_formats={"png", "pdf"}']
  
  # -- These set defaults that can be overridden through notebook metadata --
  
  # See http://nbsphinx.readthedocs.org/en/latest/allow-errors.html
  # and http://nbsphinx.readthedocs.org/en/latest/timeout.html for more details.
  
  # Execute notebooks before conversion: 'always', 'never', 'auto' (default)
  #nbsphinx_execute = 'never'
  
  # If True, the build process is continued even if an exception occurs:
  #nbsphinx_allow_errors = True
  
  # Controls when a cell will time out (defaults to 30; use -1 for no timeout):
  #nbsphinx_timeout = 60
  
  # Default Pygments lexer for syntax highlighting in code cells
  #nbsphinx_codecell_lexer = 'ipython3'
  
  # -- The settings below this line are not specific to nbsphinx ------------
  
  master_doc = 'index'
  
  project = 'nbsphinx'
  author = 'Matthias Geier'
  copyright = '2016, ' + author
  
  linkcheck_ignore = [r'http://localhost:\d+/']
  
  # -- Get version information from Git -------------------------------------
  
  try:
      from subprocess import check_output
      release = check_output(['git', 'describe', '--tags', '--always'])
      release = release.decode().strip()
  except Exception:
      release = '<unknown>'
  
  # -- Options for HTML output ----------------------------------------------
  
  html_title = project + ' version ' + release
  
  # -- Options for LaTeX output ---------------------------------------------
  
  latex_elements = {
      'papersize': 'a4paper',
      'preamble': r"""
  \usepackage{lmodern}  % heavier typewriter font
  """,
  }
  
  latex_documents = [
      (master_doc, 'nbsphinx.tex', project, author, 'howto'),
  ]
  
  latex_show_urls = 'footnote'
  
new_contents: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  # Use sphinx-quickstart to create your own conf.py file!
  # After that, you have to edit a few things.  See below.
  
  # Select nbsphinx and, if needed, add a math extension (mathjax or pngmath):
  extensions = [
      'nbsphinx',
      'sphinx.ext.mathjax',
  ]
  
  # Exclude build directory and Jupyter backup files:
  exclude_patterns = ['_build', '**.ipynb_checkpoints']
  
  # Default language for syntax highlighting in reST and Markdown cells
  highlight_language = 'none'
  
  # List of arguments to be passed to the kernel that executes the notebooks:
  #nbsphinx_execute_arguments = ['--InlineBackend.figure_formats={"png", "pdf"}']
  
  # -- These set defaults that can be overridden through notebook metadata --
  
  # See http://nbsphinx.readthedocs.org/en/latest/allow-errors.html
  # and http://nbsphinx.readthedocs.org/en/latest/timeout.html for more details.
  
  # Execute notebooks before conversion: 'always', 'never', 'auto' (default)
  #nbsphinx_execute = 'never'
  
  # If True, the build process is continued even if an exception occurs:
  #nbsphinx_allow_errors = True
  
  # Controls when a cell will time out (defaults to 30; use -1 for no timeout):
  #nbsphinx_timeout = 60
  
  # Default Pygments lexer for syntax highlighting in code cells
  #nbsphinx_codecell_lexer = 'ipython3'
  
  # -- The settings below this line are not specific to nbsphinx ------------
  
  master_doc = 'index'
  
  project = 'nbsphinx'
  author = 'Matthias Geier'
  copyright = '2016, ' + author
  
  linkcheck_ignore = [r'http://localhost:\d+/']
  
  # -- Get version information from Git -------------------------------------
  
  try:
      from subprocess import check_output
      release = check_output(['git', 'describe', '--tags', '--always'])
      release = release.decode().strip()
  except Exception:
      release = '<unknown>'
  
  # -- Options for HTML output ----------------------------------------------
  
  html_title = project + ' version ' + release
  
  # -- Options for LaTeX output ---------------------------------------------
  
  latex_elements = {
      'papersize': 'a4paper',
      'preamble': r"""
  \usepackage[light,scaled=1.05]{zlmtt}  % light typewriter font from lmodern
  \usepackage[sc,osf]{mathpazo}
  \linespread{1.05}  % see http://www.tug.dk/FontCatalogue/urwpalladio/
  \renewcommand{\sfdefault}{pplj}  % Palatino instead of sans serif
  """,
  }
  
  latex_documents = [
      (master_doc, 'nbsphinx.tex', project, author, 'howto'),
  ]
  
  latex_show_urls = 'footnote'
  
subject: Change LaTeX fonts