Changeset 9ebcbf in git for doc/doc2tex.pl


Ignore:
Timestamp:
Dec 21, 2000, 4:15:36 PM (22 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
d9f665b2cc780458978ceb1111b560b41f9f9d4e
Parents:
1d905d1bbdfa6c6984a3b1c3605a26eefca38299
Message:
* special treatment of @math stuff


git-svn-id: file:///usr/local/Singular/svn/trunk@4973 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/doc2tex.pl

    r1d905d r9ebcbf  
    11#!/usr/local/bin/perl
    2 # $Id: doc2tex.pl,v 1.25 2000-04-27 10:07:20 obachman Exp $
     2# $Id: doc2tex.pl,v 1.26 2000-12-21 15:15:36 obachman Exp $
    33###################################################################
    44#  Computer Algebra System SINGULAR
     
    200200    }
    201201  }
    202  
     202
     203  # handle math
     204  $in_info = 1 if /^\@ifinfo/;
     205  $in_info = 0 if /^\@end\s*ifinfo/;
     206  s[\@math\{(.*?)\}][&HandleMath($1)]eg unless $in_info;
     207
    203208  print TEX $_;
    204209
     
    221226print "==>$tex_file)\n" if ($verbose);
    222227
     228sub HandleMath
     229{
     230  my $what = shift;
     231  return <<EOT;
     232
     233\@ifinfo
     234\@math{$what}
     235\@end ifinfo
     236\@tex
     237\$$what\$
     238\@end tex
     239EOT
     240}
    223241
    224242######################################################################
Note: See TracChangeset for help on using the changeset viewer.