2011-07-15 15:15:12 +02:00
|
|
|
#+title: Test of basic mege features
|
2011-07-12 21:54:06 +02:00
|
|
|
#&summary
|
2011-07-17 00:34:50 +02:00
|
|
|
Test of mege's most important and most commonly used features
|
2011-07-12 21:54:06 +02:00
|
|
|
#&
|
2011-07-17 00:34:50 +02:00
|
|
|
#+license: bysa
|
2011-07-12 21:54:06 +02:00
|
|
|
|
2011-07-26 03:04:17 +02:00
|
|
|
* Test of basic mege features
|
2011-07-07 23:07:48 +02:00
|
|
|
*mege* has many features. A bit /too/ many, perhaps.
|
|
|
|
|
2011-07-26 03:04:17 +02:00
|
|
|
Remember to visit [[<@eval page.locurl@>.org]] to see the source of this document.
|
|
|
|
|
|
|
|
|
|
|
|
** Basic inline formatting
|
|
|
|
|
|
|
|
This is a paragraph.
|
|
|
|
|
|
|
|
This is a *paragraph* with the last word *strongly* /emphasized/. _This_ is
|
|
|
|
underlined. _/*The effects*/ can /be/ combined_. Press -C-n- to scroll down if
|
|
|
|
your web browser is Conkeror (-Ctrl+N- in non-emacs speak).
|
|
|
|
|
2011-08-01 22:39:41 +02:00
|
|
|
Type this: =$ echo echo=
|
2011-07-26 03:04:17 +02:00
|
|
|
|
|
|
|
** Extended inline formatting
|
|
|
|
|
|
|
|
mege uses postfix operators for less essential inline formatting.
|
|
|
|
|
|
|
|
More&strong strong text&samp. And even acronyms and abbreviations:
|
|
|
|
GNU&acro="GNU's not UNIX" and MF&abbr="Medlem af Folketinget". {Other
|
2011-08-01 22:39:41 +02:00
|
|
|
colors}&color=red and {other sizes}&small as well, {and {also
|
|
|
|
(really)}&color=green combinations}&large.
|
2011-07-26 03:04:17 +02:00
|
|
|
|
|
|
|
Now subtract y&var from x&var - 2^{32}. And a definition: {An integer above 0
|
2011-08-01 22:39:41 +02:00
|
|
|
is above -1_{a number}}&dfn. {Typewriter *text*}&tt.
|
2011-07-26 03:04:17 +02:00
|
|
|
|
|
|
|
|
2011-07-07 23:07:48 +02:00
|
|
|
** Lists
|
2011-07-10 16:03:48 +02:00
|
|
|
|
|
|
|
+ A
|
|
|
|
+ B
|
|
|
|
+ C
|
2011-07-07 23:07:48 +02:00
|
|
|
|
|
|
|
Another list:
|
|
|
|
+ The text of this line actually takes up two lines in its source form, and
|
|
|
|
not just one.
|
|
|
|
+ Just one line
|
|
|
|
+ A sublist
|
|
|
|
+ with another entry
|
2011-07-11 04:09:33 +02:00
|
|
|
1. and so on
|
|
|
|
2. etc.
|
2011-07-17 00:34:50 +02:00
|
|
|
1. ouoiaou
|
|
|
|
2. ouaoiu
|
|
|
|
1. oaiaou
|
2011-07-11 04:09:33 +02:00
|
|
|
+ continuing
|
2011-07-07 23:07:48 +02:00
|
|
|
|
2011-07-10 16:03:48 +02:00
|
|
|
** Definition lists
|
|
|
|
+ Lizard :: an animal
|
|
|
|
+ Ape :: also an animal
|
|
|
|
+ Book :: not an animal
|
2011-07-11 04:09:33 +02:00
|
|
|
+ Other books :: in existence
|
|
|
|
+ fail
|
|
|
|
+ aoa :: auoua oeu aou oe o u ouaoe uaoe uo uaoura oeu euao aoe aoe u au oo uo
|
|
|
|
uoe uo oe u,. uoeauoe uoa u,u
|
|
|
|
|
|
|
|
* a
|
|
|
|
* 3u :: o (correct behaviour)
|
|
|
|
|
|
|
|
** Images
|
2011-07-27 02:44:23 +02:00
|
|
|
#&img;url=test0.png, width=270, float=right, \
|
2011-07-17 00:34:50 +02:00
|
|
|
#&caption='A test picture'
|
|
|
|
|
|
|
|
#+caption: A test picture \
|
|
|
|
#+with a caption on two lines
|
2011-07-27 02:44:23 +02:00
|
|
|
#&img;url=test0.png, width=240, float=right
|
2011-07-07 23:07:48 +02:00
|
|
|
|
2011-07-26 03:04:17 +02:00
|
|
|
#&caption
|
|
|
|
A test picture
|
|
|
|
#&
|
2011-07-27 02:44:23 +02:00
|
|
|
#&img;url=test0.png, width=210, float=right
|
2012-04-19 22:04:59 +02:00
|
|
|
#&clear
|
2011-07-26 03:04:17 +02:00
|
|
|
|
2011-07-13 03:28:29 +02:00
|
|
|
** Links
|
|
|
|
|
|
|
|
Here is a link: [[http://example.com/][Wizard's webpage]]. And a shorter one: [[http://example.com/]]! I
|
2011-07-26 03:04:17 +02:00
|
|
|
want to _underline_ this link: [[http://example.com/]]&underline.
|
2011-07-13 03:28:29 +02:00
|
|
|
|
2011-07-11 17:32:29 +02:00
|
|
|
** Block containers
|
|
|
|
|
2011-07-17 00:34:50 +02:00
|
|
|
Blockquote:
|
2011-07-11 17:32:29 +02:00
|
|
|
|
2011-07-12 21:54:06 +02:00
|
|
|
#&block
|
2011-07-11 17:32:29 +02:00
|
|
|
Hello.
|
2011-07-12 21:54:06 +02:00
|
|
|
#&
|
2011-07-11 17:32:29 +02:00
|
|
|
|
2011-07-12 21:54:06 +02:00
|
|
|
*** Combination
|
2011-07-17 00:34:50 +02:00
|
|
|
#&+large
|
2011-07-12 21:54:06 +02:00
|
|
|
#&block
|
2011-07-17 00:34:50 +02:00
|
|
|
This is a paragraph inside a blockquote inside a block container. This is
|
|
|
|
escaped:
|
2011-07-12 21:54:06 +02:00
|
|
|
\#&
|
|
|
|
#&
|
|
|
|
#&
|
2011-07-11 17:32:29 +02:00
|
|
|
|
2011-07-12 21:54:06 +02:00
|
|
|
** Inline container
|
2011-07-11 17:32:29 +02:00
|
|
|
abc
|
2011-07-12 21:54:06 +02:00
|
|
|
#&-strong,tiny,color=red
|
2011-07-11 17:32:29 +02:00
|
|
|
def
|
|
|
|
|
2011-07-17 00:34:50 +02:00
|
|
|
(no new paragraph)
|
2011-07-12 21:54:06 +02:00
|
|
|
#&
|
2011-07-11 17:32:29 +02:00
|
|
|
ghi.
|
|
|
|
|
2011-07-12 21:54:06 +02:00
|
|
|
** Inline modifiers
|
|
|
|
|
|
|
|
This is a bt&acro='brutal test' of mege. More {bru te}&abbr='brutal testing'...
|
|
|
|
|
|
|
|
+ In a list
|
|
|
|
+ Not escaped: x&var, escaped: x\&var, not escaped in group: {x}&var, escaped
|
2011-08-12 19:20:40 +02:00
|
|
|
in group: {x}\&var. ns@metanohi.name ua
|
2011-07-12 21:54:06 +02:00
|
|
|
|
|
|
|
Nested groups: {{ab{ula aa}&abbr=a cd}&var&color=red cd}&acro
|
|
|
|
|
|
|
|
** Inline inline formatting
|
|
|
|
|
|
|
|
*mege*. /mege/ ... _mege_, {=mege mege=}&html. ~mege~! -C-f-?
|
|
|
|
|
|
|
|
Fail: ~mege ~, *meg*e, solution: {{mege }&samp}, {meg&strong}e
|
|
|
|
|
|
|
|
Nested fail: */oo/ aub.
|
|
|
|
|
|
|
|
{{a&strong}&emph}, {a&strong&emph}
|
|
|
|
|
|
|
|
A */_woo_/*!
|
|
|
|
|
|
|
|
|
2011-07-11 17:32:29 +02:00
|
|
|
** Tables
|
|
|
|
*** Body only
|
|
|
|
| Name | Age |
|
|
|
|
| Xryurg | 300 |
|
|
|
|
| Bkrau | 2 |
|
|
|
|
*** With head and foot
|
|
|
|
| Name | Age |
|
|
|
|
|--------+-----|
|
|
|
|
| Xryurg | 300 |
|
2011-07-12 21:54:06 +02:00
|
|
|
| Bkrau | *2* |
|
2011-07-11 17:32:29 +02:00
|
|
|
|--------+-----|
|
|
|
|
| Name | Age |
|
|
|
|
|
2011-07-12 21:54:06 +02:00
|
|
|
** Footnotes
|
|
|
|
|
|
|
|
This sentence is true[fn:true]. This is /not/[fn:false].
|
|
|
|
|
|
|
|
[fn:true] Master of Truthfulness, 1997
|
|
|
|
[fn:false] Master of Truthfulness, 1999, /revised ed./, with special
|
|
|
|
introduction by the Master of Falsefulness
|
|
|
|
|
|
|
|
\[fn:false] Master of Truthfulness, 1999, revised ed.
|
|
|
|
|
2011-07-13 03:28:29 +02:00
|
|
|
** Subscript and superscript
|
|
|
|
|
2011-07-17 00:34:50 +02:00
|
|
|
x_{tallyho} = 33^{12}, escaped: x_\{tallyho} = 33^\{12}
|
2011-07-12 21:54:06 +02:00
|
|
|
|
2011-08-01 22:39:41 +02:00
|
|
|
** Math
|
|
|
|
|
|
|
|
Inline: $2\neq3$, block:
|
|
|
|
|
|
|
|
#&math
|
|
|
|
\begin{align*}
|
|
|
|
\frac{dy}{dx} = 2x
|
|
|
|
\end{align*}
|
|
|
|
#&
|
|
|
|
|
2011-07-26 03:04:17 +02:00
|
|
|
** Code
|
|
|
|
|
|
|
|
: ver *ba* tim
|
|
|
|
: auoiao =aa
|
|
|
|
|
|
|
|
|
|
|
|
#++pre
|
|
|
|
: ver *ba* tim /aa/
|
|
|
|
: abc
|
|
|
|
|
|
|
|
|
2011-07-12 21:54:06 +02:00
|
|
|
** Eval'd Code
|
2011-07-13 03:28:29 +02:00
|
|
|
Inline code: <@eval 2 + 3@>. <@exec print('aha')
|
|
|
|
|
|
|
|
Inline code:
|
|
|
|
#&-eval
|
|
|
|
2 + 3
|
|
|
|
#&
|
2011-07-12 21:54:06 +02:00
|
|
|
|
|
|
|
Block code:
|
|
|
|
#++eval
|
|
|
|
#+BEGIN_SRC python
|
|
|
|
2 + 3
|
|
|
|
#+END_SRC
|
|
|
|
|
2011-07-13 03:28:29 +02:00
|
|
|
Inline HTML: <@html <strong>strong text</strong>@>. Smiley: '_~
|
2011-07-11 17:32:29 +02:00
|
|
|
|
2011-07-10 16:03:48 +02:00
|
|
|
* Org features not supported by mege
|
2011-07-07 23:07:48 +02:00
|
|
|
|
2011-07-10 16:03:48 +02:00
|
|
|
** In lists
|
|
|
|
#+BEGIN_SRC
|
2011-07-12 21:54:06 +02:00
|
|
|
10. [&10]Starting at 10
|
2011-07-10 16:03:48 +02:00
|
|
|
11. ABC
|
2011-07-12 21:54:06 +02:00
|
|
|
40. [&40]Going to 40
|
2011-07-10 16:03:48 +02:00
|
|
|
41. 2+2=4
|
|
|
|
#+END_SRC
|
2011-07-13 21:23:41 +02:00
|
|
|
|
2011-08-01 22:39:41 +02:00
|
|
|
And more.
|