Slices revisited

135 views
Skip to first unread message

Jan

unread,
Jan 30, 2017, 2:24:08 PM1/30/17
to TiddlyWiki
Dear all,
I would like to shed some light on a macro Thomas made in the beginning of january and that might not have appeared on your radar because it was only in the depth of a thread...
It brings back "slices" a feature of TWC which some desperately missed on TW5.

http://tid.li/tw5/numbers.html#%24%3A%2F_telmiger%2Fslice

tested and demonstrated here:

http://slidesnstories.tiddlyspot.com/#%24%3A%2Fplugins%2FJR%2FMultiMenu%2FTools:%5B%5BSlides%20and%20Slices%5D%5D%20SourceTiddler%20%24%3A%2F_telmiger%2Fslice%20%24%3A%2F_telmiger%2Fextract

Thanks a lot for this Thomas...

One question: The plugin is set to display slices in block-mode by default. So far, I did not manage to show slices in a text inline. I would like the macro to be set to "inline" by default, because block is easily done with return or <br>  outside the macro. 

(More questions on extract and slice will follow, because it will be an important element of my slideshow mechanism.

This is also why I all style or mode settings in the macro will be used for the slides and so it is better not to use them for slicing in textparts.)

Best wishes Jan

Danielo Rodríguez

unread,
Jan 30, 2017, 3:17:34 PM1/30/17
to TiddlyWiki
That looks like magic tabs a lot...

Jan Johannpeter

unread,
Jan 30, 2017, 4:57:57 PM1/30/17
to TiddlyWiki
Hi Danielo,
That is MetaTabs, which is a lightweight and modifiable alternative to magicTabs. If you search it is explained below About MetaTabs. But that's not the main subject of this thread...
Cheers Jan
Danielo Rodríguez <rdan...@gmail.com> schrieb am Mo. 30. Jan. 2017 um 21:17:
That looks like magic tabs a lot...

--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/970e1667-d3d6-4aaa-b474-f2a5ec30389f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Elmiger

unread,
Jan 30, 2017, 5:43:51 PM1/30/17
to TiddlyWiki
Hi Jan

 
One question: The plugin is set to display slices in block-mode by default. So far, I did not manage to show slices in a text inline.

Have you tried to change the macro default value from block to inline?

\define slice(tiddler,nr,mode:"inline")
<$macrocall $name="extract" tiddler="""$tiddler$""" start="<sli$nr$>" end="</sli$nr$>" mode="$mode$" class="slice"/>
\end

This should give you the desired behaviour.

Cheers, Thomas

Jan Johannpeter

unread,
Jan 30, 2017, 5:53:22 PM1/30/17
to TiddlyWiki
Hi Thomas,
I just controlled the example I posted: I did try this, but there seems to be something overriding it...
Greetings Jan

--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Thomas Elmiger

unread,
Jan 30, 2017, 5:58:39 PM1/30/17
to TiddlyWiki
Hi Jan

I am afraid you are using an older version of the extract macro – please update and try again!

Good luck!
Thomas

Jan Johannpeter

unread,
Jan 30, 2017, 6:05:17 PM1/30/17
to TiddlyWiki
Hi Thomas,
That was telepathy, I just did this and it works...
And you also seem to have solved the class issue, my footnotes are still there!
Thanks!
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
Reply all
Reply to author
Forward
0 new messages