summaryrefslogtreecommitdiff
path: root/sandbox.mdwn
blob: 37843602197353a76b7d8f2747e693defb897bae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
This is the SandBox, a page anyone can edit to learn how to use the wiki.

----

Here's a paragraph.

Here's another one with *emphasised* text. You can do it _two_ ways.

And one with **strong** text. Also __two__ ways to do it.

# Header (h1)

## Subheader (h2)

### Etc. (h3)

#### h4
 
##### h5
 
###### h6


> This is a blockquote.
>
> This is the first level of quoting.
>
> > This is nested blockquote.
>
> Back to the first level.

Numbered list 

1. First item.
1. Another.
1. And another..

Bulleted list

* _item_
* item

You can do inline `code` or put it in a section:

    int i;
    for(i = 0; i < 10; i++)
    {
        printf("%d\n", i);
    }

Table of comma separated values

[[!table format=csv class="data" file="sandbox/Test.csv"]]

Table inline

[[!table  class="data" data="""
   Customer | Amount
  Fulanito  | 134,34
 Menganito  | 234,56
 Menganito  | 234,56
"""]]

[[ikiwiki/WikiLink]]

---

[[!img test.png class="picture"]]


This is expected to be an overbarred equation

<div style="background green">
<span style="white-space: nowrap; font-size:larger">
&radic;<span style="text-decoration:overline;">&nbsp;X + 1&nbsp;</span>
</span>
</div>

But ikiwiki seems to strip the "overline" directive. --Considered 'not safe' HTML.

LaTeX test:

[[!teximg  code="E = - \frac{Z^2 \cdot  \mu \cdot e^4}{32\pi^2 \epsilon_0^2 \hbar^2 n^2}" ]]

[[!teximg  code=" f(x) = \left\{ \begin{array}{ll}
x+7 & \mbox{if $5< x$};\\
x^2-3 & \mbox{if $-3 \le x \le 5$};\\
-x & \mbox{if $x < -3$}.\end{array} \right. " ]]

[[!teximg code="\left [ \begin{matrix}
\overset{\centerdot \centerdot}{\theta} \\
\overset{\centerdot}{\theta}
\end{matrix} \right ] =
\left [ \begin{matrix}
a & b \\
c & d
\end{matrix} \right ]" ]]

[[!teximg code="\left [ \begin{matrix}
\overset{\centerdot \centerdot}{\theta} \\
\overset{\centerdot}{\theta}
\end{matrix} \right ] =
\begin{bmatrix}
a & b \\
c & d
\end{bmatrix}" ]]


[[!teximg code="\usepackage[dvips]{graphicx}
\begin{figure}[ht]
\centering \scalebox{0.5} 
\label{fig:exm}
\end{figure}" ]]

I guess importing graphics through LaTeX commands won't work... This probably makes sense, since we can import images some other way.

{\includegraphics{matlab.eps}}


This does work:

[[!teximg code="\begin{array}{lcl} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}"]]

But it would be better if align worked:

[[!teximg code="\
\begin{align} \
(a+b)^3 &= (a+b)^2(a+b)\\ \
&=(a^2+2ab+b^2)(a+b)\\ \
&=(a^3+2a^2b+ab^2) + (a^2b+2ab^2+b^3)\\ \
&=a^3+3a^2b+3ab^2+b^3 \
\end{align}"]]