def visit_snippet_latex(self, node):
code = node.rawsource.rstrip('<STR_LIT:\n>')<EOL>lang = self.hlsettingstack[-<NUM_LIT:1>][<NUM_LIT:0>]<EOL>linenos = code.count('<STR_LIT:\n>') >= self.hlsettingstack[-<NUM_LIT:1>][<NUM_LIT:1>] - <NUM_LIT:1><EOL>fname = node['<STR_LIT:filename>']<EOL>highlight_args = node.get('<STR_LIT>', {})<EOL>if '<STR_LIT>' in node:<EOL><INDENT>lang = node['<STR_LIT>']<EOL>highlight_args['<STR_LIT>'] = True<EOL><DEDENT>if '<STR_LIT>' in node:<EOL><INDENT>linenos = node['<STR_LIT>']<EOL><DEDENT>def warner(msg):<EOL><INDENT>self.builder.warn(msg, (self.curfilestack[-<NUM_LIT:1>], node.line))<EOL><DEDENT>hlcode = self.highlighter.highlight_block(code, lang, warn=warner,<EOL>linenos=linenos,<EOL>**highlight_args)<EOL>self.body.append(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % (<EOL>fname.replace('<STR_LIT:_>', r'<STR_LIT>'),<EOL>)<EOL>)<EOL>if self.table:<EOL><INDENT>hlcode = hlcode.replace('<STR_LIT>',<EOL>'<STR_LIT>')<EOL>self.table.has_problematic = True<EOL>self.table.has_verbatim = True<EOL><DEDENT>hlcode = hlcode.rstrip()[:-<NUM_LIT>]  <EOL>hlcode = hlcode.rstrip() + '<STR_LIT:\n>'<EOL>self.body.append('<STR_LIT:\n>' + hlcode + '<STR_LIT>' %<EOL>(self.table and '<STR_LIT>' or '<STR_LIT>'))<EOL>raise nodes.SkipNode<EOL>
Latex document generator visit handler