ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <hraban@fiee.net>
To: mailing ConTeXt users list for <ntg-context@ntg.nl>
Subject: Initials / DroppedCaps
Date: Tue, 13 Dec 2011 13:08:02 +0100	[thread overview]
Message-ID: <23165137-3692-497B-9330-CA0012F17B0C@fiee.net> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2011-12-13 12:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-13 12:08 Henning Hraban Ramm [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23165137-3692-497B-9330-CA0012F17B0C@fiee.net \
    --to=hraban@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).