Skip to content

Commit abbefab

Browse files
committed
Fixes to some of the =headN in the POD
Some other formatting fixes.
1 parent b7c2dae commit abbefab

28 files changed

+226
-229
lines changed

lib/PGcore.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ sub surePathToTmpFile {
667667
return $path;
668668
}
669669

670-
=head1 FUNCTIONS from IO.pm
670+
=head1 Macros from IO.pm
671671
672672
includePGtext
673673
read_whole_problem_file

macros/PG.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ =head1 NAME
33
44
PG.pl - Provides core Program Generation Language functionality.
55
6-
=head1 SYNPOSIS
6+
=head1 SYNOPSIS
77
88
In a PG problem:
99

macros/answers/PGasu.pl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ =head1 DESCRIPTION
99
1010
=head1 FUNCTIONS
1111
12-
=head2 auto_right()
12+
=head2 auto_right
1313
14-
Usage: C<ANS(auto_right());>
14+
Usage:
15+
16+
ANS(auto_right());
1517
1618
or
1719
@@ -442,7 +444,7 @@ sub pc_evaluator {
442444
$ans_evaluator;
443445
}
444446

445-
=head2 weighted_partial_grader
447+
=head2 weighted_partial_grader [DEPRECATED]
446448
447449
This is a grader which weights the different parts of the problem
448450
differently. The weights passed to it through the environment. In

macros/answers/PGstringevaluators.pl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ =head1 DESCRIPTION
1414
1515
String answer evaluators compare a student string to the correct string.
1616
17+
=head2 MathObjects and answer evaluators
18+
19+
The MathObjects system provides a String->cmp() method that produce answer
20+
evaluators for string comparisons. It is recommended that you use the String
21+
object's cmp() method directly if possible.
22+
1723
=cut
1824

1925
BEGIN { strict->import; }
@@ -226,7 +232,7 @@ =head3 options
226232
ANS(str_cmp($ans, 'remove_whitespace', 'ignore_order'));
227233
ANS(str_cmp($ans, filters=>['remove_whitespace', 'ignore_order']));
228234
229-
=head3 Examples
235+
=head2 Examples
230236
231237
# same as std_str_cmp() -- matches "Hello", " hello", etc.
232238
str_cmp("Hello")

macros/answers/extraAnswerEvaluators.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ =head1 DESCRIPTION
99
This is a list of macros that create "answer evaluators" for checking student
1010
answers of various "exotic" types.
1111
12-
=head1 SYNPOSIS
12+
=head1 SYNOPSIS
1313
1414
interval_cmp() -- checks answers which are unions of intervals. It can also
1515
be used for checking an ordered pair or list of ordered

macros/answers/unorderedAnswer.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ =head2 UNORDERED_ANS
2929
below. Otherwise, be sure to use C<UNORDERED_ANS> right after the answer
3030
rules for the answers you want to compare.
3131
32-
Format:
32+
Usage:
3333
3434
UNORDERED_ANS(checker1, checker2, ...);
3535
@@ -64,9 +64,9 @@ =head2 UNORDERED_NAMED_ANS
6464
Collect a group of answer checkers for use with named answers that
6565
can be given in any order.
6666
67-
Format:
67+
Usage:
6868
69-
UNORDERED_NAMED_ANS(name1 => checker1, name2 => checker2, ...);
69+
UNORDERED_NAMED_ANS(name1 => checker1, name2 => checker2, ...);
7070
7171
Example:
7272

