Superscript not working

essin's Avatar

essin

29 May, 2012 01:03 AM

I'm a novice. I've got two footnote references with a comma between. The comma appears on the baseline so I wanted to superscript it to match the references. I've tried every notation suggestion in the docs including <<,>> $,% \[,\].

I've taken your example:
[Euler's identity]. is converted into:
<< e(i pi) + 1 = 0 [Euler's identity]>>
<< x_(1,2) = (-b+-sqrt(b2-4ac))/(2a) [quadratic equation solution]>>
You can also include formulas within a sentence, such as << x2 + y2 = 1>>. You can then make a reference to [Euler's identity].

and included in my document and the output looks exactly like the input, not what your doc shows as the output.

There is either something horribly broken, unlikely, or I am incredibly dumb and can't find my way out a paper sack without help -- so please help!

Thank you,
Dan Essin

  1. Support Staff 1 Posted by Brett on 29 May, 2012 02:18 PM

    Brett's Avatar

    I don't use Mathjax (or know much about it), so the only thing I can help with is telling you that \\[ equation \\] is the format needed in the current version of MultiMarkdown to trigger Mathjax. It doesn't seem to handle superscript very well for multiple characters, but that's in the realm of Mathjax itself and I can't be of much assistance. Hopefully knowing the correct surrounding characters will get you on the path to solving that. Let me know how it goes.

  2. 2 Posted by essin on 29 May, 2012 04:40 PM

    essin's Avatar

    Thanks.
    Is mathjax support built in? I assume not since the syntax you suggest did not work. Is there yadbup (yet another downloadable but undecipherable package) that I need to get and fight with?

    Dan

    On May 29, 2012, at 7:18 AM, "Brett" <[email blocked]> wrote

  3. Support Staff 3 Posted by Brett on 29 May, 2012 04:48 PM

    Brett's Avatar

    Mathjax can be included from the Behavior preference pane. It loads from the CDN so a network connection is required to use it, but it works with the syntax I sent (I checked).

  4. 4 Posted by essin on 29 May, 2012 05:37 PM

    essin's Avatar

    Oh, I didn't realize that it was served from the web. I've enabled it
    and entered the following into my text:
      [^1]\\[^,\\][^2]

    The output is :
    clinical decision.” [1]
    ,
    [2]

    The [1] and the [2] and the comma are now superscripted in Marked, but
    how do I get this to be inline? It needs to look like:
    some text ^[1],[2] some more text

    Now that I think about it, this is maybe something the footnote
    processor should handle? because it is not uncommon to cite more than
    one reference and if you do, they need to be comma delimited. It kind of
    violates the spirit of markdown to have to tweak each one of these
    things by hand, doesn't it?

    Thanks,
    Dan

  5. Support Staff 5 Posted by Brett on 29 May, 2012 06:11 PM

    Brett's Avatar

    I don't write the MultiMarkdown processor, that's an issue you'd want to take directly to the [MultiMarkdown developer][fletcher]. I don't know of any processors that currently account for comma-delimited reference lists, they're usually just formatted as footnote[^1][^2] and displayed with a small space between superscript numbers.

    [fletcher]: https://github.com/fletcher/peg-multimarkdown/issues

  6. 6 Posted by essin on 29 May, 2012 06:25 PM

    essin's Avatar

    Thanks for the help. At least I can usable output now.

    Dan

  7. Brett closed this discussion on 07 Jun, 2012 01:46 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac