From Mohammed J. Zaki

Dmcourse: Pmwiki

Pmwiki

All assignments must be submitted via the assignment wiki page. You will need to learn the simple markup rules to submit your edit and save your solutions. The Basic Editing in Pmwiki page should get you started. Here I will cover two other topics. Namely, how to insert mathematical formulas, and how to attach the R script file.

Attaching Script Files

To attach a file named assign1.xx (where xx can be "pl" for perl, "py" for python or "r" for R), you can use the following markup (the markup on the left produces the output on the right):

 [[ (Attach:) assign1.xx ]] 
  assign1.xx  Δ 

Then click on the link to actually upload the corresponding file.

All code must be attached in this manner, so that I can easily download and run it.

More details are available at Pmwiki Upload Instructions

Note that if you want to update the uploaded file, you can always do so by typing: http://www.cs.rpi.edu/~zaki/Courses/bioinfo/Spring10/pmwiki.php/UserName/Assign1?action=upload where UserName is your user name. You can either delete the old version by clicking on the list at the bottom of the page, or you can simply upload the same file again, and it will overwrite the old version.

Attaching Figures

To attach a figure named '''myfig.jpg" just do:

 Attach:myfig.jpg 
 Attach:myfig.jpg Δ 

Once you upload the figure, it will display as a figure embedded in the page.

Math Formulas

For nice display, you must use the TeX math style, as provided in JsMath. You do not have to install jsMath, since the submission page already has it installed. You simply have to use it.

Here is how you can insert math formulas, equations, etc on your solution page. Pmwiki's JsMath addon (which is enabled) provides two markup options:

 {$ \sqrt{n} $} 
 {$ \sqrt{n} $} 
 {$ \int_a^b f(x) dx $} 
 {$ \int_a^b f(x) dx $} 
 {$ \displaystyle \int_a^b f(x) dx $} 
 {$ \displaystyle \int_a^b f(x) dx $} 
 {$$ \pmatrix{\ 1& 0\\ 0& 1} $$} 
 {$$ \pmatrix{\ 1& 0\\ 0& 1} $$} 
{$$ f(x)=\cases {\
x^2+1&\text{if $x<0$}\cr\
1-x&\text{otherwise}  }\
$$}

{$$ f(x)=\cases {\ x^2+1&\text{if $x<0$}\cr\ 1-x&\text{otherwise} }\ $$}

Check out the list of symbols and operators available in jsMath for more details.

Retrieved from http://www.cs.rpi.edu/~zaki/www-new/pmwiki.php/Dmcourse/Pmwiki
Page last modified on September 15, 2010, at 10:55 PM