Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Latex::Tom::Node example

by Khen1950fx (Canon)
on Dec 15, 2012 at 21:00 UTC ( #1009010=note: print w/ replies, xml ) Need Help??


in reply to Latex::Tom::Node example

And what is "group matching"? Did you mean something like this?

#!/usr/bin/perl use strict; use autodie; use warnings; use LaTeX::TOM; use Data::Dumper::Concise; my $file = 'input.tex'; open my $fh, '<', $file; my $parser = LaTeX::TOM->new; my $tree = $parser->parseFile($file); $tree->getNodesByCondition( sub { my $node = shift; $node->getNextGroupNode; print Dumper($node); } );


Comment on Re: Latex::Tom::Node example
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009010]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-09-01 23:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (52 votes), past polls