1
     [ˆâáæ555àÀä +    [‹      Õ•]o›0†ïû+<_ì�4ªZ`êB¤EK“(Í4MÓ4ì€U°‘m–d¿~|$kV%û�ªL½Á‡ÃËá}^ö_E³áòÓ|„Þ-ï&hþáíd<DØøØDË¨»Ð·`4ÅgÆ”× ëõÚ^÷l©RX. 3EÞmOŒMÅá…ßôÂägŒÐzE¾á&gáXP¶Ar…@VFsÊêÉeç<Ù7€ÊBƒf‚®xÎlÊ
igÚN¤,ëQ™hKë|¯îC¥ä<†ÍÕàë oå\T+¨*ÞBÏvm(O™6>tjW°³åÇ’n·îvVhC"qk°)Uè›}#9OE€�,qèó"EZ%žH¡!Î‰x°S¾Âˆä&ÀŸÇÃÙ—Z&kî}‚2ÅV~3¦7³ Âá”Ìr\sWknq8!Ú BR¾âŒžßwâ{þýôÀ¨ÓDL'Š—†Kñ(…ñ5‘¹.IÍzYdêPÕIèŸÒ É/aÌo£é2/ºHh3âÑÝYß3çD1aPÄKŒTÛ]�©×"ÖåÍþí(O3ƒC„,tTùÑTâAÈµ8L§Nþh.q×aLš£­%Ÿ4�?qê9ÞÀr]Ëó�ã\÷„N!¹ý÷gD*èeKÒ­/@Ô8-ÃÏòy0®Î‰¡3â¶»âe"x{ï¹<ï7ù‡„ÝÞáC»§ùÐíÀ? •Ç ä       ]ˆâáæ495àÀä ï    ]‹      Å”K�Ó0…÷ó+Œì’›Ò"ÍÃ1šJTê´U'!ÄÂ±�ÄÂ‰#Û3eøõ¸M«	¨å±�U’›cßï?È‹l5Í?®gè]~·@ë÷oó)ÂÀ‡ñ Ë³þÇ$NF ³%F¸ö¾»Øn·ñv[A¾�Ú7zÎ[Å},¼Àô‚ìjô‘Z2žˆxåµ¤óVÈ¯È”ÌƒwJÈ0s÷PhÅ�¦qàd+J¥e,dcâÚÅÜ˜.4†»È9}TO ³†ƒ¯mè9©K°ÆxÐª Ù>*kÚF¶�Š@�àÀD
#žv¨£ÿ‰ºïãaÅžn÷j)ñ5zdZUmŠ½é0%ª©�³<Å ¸išµ_âJ•1íSüi>]}ºÐs7š†Bó2Åo¦éòf•f˜.Y#	°Óš» ¹ÅtÁœG�ªTRœß÷â{õíü„Y¯É¤ãVu^™öY
ÁâÐ*7Úu,x}Ôv¨ê%âwi0þCëÛÍl™góM‰ØMñL÷Ó5³a…Q¦¬äÞØ§ƒûåe[¸îæø‰Þ¬ªj�)B:©ü‹@úÐ‡‘„¸O†quwd]bz¢8äÿ	øU2GÉe”LÐèòz” tÖYòg¸!àpTìÏ/�þªù%‰åÍ    7   _ˆl–ßi~”ji?u ¾ ƒq—n JbÑ¿�þD1…fßp`f7Ùn7�üÿè„?çÁå *¡    _#!/usr/bin/env perl -w

#########################################################################
# Written and (C) by JÃ©rÃ´me Lelong <jerome.lelong@gmail.com>            #
#                                                                       #
# This program is free software; you can redistribute it and/or modify  #
# it under the terms of the GNU General Public License as published by  #
# the Free Software Foundation; either version 3 of the License, or     #
# (at your option) any later version.                                   #
#                                                                       #
# This program is distributed in the hope that it will be useful,       #
# but WITHOUT ANY WARRANTY; without even the implied warranty of        #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         #
# GNU General Public License for more details.                          #
#                                                                       #
# You should have received a copy of the GNU General Public License     #
# along with this program.  If not, see <http://www.gnu.org/licenses/>. #
#########################################################################

use strict;
use warnings;
use File::Basename;
use Cwd;
use Getopt::Long;
# recognised math environments
my @have_star_modes = qw( equation eqnarray align multline table gather);
my $have_star_mode = join('|', @have_star_modes);
$have_star_mode = "($have_star_mode)";


my $TEX = 'pdflatex';
my $TEXOPTIONS = ' -interaction nonstopmode ';
my $USERTEXOPTIONS = '';
my $RUNQUIET = 0;
my $RUNDEBUG = 0;
my $PARSEONLY = 0;

# Create a hash with three keys "str", "line", "file" and returns a
# reference to it
#
# Input: 3 args
#   a string
#   a line number
#   a filename
sub new_ref {
    my ($str, $line, $file) = @_;
    my $ref = {};
    $ref->{str}  = $str;
    $ref->{line} = $line;
    $ref->{file} = $file;
    return $ref;
}

# Create a hash with six keys "str", "begin", "end", "star",
# "label_line" and "label" and returns a reference to it.
#
# Input : 7 args
#    a string (the env name)
#    line of beginning
#    line of end
#    has the env a star?
#    line on which the label appears
#    value of the label
#    file name
sub new_math_env {
    my ($str, $begin, $end, $star, $label_line, $label, $file) = @_;
    my $this = {};
    $this->{str}        = $str;
    $this->{begin}      = $begin;
    $this->{end}        = $end;
    $this->{star}       = $star;
    $this->{label_line} = $label_line;
    $this->{label}      = $label;
    $this->{file}       = $file;
    return $this;
}


# Parse .chk file and looks for the environments defined by
# @have_star_modes. The first and last line of the environment are stored
# along with the name of the environment. One last variable is
# used to remember if the star version was used.
#
# Input:
#   a chk file content
#   entries
