#NEWLINE# def latex_visit_num_ref( self , node ) : #NEWLINE# #INDENT# fields = node [ 'reftarget' ] . split ( '#' ) #NEWLINE# if ( len ( fields ) > 1 ) : #NEWLINE# #INDENT# ( label , target ) = fields #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# label = None #NEWLINE# target = fields [ 0 ] #NEWLINE# #UNINDENT# if ( target not in self . builder . env . docnames_by_figname ) : #NEWLINE# #INDENT# raise nodes . SkipNode #NEWLINE# #UNINDENT# targetdoc = self . builder . env . docnames_by_figname [ target ] #NEWLINE# ref_link = ( '%s:%s' % ( targetdoc , target ) ) #NEWLINE# if ( label is None ) : #NEWLINE# #INDENT# latex = ( '\\ref{%s}' % ref_link ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# latex = ( '\\hyperref[%s]{%s \\ref*{%s}}' % ( ref_link , label , ref_link ) ) #NEWLINE# #UNINDENT# self . body . append ( latex ) #NEWLINE# raise nodes . SkipNode