Changeset 224da5b in git


Ignore:
Timestamp:
Jul 20, 1999, 4:36:36 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
Children:
f5a73477b5c707d3e6dde2b8ca46f6f7b5d59ea6
Parents:
7391b832096198f6bb685362085edcd95150fa37
Message:
* improved doc2tex stuff


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

Legend:

Unmodified
Added
Removed
  • doc/doc2tex.pl

    r7391b83 r224da5b  
    11#!/usr/local/bin/perl
    2 # $Id: doc2tex.pl,v 1.9 1999-07-19 12:06:13 obachman Exp $
     2# $Id: doc2tex.pl,v 1.10 1999-07-20 14:36:36 obachman Exp $
    33###################################################################
    44#  Computer Algebra System SINGULAR
     
    376376  # put them out
    377377  print TEX "\@ifinfo\n\@menu\n";
     378  print TEX $header ? "$header\n" : "See also:\n";
    378379  foreach $ref (@refs) {print TEX "* ".$ref."::\n";}
    379380  print TEX "\@end menu\n\@end ifinfo\n\@iftex\n";
     
    634635{
    635636  my ($FH, $info, $l_fun) = @_;
    636   if ($info =~ /^\@/)
     637  if ($info =~ /^\s*\@/)
    637638  {
    638639    print $FH $info;
     
    708709  s/}/\@}/g;
    709710  # 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) {}
    712716}
    713717
     
    826830  my $ref;
    827831
    828   print $FH "\@c ref\nSee\n";
     832  print $FH "\@c ref\nSee also:\n";
    829833  $ref = shift @refs;
    830834  print $FH "\@ref{$ref}";
Note: See TracChangeset for help on using the changeset viewer.