Changeset 9ebcbf in git for doc


Ignore:
Timestamp:
Dec 21, 2000, 4:15:36 PM (23 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
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.