From: Nicola <nvitacolonna@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Use of lettrine module in LMTX
Date: Wed, 21 Jul 2021 20:38:28 -0000 (UTC) [thread overview]
Message-ID: <sda0k4$8qs$1@ciao.gmane.io> (raw)
In-Reply-To: <CE9BB781-80B0-4EB0-9CBF-8131A4596CC2@rna.nl>
On 2021-07-21, Gerben Wierda <gerben.wierda@rna.nl> wrote:
>> On 19 Jul 2021, at 09:56, Nicola <nvitacolonna@gmail.com> wrote:
>>
>> On 2021-07-18, Gerben Wierda <gerben.wierda@rna.nl> wrote:
>>> PS. switching \kap and \bf has an interesting result, the first
>>> character of the words is not in bold. This did not happen with
>>> lettrine in mkii
>>
>> I do not have an answer to your question, but I'd like to point out that
>> you can keep using lettrine with ConTeXt LMTX, if you wish. You just
>> need to add the modules manually, currently:
>>
>> https://wiki.contextgarden.net/Modules#ConTeXt_LMTX
>
> I’ve tried this. Installed the modules and then I get with
I was sure that I had used lettrine with MKIV in a document of mine, but
after your reply I double checked that and, in fact, I was using
lettrine only with MKII. On the plus side, I have recovered my settings
for MKIV (which work with LMTX as well).
I think that the `distance` parameter of \setupinitials does what you
want. Besides, if your font provides real small capitals, you may use
\definefirstline.
This is how I set up things in one of my documents:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definefontfeature[default][default][protrusion=quality,expansion=quality,onum=no,lnum=yes]
% \definefirstline below requires a font that implements small capitals as
% a feature (Latin Modern does not). I have used this:
% \definefontfamily[mainfont][serif][Sorts Mill Goudy] [
% tf=name:Sorts Mill Goudy Regular,
% it=name:Sorts Mill Goudy Italic,
% ]
% If you don't have the font above, try this:
\setupbodyfont[heros]
\setupbodyfont[mainfont,11pt]
\definemeasure[CAindent][12pt]
\setupindenting[yes,\measure{CAindent}]
% Every chapter body text starts with a drop cap:
\defineinitial[normal][
n=3,
m=1,
distance=18pt, %%%%%%%%% <== Add this %%%%%%%%
state=start
]
% Special case: drop cap starting with a quote
\defineinitial[quote][
n=3,
m=2,
distance=13pt,
hoffset=5pt, % Move drop cap a bit to the left
method=none
]
% Some initials may need special adjustments, depending on the font
\defineinitial[Q][
voffset=2\lineheight,
n=3,
m=1,
distance=18pt,
state=start
]
% Full first line in small caps
\definefirstline[smallcapsfirstline][
alternative=line,
style=smallcaps,
]
% First n words in small caps (three in this case)
\definefirstline[smallcapsfirstlinethree][
alternative=word,
n=3,
style=smallcaps,
]
\starttext
\setfirstline[smallcapsfirstlinethree]
\setinitial[normal] Suppose we have a system for the approval of
loans. \input knuth
\blank[2*big]
\setfirstline[smallcapsfirstline]
\setinitial[quote] “Suppose we have a system for the approval of
loans.” \input knuth
\blank[2*big]
\setfirstline[smallcapsfirstline]
\setinitial[Q] Quo usque tandem abutere, Catilina, patientia nostra? quam diu
etiam furor iste tuus nos1 eludet? quem ad finem sese effrenata iactabit
audacia?
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I hope this will give you some ideas!
References:
https://wiki.contextgarden.net/Command/setupinitial
https://wiki.contextgarden.net/Command/definefirstline
https://www.fontsquirrel.com/fonts/Sorts-Mill-Goudy
Nicola
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2021-07-21 20:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-18 21:54 drop cap (initial) and indentation Gerben Wierda
2021-07-19 7:56 ` Nicola
2021-07-21 10:00 ` Use of lettrine module in LMTX Gerben Wierda
2021-07-21 20:38 ` Nicola [this message]
2021-07-22 8:05 ` Solution: LMTX initial (drop cap) in combination with indenting Gerben Wierda
2021-07-21 21:10 ` Use of lettrine module in LMTX Wolfgang Schuster
[not found] ` <E7086935-5930-40FD-926A-7B881F56E54A@rna.nl>
2021-07-23 11:04 ` Wolfgang Schuster
2021-07-23 13:10 ` Gerben Wierda
2021-07-23 13:27 ` Arthur Rosendahl
2021-07-25 20:14 ` Nicola
2021-07-25 20:53 ` Modules under LMTX, was " Rik Kabel
2021-07-25 22:20 ` Aditya Mahajan
2021-07-19 13:56 ` drop cap (initial) and indentation Pablo Rodriguez
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='sda0k4$8qs$1@ciao.gmane.io' \
--to=nvitacolonna@gmail.com \
--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).