Thanks, Jeremy! Dave
On Sun, Aug 31, 2014 at 6:33 AM, Jeremy Ruston <[email protected]> wrote: > Sorry Dave my example should have read: > > <div class="my-toc"> > <<toc "stuff">> > </div> > > Best wishes > > Jeremy > > > On Sun, Aug 31, 2014 at 12:30 PM, David Gifford <[email protected]> > wrote: > >> Filter error: Syntax error in filter expression >> >> >> On Sun, Aug 31, 2014 at 4:16 AM, Jeremy Ruston <[email protected]> >> wrote: >> >>> Hi Dave >>> >>> You don't need to modify the toc macro in order to be able to style it's >>> output. >>> >>> <div class="my-toc"> >>> <<toc "[tag[stuff]]">> >>> </div> >>> >>> Then in your stylesheet: >>> >>> .my-toc .tw-tiddlylink { >>> background: red; >>> } >>> >>> Best wishes >>> >>> Jeremy >>> >>> >>> >>> On Sat, Aug 30, 2014 at 3:36 PM, David Gifford <[email protected]> >>> wrote: >>> >>>> Never mind, I found the problem. >>>> >>>> >>>> On Sat, Aug 30, 2014 at 9:29 AM, David Gifford <[email protected]> >>>> wrote: >>>> >>>>> So I changed the macro to >>>>> >>>>> \define toc(tag,sort:"") >>>>> <ol class="blacktoc"> >>>>> <$list filter="[tag[$tag$]!tag[$:/Note]$sort$]"> >>>>> <li> >>>>> <$link> >>>>> <$view field="title"/> >>>>> </$link><$macrocall $name="toc" tag=<<currentTiddler>>/> >>>>> </li> >>>>> </$list> >>>>> </ol> >>>>> \end >>>>> >>>>> >>>>> And in CSS I put >>>>> >>>>> .blacktoc li a.tw-tiddlylink {} >>>>> >>>>> What am I doing wrong? >>>>> >>>>> >>>>> >>>>> >>>>> On Sat, Aug 30, 2014 at 8:51 AM, Andreas Hahn < >>>>> [email protected]> wrote: >>>>> >>>>>> Have a look at the toc macro in $:/core/macros/toc. >>>>>> >>>>>> As you can see it uses <ol>-elements with currently no specific >>>>>> class. So you can style those with: >>>>>> >>>>>> ol>li>a.tw-tiddlylink { >>>>>> color: red; >>>>>> } >>>>>> >>>>>> Alternatively you can change the <<toc>>-macro so that the elements >>>>>> have css classes. >>>>>> >>>>>> /Andreas >>>>>> >>>>>> Am 30.08.2014 15:21, schrieb David Gifford: >>>>>> >>>>>> I would like the links in the table of contents to be different than >>>>>> the standard links. >>>>>> >>>>>> I have tried >>>>>> >>>>>> #tw-table-of-contents a.tw-tiddlylink {} >>>>>> >>>>>> and some similar items to no avail. Any ideas? >>>>>> >>>>>> Dave >>>>>> -- >>>>>> 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 http://groups.google.com/group/tiddlywiki. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to a topic in >>>>>> the Google Groups "TiddlyWiki" group. >>>>>> To unsubscribe from this topic, visit >>>>>> https://groups.google.com/d/topic/tiddlywiki/iIF1MM4QlX4/unsubscribe. >>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>> [email protected]. >>>>>> To post to this group, send email to [email protected]. >>>>>> Visit this group at http://groups.google.com/group/tiddlywiki. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> David Gifford >>>>> Christian Reformed World Missions, Mexico City >>>>> >>>> >>>> >>>> >>>> -- >>>> David Gifford >>>> Christian Reformed World Missions, Mexico City >>>> >>>> -- >>>> 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 http://groups.google.com/group/tiddlywiki. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Jeremy Ruston >>> mailto:[email protected] >>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "TiddlyWiki" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/tiddlywiki/iIF1MM4QlX4/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/tiddlywiki. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> David Gifford >> Christian Reformed World Missions, Mexico City >> >> -- >> 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 http://groups.google.com/group/tiddlywiki. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Jeremy Ruston > mailto:[email protected] > > -- > You received this message because you are subscribed to a topic in the > Google Groups "TiddlyWiki" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/tiddlywiki/iIF1MM4QlX4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/d/optout. > -- David Gifford Christian Reformed World Missions, Mexico City -- 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 http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

