maruku 0.5.9 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/maruku +6 -1
- data/bin/marutest +25 -18
- data/lib/maruku.rb +3 -0
- data/lib/maruku/ext/div.rb +39 -6
- data/lib/maruku/ext/math/latex_fix.rb +1 -0
- data/lib/maruku/ext/math/mathml_engines/blahtex.rb +9 -8
- data/lib/maruku/ext/math/parsing.rb +15 -1
- data/lib/maruku/ext/math/to_html.rb +34 -17
- data/lib/maruku/ext/math/to_latex.rb +4 -0
- data/lib/maruku/helpers.rb +3 -3
- data/lib/maruku/input/charsource.rb +1 -1
- data/lib/maruku/input/parse_block.rb +1 -0
- data/lib/maruku/input/parse_doc.rb +12 -5
- data/lib/maruku/input/parse_span_better.rb +24 -10
- data/lib/maruku/output/s5/to_s5.rb +14 -1
- data/lib/maruku/output/to_html.rb +20 -1
- data/lib/maruku/output/to_latex.rb +27 -0
- data/lib/maruku/output/to_latex_entities.rb +2 -2
- data/lib/maruku/output/to_s.rb +5 -2
- data/lib/maruku/string_utils.rb +2 -2
- data/lib/maruku/structures.rb +2 -0
- data/lib/maruku/tests/new_parser.rb +5 -2
- data/lib/maruku/version.rb +1 -1
- data/tests/bugs/code_in_links.md +85 -0
- data/tests/bugs/complex_escaping.md +34 -0
- data/tests/unittest/abbreviations.md +2 -10
- data/tests/unittest/alt.md +2 -3
- data/tests/unittest/attributes/att2.md +2 -4
- data/tests/unittest/attributes/att3.md +2 -7
- data/tests/unittest/attributes/attributes.md +2 -15
- data/tests/unittest/attributes/circular.md +2 -7
- data/tests/unittest/attributes/default.md +2 -6
- data/tests/unittest/blank.md +2 -5
- data/tests/unittest/blanks_in_code.md +2 -21
- data/tests/unittest/bug_def.md +2 -3
- data/tests/unittest/bug_table.md +2 -11
- data/tests/unittest/code.md +2 -9
- data/tests/unittest/code2.md +2 -8
- data/tests/unittest/code3.md +2 -21
- data/tests/unittest/data_loss.md +2 -7
- data/tests/unittest/divs/div1.md +32 -57
- data/tests/unittest/divs/div2.md +6 -7
- data/tests/unittest/divs/div3_nest.md +8 -13
- data/tests/unittest/easy.md +2 -3
- data/tests/unittest/email.md +2 -3
- data/tests/unittest/encoding/iso-8859-1.md +2 -5
- data/tests/unittest/encoding/utf-8.md +2 -5
- data/tests/unittest/entities.md +2 -20
- data/tests/unittest/escaping.md +2 -12
- data/tests/unittest/extra_dl.md +2 -10
- data/tests/unittest/extra_header_id.md +2 -13
- data/tests/unittest/extra_table1.md +2 -8
- data/tests/unittest/footnotes.md +2 -19
- data/tests/{bugs/html.md → unittest/hang.md} +9 -9
- data/tests/unittest/headers.md +2 -7
- data/tests/unittest/hex_entities.md +2 -3
- data/tests/unittest/hrule.md +2 -11
- data/tests/unittest/html2.md +2 -6
- data/tests/unittest/html3.md +2 -6
- data/tests/unittest/html4.md +2 -7
- data/tests/unittest/html5.md +2 -5
- data/tests/unittest/ie.md +2 -23
- data/tests/unittest/images.md +2 -14
- data/tests/unittest/images2.md +2 -5
- data/tests/unittest/inline_html.md +6 -102
- data/tests/unittest/inline_html2.md +2 -5
- data/tests/unittest/links.md +17 -50
- data/tests/unittest/links2.md +2 -3
- data/tests/unittest/list1.md +2 -10
- data/tests/unittest/list12.md +2 -5
- data/tests/unittest/list2.md +2 -10
- data/tests/unittest/list3.md +2 -14
- data/tests/unittest/list4.md +2 -17
- data/tests/unittest/lists.md +2 -39
- data/tests/unittest/lists10.md +2 -7
- data/tests/unittest/lists11.md +2 -5
- data/tests/unittest/lists6.md +2 -3
- data/tests/unittest/lists9.md +2 -11
- data/tests/unittest/lists_after_paragraph.md +3 -51
- data/tests/unittest/lists_ol.md +2 -52
- data/tests/unittest/loss.md +2 -3
- data/tests/unittest/math/equations.md +54 -37
- data/tests/unittest/math/inline.md +4 -12
- data/tests/unittest/math/math2.md +4 -57
- data/tests/unittest/math/notmath.md +2 -5
- data/tests/unittest/math/table.md +5 -11
- data/tests/unittest/math/table2.md +2 -8
- data/tests/unittest/misc_sw.md +2 -80
- data/tests/unittest/notyet/escape.md +2 -5
- data/tests/unittest/notyet/header_after_par.md +2 -13
- data/tests/unittest/notyet/ticks.md +2 -3
- data/tests/unittest/notyet/triggering.md +2 -39
- data/tests/unittest/olist.md +2 -9
- data/tests/unittest/one.md +2 -3
- data/tests/unittest/paragraph.md +2 -3
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +2 -5
- data/tests/unittest/paragraph_rules/tab_is_blank.md +2 -5
- data/tests/unittest/paragraphs.md +2 -10
- data/tests/unittest/pending/amps.md +2 -4
- data/tests/unittest/pending/empty_cells.md +2 -6
- data/tests/unittest/pending/link.md +2 -21
- data/tests/unittest/pending/ref.md +2 -3
- data/tests/unittest/recover/recover_links.md +7 -8
- data/tests/{bugs → unittest/red_tests}/abbrev.md +12 -103
- data/tests/unittest/{lists7.md → red_tests/lists7.md} +2 -13
- data/tests/unittest/{lists7b.md → red_tests/lists7b.md} +2 -10
- data/tests/unittest/{lists8.md → red_tests/lists8.md} +2 -9
- data/tests/unittest/red_tests/xml.md +70 -0
- data/tests/unittest/references/long_example.md +2 -7
- data/tests/unittest/references/spaces_and_numbers.md +2 -3
- data/tests/unittest/smartypants.md +2 -47
- data/tests/unittest/syntax_hl.md +2 -18
- data/tests/unittest/table_attributes.md +2 -8
- data/tests/unittest/test.md +2 -3
- data/tests/unittest/underscore_in_words.md +27 -0
- data/tests/unittest/wrapping.md +2 -11
- data/tests/unittest/xml2.md +2 -5
- data/tests/unittest/xml3.md +2 -8
- data/tests/unittest/xml_instruction.md +2 -10
- data/unit_test_span.sh +2 -1
- metadata +242 -241
- data/docs/changelog.html +0 -490
- data/docs/entity_test.html +0 -258
- data/docs/exd.html +0 -307
- data/docs/index.html +0 -332
- data/docs/markdown_syntax.html +0 -690
- data/docs/maruku.html +0 -332
- data/docs/proposal.html +0 -326
- data/docs/tmp.md +0 -2
- data/lib/sort_prof.rb +0 -22
- data/tests/bugs/links.md +0 -47
- data/tests/diagrams/diagrams.md +0 -302
- data/tests/s5/a.md +0 -13
- data/tests/s5/instiki+s5.md +0 -105
- data/tests/unittest/xml.md +0 -54
data/docs/entity_test.html
DELETED
@@ -1,258 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC
|
3
|
-
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
|
4
|
-
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
|
5
|
-
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
|
6
|
-
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title>List of symbols supported by Maruku</title></head>
|
7
|
-
<body>
|
8
|
-
<h1 id='list_of_symbols_supported_by_maruku'>List of symbols supported by Maruku</h1>
|
9
|
-
<?maruku MaRuKu::Out::Latex.need_entity_table
|
10
|
-
|
11
|
-
all = []
|
12
|
-
ENTITY_TABLE.each do |k, e|
|
13
|
-
if k.kind_of? String
|
14
|
-
all << (h=md_code("&#{e.html_entity};")) <<
|
15
|
-
" " << md_entity(e.html_entity) <<
|
16
|
-
" (" << (l=md_code(e.latex_string)) << ") \n" <<
|
17
|
-
md_entity('nbsp')<<md_entity('nbsp')<<md_entity('nbsp')
|
18
|
-
|
19
|
-
h.attributes[:code_background_color] = '#eef'
|
20
|
-
l.attributes[:code_background_color] = '#ffe'
|
21
|
-
end
|
22
|
-
end
|
23
|
-
@doc.children.push md_par(all)?>
|
24
|
-
<p><code style='background-color: #eef;'>&oslash;</code> ø (<code style='background-color: #ffe;'>\o</code>)
|
25
|
-
   <code style='background-color: #eef;'>&iexcl;</code> ¡ (<code style='background-color: #ffe;'>\textexclamdown</code>)
