On 2013–08–24 Hans Hagen wrote:
On 8/23/2013 2:41 PM, Otared Kavian wrote:
Hi Hans,
This is a very nice feature indeed. Out of curiosity, I wondered whether it is possible to to have \placeinitial to work with \definefirstline, or a variant of it: that is not only have the first character of the first sentence as a dropped capital, but also the first line (or first few words) for instance in smallcaps.
I played with that before uploading but it was somewhat tricky. Anyway, I redid some code so now you can do this:
Did you forget to add a file? loading > ConTeXt Typesetting Macros / First Lines ! LuaTeX error ...o/ctx/te/tex/texmf-context/tex/context/base/typo-fln.lua:44: attempt to index field 'pool' (a nil value) stack traceback: ...o/ctx/te/tex/texmf-context/tex/context/base/typo-fln.lua:44: in function 'code' ...o/ctx/te/tex/texmf-context/tex/context/base/util-lua.lua:84: in function 'loadedluacode' ...o/ctx/te/tex/texmf-context/tex/context/base/luat-env.lua:104: in function 'luafilechunk' ...o/ctx/te/tex/texmf-context/tex/context/base/luat-cod.lua:45: in function 'registercode' [string "\directlua "]:1: in main chunk. system > tex > error on line 53 in file /home/marco/ctx/te/tex/texmf-context/tex/context/base/typo-fln.mkiv: LuaTeX error ... Marco