Is there a way to make a drop cap in TiddlyWiki

75 views
Skip to first unread message

Andy Pastuszak

unread,
Mar 14, 2016, 3:52:45 PM3/14/16
to TiddlyWiki
I'm experimenting with using TiddlyWiki to convert a book for a printed set of pages to something far more useful.  I'd like to try and "fancy things up" a bit.

Mat

unread,
Mar 14, 2016, 4:00:11 PM3/14/16
to TiddlyWiki
For sure; just use CSS. I don't have time to dig up specifics at the moment but hopefully the information that you for sure can do it, and easily so, should be enough for you to google around a little by yourself.

You can use a style block at the bottom of the tiddler to try things out and have the preview feature active to see immediate results.

<:-)

Knut Franke

unread,
Mar 14, 2016, 4:07:31 PM3/14/16
to TiddlyWiki
One way to do it:

1) Create a tiddler tagged $:/Stylesheet with the following content:

p.dropcap:first-child:first-letter { float: left; color: #903; font-size: 75px; line-height: 60px; padding-top: 4px; padding-right: 8px; padding-left: 3px; font-family: Georgia; }

2) Surround the paragraphs you want to have dropcaps with <p class="dropcap">your text</p>

Hegart Dmishiv

unread,
Mar 14, 2016, 4:26:03 PM3/14/16
to tiddl...@googlegroups.com
Hi Andy,

I have a simple macro which I created for my {{DesignWrite}} exercises, which inserts a big curly quotation mark at the start of pull-quotes, as a drop-cap. Then I can just use it as <<big-ldquo>> wherever I want it. I guess you could do something similar using a parameter, as <<dropcap "S">> or whatever. Just a thought.

A good example of my <<big-ldquo>> macro in use is shown here.

Hegart.

Andy Pastuszak

unread,
Mar 14, 2016, 4:26:22 PM3/14/16
to TiddlyWiki
Thank you!

Alex Hough

unread,
Mar 14, 2016, 5:03:00 PM3/14/16
to TiddlyWiki
Is there a transclusion method that could be used?

for example, if tiddler is of a type which requires drop cap then format it such.

Alex

--
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/9a8ef69f-557f-4a2f-9b48-488945713645%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages