ó
§‰]c           @@ sV   d  Z  d d l m Z m Z d d l m Z d d l m Z d e f d „  ƒ  YZ d S(	   sW   Module that allows latex output notebooks to be conditioned before
they are converted.
i    (   t   print_functiont   absolute_importi   (   t   Preprocessor(   t   Unicodet   LatexPreprocessorc           B@ s5   e  Z d  Z e d d d ƒj d e ƒ Z d „  Z RS(   s¦   Preprocessor for latex destined documents.
    
    Mainly populates the `latex` key in the resources dict,
    adding definitions for pygments highlight styles.
    t   defaultt   helps!   Name of the pygments style to uset   configc         C@ sg   d d l  m } | j d i  ƒ | d j d | d |  j ƒ j ƒ  ƒ | d j d |  j ƒ | | f S(   sJ  Preprocessing to apply on each notebook.
        
        Parameters
        ----------
        nb : NotebookNode
            Notebook being converted
        resources : dictionary
            Additional resources used in the conversion process.  Allows
            preprocessors to pass variables into the Jinja engine.
        i    (   t   LatexFormattert   latext   pygments_definitionst   stylet   pygments_style_name(   t   pygments.formattersR   t
   setdefaultR   t   get_style_defs(   t   selft   nbt	   resourcesR   (    (    s<   lib/python2.7/site-packages/nbconvert/preprocessors/latex.pyt
   preprocess$   s
    &(   t   __name__t
   __module__t   __doc__R   t   tagt   TrueR   R   (    (    (    s<   lib/python2.7/site-packages/nbconvert/preprocessors/latex.pyR      s
   		N(	   R   t
   __future__R    R   t   baseR   t	   traitletsR   R   (    (    (    s<   lib/python2.7/site-packages/nbconvert/preprocessors/latex.pyt   <module>   s   