Changeset 4b72f6 in git for doc/doc2tex.pl


Ignore:
Timestamp:
Nov 24, 1999, 7:50:43 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6171f8981338ed758a299513c58c53a874f984ed
Parents:
5d32fdb9ecb9fff4978a30bd8fb80b5e9fcdb7b0
Message:
insatllation proocedure


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

Legend:

Unmodified
Added
Removed
  • doc/doc2tex.pl

    r5d32fd r4b72f6  
    11#!/usr/local/bin/perl
    2 # $Id: doc2tex.pl,v 1.18 1999-10-25 12:45:27 obachman Exp $
     2# $Id: doc2tex.pl,v 1.19 1999-11-24 18:50:40 obachman Exp $
    33###################################################################
    44#  Computer Algebra System SINGULAR
     
    77#
    88####
    9 # @c example [error]
     9# @c example [error] [no_comp]
    1010#    -> the text till the next @c example is feed into Singular,
    1111#       the text is then substituted by
     
    2020#       wrap around output lines  longer than $ex_length = 73;
    2121#       Processing is aborted if error occures in Singular run,
    22 #       unless 'error' is specified
     22#       unless 'error' is specified
     23#       if no_comp is given, then computation is not run
     24#       
    2325#
    2426####
     
    186188
    187189######################################################################
    188 # @c example [error]
     190# @c example [error] [no_comp]
    189191#    -> the text till the next @c example is feed into Singular,
    190192#       the text is then substituted by
     
    199201#       wrap around output lines  longer than $ex_length = 73;
    200202#       Processing is aborted if error occures in Singular run,
    201 #       unless 'error' is specified
     203#       unless 'error' is specified
     204#       If [no_comp] is given, actual computation is not run
    202205sub HandleExample
    203206{
    204   my($inc_file, $ex_file, $lline, $thisexample, $error_ok, $cache);
     207  my($inc_file, $ex_file, $lline, $thisexample, $error_ok, $cache, $no_comp);
    205208 
    206209  $lline = $line;
     
    229232  $thisexample = '';
    230233  $error_ok = 1 if /error/;
     234  $no_comp = 1 if /no_comp/;
     235
    231236  # print content in example file till next @c example
    232237  while (<DOC>)
     
    235240    last if (/^\@c\s*example\s*$/);
    236241    s/^\s*//; # remove preceeding white spaces
    237     if ($no_ex)
     242    if ($no_ex || $no_comp)
    238243    {
    239244      &protect_texi;
     
    255260
    256261  # done, if no examples
    257   return if ($no_ex);
     262  return if ($no_ex || $no_comp);
    258263
    259264  # check whether it can be reused
Note: See TracChangeset for help on using the changeset viewer.