Hi Mark, Hi Thomas,
Great Idea using this css-feature, I hope this will work.
This is a missing part in turning TW into a tool for scientific research.

Mark, Do you think your "trickness option 1." could be done with a List that will be automatically generated?
It would be great if we were able to display this as endnotes/footnotes.

Jan

Am 26.08.2016 um 10:29 schrieb Thomas Elmiger:
Hi folks!

I think it is possible, but don’t have the time to explain or publish my test at the moment. Will be back tomorrow …

In the meantime you can have a look at: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Lists_and_Counters/Using_CSS_counters

Kind regards, Thomas (in a hurry)

Am Donnerstag, 25. August 2016 22:42:20 UTC+2 schrieb c pa:

    Ah hah. Got it

    Use Case:
    1. I want to create footnotes in my document in the form of
    <<footnote "This is some footnote text">>
        e.g.: This is some text <<ref "Text is a collection of
    letters, spaces and numbers">> And this is a formula: 2+3=5 <<ref
    "A formula is numbers plus operators">>
        should display as: This is some text *_1_* And this is a
    formula: 2+3=5 *_2
    _*    with the footnote numbers popping up the text when clicked
    2. I want the footnotes to be numbered sequentially when displayed
    without me having to manually enter the footnote number
    3. I want the footnote text to display in a popup when the number
    is clicked

    The problem is with #2, auto-generation of numbers within the text
    on a page. I don't know of any facility in TiddlyWiki that can do
    that without some trickiness.

    Trickiness options
    1. Store the footnote text as entries in a list with the list
    sorted in the order of their presentation on the page
    2. Just manually enter the footnote number as a macro parameter
    and forget the "automatically" part of request #2

    \define footnote(tiddler, text, number)
        <$set name="state" value="$:/state/$tiddler$/$number$">
             <$button popup=<<state>> class="btn-invisible"
    style="border-width:0px">
                   <$reveal type="match" text="" default=""
    state=<<state>> >
                          $number$
    </$reveal>
    <$reveal type="nomatch" text="" default="" state=<<state>> >
                          <span class="footnote">
                                $text$
                          </span>
                   </$reveal>
               </$button>
        </$set>
    \end
    \define ref(text, number)
        <$macrocall $name="footnote" tiddler=<<currentTiddler>>
    text="$text$" number="$number$" />
    \end

    This is some text <<ref "Text is a collection of letters, spaces
    and numbers" "1">> And this is a formula: 2+3=5 <<ref "A formula
    is numbers plus operators" "2">>

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9261ea72-4713-4c04-9533-b813743d30d6%40googlegroups.com <https://groups.google.com/d/msgid/tiddlywiki/9261ea72-4713-4c04-9533-b813743d30d6%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/57C04367.5070405%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to