Problem with *lettrine* module in Mk-iv
I am making my first steps in ConTeXt. I am only interested in Mk-iv and am using version 2012.09.06 23:03. I tried to explore the possibilities of the additional module *lettrine* following its documentation (*lettrine-doc.pdf*) and prepared the following example, which reproduces almost exactly the first one found in that text: \usemodule[lettrine] \starttext \lettrine {T}{he two} typeset arguments are the dropped capital and the run-in text following it; the \TeX\ source of this paragraph started with \starttyping "\usemodule[lettrine] \starttext \lettrine{T}{he two} …" \stoptyping … \stoptext When I typeset it with ConTeXt, the result was not what the documentation showed. The initial capital was fine and so was the rest of the first line, but the second line was blank and the regular text continued at the third and following lines. This was with the default value of 2 lines as size for the capital. If one indicates a greater number of lines, all of them but the first one are blank and the regular text continues after all that whitespace. As I was not completely sure that my installation of ConTeXt was unobjectable, I tried to typeset the example in *ConTeXt online* (http://live.contextgarden.net/). There the option to use *LuaTex / Mark-iv* is not offered (!!??), so I selected the *pdfTex* alternative and then it happened that everything behaved as expected (at least in the first part of the example, as some of the following commands seem not to be understood by *pdfTex*). My conclusion is that *lettrine* does not work correctly with Mark-iv and there is somewhere a bug that has to be corrected. But I could be mistaken. Am I doing something wrongly? Thanks for your interest
Hello Francisco, Welcome to ConTeXt! You are sure to enjoy it here.
My conclusion is that *lettrine* does not work correctly with Mark-iv and there is somewhere a bug that has to be corrected. But I could be mistaken. Am I doing something wrongly?
No, you are correct, there is a bug. It happens on my end, too; I have attached the resulting output. \usemodule[lettrine] \starttext \lettrine[Lines=3]{T}{he two} typeset arguments are the dropped capital. \input knuth \stoptext I had a look at the module code, but it's too low-level for me, so I'm CC-ing Taco Hoekwater who wrote the module. Depending on how trivial the bug is, and how busy Taco is, he might be able to help. Kind regards, Sietse Sietse Brouwer
I had to switch to "\placeinitial", e.g. Instead of: % \usemodule[lettrine] % \setuplettrine[Raise=0.1,FontHook=\darkgrey,TextFont=\tf] I used: \setupinitial[color=darkgrey,n=2,voffset=-1.5ex] and then: \placeinitial My text … See also http://archive.contextgarden.net/message/20120322.214713.ca22f882.en.html Cheers, Jörg On Sep 10, 2012, at 1:43 PM, Sietse Brouwer wrote:
Hello Francisco,
Welcome to ConTeXt! You are sure to enjoy it here.
My conclusion is that *lettrine* does not work correctly with Mark-iv and there is somewhere a bug that has to be corrected. But I could be mistaken. Am I doing something wrongly?
No, you are correct, there is a bug. It happens on my end, too; I have attached the resulting output.
\usemodule[lettrine] \starttext \lettrine[Lines=3]{T}{he two} typeset arguments are the dropped capital. \input knuth \stoptext
I had a look at the module code, but it's too low-level for me, so I'm CC-ing Taco Hoekwater who wrote the module. Depending on how trivial the bug is, and how busy Taco is, he might be able to help.
Kind regards, Sietse Sietse Brouwer
___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (3)
-
Francisco Gracia
-
Jörg Hagmann
-
Sietse Brouwer