macros/contexts/contextAlternateDecimal.pl

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ =head1 DESCRIPTION
7676
numebrs would be displayed in standard form.
7777
7878
79-
=head1 LISTS IN ALTERNATE FORMAT
79+
=head2 LISTS IN ALTERNATE FORMAT
8080
8181
Because the alternate format allows numbers to be entered using commas
8282
rather than periods, this makes the formation of lists harder. For
@@ -101,16 +101,16 @@ =head1 LISTS IN ALTERNATE FORMAT
101101
must be a list separator.
102102
103103
104-
=head1 SETTING THE ALTERNATE FORM AS THE DEFAULT
104+
=head2 SETTING THE ALTERNATE FORM AS THE DEFAULT
105105
106106
If you want to force existing problems to allow (or force, or warn about)
107107
the alternate format instead, then create a file named
108108
C<parserCustomization.pl> in your course's C<templates/macros>
109109
directory, and enter the following in it:
110110
111111
loadMacros("contextAlternateDecimal.pl");
112-
context::AlternateDecimal->Default("either","either");
113-
Context("Numeric");
112+
context::AlternateDecimal->Default("either","either");
113+
Context("Numeric");
114114
115115
This will alter all the standard contexts to allow students to enter
116116
numbers in either format, and will display them using the form that
@@ -119,17 +119,17 @@ =head1 SETTING THE ALTERNATE FORM AS THE DEFAULT
119119
You could also do
120120
121121
loadMacros("contextAlternateDecimal.pl");
122-
context::AlternateDecimal->Default(".",".");
123-
Context("Numeric");
122+
context::AlternateDecimal->Default(".",".");
123+
Context("Numeric");
124124
125125
to cause a warning message to appear when students enter the alternate
126126
format.
127127
128128
If you want to force students to enter the alternate format, use
129129
130130
loadMacros("contextAlternateDecimal.pl");
131-
context::AlternateDecimal->Default(",",",");
132-
Context("Numeric");
131+
context::AlternateDecimal->Default(",",",");
132+
Context("Numeric");
133133
134134
This will force the display of all numbers into the alternate form (so
135135
even the ones created in the problem using standard form will show
@@ -143,14 +143,10 @@ =head1 SETTING THE ALTERNATE FORM AS THE DEFAULT
143143
144144
=cut
145145

146-
###########################################################
147-
148146
loadMacros("MathObjects.pl");
149147

150148
sub _contextAlternateDecimal_init { context::AlternateDecimal->Init }
151149

152-
###########################################################
153-
154150
package context::AlternateDecimal;
155151

156152
#

macros/contexts/contextAlternateIntervals.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ =head1 DESCRIPTION
7878
would allow students to enter intervals in either format, but all
7979
intervals would be displayed in standard form.
8080
81-
=head1 Setting the alternate form as the default
81+
=head2 Setting the alternate form as the default
8282
8383
If you want to force existing problems that use the Interval context
8484
to use one of the alternate contexts instead, then create a file named

macros/contexts/contextBaseN.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ =head1 DESCRIPTION
7373
7474
The last two digits for C<base64> are nonstandard. We want to avoid '+' and '/' here as they have arithmetic meaning.
7575
76-
=head1 Sample PG problem
76+
=head2 Sample PG problem
7777
7878
A simple PG problem that asks a student to convert a number into base-5:
7979
@@ -119,7 +119,7 @@ =head2 convertBase
119119
The function C<convertBase(value, opts)> converts the value from or to other bases depending on the options
120120
in C<opts>. The input C<value> is a positive number or string version of a positive number in some base.
121121
122-
=head3 options
122+
=head3 Options
123123
124124
=over
125125

macros/contexts/contextBoolean.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ =head1 OPERATORS
4141
Context->operators->set( not => { TeX => '\neg ' } );
4242
4343
44-
=head1 Aliases and Alternatives
44+
=head2 Aliases and Alternatives
4545
4646
Modifications to the operators should be applied to the string versions of each operator: 'or', 'xor', 'and',
4747
and 'not'; rather than to any of the following aliases or alternatives.
@@ -70,7 +70,7 @@ =head1 Aliases and Alternatives
7070
7171
=back
7272
73-
=head1 OPERATOR PRECEDENCE
73+
=head2 Operator Precedence
7474
7575
=over
7676
@@ -90,7 +90,7 @@ =head1 OPERATOR PRECEDENCE
9090
9191
=back
9292
93-
=head1 REDUCTION
93+
=head2 Reduction Rules
9494
9595
The context also handles C<reduceConstants> with the following reduction rules:
9696
@@ -118,7 +118,7 @@ =head1 REDUCTION
118118
119119
=back
120120
121-
=head1 COMPARISON
121+
=head2 Comparison
122122
123123
Boolean Formula objects are considered equal whenever the two expressions generate the same truth table.
124124

0 commit comments

Comments
 (0)