#NEWLINE# def visitNode_link_stylesheet( self , node ) : #NEWLINE# #INDENT# if ( node . hasAttribute ( 'type' ) and node . hasAttribute ( 'href' ) ) : #NEWLINE# #INDENT# if ( node . getAttribute ( 'type' ) == 'application/x-latex' ) : #NEWLINE# #INDENT# packagename = node . getAttribute ( 'href' ) #NEWLINE# ( packagebase , ext ) = os . path . splitext ( packagebase ) #NEWLINE# self . writer ( ( '\\usepackage{%s}\n' % packagebase ) )