ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Lettrines in MkIV
Date: Thu, 23 Sep 2010 19:43:29 +0200	[thread overview]
Message-ID: <20100923174329.GC21645@aides> (raw)
In-Reply-To: <alpine.LNX.2.01.1009231221380.26185@ybpnyubfg.ybpnyqbznva>


[-- Attachment #1.1: Type: text/plain, Size: 2211 bytes --]

On 2010-09-23 <12:24:05>, Aditya Mahajan wrote:
> On Thu, 23 Sep 2010, Alan BRASLAU wrote:
> 
> >On Thursday 23 September 2010 15:49:07 Hans Hagen wrote:
> >>
> >>we know and we will take a look at it next week (as it takes some time
> >>to nail down node allocation bugs)
> >>
> >
> >As Hans indicated, he is aware of the problem with the lettrine module
> >and will fix it. In the meantime, you can get by using simply:
> >
> >%\usemodule [lettrine]
> >% broken, so let's fake it:
> >\def\lettrine#1#2{{\tfc #1}#2}
> >
> >Of course, this is no good for production, but it is a simple
> >solution if you are working on drafts.
> 
> Isn't it better to use initials? This is what one of setups has"
> 
> \definehead[initialtitle][title]
> 
> \setuphead[initialtitle]
>           [after=\placeinitial]
> 
> \definefontsynonym[initial][name:fontin]
> 
> \setupinitial
>   [   state=start,
>           n=3,
>    distance=-.1pc,
>   ]
> 
> And then I can simply use
> 
> \initialtitle {Don Knuth said}
> 
> \input knuth

Dear Alan, Aditya, and everybody else,

thanks for your efforts, but I’m afraid that you were being
mislead about my intentions.

I am (probably mis-)using the lettrine module in order to fake the
Knuthian \danger and \ddanger macros in auto-generated context
code. One of the main goals is, other than pure convenience on my
part, that understanding of the resulting code requires only
knowledge of high-level context macros, not of high-level tex
wizardry. Of course I could start with texbook, p. 419, and try
to adapt it to context (seems to be non-trivial), but even if I
should succeed, the effort necessary to understand what’s going
on is huge compared to when using a well-known and
well-documented module.

That’s why I rather do without autoindentation, as it concerns
only the layout of the manual, not the code itself.

@Aditya, I couldn’t get your code to work, neither in mkii nor in
mkiv. Anyways, I wasn’t aware of \setup/placeinitial before so I
learned something new today.

Philipp


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

      parent reply	other threads:[~2010-09-23 17:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-21 18:39 Philipp Gesang
2010-09-21 19:47 ` Hans Hagen
2010-09-23 12:32   ` Philipp Gesang
2010-09-23 13:49     ` Hans Hagen
2010-09-23 15:54       ` Alan BRASLAU
2010-09-23 16:24         ` Aditya Mahajan
2010-09-23 16:32           ` Alan BRASLAU
2010-09-23 16:46             ` Aditya Mahajan
2010-09-23 17:09               ` Alan BRASLAU
2010-09-23 17:38                 ` Aditya Mahajan
2010-09-23 18:27                   ` Alan BRASLAU
2010-10-03 16:27                 ` Hans Hagen
2010-09-23 17:43           ` Philipp Gesang [this message]

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=20100923174329.GC21645@aides \
    --to=pgesang@ix.urz.uni-heidelberg.de \
    --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).