Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | in TSB cheatsheet add notes about tsb::asciimath |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
7c79ecb7a4e70415fe366bf925863406 |
User & Date: | chw 2019-07-13 05:26:23.733 |
Context
2019-07-13
| ||
06:10 | add readme to TSB check-in: a316d24b47 user: chw tags: trunk | |
05:27 | merge with trunk check-in: 027300a91d user: chw tags: wtf-8-experiment | |
05:26 | in TSB cheatsheet add notes about tsb::asciimath check-in: 7c79ecb7a4 user: chw tags: trunk | |
2019-07-12
| ||
21:52 | tweaks in ttk treeview and tksqlite to make double click work again check-in: 88b0a147be user: chw tags: trunk | |
Changes
Changes to undroid/tsb/asciimath/pkgIndex.tcl.
1 2 3 4 5 6 7 8 9 10 | package ifneeded tsb::asciimath 0.1 [apply {dir { if {![catch {open [file join $dir ASCIIMathML.js] r} f]} { if {[catch {read $f} script]} { unset script } close $f } if {[info exists script]} { catch {$::W call Wjs $script} catch {$::W call asciimath.init} | < < < < < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 | package ifneeded tsb::asciimath 0.1 [apply {dir { if {![catch {open [file join $dir ASCIIMathML.js] r} f]} { if {[catch {read $f} script]} { unset script } close $f } if {[info exists script]} { catch {$::W call Wjs $script} catch {$::W call asciimath.init} } package provide tsb::asciimath 0.1 }} $dir] |
Changes to undroid/tsb/examples/cheatsheet.tsb.
|
| | > > > > > > | > > > > > > > > > > > > > > > > > > | 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 | 17 {#HTML <p>MathML can be typeset in <code>#HTML</code> input fields when the optional <code>tsb::asciimath</code> package is loaded. However, this does not work on Windows and requires for correct rendering of saved HTML (see <code>tsb::wrhtml</code>) a MathML capable browser, e.g. FireFox and Safari.</p>} 18 {package require tsb::asciimath} 1 {#HTML <center><h2>Taygete Scrap Book Cheat Sheet<br><br></h2></center>} 20 {tsb::save cheatsheet.tsb} 19 {#HTML <p>ASCIIMath allows to write matrices, e.g.</p> <pre> \` [[a,b],[c,d]] \` </pre> <p>becomes to</p> <p> ` [[a,b],[c,d]] ` </p> <p> or sums, e.g. </p> <pre> \` sum_(i=0)^N \` </pre> <p>becomes to</p> <p> ` sum_(i=0)^N ` </p> <p>For more information on ASCIIMath syntax, refer to the website https://www.asciimath.org</p>} 2 {h3 "Important (internal) global variables"} 3 {table {{global variable}} [info global {[A-Z]*}]} 4 {#HTML <dl> <dt><b>ID</b></dt> <dd>The current input field during evaluation, an integer number.</dd> <dt><b>W</b></dt> <dd>The Webview for displaying the page.</dd> <dt><b>H</b></dt> <dd>The history array of input fields, keys are integer numbers |
︙ | ︙ | |||
91 92 93 94 95 96 97 | click on the corresponding output field(s) makes a hidden input field visible and thus editable, again.</p>} 14 {h3 "Output Fields"} 15 {#HTML <p>Each input field has two corresponding output fields which are visible/non-empty depending on context. One output field receives preformatted text, either the result or the error message of a command evaluation. The other output field receives HTML, e.g. for displaying an image or for the <code>#HTML</code> and | | | 115 116 117 118 119 120 121 122 | click on the corresponding output field(s) makes a hidden input field visible and thus editable, again.</p>} 14 {h3 "Output Fields"} 15 {#HTML <p>Each input field has two corresponding output fields which are visible/non-empty depending on context. One output field receives preformatted text, either the result or the error message of a command evaluation. The other output field receives HTML, e.g. for displaying an image or for the <code>#HTML</code> and <code>#MARKDOWN</code> formats from the input field.</p>} 16 {h3 "Using ASCIIMath in #HTML markup"} |