Changeset 224da5b in git
- Timestamp:
- Jul 20, 1999, 4:36:36 PM (24 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
- Children:
- f5a73477b5c707d3e6dde2b8ca46f6f7b5d59ea6
- Parents:
- 7391b832096198f6bb685362085edcd95150fa37
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/doc2tex.pl
r7391b83 r224da5b 1 1 #!/usr/local/bin/perl 2 # $Id: doc2tex.pl,v 1. 9 1999-07-19 12:06:13obachman Exp $2 # $Id: doc2tex.pl,v 1.10 1999-07-20 14:36:36 obachman Exp $ 3 3 ################################################################### 4 4 # Computer Algebra System SINGULAR … … 376 376 # put them out 377 377 print TEX "\@ifinfo\n\@menu\n"; 378 print TEX $header ? "$header\n" : "See also:\n"; 378 379 foreach $ref (@refs) {print TEX "* ".$ref."::\n";} 379 380 print TEX "\@end menu\n\@end ifinfo\n\@iftex\n"; … … 634 635 { 635 636 my ($FH, $info, $l_fun) = @_; 636 if ($info =~ /^\ @/)637 if ($info =~ /^\s*\@/) 637 638 { 638 639 print $FH $info; … … 708 709 s/}/\@}/g; 709 710 # unprotect @@math@{@}, @code@{@} 710 s/\@\@math\@{(.*?)\@}/\@math{$1}/g; 711 s/\@\@code\@{(.*?)\@}/\@code{$1}/g; 711 while (s/\@\@math\@{(.*?)\@}/\@math{$1}/g) {} 712 while (s/\@\@code\@{(.*?)\@}/\@code{$1}/g) {} 713 # remove @code{} inside @code{} and inside @math{} 714 while (s/\@math{([^}]*)\@code{(.*?)}(.*)?}/\@math{$1$2$3}/g) {} 715 while (s/\@code{([^}]*)\@code{(.*?)}(.*)?}/\@code{$1$2$3}/g) {} 712 716 } 713 717 … … 826 830 my $ref; 827 831 828 print $FH "\@c ref\nSee \n";832 print $FH "\@c ref\nSee also:\n"; 829 833 $ref = shift @refs; 830 834 print $FH "\@ref{$ref}";
Note: See TracChangeset
for help on using the changeset viewer.