
    ^h
                     :    S r SSKJrJr  SSKJr   " S S\5      rg)zWModule that allows latex output notebooks to be conditioned before
they are converted.
    )ListUnicode   )Preprocessorc                       \ rS rSrSr\" SSSS9R                  SS9r\" SSSS9R                  SS9r\	" \" 5       SS	SS
9R                  SS9r
\" SSS9R                  SS9rS rSrg)LatexPreprocessor   zPreprocessor for latex destined documents.

Populates the ``latex`` key in the resources dict,
adding definitions for pygments highlight styles.

Sets the authors, date and title of the latex document,
overriding the values given in the metadata.
NzDate of the LaTeX documentT)help
allow_none)configzTitle of the LaTeX documentz*Author names to list in the LaTeX document)default_valuer
   r   defaultz!Name of the pygments style to use)r
   c                    SSK Jn  UR                  S0 5        US   R                  SU" U R                  S9R	                  5       5        US   R                  SU R                  5        U R
                  b,  U R
                   Vs/ s H  nSU0PM	     snUR                  S'   U R                  b  U R                  UR                  S	'   U R                  b  U R                  UR                  S
'   X4$ s  snf )a  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.
r   )LatexFormatterlatexpygments_definitions)stylepygments_style_namenameauthorsdatetitle)	pygments.formattersr   
setdefaultr   get_style_defsauthor_namesmetadatar   r   )selfnb	resourcesr   authors        W/home/james-whalen/.local/lib/python3.13/site-packages/nbconvert/preprocessors/latex.py
preprocessLatexPreprocessor.preprocess4   s     	7Wb)'%%"N$D$S$S$U	
 	'%%&;TZZH(EIEVEV%WEV6vv&6EV%WBKK	"99 "&))BKK::!#'::BKK } &Xs   C1 )__name__
__module____qualname____firstlineno____doc__r   tagr   r   r   r   r   r#   __static_attributes__r%       r"   r   r      s     * 
cc	 	 D =4PTT\`TaE	:	
 
cc  I$GHLLTXLYEr-   r   N)r*   	traitletsr   r   baser   r   r%   r-   r"   <module>r0      s    $ 8 8r-   