[system] / trunk / pg / macros / PG.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/PG.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5567 Revision 5568
1################################################################################ 1################################################################################
2# WeBWorK Program Generation Language 2# WeBWorK Online Homework Delivery System
3# Copyright 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/ 3# Copyright 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/
4# $CVSHeader: pg/macros/PG.pl,v 1.32 2007/08/09 23:24:56 jj Exp $ 4# $CVSHeader: pg/macros/displayMacros.pl,v 1.9 2007/10/04 16:41:07 sh002i Exp $
5# 5#
6# This program is free software; you can redistribute it and/or modify it under 6# This program is free software; you can redistribute it and/or modify it under
7# the terms of either: (a) the GNU General Public License as published by the 7# the terms of either: (a) the GNU General Public License as published by the
8# Free Software Foundation; either version 2, or (at your option) any later 8# Free Software Foundation; either version 2, or (at your option) any later
9# version, or (b) the "Artistic License" which comes with this package. 9# version, or (b) the "Artistic License" which comes with this package.
10# 10#
11# This program is distributed in the hope that it will be useful, but WITHOUT 11# This program is distributed in the hope that it will be useful, but WITHOUT
12# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 12# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13# FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the 13# FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the
14# Artistic License for more details. 14# Artistic License for more details.
15################################################################################ 15################################################################################
20 20
21=head1 SYNPOSIS 21=head1 SYNPOSIS
22 22
23In a PG problem: 23In a PG problem:
24 24
25 DOCUMENT(); # should be the first statment in the problem 25 DOCUMENT(); # should be the first statment in the problem
26 26
27 loadMacros(.....); # (optional) load other macro files if needed. 27 loadMacros(.....); # (optional) load other macro files if needed.
28 # (loadMacros is defined in F<dangerousMacros.pl>) 28 # (loadMacros is defined in F<dangerousMacros.pl>)
29 29
30 HEADER_TEXT(...); # (optional) used only for inserting javaScript into problems. 30 HEADER_TEXT(...); # (optional) used only for inserting javaScript into problems.
31 31
32 TEXT( # insert text of problems 32 TEXT( # insert text of problems
33 "Problem text to be", 33 "Problem text to be displayed. ",
34 "displayed. Enter 1 in this blank:", 34 "Enter 1 in this blank:",
35 ANS_RULE(1,30) # ANS_RULE() defines an answer blank 30 characters long. 35 ANS_RULE(1,30) # ANS_RULE() defines an answer blank 30 characters long.
36 # It is defined in F<PGbasicmacros.pl> 36 # It is defined in F<PGbasicmacros.pl>
37 ); 37 );
38 38
39 ANS(answer_evalutors); # see F<PGanswermacros.pl> for examples of answer evaluatiors. 39 ANS(answer_evalutors); # see F<PGanswermacros.pl> for examples of answer evaluatiors.
40 40
41 ENDDOCUMENT() # must be the last statement in the problem 41 ENDDOCUMENT() # must be the last statement in the problem
42 42
43=head1 DESCRIPTION 43=head1 DESCRIPTION
44 44
45This file provides the fundamental macros that define the PG language. It 45This file provides the fundamental macros that define the PG language. It
46maintains a problem's text, header text, and answers: 46maintains a problem's text, header text, and answers:

Legend:
Removed from v.5567  
changed lines
  Added in v.5568

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9