|
26
|
-
   <code style='background-color: #eef;'>&szlig;</code> ß (<code style='background-color: #ffe;'>\ss</code>)
|
27
|
-
   <code style='background-color: #eef;'>&ETH;</code> Ð (<code style='background-color: #ffe;'>$\eth$</code>)
|
28
|
-
   <code style='background-color: #eef;'>&Oslash;</code> Ø (<code style='background-color: #ffe;'>\O</code>)
|
29
|
-
   <code style='background-color: #eef;'>&Yuml;</code> Ÿ (<code style='background-color: #ffe;'>\"Y</code>)
|
30
|
-
   <code style='background-color: #eef;'>&rho;</code> ρ (<code style='background-color: #ffe;'>$\rho$</code>)
|
31
|
-
   <code style='background-color: #eef;'>&psi;</code> ψ (<code style='background-color: #ffe;'>$\psi$</code>)
|
32
|
-
   <code style='background-color: #eef;'>&ecirc;</code> ê (<code style='background-color: #ffe;'>\^e</code>)
|
33
|
-
   <code style='background-color: #eef;'>&OElig;</code> Œ (<code style='background-color: #ffe;'>\OE</code>)
|
34
|
-
   <code style='background-color: #eef;'>&euml;</code> ë (<code style='background-color: #ffe;'>\"e</code>)
|
35
|
-
   <code style='background-color: #eef;'>&aelig;</code> æ (<code style='background-color: #ffe;'>\ae</code>)
|
36
|
-
   <code style='background-color: #eef;'>&Theta;</code> Θ (<code style='background-color: #ffe;'>$\Theta$</code>)
|
37
|
-
   <code style='background-color: #eef;'>&Mu;</code> Μ (<code style='background-color: #ffe;'>$M$</code>)
|
38
|
-
   <code style='background-color: #eef;'>&alefsym;</code> ℵ (<code style='background-color: #ffe;'>$\aleph$</code>)
|
39
|
-
   <code style='background-color: #eef;'>&acirc;</code> â (<code style='background-color: #ffe;'>\^a</code>)
|
40
|
-
   <code style='background-color: #eef;'>&piv;</code> ϖ (<code style='background-color: #ffe;'>$\varpi$</code>)
|
41
|
-
   <code style='background-color: #eef;'>&egrave;</code> è (<code style='background-color: #ffe;'>\`e</code>)
|
42
|
-
   <code style='background-color: #eef;'>&not;</code> ¬ (<code style='background-color: #ffe;'>$\neg$</code>)
|
43
|
-
   <code style='background-color: #eef;'>&Egrave;</code> È (<code style='background-color: #ffe;'>\`E</code>)
|
44
|
-
   <code style='background-color: #eef;'>&para;</code> ¶ (<code style='background-color: #ffe;'>\P</code>)
|
45
|
-
   <code style='background-color: #eef;'>&ugrave;</code> ù (<code style='background-color: #ffe;'>\`u</code>)
|
46
|
-
   <code style='background-color: #eef;'>&Yacute;</code> Ý (<code style='background-color: #ffe;'>\'Y</code>)
|
47
|
-
   <code style='background-color: #eef;'>&lsquo;</code> ‘ (<code style='background-color: #ffe;'>`</code>)
|
48
|
-
   <code style='background-color: #eef;'>&Phi;</code> Φ (<code style='background-color: #ffe;'>$\Phi$</code>)
|
49
|
-
   <code style='background-color: #eef;'>&euro;</code> € (<code style='background-color: #ffe;'>\euro</code>)
|
50
|
-
   <code style='background-color: #eef;'>&icirc;</code> î (<code style='background-color: #ffe;'>\^i</code>)
|
51
|
-
   <code style='background-color: #eef;'>&iacute;</code> í (<code style='background-color: #ffe;'>\'i</code>)
|
52
|
-
   <code style='background-color: #eef;'>&rArr;</code> ⇒ (<code style='background-color: #ffe;'>$\Rightarrow$</code>)
|
53
|
-
   <code style='background-color: #eef;'>&Ntilde;</code> Ñ (<code style='background-color: #ffe;'>\~N</code>)
|
54
|
-
   <code style='background-color: #eef;'>&sim;</code> ∼ (<code style='background-color: #ffe;'>$\sim$</code>)
|
55
|
-
   <code style='background-color: #eef;'>&sup1;</code> ¹ (<code style='background-color: #ffe;'>$^1$</code>)
|
56
|
-
   <code style='background-color: #eef;'>&amp;</code> & (<code style='background-color: #ffe;'>\&</code>)
|
57
|
-
   <code style='background-color: #eef;'>&thetasym;</code> ϑ (<code style='background-color: #ffe;'>$\vartheta$</code>)
|
58
|
-
   <code style='background-color: #eef;'>&sup2;</code> ² (<code style='background-color: #ffe;'>$^2$</code>)
|
59
|
-
   <code style='background-color: #eef;'>&pi;</code> π (<code style='background-color: #ffe;'>$\pi$</code>)
|
60
|
-
   <code style='background-color: #eef;'>&Gamma;</code> Γ (<code style='background-color: #ffe;'>$\Gamma$</code>)
|
61
|
-
   <code style='background-color: #eef;'>&trade;</code> ™ (<code style='background-color: #ffe;'>$^{\rm TM}$</code>)
|
62
|
-
   <code style='background-color: #eef;'>&sup3;</code> ³ (<code style='background-color: #ffe;'>$^3$</code>)
|
63
|
-
   <code style='background-color: #eef;'>&Omicron;</code> Ο (<code style='background-color: #ffe;'>$O$</code>)
|
64
|
-
   <code style='background-color: #eef;'>&Iuml;</code> Ï (<code style='background-color: #ffe;'>\"I</code>)
|
65
|
-
   <code style='background-color: #eef;'>&THORN;</code> Þ (<code style='background-color: #ffe;'>\Thorn</code>)
|
66
|
-
   <code style='background-color: #eef;'>&radic;</code> √ (<code style='background-color: #ffe;'>$\surd$</code>)
|
67
|
-
   <code style='background-color: #eef;'>&forall;</code> ∀ (<code style='background-color: #ffe;'>$\forall$</code>)
|
68
|
-
   <code style='background-color: #eef;'>&kappa;</code> κ (<code style='background-color: #ffe;'>$\kappa$</code>)
|
69
|
-
   <code style='background-color: #eef;'>&sect;</code> § (<code style='background-color: #ffe;'>\S</code>)
|
70
|
-
   <code style='background-color: #eef;'>&Eta;</code> Η (<code style='background-color: #ffe;'>$H$</code>)
|
71
|
-
   <code style='background-color: #eef;'>&Otilde;</code> Õ (<code style='background-color: #ffe;'>\~O</code>)
|
72
|
-
   <code style='background-color: #eef;'>&Uuml;</code> Ü (<code style='background-color: #ffe;'>\"U</code>)
|
73
|
-
   <code style='background-color: #eef;'>&int;</code> ∫ (<code style='background-color: #ffe;'>$\int$</code>)
|
74
|
-
   <code style='background-color: #eef;'>&Tau;</code> Τ (<code style='background-color: #ffe;'>$T$</code>)
|
75
|
-
   <code style='background-color: #eef;'>&larr;</code> ← (<code style='background-color: #ffe;'>$\leftarrow$</code>)
|
76
|
-
   <code style='background-color: #eef;'>&Ugrave;</code> Ù (<code style='background-color: #ffe;'>\`U</code>)
|
77
|
-
   <code style='background-color: #eef;'>&tilde;</code> ˜ (<code style='background-color: #ffe;'>\textasciitilde</code>)
|
78
|
-
   <code style='background-color: #eef;'>&darr;</code> ↓ (<code style='background-color: #ffe;'>$\downarrow$</code>)
|
79
|
-
   <code style='background-color: #eef;'>&Pi;</code> Π (<code style='background-color: #ffe;'>$\Pi$</code>)
|
80
|
-
   <code style='background-color: #eef;'>&exist;</code> ∃ (<code style='background-color: #ffe;'>$\exists$</code>)
|
81
|
-
   <code style='background-color: #eef;'>&lowast;</code> ∗ (<code style='background-color: #ffe;'>$\ast$</code>)
|
82
|
-
   <code style='background-color: #eef;'>&rsaquo;</code> › (<code style='background-color: #ffe;'>\guilsinglright</code>)
|
83
|
-
   <code style='background-color: #eef;'>&middot;</code> · (<code style='background-color: #ffe;'>$\cdot$</code>)
|
84
|
-
   <code style='background-color: #eef;'>&crarr;</code> ↵ (<code style='background-color: #ffe;'>$\hookleftarrow$</code>)
|
85
|
-
   <code style='background-color: #eef;'>&Ucirc;</code> Û (<code style='background-color: #ffe;'>\^U</code>)
|
86
|
-
   <code style='background-color: #eef;'>&Epsilon;</code> Ε (<code style='background-color: #ffe;'>$E$</code>)
|
87
|
-
   <code style='background-color: #eef;'>&thorn;</code> þ (<code style='background-color: #ffe;'>\thorn</code>)
|
88
|
-
   <code style='background-color: #eef;'>&ntilde;</code> ñ (<code style='background-color: #ffe;'>\~n</code>)
|
89
|
-
   <code style='background-color: #eef;'>&raquo;</code> » (<code style='background-color: #ffe;'>\guillemotright</code>)
|
90
|
-
   <code style='background-color: #eef;'>&harr;</code> ↔ (<code style='background-color: #ffe;'>$\leftrightarrow$</code>)
|
91
|
-
   <code style='background-color: #eef;'>&part;</code> ∂ (<code style='background-color: #ffe;'>$\partial$</code>)
|
92
|
-
   <code style='background-color: #eef;'>&atilde;</code> ã (<code style='background-color: #ffe;'>\~a</code>)
|
93
|
-
   <code style='background-color: #eef;'>&ccedil;</code> ç (<code style='background-color: #ffe;'>\c{c}</code>)
|
94
|
-
   <code style='background-color: #eef;'>&Acirc;</code> Â (<code style='background-color: #ffe;'>\^A</code>)
|
95
|
-
   <code style='background-color: #eef;'>&otilde;</code> õ (<code style='background-color: #ffe;'>\~o</code>)
|
96
|
-
   <code style='background-color: #eef;'>&uArr;</code> ⇑ (<code style='background-color: #ffe;'>$\Uparrow$</code>)
|
97
|
-
   <code style='background-color: #eef;'>&diams;</code> ♦ (<code style='background-color: #ffe;'>$\diamondsuit$</code>)
|
98
|
-
   <code style='background-color: #eef;'>&upsilon;</code> υ (<code style='background-color: #ffe;'>$\upsilon$</code>)
|
99
|
-
   <code style='background-color: #eef;'>&Euml;</code> Ë (<code style='background-color: #ffe;'>\"E</code>)
|
100
|
-
   <code style='background-color: #eef;'>&asymp;</code> ≈ (<code style='background-color: #ffe;'>$\approx$</code>)
|
101
|
-
   <code style='background-color: #eef;'>&ne;</code> ≠ (<code style='background-color: #ffe;'>$\neq$</code>)
|
102
|
-
   <code style='background-color: #eef;'>&rceil;</code> ⌈ (<code style='background-color: #ffe;'>$\rceil$</code>)
|
103
|
-
   <code style='background-color: #eef;'>&sdot;</code> ⋅ (<code style='background-color: #ffe;'>$\cdot$</code>)
|
104
|
-
   <code style='background-color: #eef;'>&beta;</code> β (<code style='background-color: #ffe;'>$\beta$</code>)
|
105
|
-
   <code style='background-color: #eef;'>&ni;</code> ∋ (<code style='background-color: #ffe;'>$\ni$</code>)
|
106
|
-
   <code style='background-color: #eef;'>&ouml;</code> ö (<code style='background-color: #ffe;'>\"o</code>)
|
107
|
-
   <code style='background-color: #eef;'>&Atilde;</code> Ã (<code style='background-color: #ffe;'>\~A</code>)
|
108
|
-
   <code style='background-color: #eef;'>&minus;</code> − (<code style='background-color: #ffe;'>$-$</code>)
|
109
|
-
   <code style='background-color: #eef;'>&Ccedil;</code> Ç (<code style='background-color: #ffe;'>\c{C}</code>)
|
110
|
-
   <code style='background-color: #eef;'>&igrave;</code> ì (<code style='background-color: #ffe;'>\`i</code>)
|
111
|
-
   <code style='background-color: #eef;'>&brvbar;</code> ¦ (<code style='background-color: #ffe;'>\brokenvert</code>)
|
112
|
-
   <code style='background-color: #eef;'>&acute;</code> ´ (<code style='background-color: #ffe;'>'</code>)
|
113
|
-
   <code style='background-color: #eef;'>&sigmaf;</code> ς (<code style='background-color: #ffe;'>$\varsigma$</code>)
|
114
|
-
   <code style='background-color: #eef;'>&weierp;</code> ℘ (<code style='background-color: #ffe;'>$\wp$</code>)
|
115
|
-
   <code style='background-color: #eef;'>&Auml;</code> Ä (<code style='background-color: #ffe;'>\"A</code>)
|
116
|
-
   <code style='background-color: #eef;'>&apos;</code> ' (<code style='background-color: #ffe;'>'</code>)
|
117
|
-
   <code style='background-color: #eef;'>&micro;</code> µ (<code style='background-color: #ffe;'>$\mu$</code>)
|
118
|
-
   <code style='background-color: #eef;'>&Icirc;</code> Î (<code style='background-color: #ffe;'>\^I</code>)
|
119
|
-
   <code style='background-color: #eef;'>&xi;</code> ξ (<code style='background-color: #ffe;'>$\xi$</code>)
|
120
|
-
   <code style='background-color: #eef;'>&clubs;</code> ♣ (<code style='background-color: #ffe;'>$\clubsuit$</code>)
|
121
|
-
   <code style='background-color: #eef;'>&bull;</code> • (<code style='background-color: #ffe;'>$\bullet$</code>)
|
122
|
-
   <code style='background-color: #eef;'>&Ecirc;</code> Ê (<code style='background-color: #ffe;'>\^E</code>)
|
123
|
-
   <code style='background-color: #eef;'>&Kappa;</code> Κ (<code style='background-color: #ffe;'>$K$</code>)
|
124
|
-
   <code style='background-color: #eef;'>&times;</code> × (<code style='background-color: #ffe;'>$\times$</code>)
|
125
|
-
   <code style='background-color: #eef;'>&Zeta;</code> Ζ (<code style='background-color: #ffe;'>$Z$</code>)
|
126
|
-
   <code style='background-color: #eef;'>&empty;</code> ∅ (<code style='background-color: #ffe;'>$\emptyset$</code>)
|
127
|
-
   <code style='background-color: #eef;'>&image;</code> ℑ (<code style='background-color: #ffe;'>$\Im$</code>)
|
128
|
-
   <code style='background-color: #eef;'>&Oacute;</code> Ó (<code style='background-color: #ffe;'>\' O</code>)
|
129
|
-
   <code style='background-color: #eef;'>&nu;</code> ν (<code style='background-color: #ffe;'>$\nu$</code>)
|
130
|
-
   <code style='background-color: #eef;'>&Xi;</code> Ξ (<code style='background-color: #ffe;'>$\Xi$</code>)
|
131
|
-
   <code style='background-color: #eef;'>&Igrave;</code> Ì (<code style='background-color: #ffe;'>\`I</code>)
|
132
|
-
   <code style='background-color: #eef;'>&ndash;</code> – (<code style='background-color: #ffe;'>--</code>)
|
133
|
-
   <code style='background-color: #eef;'>&and;</code> ∧ (<code style='background-color: #ffe;'>$\wedge$</code>)
|
134
|
-
   <code style='background-color: #eef;'>&prime;</code> ′ (<code style='background-color: #ffe;'>$\prime$</code>)
|
135
|
-
   <code style='background-color: #eef;'>&omicron;</code> ο (<code style='background-color: #ffe;'>$o$</code>)
|
136
|
-
   <code style='background-color: #eef;'>&iota;</code> ι (<code style='background-color: #ffe;'>$\iota$</code>)
|
137
|
-
   <code style='background-color: #eef;'>&ang;</code> ∠ (<code style='background-color: #ffe;'>$\angle$</code>)
|
138
|
-
   <code style='background-color: #eef;'>&chi;</code> χ (<code style='background-color: #ffe;'>$\chi$</code>)
|
139
|
-
   <code style='background-color: #eef;'>&ge;</code> ≥ (<code style='background-color: #ffe;'>$\geq$</code>)
|
140
|
-
   <code style='background-color: #eef;'>&lang;</code> 〉 (<code style='background-color: #ffe;'>$\langle$</code>)
|
141
|
-
   <code style='background-color: #eef;'>&le;</code> ≤ (<code style='background-color: #ffe;'>$\leq$</code>)
|
142
|
-
   <code style='background-color: #eef;'>&rdquo;</code> ” (<code style='background-color: #ffe;'>''</code>)
|
143
|
-
   <code style='background-color: #eef;'>&otimes;</code> ⊗ (<code style='background-color: #ffe;'>$\otimes$</code>)
|
144
|
-
   <code style='background-color: #eef;'>&Nu;</code> Ν (<code style='background-color: #ffe;'>$N$</code>)
|
145
|
-
   <code style='background-color: #eef;'>&real;</code> ℜ (<code style='background-color: #ffe;'>$\Re$</code>)
|
146
|
-
   <code style='background-color: #eef;'>&lfloor;</code> ⌊ (<code style='background-color: #ffe;'>$\lfloor$</code>)
|
147
|
-
   <code style='background-color: #eef;'>&rsquo;</code> ’ (<code style='background-color: #ffe;'>'</code>)
|
148
|
-
   <code style='background-color: #eef;'>&equiv;</code> ≡ (<code style='background-color: #ffe;'>$\equiv$</code>)
|
149
|
-
   <code style='background-color: #eef;'>&aacute;</code> á (<code style='background-color: #ffe;'>\'a</code>)
|
150
|
-
   <code style='background-color: #eef;'>&permil;</code> ‰ (<code style='background-color: #ffe;'>\permil</code>)
|
151
|
-
   <code style='background-color: #eef;'>&sigma;</code> σ (<code style='background-color: #ffe;'>$\sigma$</code>)
|
152
|
-
   <code style='background-color: #eef;'>&oacute;</code> ó (<code style='background-color: #ffe;'>\'o</code>)
|
153
|
-
   <code style='background-color: #eef;'>&supe;</code> ⊇ (<code style='background-color: #ffe;'>$\supseteq$</code>)
|
154
|
-
   <code style='background-color: #eef;'>&ordf;</code> ª (<code style='background-color: #ffe;'>\textordfeminine</code>)
|
155
|
-
   <code style='background-color: #eef;'>&Beta;</code> Β (<code style='background-color: #ffe;'>$B$</code>)
|
156
|
-
   <code style='background-color: #eef;'>&hearts;</code> ♥ (<code style='background-color: #ffe;'>$\heartsuit$</code>)
|
157
|
-
   <code style='background-color: #eef;'>&Rho;</code> Ρ (<code style='background-color: #ffe;'>$P$</code>)
|
158
|
-
   <code style='background-color: #eef;'>&Psi;</code> Ψ (<code style='background-color: #ffe;'>$\Psi$</code>)
|
159
|
-
   <code style='background-color: #eef;'>&oelig;</code> œ (<code style='background-color: #ffe;'>\oe</code>)
|
160
|
-
   <code style='background-color: #eef;'>&AElig;</code> Æ (<code style='background-color: #ffe;'>\AE</code>)
|
161
|
-
   <code style='background-color: #eef;'>&spades;</code> ♠ (<code style='background-color: #ffe;'>$\spadesuit$</code>)
|
162
|
-
   <code style='background-color: #eef;'>&oline;</code> ‾ (<code style='background-color: #ffe;'>-</code>)
|
163
|
-
   <code style='background-color: #eef;'>&mdash;</code> — (<code style='background-color: #ffe;'>---</code>)
|
164
|
-
   <code style='background-color: #eef;'>&ocirc;</code> ô (<code style='background-color: #ffe;'>\^o</code>)
|
165
|
-
   <code style='background-color: #eef;'>&Scaron;</code> Š (<code style='background-color: #ffe;'>\v{S}</code>)
|
166
|
-
   <code style='background-color: #eef;'>&gt;</code> > (<code style='background-color: #ffe;'>$>$</code>)
|
167
|
-
   <code style='background-color: #eef;'>&omega;</code> ω (<code style='background-color: #ffe;'>$\omega$</code>)
|
168
|
-
   <code style='background-color: #eef;'>&phi;</code> φ (<code style='background-color: #ffe;'>$\phi$</code>)
|
169
|
-
   <code style='background-color: #eef;'>&ordm;</code> º (<code style='background-color: #ffe;'>\textordmasculine</code>)
|
170
|
-
   <code style='background-color: #eef;'>&copy;</code> © (<code style='background-color: #ffe;'>\copyright</code>)
|
171
|
-
   <code style='background-color: #eef;'>&infin;</code> ∞ (<code style='background-color: #ffe;'>$\infty$</code>)
|
172
|
-
   <code style='background-color: #eef;'>&Aacute;</code> Á (<code style='background-color: #ffe;'>\'A</code>)
|
173
|
-
   <code style='background-color: #eef;'>&rarr;</code> → (<code style='background-color: #ffe;'>$\rightarrow$</code>)
|
174
|
-
   <code style='background-color: #eef;'>&lt;</code> < (<code style='background-color: #ffe;'>$<$</code>)
|
175
|
-
   <code style='background-color: #eef;'>&cong;</code> ≅ (<code style='background-color: #ffe;'>$\cong$</code>)
|
176
|
-
   <code style='background-color: #eef;'>&eta;</code> η (<code style='background-color: #ffe;'>$\eta$</code>)
|
177
|
-
   <code style='background-color: #eef;'>&curren;</code> ¤ (<code style='background-color: #ffe;'>\currency</code>)
|
178
|
-
   <code style='background-color: #eef;'>&tau;</code> τ (<code style='background-color: #ffe;'>$\tau$</code>)
|
179
|
-
   <code style='background-color: #eef;'>&oplus;</code> ⊕ (<code style='background-color: #ffe;'>$\oplus$</code>)
|
180
|
-
   <code style='background-color: #eef;'>&cap;</code> ∪ (<code style='background-color: #ffe;'>$\cap$</code>)
|
181
|
-
   <code style='background-color: #eef;'>&Iota;</code> Ι (<code style='background-color: #ffe;'>$I$</code>)
|
182
|
-
   <code style='background-color: #eef;'>&Sigma;</code> Σ (<code style='background-color: #ffe;'>$\Sigma$</code>)
|
183
|
-
   <code style='background-color: #eef;'>&frac34;</code> ¾ (<code style='background-color: #ffe;'>$\frac{3}{4}$</code>)
|
184
|
-
   <code style='background-color: #eef;'>&scaron;</code> š (<code style='background-color: #ffe;'>\v{s}</code>)
|
185
|
-
   <code style='background-color: #eef;'>&eth;</code> ð (<code style='background-color: #ffe;'>$\eth$</code>)
|
186
|
-
   <code style='background-color: #eef;'>&aring;</code> å (<code style='background-color: #ffe;'>\aa</code>)
|
187
|
-
   <code style='background-color: #eef;'>&lArr;</code> ⇐ (<code style='background-color: #ffe;'>$\Leftarrow$</code>)
|
188
|
-
   <code style='background-color: #eef;'>&epsilon;</code> ε (<code style='background-color: #ffe;'>$\epsilon$</code>)
|
189
|
-
   <code style='background-color: #eef;'>&dArr;</code> ⇓ (<code style='background-color: #ffe;'>$\Downarrow$</code>)
|
190
|
-
   <code style='background-color: #eef;'>&alpha;</code> α (<code style='background-color: #ffe;'>$\alpha$</code>)
|
191
|
-
   <code style='background-color: #eef;'>&cent;</code> ¢ (<code style='background-color: #ffe;'>\cent</code>)
|
192
|
-
   <code style='background-color: #eef;'>&Lambda;</code> Λ (<code style='background-color: #ffe;'>$\Lambda$</code>)
|
193
|
-
   <code style='background-color: #eef;'>&loz;</code> ◊ (<code style='background-color: #ffe;'>$\lozenge$</code>)
|
194
|
-
   <code style='background-color: #eef;'>&yen;</code> ¥ (<code style='background-color: #ffe;'>\textyen</code>)
|
195
|
-
   <code style='background-color: #eef;'>&uuml;</code> ü (<code style='background-color: #ffe;'>\"u</code>)
|
196
|
-
   <code style='background-color: #eef;'>&Eacute;</code> É (<code style='background-color: #ffe;'>\'E</code>)
|
197
|
-
   <code style='background-color: #eef;'>&Ocirc;</code> Ô (<code style='background-color: #ffe;'>\^O</code>)
|
198
|
-
   <code style='background-color: #eef;'>&nbsp;</code>   (<code style='background-color: #ffe;'>~</code>)
|
199
|
-
   <code style='background-color: #eef;'>&reg;</code> ® (<code style='background-color: #ffe;'>\textregistered</code>)
|
200
|
-
   <code style='background-color: #eef;'>&cup;</code> ∩ (<code style='background-color: #ffe;'>$\cup$</code>)
|
201
|
-
   <code style='background-color: #eef;'>&frasl;</code> ⁄ (<code style='background-color: #ffe;'>/</code>)
|
202
|
-
   <code style='background-color: #eef;'>&Uacute;</code> Ú (<code style='background-color: #ffe;'>\'U</code>)
|
203
|
-
   <code style='background-color: #eef;'>&hArr;</code> ⇔ (<code style='background-color: #ffe;'>$\Leftrightarrow$</code>)
|
204
|
-
   <code style='background-color: #eef;'>&delta;</code> δ (<code style='background-color: #ffe;'>$\delta$</code>)
|
205
|
-
   <code style='background-color: #eef;'>&Ouml;</code> Ö (<code style='background-color: #ffe;'>\"O</code>)
|
206
|
-
   <code style='background-color: #eef;'>&ograve;</code> ò (<code style='background-color: #ffe;'>\`o</code>)
|
207
|
-
   <code style='background-color: #eef;'>&Ograve;</code> Ò (<code style='background-color: #ffe;'>\`O</code>)
|
208
|
-
   <code style='background-color: #eef;'>&quot;</code> " (<code style='background-color: #ffe;'>"</code>)
|
209
|
-
   <code style='background-color: #eef;'>&uarr;</code> ↑ (<code style='background-color: #ffe;'>$\uparrow$</code>)
|
210
|
-
   <code style='background-color: #eef;'>&yuml;</code> ÿ (<code style='background-color: #ffe;'>\"y</code>)
|
211
|
-
   <code style='background-color: #eef;'>&or;</code> ∨ (<code style='background-color: #ffe;'>$\vee$</code>)
|
212
|
-
   <code style='background-color: #eef;'>&Omega;</code> Ω (<code style='background-color: #ffe;'>$\Omega$</code>)
|
213
|
-
   <code style='background-color: #eef;'>&Agrave;</code> À (<code style='background-color: #ffe;'>\`A</code>)
|
214
|
-
   <code style='background-color: #eef;'>&lambda;</code> λ (<code style='background-color: #ffe;'>$\lambda$</code>)
|
215
|
-
   <code style='background-color: #eef;'>&prod;</code> ∏ (<code style='background-color: #ffe;'>$\prod$</code>)
|
216
|
-
   <code style='background-color: #eef;'>&laquo;</code> « (<code style='background-color: #ffe;'>\guillemotleft</code>)
|
217
|
-
   <code style='background-color: #eef;'>&eacute;</code> é (<code style='background-color: #ffe;'>\'e</code>)
|
218
|
-
   <code style='background-color: #eef;'>&plusmn;</code> ± (<code style='background-color: #ffe;'>$\pm$</code>)
|
219
|
-
   <code style='background-color: #eef;'>&uacute;</code> ú (<code style='background-color: #ffe;'>\'u</code>)
|
220
|
-
   <code style='background-color: #eef;'>&lsaquo;</code> ‹ (<code style='background-color: #ffe;'>\guilsinglleft</code>)
|
221
|
-
   <code style='background-color: #eef;'>&Aring;</code> Å (<code style='background-color: #ffe;'>\AA</code>)
|
222
|
-
   <code style='background-color: #eef;'>&frac12;</code> ½ (<code style='background-color: #ffe;'>$\frac{1}{2}$</code>)
|
223
|
-
   <code style='background-color: #eef;'>&dagger;</code> † (<code style='background-color: #ffe;'>\dag</code>)
|
224
|
-
   <code style='background-color: #eef;'>&gamma;</code> γ (<code style='background-color: #ffe;'>$\gamma$</code>)
|
225
|
-
   <code style='background-color: #eef;'>&frac14;</code> ¼ (<code style='background-color: #ffe;'>$\frac{1}{4}$</code>)
|
226
|
-
   <code style='background-color: #eef;'>&Alpha;</code> Α (<code style='background-color: #ffe;'>$A$</code>)
|
227
|
-
   <code style='background-color: #eef;'>&there4;</code> ∴ (<code style='background-color: #ffe;'>$\therefore$</code>)
|
228
|
-
   <code style='background-color: #eef;'>&rang;</code> 〈 (<code style='background-color: #ffe;'>$\rangle$</code>)
|
229
|
-
   <code style='background-color: #eef;'>&sub;</code> ⊂ (<code style='background-color: #ffe;'>$\subset$</code>)
|
230
|
-
   <code style='background-color: #eef;'>&rfloor;</code> ⌋ (<code style='background-color: #ffe;'>$\rfloor$</code>)
|
231
|
-
   <code style='background-color: #eef;'>&isin;</code> ∈ (<code style='background-color: #ffe;'>$\in$</code>)
|
232
|
-
   <code style='background-color: #eef;'>&iuml;</code> ï (<code style='background-color: #ffe;'>\"i</code>)
|
233
|
-
   <code style='background-color: #eef;'>&lceil;</code> ⌉ (<code style='background-color: #ffe;'>$\lceil$</code>)
|
234
|
-
   <code style='background-color: #eef;'>&theta;</code> θ (<code style='background-color: #ffe;'>$\theta$</code>)
|
235
|
-
   <code style='background-color: #eef;'>&deg;</code> ° (<code style='background-color: #ffe;'>\textdegree</code>)
|
236
|
-
   <code style='background-color: #eef;'>&notin;</code> ∉ (<code style='background-color: #ffe;'>$\notin$</code>)
|
237
|
-
   <code style='background-color: #eef;'>&agrave;</code> à (<code style='background-color: #ffe;'>\`a</code>)
|
238
|
-
   <code style='background-color: #eef;'>&prop;</code> ∝ (<code style='background-color: #ffe;'>$\propto$</code>)
|
239
|
-
   <code style='background-color: #eef;'>&Dagger;</code> ‡ (<code style='background-color: #ffe;'>\ddag</code>)
|
240
|
-
   <code style='background-color: #eef;'>&ucirc;</code> û (<code style='background-color: #ffe;'>\^u</code>)
|
241
|
-
   <code style='background-color: #eef;'>&Chi;</code> Χ (<code style='background-color: #ffe;'>$X$</code>)
|
242
|
-
   <code style='background-color: #eef;'>&zeta;</code> ζ (<code style='background-color: #ffe;'>$\zeta$</code>)
|
243
|
-
   <code style='background-color: #eef;'>&sum;</code> ∑ (<code style='background-color: #ffe;'>$\sum$</code>)
|
244
|
-
   <code style='background-color: #eef;'>&nabla;</code> ∇ (<code style='background-color: #ffe;'>$\nabla$</code>)
|
245
|
-
   <code style='background-color: #eef;'>&Iacute;</code> Í (<code style='background-color: #ffe;'>\'I</code>)
|
246
|
-
   <code style='background-color: #eef;'>&Upsilon;</code> Υ (<code style='background-color: #ffe;'>$Y$</code>)
|
247
|
-
   <code style='background-color: #eef;'>&sup;</code> ⊃ (<code style='background-color: #ffe;'>$\supset$</code>)
|
248
|
-
   <code style='background-color: #eef;'>&auml;</code> ä (<code style='background-color: #ffe;'>\"a</code>)
|
249
|
-
   <code style='background-color: #eef;'>&ldquo;</code> “ (<code style='background-color: #ffe;'>``</code>)
|
250
|
-
   <code style='background-color: #eef;'>&Delta;</code> Δ (<code style='background-color: #ffe;'>$\Delta$</code>)
|
251
|
-
   <code style='background-color: #eef;'>&circ;</code> ˆ (<code style='background-color: #ffe;'>\textasciicircum</code>)
|
252
|
-
   <code style='background-color: #eef;'>&pound;</code> £ (<code style='background-color: #ffe;'>\pounds</code>)
|
253
|
-
   <code style='background-color: #eef;'>&yacute;</code> ý (<code style='background-color: #ffe;'>\'y</code>)
|
254
|
-
   <code style='background-color: #eef;'>&perp;</code> ⊥ (<code style='background-color: #ffe;'>$\perp$</code>)
|
255
|
-
   <code style='background-color: #eef;'>&mu;</code> μ (<code style='background-color: #ffe;'>$\mu$</code>)
|
256
|
-
   <code style='background-color: #eef;'>&hellip;</code> … (<code style='background-color: #ffe;'>\ldots</code>)
|
257
|
-
   </p>
|
258
|
-
<div class='maruku_signature'><hr /><span style='font-size: small; font-style: italic'>Created by <a href='http://maruku.rubyforge.org' title='Maruku: a Markdown-superset interpreter for Ruby'>Maruku</a> at 13:32 on Sunday, February 18th, 2007.</span></div></body></html>
|
data/docs/exd.html
DELETED
@@ -1,307 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC
|
3
|
-
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
|
4
|
-
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
|
5
|
-
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
|
6
|
-
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title><link href='style.css' rel='stylesheet' type='text/css' />
|
7
|
-
</head>
|
8
|
-
<body>
|
9
|
-
<h1>Auto-extracted documentation</h1>
|
10
|
-
|
11
|
-
<p>This documentation is auto-generated by reading from the Ruby source for <code>maruku</code> by the program <code>docs/exd/exd.rb</code>. It is important to have documentation near the code!</p>
|
12
|
-
|
13
|
-
<p>Each block is delimited by <code>=begin</code> and <code>=end</code> blocks and is a Markdown document:</p>
|
14
|
-
|
15
|
-
<pre><code>...
|
16
|
-
=begin maruku_doc
|
17
|
-
Attribute: att1
|
18
|
-
Summary: summary for attribute
|
19
|
-
|
20
|
-
Expanded documentation (Markdown format)
|
21
|
-
=end
|
22
|
-
...</code></pre>
|
23
|
-
|
24
|
-
<h2>Attribute documentation</h2>
|
25
|
-
|
26
|
-
<h3 id='class'>Attribute <code>class</code></h3>
|
27
|
-
|
28
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_html.rb</code>, line 316:</p>
|
29
|
-
|
30
|
-
<p>It is copied as a standard HTML attribute.</p>
|
31
|
-
|
32
|
-
<h3 id='code_background_color'>Attribute <code>code_background_color</code></h3>
|
33
|
-
|
34
|
-
<p class='maruku-att-default'>Default: <code>"#fef"</code></p>
|
35
|
-
|
36
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_html.rb</code>, line 553:</p>
|
37
|
-
|
38
|
-
<p>The format is either a named color (<code>green</code>, <code>red</code>) or a CSS color of the form <code>#ff00ff</code>.</p>
|
39
|
-
|
40
|
-
<ul>
|
41
|
-
<li>
|
42
|
-
<p>for <strong>HTML output</strong>, the value is put straight in the <code>background-color</code> CSS property of the block.</p>
|
43
|
-
</li>
|
44
|
-
|
45
|
-
<li>
|
46
|
-
<p>for <strong>LaTeX output</strong>, if it is a named color, it must be a color accepted by the LaTeX <code>color</code> packages. If it is of the form <code>#ff00ff</code>, Maruku defines a color using the <code>\color[rgb]{r,g,b}</code> macro.</p>
|
47
|
-
|
48
|
-
<p>For example, for <code>#0000ff</code>, the macro is called as: <code>\color[rgb]{0,0,1}</code>.</p>
|
49
|
-
</li>
|
50
|
-
</ul>
|
51
|
-
|
52
|
-
<h3 id='code_show_spaces'>Attribute <code>code_show_spaces</code></h3>
|
53
|
-
|
54
|
-
<p class='maruku-att-default'>Default: <code>false</code></p>
|
55
|
-
|
56
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_latex.rb</code>, line 192:</p>
|
57
|
-
|
58
|
-
<p>If <code>true</code>, shows spaces and tabs in code blocks.</p>
|
59
|
-
|
60
|
-
<p>Example:</p>
|
61
|
-
|
62
|
-
<pre><code> One space
|
63
|
-
Two spaces
|
64
|
-
Tab, space, tab
|
65
|
-
Tab, tab, tab and all is green!
|
66
|
-
{:code_show_spaces code_background_color=#ffeedd}</code></pre>
|
67
|
-
|
68
|
-
<p>That will produce:</p>
|
69
|
-
|
70
|
-
<pre style='background-color: #ffeedd;'><code>¬One¬space
|
71
|
-
¬¬Two¬spaces
|
72
|
-
»   ¬»   Tab,¬space,¬tab
|
73
|
-
»   »   »   Tab,¬tab,¬tab¬and¬all¬is¬green!</code></pre>
|
74
|
-
|
75
|
-
<h3 id='css'>Attribute <code>css</code></h3>
|
76
|
-
|
77
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_html.rb</code>, line 144:</p>
|
78
|
-
|
79
|
-
<p><code>css</code> should be a space-separated list of urls.</p>
|
80
|
-
|
81
|
-
<p>Example:</p>
|
82
|
-
|
83
|
-
<pre><code>CSS: style.css math.css</code></pre>
|
84
|
-
|
85
|
-
<h3 id='doc_prefix'>Attribute <code>doc_prefix</code></h3>
|
86
|
-
|
87
|
-
<p class='maruku-att-default'>Default: <code>""</code></p>
|
88
|
-
|
89
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_html.rb</code>, line 128:</p>
|
90
|
-
|
91
|
-
<p>String to disambiguate footnote links.</p>
|
92
|
-
|
93
|
-
<h3 id='encoding'>Attribute <code>encoding</code></h3>
|
94
|
-
|
95
|
-
<p class='maruku-att-origin'>Read from file <code>input/parse_doc.rb</code>, line 35:</p>
|
96
|
-
|
97
|
-
<p>If the <code>encoding</code> attribute is specified, then the content will be converted from the specified encoding to UTF-8.</p>
|
98
|
-
|
99
|
-
<p>Conversion happens using the <code>iconv</code> library.</p>
|
100
|
-
|
101
|
-
<h3 id='html_math_engine'>Attribute <code>html_math_engine</code></h3>
|
102
|
-
|
103
|
-
<p class='maruku-att-default'>Default: <code>"none"</code></p>
|
104
|
-
|
105
|
-
<p class='maruku-att-origin'>Read from file <code>ext/math/to_html.rb</code>, line 2:</p>
|
106
|
-
|
107
|
-
<p>Select the rendering engine for math.</p>
|
108
|
-
|
109
|
-
<p>If you want to use your custom engine <code>foo</code>, then set:</p>
|
110
|
-
|
111
|
-
<pre lang='markdown'><code class='markdown' lang='markdown'>HTML math engine: foo</code></pre>
|
112
|
-
|
113
|
-
<p>and then implement two functions:</p>
|
114
|
-
|
115
|
-
<pre><code>def convert_to_mathml_foo(kind, tex)
|
116
|
-
...
|
117
|
-
end</code></pre>
|
118
|
-
|
119
|
-
<h3 id='html_png_engine'>Attribute <code>html_png_engine</code></h3>
|
120
|
-
|
121
|
-
<p class='maruku-att-default'>Default: <code>"none"</code></p>
|
122
|
-
|
123
|
-
<p class='maruku-att-origin'>Read from file <code>ext/math/to_html.rb</code>, line 24:</p>
|
124
|
-
|
125
|
-
<p>Same thing as <code>html_math_engine</code>, only for PNG output.</p>
|
126
|
-
|
127
|
-
<pre lang='ruby'><code class='ruby' lang='ruby'>def convert_to_png_foo(kind, tex)
|
128
|
-
# same thing
|
129
|
-
...
|
130
|
-
end</code></pre>
|
131
|
-
|
132
|
-
<h3 id='html_use_syntax'>Attribute <code>html_use_syntax</code></h3>
|
133
|
-
|
134
|
-
<p class='maruku-att-default'>Default: <code>false</code></p>
|
135
|
-
|
136
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_html.rb</code>, line 459:</p>
|
137
|
-
|
138
|
-
<p>If true, the <code>syntax</code> package is used. It supports the <code>ruby</code> and <code>xml</code> languages. Remember to set the <code>lang</code> attribute of the code block.</p>
|
139
|
-
|
140
|
-
<p>Examples:</p>
|
141
|
-
|
142
|
-
<pre><code> require 'maruku'
|
143
|
-
{:lang=ruby html_use_syntax=true}</code></pre>
|
144
|
-
|
145
|
-
<p>and</p>
|
146
|
-
|
147
|
-
<pre><code> <div style="text-align:center">Div</div>
|
148
|
-
{:lang=html html_use_syntax=true}</code></pre>
|
149
|
-
|
150
|
-
<p>produces:</p>
|
151
|
-
|
152
|
-
<pre><code class='ruby' lang='ruby'><span class='ident'>require</span> <span class='punct'>'</span><span class='string'>maruku</span><span class='punct'>'</span></code></pre>
|
153
|
-
|
154
|
-
<p>and</p>
|
155
|
-
|
156
|
-
<pre><code class='xml' lang='xml'><span class='punct'><</span><span class='tag'>div</span> <span class='attribute'>style</span><span class='punct'>="</span><span class='string'>text-align:center</span><span class='punct'>"></span>Div<span class='punct'></</span><span class='tag'>div</span><span class='punct'>></span></code></pre>
|
157
|
-
|
158
|
-
<h3 id='id'>Attribute <code>id</code></h3>
|
159
|
-
|
160
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_html.rb</code>, line 304:</p>
|
161
|
-
|
162
|
-
<p>It is copied as a standard HTML attribute.</p>
|
163
|
-
|
164
|
-
<p>Moreover, it used as a label name for hyperlinks in both HTML and in PDF.</p>
|
165
|
-
|
166
|
-
<h3 id='latex_cjk'>Attribute <code>latex_cjk</code></h3>
|
167
|
-
|
168
|
-
<p class='maruku-att-default'>Default: <code>false</code></p>
|
169
|
-
|
170
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_latex.rb</code>, line 69:</p>
|
171
|
-
|
172
|
-
<p>If the <code>latex_cjk</code> attribute is specified, then appropriate headers are added to the LaTeX preamble to support Japanese fonts. You have to have these fonts installed – and this can be a pain.</p>
|
173
|
-
|
174
|
-
<p>If <code>latex_cjk</code> is specified, this is added to the preamble:</p>
|
175
|
-
|
176
|
-
<pre><code>\usepackage[C40]{fontenc}
|
177
|
-
\usepackage[cjkjis]{ucs}
|
178
|
-
\usepackage[utf8x]{inputenc}</code></pre>
|
179
|
-
|
180
|
-
<p>while the default is to add this:</p>
|
181
|
-
|
182
|
-
<pre><code>\usepackage{ucs}
|
183
|
-
\usepackage[utf8x]{inputenc}</code></pre>
|
184
|
-
|
185
|
-
<h3 id='latex_preamble'>Attribute <code>latex_preamble</code></h3>
|
186
|
-
|
187
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_latex.rb</code>, line 94:</p>
|
188
|
-
|
189
|
-
<p>If the <code>latex_preamble</code> attribute is specified, then its value will be used as a custom preamble.</p>
|
190
|
-
|
191
|
-
<p>For example:</p>
|
192
|
-
|
193
|
-
<pre><code>Title: My document
|
194
|
-
Latex preamble: preamble.tex</code></pre>
|
195
|
-
|
196
|
-
<p>will produce:</p>
|
197
|
-
|
198
|
-
<pre><code>...
|
199
|
-
\input{preamble.tex}
|
200
|
-
...</code></pre>
|
201
|
-
|
202
|
-
<h3 id='latex_use_listings'>Attribute <code>latex_use_listings</code></h3>
|
203
|
-
|
204
|
-
<p class='maruku-att-default'>Default: <code>false</code></p>
|
205
|
-
|
206
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_latex.rb</code>, line 217:</p>
|
207
|
-
|
208
|
-
<p>If the <code>latex_use_listings</code> attribute is specified, then code block are rendered using the <code>listings</code> package. Otherwise, a standard <code>verbatim</code> environment is used.</p>
|
209
|
-
|
210
|
-
<ul>
|
211
|
-
<li>
|
212
|
-
<p>If the <code>lang</code> attribute for the code block has been specified, it gets passed to the <code>listings</code> package using the <code>lstset</code> macro. The default lang for code blocks is specified through the <code>code_lang</code> attribute.</p>
|
213
|
-
|
214
|
-
<pre><code>\lstset{language=ruby}</code></pre>
|
215
|
-
|
216
|
-
<p>Please refer to the documentation of the <code>listings</code> package for supported languages.</p>
|
217
|
-
|
218
|
-
<p>If a language is not supported, the <code>listings</code> package will emit a warning during the compilation. Just press enter and nothing wrong will happen.</p>
|
219
|
-
</li>
|
220
|
-
|
221
|
-
<li>
|
222
|
-
<p>If the <code>code_show_spaces</code> is specified, than spaces and tabs will be shown using the macro:</p>
|
223
|
-
|
224
|
-
<pre><code>\lstset{showspaces=true,showtabs=true}</code></pre>
|
225
|
-
</li>
|
226
|
-
|
227
|
-
<li>
|
228
|
-
<p>The background color is given by <code>code_background_color</code>.</p>
|
229
|
-
</li>
|
230
|
-
</ul>
|
231
|
-
|
232
|
-
<h3 id='maruku_signature'>Attribute <code>maruku_signature</code></h3>
|
233
|
-
|
234
|
-
<p class='maruku-att-default'>Default: <code>true</code></p>
|
235
|
-
|
236
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_latex.rb</code>, line 45:</p>
|
237
|
-
|
238
|
-
<p>If false, Maruku does not append a signature to the generated file.</p>
|
239
|
-
|
240
|
-
<h3 id='math_enabled'>Attribute <code>math_enabled</code></h3>
|
241
|
-
|
242
|
-
<p class='maruku-att-origin'>Read from file <code>ext/math.rb</code>, line 14:</p>
|
243
|
-
|
244
|
-
<p>To explicitly disable the math parsing:</p>
|
245
|
-
|
246
|
-
<pre><code>Maruku.new(string, {:math_enabled => false})
|
247
|
-
{:ruby}</code></pre>
|
248
|
-
|
249
|
-
<h3 id='math_numbered'>Attribute <code>math_numbered</code></h3>
|
250
|
-
|
251
|
-
<p class='maruku-att-origin'>Read from file <code>ext/math.rb</code>, line 29:</p>
|
252
|
-
|
253
|
-
<p>Array containing any of <code>'\\['</code>, <code>'\\begin{equation}'</code>, <code>'$$'</code>.</p>
|
254
|
-
|
255
|
-
<pre><code>MaRuKu::Globals[math_numbered] = ['\\[']</code></pre>
|
256
|
-
|
257
|
-
<h3 id='style'>Attribute <code>style</code></h3>
|
258
|
-
|
259
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_html.rb</code>, line 324:</p>
|
260
|
-
|
261
|
-
<p>It is copied as a standard HTML attribute.</p>
|
262
|
-
|
263
|
-
<h3 id='subject'>Attribute <code>subject</code></h3>
|
264
|
-
|
265
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_html.rb</code>, line 136:</p>
|
266
|
-
|
267
|
-
<p>Synonim for <code>title</code>.</p>
|
268
|
-
|
269
|
-
<h3 id='title'>Attribute <code>title</code></h3>
|
270
|
-
|
271
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_html.rb</code>, line 105:</p>
|
272
|
-
|
273
|
-
<p>Sets the title of the document. If a title is not specified, the first header will be used.</p>
|
274
|
-
|
275
|
-
<p>These should be equivalent:</p>
|
276
|
-
|
277
|
-
<pre><code>Title: my document
|
278
|
-
|
279
|
-
Content</code></pre>
|
280
|
-
|
281
|
-
<p>and</p>
|
282
|
-
|
283
|
-
<pre><code>my document
|
284
|
-
===========
|
285
|
-
|
286
|
-
Content</code></pre>
|
287
|
-
|
288
|
-
<p>In both cases, the title is set to “my document”.</p>
|
289
|
-
|
290
|
-
<h3 id='unsafe_features'>Attribute <code>unsafe_features</code></h3>
|
291
|
-
|
292
|
-
<p class='maruku-att-default'>Default: <code>true</code></p>
|
293
|
-
|
294
|
-
<p class='maruku-att-origin'>Read from file <code>input/parse_doc.rb</code>, line 86:</p>
|
295
|
-
|
296
|
-
<p>Disabled by default because of security concerns.</p>
|
297
|
-
|
298
|
-
<h3 id='use_numbered_headers'>Attribute <code>use_numbered_headers</code></h3>
|
299
|
-
|
300
|
-
<p class='maruku-att-default'>Default: <code>false</code></p>
|
301
|
-
|
302
|
-
<p class='maruku-att-origin'>Read from file <code>output/to_html.rb</code>, line 405:</p>
|
303
|
-
|
304
|
-
<p>If <code>true</code>, section headers will be numbered.</p>
|
305
|
-
|
306
|
-
<p>In LaTeX export, the numbering of headers is managed by Maruku, to have the same results in both HTML and LaTeX.</p>
|
307
|
-
<div class='maruku_signature'><hr /><span style='font-size: small; font-style: italic'>Created by <a href='http://maruku.rubyforge.org' title='Maruku: a Markdown-superset interpreter for Ruby'>Maruku</a> at 13:32 on Sunday, February 18th, 2007.</span></div></body></html>
|