Changeset 6bf987 in git for doc/doc2tex.pl


Ignore:
Timestamp:
Jul 23, 1999, 2:32:41 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
2dfc2bfb239d091ebc727ab2797df23d5bd95f4b
Parents:
287dbbfc511d4323e5d0ad8a7c36e31bfec31cf8
Message:
* my changes to reference.doc


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

Legend:

Unmodified
Added
Removed
  • doc/doc2tex.pl

    r287dbb r6bf987  
    11#!/usr/local/bin/perl
    2 # $Id: doc2tex.pl,v 1.14 1999-07-22 13:35:12 obachman Exp $
     2# $Id: doc2tex.pl,v 1.15 1999-07-23 12:32:35 obachman Exp $
    33###################################################################
    44#  Computer Algebra System SINGULAR
     
    3636#
    3737####
    38 # @c lib libname.lib[:proc] [lib_fun, lib_ex, no_ex]
    39 #   Without :proc
    40 #   --> includes info of libname.lib in output file
    41 #   --> includes function names of info into function index
    42 #   --> if lib_fun is given, includes listing of functions and
    43 #                      their help into output file
    44 #   --> if lib_ex is given, includes computed examples of functions, as well
    45 #   With :proc
    46 #   --> includes content of procedure 'proc' from library libname:lib
    47 #
    48 #   Optional no_ex, lib_fun, lib_ex arguments overwrite respective
    49 #    command-line arguments
     38# @c lib libname.lib[:proc] [no_ex, no_fun, (\w*)section]
     39#   --> replaced by @include $texfile where
     40#        $texfile = $subdir/libname_lib[_noFun,_noEx].tex
     41#   --> if $make, calls "make $texfile"
     42#   --> Error, if $tex_file does not exist
     43#   --> if [:proc] is given, then includes only of respective
     44#       proc body
     45#   --> if (\w*)section is given, replaces @subsection by @$1section
     46#       and pastes in content of tex file directly
    5047#
    5148#
     
    441438  $n_fun = 1 if ($no_fun || /no_fun/);
    442439  $n_ex = 1 if ($no_ex || /no_ex/);
    443   $section = $1 if /\w*section/;
     440  $section = $1 if /(\w*)section/;
    444441 
    445442  # contruct tex file name
     
    491488        if ($found)
    492489        {
    493           s/subsection/$section/ if $section;
     490          s/subsection/${section}section/ if $section;
    494491          print TEX $_;
    495492        }
     
    511508      while (<LTEX>)
    512509      {
    513         s/subsection/$section/;
     510        s/subsection/${section}section/;
    514511        print TEX $_;
    515512      }
Note: See TracChangeset for help on using the changeset viewer.