Connexions

You are here: Home » Content » Example module for use of cnxml/mathml tags
Content Actions

Example module for use of cnxml/mathml tags

Module by: Charlet Reedstrom

A paragraph is the place for text. You can also include vocabulary terms.
note: Do not use <emphasis> for vocabulary terms.
There are two ways to present definitions - using the glossary to define the term as above or using the definition tag within the text.
Definition 1: problem
1. a question raised for inquiry, consideration, or solution; a proposition in mathematics or physics stating something to be done
2. an intricate unsettled question; a source of perplexity, distress, or vexation; difficulty in understanding or accepting
See Also: enigma, puzzle

Section Name

A document can have sections, however they are not required.

Subsection Name

Sections can have subsections. You can include quotes in paragraphs.
The seasons alter: hoary-headed frosts Fall in the fresh lap of the crimson rose, And on old Hiems thin and icy crown An odorous chaplet of sweet summer buds Is, as in mockery, set. The spring, the summer, The childing autumn, angry winter, change Their wonted liveries, and the mazed world, By their increase, now knows not which is which. William Shakespeare; A Midsummer Night's Dream
You can also denote words from another language, such as biological genus and species, E.coli, or the southern German greeting, Grüß Gott.
Paragraphs can contain many other tags such as lists and figures. Figure 1 shows how a figure will display in our system.
Optional Figure Name
distributed.png
Figure 1: The caption of the figure would be here.
There are four different options for list. One type of list is a named-item list.
List name
first name -  description of first item
second name -  description of second item
third name -  description of third item
fourth name -  description of fourth item
See the CNXML-0.5 Spec for more information regarding list types.
Example 1: Optional Name of Example 
Here is where you would put an example that relates to what the previous paragraphs were discussing. In an example, you can include any tags that are allowed in any other paragraph including tables (see Table 1).
Temperatures in 5 cities on 11/16/2002
City Degrees Fahrenheit Degrees Centigrade
Mean 54.000 12.22
Median 54.000 12.22
Variance 330.00 18.166
SD 101.852 10.092
Houston 54 12.22
Chicago 37 2.78
Minneapolis 31 -0.56
Miami 78 25.56
Phoenix 70 21.11
In the connexions system, it is important to use frame="all" with the table tag and colsep="1" rowsep="1" with the tbody tag to properly display the table in the print system.
If you would like a block of material to display exactly as you type it, you can use <code type='block'>; as you would when discussing computer programming.
         >> syms t
         >> laplace(exp(t))
         ans = 1/(s-1)
         >> laplace(t*exp(-t))
         ans = 1/(s+1>^2
        
You can also include math in your document. Math can be displayed in three ways in our system: inline, block, or numbered equations. Here are examples of an inline variable, xx, and an inline equation, 0<x<π 0 x . Math that you want set apart from the text can be numbered when in an equation tag or simply set apart. limn x n -x=0 n x n x 0
optional equation name Pf=-pt-2πftdt=0Δ-2πftdt=1-2πf-2πfΔ-1 P f t p t 2 f t t 0 Δ 2 f t 1 2 f 2 f Δ 1 (1)
See our discussion of Content MathML for a more basic discussion of math. See also our MathML Extensions page for more csymbol options.
theorem 1: Pythagorean Theorem 
For a right triangle with legs aa and bb and hypotenuse cc, a2+b2=c2 a 2 b 2 c 2
Proof
The proof would go here.
Problem 1
What is a composite number?
[ Click for Solution 1 ]
Solution 1
A composite number nn is a positive integer, n>1 n 1 , which is not prime.
[ Hide Solution 1 ]

Glossary

vocabulary term:
A word or phrase being defined in the text. A more complete definition with an example could be placed here in the glossary.
References
  1. William Shakespeare. (1969). A Midsummer Night's Dream. In Alfred Harbage (Ed.), William Shakespeare: The Complete Works. (pp. lines 107-114). The Viking Press.

Comments, questions, feedback, criticisms?

Send feedback