Changeset 4b72f6 in git for doc/doc2tex.pl
- Timestamp:
- Nov 24, 1999, 7:50:43 PM (23 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 6171f8981338ed758a299513c58c53a874f984ed
- Parents:
- 5d32fdb9ecb9fff4978a30bd8fb80b5e9fcdb7b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/doc2tex.pl
r5d32fd r4b72f6 1 1 #!/usr/local/bin/perl 2 # $Id: doc2tex.pl,v 1.1 8 1999-10-25 12:45:27obachman Exp $2 # $Id: doc2tex.pl,v 1.19 1999-11-24 18:50:40 obachman Exp $ 3 3 ################################################################### 4 4 # Computer Algebra System SINGULAR … … 7 7 # 8 8 #### 9 # @c example [error] 9 # @c example [error] [no_comp] 10 10 # -> the text till the next @c example is feed into Singular, 11 11 # the text is then substituted by … … 20 20 # wrap around output lines longer than $ex_length = 73; 21 21 # 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 # 23 25 # 24 26 #### … … 186 188 187 189 ###################################################################### 188 # @c example [error] 190 # @c example [error] [no_comp] 189 191 # -> the text till the next @c example is feed into Singular, 190 192 # the text is then substituted by … … 199 201 # wrap around output lines longer than $ex_length = 73; 200 202 # 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 202 205 sub HandleExample 203 206 { 204 my($inc_file, $ex_file, $lline, $thisexample, $error_ok, $cache );207 my($inc_file, $ex_file, $lline, $thisexample, $error_ok, $cache, $no_comp); 205 208 206 209 $lline = $line; … … 229 232 $thisexample = ''; 230 233 $error_ok = 1 if /error/; 234 $no_comp = 1 if /no_comp/; 235 231 236 # print content in example file till next @c example 232 237 while (<DOC>) … … 235 240 last if (/^\@c\s*example\s*$/); 236 241 s/^\s*//; # remove preceeding white spaces 237 if ($no_ex )242 if ($no_ex || $no_comp) 238 243 { 239 244 &protect_texi; … … 255 260 256 261 # done, if no examples 257 return if ($no_ex );262 return if ($no_ex || $no_comp); 258 263 259 264 # check whether it can be reused
Note: See TracChangeset
for help on using the changeset viewer.