you don't need to add anything - global macro are just 'visible' from all
tids
BJ
On Thursday, August 7, 2014 3:16:39 PM UTC+2, David Gifford wrote:
>
> Hi everyone, thank you!
>
> I used Mario's fix which worked great.
>
> BJ, thanks for letting me know about the global macro. I will investigate
> that. If I put the macro in a tiddler and tag it as you say, do I put {{
> macrotiddlername }} at the top of the tiddlers where I want it to work? Or
> don't I have to do anything?
>
> On Thursday, August 7, 2014 4:16:36 AM UTC-5, BJ wrote:
>>
>> Hi David,
>>
>> In order to get the text to go left but not to flow around the '>' I did
>> this:
>> in the macro toc-heading() replace
>> {{$:/core/images/right-arrow}}$caption$
>> with
>> <div style="float: left;">{{$:/core/images/right-arrow}} </div> <div
>> style="text-align:left; float: top;padding-left: 1.0em;" >$caption$</div>
>> and
>> {{$:/core/images/down-arrow}}$caption$
>> with
>> <div style="float: left;">{{$:/core/images/down-arrow}} </div> <div
>> style="text-align:left; float: top;padding-left: 1.0em;" >$caption$</div>
>>
>>
>> On a separate note - I see that you are copying the macro toc-heading()
>> to lots of tiddlers. With v5.13 it is possible to define global macros -
>> you can put the macro into a separate tid and tag it with $:/tags/Macro
>> so that it can be used in all tiddlers.
>>
>> best of luck
>>
>> BJ
>>
>> On Wednesday, August 6, 2014 10:18:10 PM UTC+2, David Gifford wrote:
>>>
>>> Hi all
>>>
>>> I am using the TW5 table of contents, with the code at the bottom. The
>>> heading is the text of a Bible verse. The part that slides open is the
>>> notes section for that verse.
>>>
>>> But some of the headings are becoming centered horizontally. Not all,
>>> just some. I can't figure out why. Because of length? I don't know. I
>>> scoured the vanilla stylesheet for some sign of horizontal alignment rules
>>> for the toc, but found none. If anyone can help me out, I would appreciate
>>> it.
>>>
>>> <div class="tw-table-of-contents">
>>>
>>> <span class="indent1">
>>>
>>> <<toc-heading "Prepárame también alojamiento; porque espero que por
>>> vuestras oraciones os seré concedido." "{{ 22 notes }}">>
>>>
>>> </span>
>>>
>>> </div>
>>>
>>
--
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.