| Trouble viewing the formulas? You need a MathML compatible browser. |
Help:Editing tips
From LogicWiki
This pages contains some editing tips for doing things that might otherwise be hard to do. A good place to start learning to edit is Wikipedia's tutorial. Some of the stuff is obviously specific to wikipedia and can be safely ignored. Wikipedia also has a few pages on more advanced topic that apply here as well: adding pictures and making tables.
Here are a few quick things that you might want to do. Feel free to add questions to this page so that others can answer them.
Contents |
Columns
We have copied wikipedia's method for putting text in columns. There are two ways to do this. The first lets the browser determine the size of the columns. In order to do this you will use the templates {{col-begin}}, {{col-break}}, and {{col-end}}.
Type the following:
{{col-begin}}
{{col-break}}
Text in column one
{{col-break}}
Text in column two
{{col-break}}
Text in column three
{{col-end}}
This will produce the following output:
|
Text in column one |
Text in column two |
Text in column three |
This will often look fine, but will sometimes lead to uneven columns. Especially when there is a lot more text in one column then the other. The alternative way is to tell the wiki how many columns you want. This is acheived by replacing {{col-break}} with a number specific break template. In the case of three columns, do the following:
{{col-begin}}
{{col-3}}
Text in column one
{{col-3}}
Text in column two
{{col-3}}
Text in column three
{{col-end}}
This will evenly space out the three columns regardless of the content of each column. Similarly, this works for 2, 4, 5, and 6 columns.
Math
- For a more detailed discussion see Wikipedia's introduction to formulas
Standard AMS-LaTeX formlas can be written with the <math></math> tags. In order to produce
You would type:
- <math>\sum_{i=0}^{n} i = \frac{1}{2} n(n+1)</math>
A nice quick introduction to mathmatical formulas in LaTeX can be found in The not so short introduction to LaTeX 2e. The chapter on basic mathematics should be all you need.
Trees
Kevin has created a tool for creating truth trees. Use this to build your tree. Once you have finished, save the final image of the tree to your hard disk. Then upload the image here under a descriptive filename. (Remember, there will be lots of truth trees, so don't use "truthtree" or otherwise generic name.) Once you do that you can use the tree in your modules by referencing it with [[Image:FILENAME.png]]. For more details on using images see Wikipedia's tutorial on the subject.
Truth tables
I have jurry rigged together a way to do truth tables. Its best to show it as an example:
{| class="truthtable"
! ''A'' !! {{last}} | ''B'' !! <math>(A \or B)</math>
|-
| T || {{last}} | T || T
|-
| T || {{last}} | F || T
|-
| F || {{last}} | T || T
|-
| F || {{last}} | F || F
|}
Produces the following output:
| A | B | |
|---|---|---|
| T | T | T |
| T | F | T |
| F | T | T |
| F | F | F |
The class="truthtable" bit does most of the configuration. If you want something to be in the top line be sure and use exclamation points (!) instead of pipes (|), this will put a darker line under them. When you want a vertical line add {{last}} before the last text before the line. (Notice in the above example {{last}} comes before B, but the line comes to the right of B.) Sorry about this confusion, there is no way around it unfortunately.
Highlighted Boxes
To put something in a sexy, highlighted box (for example, the statement of the total probability theorem), do this:
{| align="center" style="border:solid 2px #cc0000;"
|
I'm sexy, and in a box!
|}
|
I'm sexy, and in a box! |
"#cc0000" is the color of the box, while "2px" is its width in pixels. The alignment can also be changed to "left", "center", or "right".
