Wiki Editing Information

Thanks for helping improve the wiki! This is just a quick README to get you started. First, a quick request. Please don't mess up the wiki (this includes pranks!). Every change on a wiki is tracked and everything is easy to revert anyway, and you will be held responsible (grade penalty) if your user account does bad things to the wiki (so also make sure not to give out your username/password.)

On a similar note, don't put things like homework answers on the wiki. If you're unsure, ask.

Anyway, editing is pretty easy once you have a user account. Just click on the edit link and write away! Formatting instructions are located at the top (except for how to do math, which we'll talk about in a sec). One warning: try to avoid doing giant changes (like rewriting the entire page, etc.) - someone else may be editing it too and merging can be annoying.

Embedding equations/math

You enter math stuff using LaTeX format. There are two main ways to do equations:

  • in-line, declared by %$ $%. Similar to LaTeX's inline math mode, the math markup is rendered on the same line as other text in the string. Example:

  • own-line, declared by %\[ \]% or %MATHMODE{ ... }%. These equations will be rendered with center justification on their own line. Example:

Advanced syntax

For those that are well familiar with LaTeX, a multi-line syntax allowing more complicated markup commands can be declared as follows.

%BEGINLATEX%
  \begin{<environment>}
    _latex markup_ 
  \end{<environment>}
%ENDLATEX%

Typically, the declared <environment> will be displaymath, although there is no limitation. Example using eqnarray*:

%BEGINLATEX% \begin{eqnarray*} \sum_{i=1}^{k+1} i &=& (k+1) + k(k+1)/2 \\ &=& {{2k+2 + k(k+1)} \over 2} \ &=& {{k^2 + 3k + 2} \over 2} \ &=& {{(k+1)(k+2)} \over 2} \end{eqnarray*} %ENDLATEX%

References

Adding files and pictures

You can use the attach tab to attach pictures and images to a page. There's an option to automatically add a link when you upload - for files, its easiest to just check this and cut/paste that link to where you need it. For images, use HTML, e.g.:

  • <center><img src="%ATTACHURLPATH%/image.jpg" /></center>

%ATTACHURLPATH% is a variable that automatically converts to the correct path.

Colored Text

  • You type: %RED% red text %ENDCOLOR% and %GREEN% green text %ENDCOLOR%
  • You get: red text and green text

Note: %<color>% text must end with %ENDCOLOR%. If you want to switch from one color to another one you first need to end the active color with %ENDCOLOR%, e.g. write %RED% some text %ENDCOLOR% %GREEN% more text %ENDCOLOR%.

  • Set YELLOW = looks like this
  • Set ORANGE = looks like this
  • Set RED = looks like this
  • Set PINK = looks like this
  • Set PURPLE = looks like this
  • Set TEAL = looks like this
  • Set NAVY = looks like this
  • Set BLUE = looks like this
  • Set AQUA = looks like this
  • Set LIME = looks like this
  • Set GREEN = looks like this
  • Set OLIVE = looks like this
  • Set MAROON = looks like this
  • Set BROWN = looks like this
  • Set BLACK = looks like this
  • Set GRAY = looks like this
  • Set SILVER = looks like this
  • Set WHITE = looks like this (with gray background)

Tips and Quirks

  • Don't forget that you can use HTML! While /afs/andrew/scs/cs/15251/student/assignment*N*/handin/*userid* won't work, /afs/andrew/scs/cs/15251/student/assignmentN/handin/userid will.
  • When embedding single-line equations/variables using Latex (e.g ), put an _{} to correct the vertical alignment (e.g. %$n_{}$%). This is a quirk of TWiki, not Latex (the images are too short and the css style always aligns them at the bottom)
Topic revision: r1 - 2008-01-07 - 00:46:29 - LuisVonAhn
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback