Changeset 6bf987 in git for doc/doc2tex.pl
- Timestamp:
- Jul 23, 1999, 2:32:41 PM (24 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 2dfc2bfb239d091ebc727ab2797df23d5bd95f4b
- Parents:
- 287dbbfc511d4323e5d0ad8a7c36e31bfec31cf8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/doc2tex.pl
r287dbb r6bf987 1 1 #!/usr/local/bin/perl 2 # $Id: doc2tex.pl,v 1.1 4 1999-07-22 13:35:12obachman Exp $2 # $Id: doc2tex.pl,v 1.15 1999-07-23 12:32:35 obachman Exp $ 3 3 ################################################################### 4 4 # Computer Algebra System SINGULAR … … 36 36 # 37 37 #### 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 50 47 # 51 48 # … … 441 438 $n_fun = 1 if ($no_fun || /no_fun/); 442 439 $n_ex = 1 if ($no_ex || /no_ex/); 443 $section = $1 if / \w*section/;440 $section = $1 if /(\w*)section/; 444 441 445 442 # contruct tex file name … … 491 488 if ($found) 492 489 { 493 s/subsection/$ section/ if $section;490 s/subsection/${section}section/ if $section; 494 491 print TEX $_; 495 492 } … … 511 508 while (<LTEX>) 512 509 { 513 s/subsection/$ section/;510 s/subsection/${section}section/; 514 511 print TEX $_; 515 512 }
Note: See TracChangeset
for help on using the changeset viewer.