ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Initials / DroppedCaps
@ 2011-12-13 12:08 Henning Hraban Ramm
  2011-12-13 12:28 ` Wolfgang Schuster
  2011-12-13 12:38 ` Hans Hagen
  0 siblings, 2 replies; 10+ messages in thread
From: Henning Hraban Ramm @ 2011-12-13 12:08 UTC (permalink / raw)
  To: mailing ConTeXt users list for

For a book of fairy tales, I used (working!):

\def\Initial{\DroppedCaps%
{\color[red]} {Serif} {2.5\baselineskip} {3pt} {2\baselineskip} {3}}

\starttext
\Initial Once upon a time... \input tufte
\stoptext


But that gives now:

<to be read again>
                    \unskip
\\->\ifhmode \unskip
                      \prewordbreak \crlfplaceholder \ifcase  
\raggedstatus \h...
\somefontsize ->2.5\\
                      baselineskip
\lowleveldefinefont ...aledfontsize \somefontsize
                                                   \or \scaledfontsize  
\local...
\dododefinefont ...inefont {#2}\rawfontidentifier
                                                   \csname  
\rawfontidentifier...
\dodefinedfont ...nedfont][#1]\fi \thedefinedfont
                                                   \the  
\everydefinedfont
...
l.7 \Initial O
               nce upon a time... \input tufte


It works, if I use absolute values for font size and vertical offset,  
like

\def\Initial{\DroppedCaps%
{\color[red]} {Serif} {36pt} {3pt} {28pt} {3}}


I also tried \setupinitial / \placeinitial like below; I got my  
defined font, but only ever in base font size.

%\definefontsynonym[Initial][WieynkInitialen]
\setupinitial[font=WieynkInitialen,n=3,state=start,command=\Initial] %

I also tried \NiceDroppedCaps and \LineDroppedCaps that I found in the  
sources, but didn’t get further.


So, what’s the preferred way to get dropped capitals / initials?
I’d like to wikify that, since it seems nowhere documented.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-12-13 15:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-13 12:08 Initials / DroppedCaps Henning Hraban Ramm
2011-12-13 12:28 ` Wolfgang Schuster
2011-12-13 13:17   ` Henning Hraban Ramm
2011-12-13 13:22     ` Wolfgang Schuster
2011-12-13 13:42       ` Henning Hraban Ramm
2011-12-13 13:50         ` Wolfgang Schuster
2011-12-13 15:34           ` Henning Hraban Ramm
2011-12-13 12:38 ` Hans Hagen
2011-12-13 14:15   ` Idris Samawi Hamid ادريس   سماوي حامد
2011-12-13 14:35     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).