Editing Introduction to PGML
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision  Your text  
Line 90:  Line 90:  
To rightjustify some text, use just <code>>></code> at the left 
To rightjustify some text, use just <code>>></code> at the left 

−  >> Rightjustified text 
+  >> Rightjustified text 
>> Rightjutified paragraph 
>> Rightjutified paragraph 

Line 169:  Line 169:  
=== Mathematical Notation === 
=== Mathematical Notation === 

−  PGML allows you to specify mathematics in two different formats: TeX and calculator notation. The TeX notation allows you to use the standard TeX and LaTeX commands to format your mathematics. The calculator notation uses MathObjects to parse and format the mathematics (so this is the notation that you use to create formulas in your PG problems, and that students use to enter their answers). Both formats come in 
+  PGML allows you to specify mathematics in two different formats: TeX and calculator notation. The TeX notation allows you to use the standard TeX and LaTeX commands to format your mathematics. The calculator notation uses MathObjects to parse and format the mathematics (so this is the notation that you use to create formulas in your PG problems, and that students use to enter their answers). Both formats come in two forms: inline and display style. The inline form uses spacing rules that try to minimize the impact on line spacing, while display style allows for easier readability at the cost of using more vertical space. 
−  To use TeXformatted mathematics, enclose it in <code>[`...`]</code> for 
+  To use TeXformatted mathematics, enclose it in <code>[`...`]</code> for inline math and <code>[``...``]</code> for displaystyle math. 
−  To use calculator notation, enclose it in <code>[: ... :]</code> for 
+  To use calculator notation, enclose it in <code>[: ... :]</code> for inline math and <code>[:: ... ::]</code> for displaystyle math. 
For example, 
For example, 

Line 181:  Line 181:  
What [:x:] makes [:(x+2)/3 = 1:]? 
What [:x:] makes [:(x+2)/3 = 1:]? 

−  +  both produce the same results (with inline math). 

−  And for example, 

+  Note that, unlike with TeX, displaymode math is not automatically centered on a separate line. If you want that, you must provide the formatting for that yourself: 

−  What [`x`] makes [``\frac{x+2}{3} = 1``]? 

+  [``\sum_{n=0}^{10} 2^n``] is flush left 

−  What [:x:] makes [::(x+2)/3 = 1::]? 

+  [``\sum_{n=0}^{10} 2^n``] is indented 

−  
−  Both produce the same results with inline math, but the second math is displaystyle inline, so the fraction numerator and denominator typically will appear larger. This can comes at the cost of awkward spacing between consecutive lines of text. 

−  
−  And for example, 

−  
−  Find [`x`] that solves the equation: [```\frac{x+2}{3} = 1```] 

−  Find [:x:] that solves the equation: [:::(x+2)/3 = 1:::] 

+  >> [``\sum_{n=0}^{10} 2^n ``] is centered << 

−  
−  Both produce the same results with inline math for the "x", and then displayed math on its own line for the equation. 

== Interaction with PG == 
== Interaction with PG == 

Line 271:  Line 263:  
== Further Reading == 
== Further Reading == 

−  * '''[[ 
+  * '''[[PGML Syntax]]'''  reference documentation for the various formatting commands 
−  * '''[[ 
+  * '''[[PGML Answer Checking]]'''  reference documentation for answer checking in PGML 
[[Category:PGML]] 
[[Category:PGML]] 