Pmwiki

Dmcourse.Pmwiki History

Hide minor edits - Show changes to output

September 15, 2010, at 10:55 PM by 128.113.126.13 -
Added lines 1-40:
!Pmwiki
All assignments must be submitted via the [[http://www.cs.rpi.edu/~zaki/Courses/bioinfo/Spring10/pmwiki.php | assignment wiki page]]. You will need to learn the simple markup rules to submit your edit and save your solutions. The [[http://www.pmwiki.org/wiki/PmWiki/BasicEditing | 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):
(:markup class=horiz:) [= [[ (Attach:) assign1.xx ]] =]
Then click on the link to actually upload the corresponding file.

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

More details are available at [[http://www.pmwiki.org/wiki/PmWiki/Uploads | 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:
(:markup:) [= 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. %red% 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:
* [@{$...$}@]: This displays the formula inline with the text. For example, the markups on the left produce the effects on the right --
(:markup class=horiz:) [= {$ \sqrt{n} $} =]
(:markup class=horiz:) [= {$ \int_a^b f(x) dx $} =]
(:markup class=horiz:) [= {$ \displaystyle \int_a^b f(x) dx $} =]

* [@{$$ ... $$}@]: This displays the formula centered on a separate line.
(:markup:) [= {$$ \pmatrix{\ 1& 0\\ 0& 1} $$} =]
(:markup:)
{$$ f(x)=\cases {\
x^2+1&\text{if $x<0$}\cr\
1-x&\text{otherwise} }\
$$}
(:markupend:)
Check out the [[http://www.math.union.edu/~dpvc/jsMath/symbols/welcome.html | list of symbols and operators]] available in jsMath for more details.