#NEWLINE# def visitNode_head( self , node ) : #NEWLINE# #INDENT# authorNodes = domhelpers . findElementsWithAttribute ( node , 'rel' , 'author' ) #NEWLINE# authorNodes = [ n for n in authorNodes if ( n . tagName == 'link' ) ] #NEWLINE# if authorNodes : #NEWLINE# #INDENT# self . writer ( '\\author{' ) #NEWLINE# authors = [ ] #NEWLINE# for aNode in authorNodes : #NEWLINE# #INDENT# name = aNode . getAttribute ( 'title' ) #NEWLINE# href = aNode . getAttribute ( 'href' ) #NEWLINE# if href . startswith ( 'mailto:' ) : #NEWLINE# #INDENT# href = href [ 7 : ] #NEWLINE# #UNINDENT# if href : #NEWLINE# #INDENT# if name : #NEWLINE# #INDENT# name += ' ' #NEWLINE# #UNINDENT# name += ( ( '$<$' + href ) + '$>$' ) #NEWLINE# #UNINDENT# if name : #NEWLINE# #INDENT# authors . append ( name ) #NEWLINE# #UNINDENT# #UNINDENT# self . writer ( ' \\and ' . join ( authors ) ) #NEWLINE# self . writer ( '}' ) #NEWLINE# #UNINDENT# self . visitNodeDefault ( node )