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, butafter your reply I double checked that and, in fact, I was usinglettrine only with MKII. On the plus side, I have recovered my settingsfor MKIV (which work with LMTX as well).I think that the `distance` parameter of \setupinitials does what youwant. 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 ofloans. \input knuth\blank[2*big]\setfirstline[smallcapsfirstline]\setinitial[quote] “Suppose we have a system for the approval ofloans.” \input knuth\blank[2*big]\setfirstline[smallcapsfirstline]\setinitial[Q] Quo usque tandem abutere, Catilina, patientia nostra? quam diuetiam furor iste tuus nos1 eludet? quem ad finem sese effrenata iactabitaudacia?\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-GoudyNicola
Hi Nicola,
Thanks. This solves the indentation of the initial itself. What remains is the indentation of the text immediately after, e.g. the 'uppose we’. Minimum example (also visible in your example):
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This combination of indenting and initial does not work properly, the text following the initial should be unindented
\definemeasure[CAindent][12pt]
\setupindenting[yes,\measure{CAindent}]
% Every chapter body text starts with a drop cap:
\defineinitial[normal][n=3,m=1,hoffset=\measure{CAindent},state=start]
\starttext
\setinitial[normal] S {\bf{\kap uppose we}} have a system for the approval of
loans. \input knuth
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The ‘uppose we’ should not be indented more than the lines directly below. I’ve tried everything, e.g. trying some sort of noindent
but so far without success. Setting indenting to ‘next', for instance,
increases the indenting of that first line after the initial.