3
  f  Íˆ{‹„„-i[D<†ªoZƒ›Ù«x™¤~VÅ€-¶Ø€ }¨j‰E²u±ß=#5H607_‘I|¥‰ÓMdœv ©ƒ†ü+=a–Ãa¾”J_)â‚fão\ŠbÑ¿v…†±’rÿ _   Í‹      ÍV]oÚ0}ï¯ðü°·äò9&šxêH¥¡Q@”iš¦	9±!IœÙ¦”ýú9
�@¥ÓÄxò×Éõ9Ç7×öÞƒÎøÛð}ßõÐðËÇ^·ƒ°ðµÞÆA¹Ðp+U€Û>F86&o,—KwYw¥šÁx±I“h£Dd\f&W^1G®�sÊl‹<#LÂI7cüÉ)¹0Z0n#ç‹0Ñv˜L5hž±©H¸Ëx*ÝX»‘”¹ÝˆÉH;Z'[´Ýv¥!J¨Ö&2šƒf!„L€^„vÉðZí¦åö–ly¡d«‚hõÿ‘²{¯­¡áš[ÑUÄ31z ‰˜e>62ÇÄéiùD$³"&ÍæîLL1¢‰ññ÷ngðÃâÀÄÅ×Ä£(V|êã¿=ðLú4åÐÃ˜;‹¹Á¤GµA©db*8;
¾/Á÷â×ñ€A‰	¸Ž”È��Ù
Vâ¾ÔH&:§VkÓ*ˆÕ>ª„°—Ü Ñ33†7£Ûþ8èŽJKXbÇîŒGŒÉ�*žÅ##ÕjãBIémêüz;D�JÌbƒ	B:ˆ|…1‹lžÉe¶ï�õý +)}œ(j
“§î>Ù?ØÕ*µwNµæTš¨Ri7›ÚÊñùœ2Dö$cÛ½S™0®öUKÑ\.¹²ÙS¶ÿ‚ÿ™³IÙ
;¡E��ÌCLž/å8^!G¯ëó$§3®'Šÿ\ØßÙÞq§/EÞéÙ¶_¯výuT�zU[íFëR²nÁl±Å¤lOðþ/âÄ;6·»ë‡åËè7šÚÓï|	    ;  Ïˆl–ßi~” ”Ð?Je@‚ãn\ªbÑ¿�þDÛî,Ü£�’>Ñ[”€þR„�ÒJ�ƒ}ÁÃÁÀ %–   Ï#! /usr/bin/perl -w
use strict;
#
# vpe.pl
#
# Copyright (C) 2000, 2012 Heiko Oberdiek.
#
# This program may be distributed and/or modified under the
# conditions of the LaTeX Project Public License, either version 1.2
# of this license or (at your option) any later version.
# The latest version of this license is in
#   http://www.latex-project.org/lppl.txt
# and version 1.2 or later is part of all distributions of LaTeX
# version 1999/12/01 or later.
#
# See file "vpe.txt" for a list of files that belong to this project.
#
# This file "vpe.pl" may be renamed to "vpe"
# for installation purposes.
#
my $prj         = 'vpe';
my $file        = "$prj.pl";
my $program     = uc($&) if $file =~ /^\w+/;
my $version     = "0.2";
my $date        = "2012/04/18";
my $author      = "Heiko Oberdiek";
my $copyright   = "Copyright (c) 2000, 2012 by $author.";
#
# History:
#   2000/09/15 v0.1: First release.
#   2012/04/18 v0.2: Option --version added.
#

### program identification
my $title = "$program $version, $date - $copyright\n";

### editor call
# %F: file name
# %L: line number
my $EditorCall = "xterm -e joe +%d %s";
$EditorCall = $ENV{TEXEDIT} if $ENV{TEXEDIT};
$EditorCall = $ENV{VPE} if $ENV{VPE};

### error strings
my $Error = "!!! Error:"; # error prefix

my $usage = <<"END_OF_USAGE";
${title}
Depending on the name of the script `vpe' works in four modes:

* [vpe] Syntax: vpe <pdf file>[.pdf]
  The pdf file is scanned for actions created by VTeX,
  that start an editor with the source file at the
  specified line under Windows.
  A symbol link is made from the source file name
  extended by the extension `.vpe' to this script.
  The line number is encoded in the path and the
  action is changed to start this script.

* [sty] Internal for vpe.sty:
  Syntax: vpe --sty [--progname=...] <latex file> <vpe file>

* [system] Internal for vpe.sty:
  Syntax: vpe --system <vpe file>

* [launch] Syntax: <source file name>.vpe
  The script decodes the line number in the path of
  the source file name and starts an editor with
  this file at that line number.

Options:
  --help:     print usage
  --version   print version number
  --verbose:  print additional informations during running
  --force:    force symbol links
  --delete:   delete symbol links
  --sty:      internal for `vpe.sty' (get absolute file name and lines)
  --system:   internal for `vpe.sty' (get system info linux or win)
  --progname: latex, pdflatex, elatex, pdfelatex
END_OF_USAGE

### options
$::opt_verbose = 0;
$::opt_help = 0;
$::opt_version = 0;
$::opt_force = 0;
$::opt_delete = 0;
$::opt_sty = 0;
$::opt_system = 0;
$::opt_progname = "latex";
use Getopt::Long;
GetOptions(
  "help!",
  "version!",
  "verbose!",
  "force!",
  "delete!",
  "sty!",
  "system!",
  "progname=s",
) or die $usage;
if ($::opt_help) {
  die $usage;
}
if ($::opt_version) {
  print "$prj $date v$version\n";
  exit(0);
}

if ($::opt_sty and $::opt_system) {
  die "$usage" .
      "$Error Options --sty and --system cannot used together!\n";
}

###################
### launch mode ###
###################
if ($0 =~ /\.vpe/) {

  @ARGV == 0 or
    die "$usage$Error Too many arguments [launch mode]!\n";

  my $file = "";
  $0 =~ m|(^[\./]+\./)(.+)\.vpe$| or
    die "$Error Cannot extract line number ($0)!\n";