Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 having an uproarious good time at the Monastery: (14)
As of 2014-09-17 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (93 votes), past polls