Changes http://wiki.axiom-developer.org/TeXmacs/diff
--
I noticed that the tutorial (tutorial.tgz) above doesn't display correctly on 
FC4 with TeXmacs 1.0.6.  Having just started texmacs for the first time I'm not 
sure of the details, but the .tm files like oneStep01.tm "link" to the axiom 
and axiom-tutorial styles and don't display correctly.  I discovered that by 
reversing the order so that axiom comes before axiom-tutorial they seem to work 
ok.  A bit of perl will clean them all up:

save the following as a file and do a 'perl file tutorial'::

        use strict;
        use warnings;
        use Cwd;
        
        use File::Find;
        
        my $read_dir=$ARGV[0];
        
        my $top = getcwd();
        
        find(\&d, "$top/$read_dir");
        
        sub d
        {
          my $file = $File::Find::name;
        
          if (-f $file && $file =~ m/\.tm$/)
          {
                  print("found tex style file $file\n");
                  
                  `mv -v $file $file.bak`;
        
                  open(IN,"$file.bak") or print("couldn't open $file.bak\n") && 
next;
                  open(OUT,">$file") or print("couldn't open $file for 
writing\n") && next;
        
                  while(my $line = <IN>)
                  {
                          $line =~ s/\|axiom\|axiom/\|axiom/g;
                          $line =~ 
s/axiom-tutorial\|axiom/axiom\|axiom-tutorial/;
                          print(OUT $line);
                  }
        
                  close(IN);
                  close(OUT);
          }
        }

--
forwarded from http://wiki.axiom-developer.org/[EMAIL PROTECTED]

Reply via email to