On Friday, July 3, 2015 7:39 AM, S. venkataraman <sven...@ignou.ac.in> wrote:


>

>I have a naive question? There is a possibility of calling PERL or Python from 
>latex using perltex package. 

>Is this possible in xetex? Will this feature be good enough?


Hello,

Yes it is possible to use perltex with xelatex. The command to call perltex 
with xelatex is:

$ perltex --latex=xelatex YourXeLaTeXFile.tex

However, it is necessary to add the following two lines into perltex.pl

use utf8;
use feature 'unicode_strings';


since XeLaTeX files are UTF-8 encoded. On pages 3-4 of the perlex manual there 
is an example
that prints a table. The Perl macro uses somewhere the expressions $header++ 
Unfortunately,
this does not work when one initially sets 


$header = "α";


A simple solution to solve this problem is to use the following code:

$tabular .= "}{" . $header . "}"; #<---- originally $header++
$header = chr(ord($header)+1);    #<---- added to get the effect

A.S.

----------------------Apostolos Syropoulos
Xanthi, Greece



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

Reply via email to