Re: [NTG-context] lettrine.sty, but not LaTeX

2005-03-10 Thread Gerben Wierda
I tried this and the drop.tex example from Taco with
texexec --pdf drop.tex
but this ends in disaster:
system  : macros of module lettri loaded
(./t-lettri.tex
! Illegal parameter number in definition of \LettrineFontEPS.
to be read again
   1
l.99 \def\LettrineFontEPS{#1
}{%
? x
No pages of output.
This is the latest ConTeXt beta. What am I doing wrong?
G
On 3 Mar 2005, at 08:09, Hans Hagen wrote:
Ciro A. Soto wrote:
Another question, this one is for Hans:
I tried your file from feb 27:
supp-fu3.tex.
I typed texexec --pdf supp-fu3.tex
and got: Undefined control sequence.
\doDroppedCaps ...arindent \fi \keeplinestogether
 {#4}\setbox 0\hbox {#1{#6}...
l.190 \NiceDroppedCaps  {\red}{Serif}{0pt}{3}{W}
 \input tufte \endgraf
 Where could be the problem? I see the definition of
doDroppedCaps in the file, but 
i isolated some code and keeplinetogether is part of that; you can try 
the attached file (with your own samples; syntax slightly changed)

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
supp-fu3.zip___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] lettrine.sty, but not LaTeX

2005-03-02 Thread Mats Broberg
  - The text font seems to be defaulted to small capitals. 
 However, this 
  is merely one of the conventions how text after a dropcap is set. 
  Other conventions include e.g. roman or italic caps, roman 
 or italic 
  lower case etc.
 
 You can set the 'TextFont' parameter to something else.
 
  - Regarding the slope one should be able to set indentation 
 separately 
  for each line. This depends on the fact that some 
 characters call for 
  a different type of intendation of the lines - e.g. the 
 character L.
 
 I will keep this in mind for a future extension
 
  - Sometimes there is a need to indent the dropcap slightly itself, 
  e.g. if one uses a quotation mark before the dropcap. So a 
 parameter 
  to control that would be great.
 
 You can set the 'Hang' parameter to a negative value.

Many thanks!

Best regards,
Mats Broberg

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] lettrine.sty, but not LaTeX

2005-03-02 Thread Mats Broberg
 On Tue, 1 Mar 2005 14:37:21 -0800 (PST), Ciro A. Soto 
 [EMAIL PROTECTED] wrote:
  trivial question from a novice:
  What are the steps to use a new module
  like the lettrine.sty? Where do I put this file?
  what command should I type to make is available to
  context? etc...
  thank you
  ciro
  
  PS: I am using Fedora Core 3 + texlive2004 + context
  from February 2005.
 
 In teTeX 3.0 (FC3 box) I put the file  t-lettri.tex in 
 $HOME/texmf/tex/context/user/ and run command texhash. That's all :)
 
 HTH,
 Q.

OK, so this is the 'standard of procedure'? Not to put it in \base and
run mktexlsr?

Best regards,
Mats Broberg

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-03-02 Thread Willi Egger
Hi Mats,
I followed this thread. Basically the t-lettri.tex must be placed in a 
path known to TeX. Indeed if you place it in \base or \user this is the 
case. - In earlier discussion I think to remember that one could best 
create a directory \third (or similar) where such files can be placed.

Kind regards
Willi
Mats Broberg wrote:
On Tue, 1 Mar 2005 14:37:21 -0800 (PST), Ciro A. Soto 
[EMAIL PROTECTED] wrote:

trivial question from a novice:
What are the steps to use a new module
like the lettrine.sty? Where do I put this file?
what command should I type to make is available to
context? etc...
thank you
ciro
PS: I am using Fedora Core 3 + texlive2004 + context
from February 2005.
In teTeX 3.0 (FC3 box) I put the file  t-lettri.tex in 
$HOME/texmf/tex/context/user/ and run command texhash. That's all :)

HTH,
Q.

OK, so this is the 'standard of procedure'? Not to put it in \base and
run mktexlsr?
Best regards,
Mats Broberg
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-03-02 Thread Ciro A. Soto
Another question, this one is for Hans:
I tried your file from feb 27:
supp-fu3.tex.
I typed texexec --pdf supp-fu3.tex
and got: 

Undefined control sequence.
\doDroppedCaps ...arindent \fi \keeplinestogether
 
{#4}\setbox 0\hbox {#1{#6}...
l.190 \NiceDroppedCaps  {\red}{Serif}{0pt}{3}{W}
 
\input tufte \endgraf
 
Where could be the problem? I see the definition of
doDroppedCaps in the file, but 

thank you
ciro

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-03-01 Thread VnPenguin
On Mon, 28 Feb 2005 10:34:44 +0100, Taco Hoekwater [EMAIL PROTECTED] wrote:
 
 
 Mats Broberg wrote:
 
  - I tested with the inital H and
  [Lines=4,Hang=.1,Nindent=20pt,Findent=20pt]. This makes the H itself be
  indented too (see enclosed dump). It seems that Findent adds space both
  before and after the dropcap, when it only should add after the dropcap.
 
 That was a bug, so, although I promised I wouldn't do this ... here is
 version four. ;-)
 
  - The text font seems to be defaulted to small capitals. However, this
  is merely one of the conventions how text after a dropcap is set. Other
  conventions include e.g. roman or italic caps, roman or italic lower
  case etc.
 
 You can set the 'TextFont' parameter to something else.
 
  - Regarding the slope one should be able to set indentation separately
  for each line. This depends on the fact that some characters call for a
  different type of intendation of the lines - e.g. the character L.
 
 I will keep this in mind for a future extension
 
  - Sometimes there is a need to indent the dropcap slightly itself, e.g.
  if one uses a quotation mark before the dropcap. So a parameter to
  control that would be great.
 
 You can set the 'Hang' parameter to a negative value.
 
 Greetings, Taco

Just tried the following code:
-
\starttext
\placefigure[right]{none}{\externalfigure[foo][width=4cm,height=4cm]}
Voici a very silly \input tufte

\blank[1cm]

\placefigure[right]{none}{\externalfigure[foo][width=4cm,height=4cm]}
\lettrine {V}{oici} a very silly \input tufte
\stoptext
--
There is a strange behaviour of \placefigure[right] when using
\lettrine (see PDF at http://people.vnoss.org/~vnpenguin/pub/context/drop.pdf )

Any ideas ?

Thanks,
Q.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-03-01 Thread Taco Hoekwater
VnPenguin wrote:
There is a strange behaviour of \placefigure[right] when using
\lettrine (see PDF at http://people.vnoss.org/~vnpenguin/pub/context/drop.pdf )
Any ideas ?
Unfortunately, this cannot be helped.  It is a limitation
of the \parshape primitive.
Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-03-01 Thread Ciro A. Soto
trivial question from a novice:
What are the steps to use a new module 
like the lettrine.sty? Where do I put this file?
what command should I type to make is available to
context? etc...
thank you
ciro

PS: I am using Fedora Core 3 + texlive2004 + context
from February 2005.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-03-01 Thread VnPenguin
On Tue, 1 Mar 2005 14:37:21 -0800 (PST), Ciro A. Soto
[EMAIL PROTECTED] wrote:
 trivial question from a novice:
 What are the steps to use a new module
 like the lettrine.sty? Where do I put this file?
 what command should I type to make is available to
 context? etc...
 thank you
 ciro
 
 PS: I am using Fedora Core 3 + texlive2004 + context
 from February 2005.

In teTeX 3.0 (FC3 box) I put the file  t-lettri.tex in
$HOME/texmf/tex/context/user/ and run command texhash. That's all :)

HTH,
Q.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-28 Thread Taco Hoekwater

Mats Broberg wrote:
- I tested with the inital H and
[Lines=4,Hang=.1,Nindent=20pt,Findent=20pt]. This makes the H itself be
indented too (see enclosed dump). It seems that Findent adds space both
before and after the dropcap, when it only should add after the dropcap.
That was a bug, so, although I promised I wouldn't do this ... here is
version four. ;-)
- The text font seems to be defaulted to small capitals. However, this
is merely one of the conventions how text after a dropcap is set. Other
conventions include e.g. roman or italic caps, roman or italic lower
case etc.
You can set the 'TextFont' parameter to something else.
- Regarding the slope one should be able to set indentation separately
for each line. This depends on the fact that some characters call for a
different type of intendation of the lines - e.g. the character L.
I will keep this in mind for a future extension
- Sometimes there is a need to indent the dropcap slightly itself, e.g.
if one uses a quotation mark before the dropcap. So a parameter to
control that would be great.
You can set the 'Hang' parameter to a negative value.
Greetings, Taco


t-lettri.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-27 Thread h h extern
Taco Hoekwater wrote:
basically you want to follow a shape; this is not that hard to 
implement so i can have a look at it; lettrines is then an instance of it
Lettrine is easier than that, actually. I thought this would be quite
funny, so here is a brand new module called t-lettri.tex, and an example.
ah, nice, so, lettrines only does a slanted shape?
i played a bit with shapes last night and will probably add something to the 
drop macros, and probably also move the code to core-fnt; but it will be a bit 
more complex and take some more time; it's a good testbed for playing with 
things like glyph shape similarity and such; also, proper alignment is an issue.

(i attached supp-fu3.tex, no production code, just for fun)
concerning your module, maybe we should introduce a new category of modules, 
e.g. c-lettrines.tex with x meaning 'converted'; we can then collect them in 
another zip;

remark 1:
\sbox is already definined and in use,
i remember someone telling me that this \hbox{{#1}} stuff is needed to satisfy 
latex's color mechanism, but that's not needed in context, so a simple

\setbox\Lettrinetbox{}
is not only even more efficient in terms of tokens and performance (unnoticable) 
but also does not clash with the core macro.

remark 2:
auto-lettrines (dropcaps etc) are kind of complex in the sense that it's not 
trivial to pick up the first 'something' in a paragraph in a robust way [we may 
want some extension to tex for that (so we have something to discuss during our 
trip to eurotex -)

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


supp-fu3.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-27 Thread Taco Hoekwater
h h extern wrote:
Taco Hoekwater wrote:
Lettrine is easier than that, actually. I thought this would be quite
funny, so here is a brand new module called t-lettri.tex, and an example.
ah, nice, so, lettrines only does a slanted shape?
Yes, only slopes (both directions). And it allows the user to move
the actual initial box to a `more pleasing' location.
\sbox is already definined and in use,
I will fix this (and write documentation), but I will not have
time for that until after EuroTeX (march 7-11).  If anybody wants
stuff added that is not in lettrine.sty, feel free to tell me.
Greetings, Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] lettrine.sty, but not LaTeX

2005-02-27 Thread Mats Broberg
 auto-lettrines (dropcaps etc) are kind of complex in the 
 sense that it's not 
 trivial to pick up the first 'something' in a paragraph in a 
 robust way [we may 
 want some extension to tex for that (so we have something to 
 discuss during our 
 trip to eurotex -)
 
 Hans

If I may chime in:

Also, automated drop caps (if that is what you refer to) is not a
feasible way to go if high typographic quality is important. Different
typefaces and different characters need different level of protruding
into the left margin, as well as other actions of tweaking. As an
example, the automated drop caps in some of the more famous DTP programs
are useless.

Best regards,
Mats Broberg


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-27 Thread Adam Lindsay
Mats Broberg said this at Sun, 27 Feb 2005 11:51:04 +0100:

 Different
typefaces and different characters need different level of protruding
into the left margin, as well as other actions of tweaking.

Ah, but when Hans says this:

 it's a good testbed for playing with 
things like glyph shape similarity and such; also, proper alignment is an
issue.

... it makes me think that these things may indeed be under
consideration, as it sounds like hooks into the recently-improved
Handling mechanisms.

(And then fancy Lettrine handling sounds like it becomes 2-dimensional
handling, then I start thinking about Optical Kerning features in
Famous DTP Package and then I get dizzy, and need to sit down.)
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-27 Thread h h extern
Taco Hoekwater wrote:
David Wooten wrote:
Hmm, this is great.
However, I can't seem to get it to accept an image (Image=true or 
Image=yes). Anyone else have some luck?

It couldn't work. Here is a new version, with fixed image support,
some cleanups in the code, and support for per-argument setup
functionality as provided by \LettrineOptionsFor{...} in LaTeX
The one thing I could not/did not solve is how to make ConTeXt shut
up about 'bodyfont 112.5pt is defined (can better be done global)'.
just do something
in setup: LettrineFont = Serif
in code: \definedfont[Serif at ...]
instead
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-27 Thread Taco Hoekwater
Ok, so I *should* be doing other stuff, but this is just a lot
of fun, so here is the 3rd version, with three bugfixes
- No more font messages
  (followed Hans' advice)
- No more \sbox redefinition
  (used it's expansion instead)
- The page breaks unless the lettrine actually fits
  (this is an independant improvement by me)
This is the last version before EuroTeX. Really. ;-)
Greetings, Taco
h h extern wrote:
just do something
in setup: LettrineFont = Serif
in code: \definedfont[Serif at ...]
instead
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



t-lettri.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] lettrine.sty, but not LaTeX

2005-02-27 Thread Mats Broberg
Taco,

Great work. I did some tests of this and have a few comments:

- I tested with the inital H and
[Lines=4,Hang=.1,Nindent=20pt,Findent=20pt]. This makes the H itself be
indented too (see enclosed dump). It seems that Findent adds space both
before and after the dropcap, when it only should add after the dropcap.


- The text font seems to be defaulted to small capitals. However, this
is merely one of the conventions how text after a dropcap is set. Other
conventions include e.g. roman or italic caps, roman or italic lower
case etc.

- Regarding the slope one should be able to set indentation separately
for each line. This depends on the fact that some characters call for a
different type of intendation of the lines - e.g. the character L.

- Sometimes there is a need to indent the dropcap slightly itself, e.g.
if one uses a quotation mark before the dropcap. So a parameter to
control that would be great.

However, bear in mind that I installed ConTeXt for the first time
yesterday and have never used TeX and children before, so I may very
well have done something wrong when I used the module...! :)

Best regards,
Mats Broberg

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Taco Hoekwater
 Sent: den 27 februari 2005 15:29
 To: mailing list for ConTeXt users
 Subject: Re: [NTG-context] lettrine.sty, but not LaTeX
 
 
 
 Ok, so I *should* be doing other stuff, but this is just a 
 lot of fun, so here is the 3rd version, with three bugfixes
 
 - No more font messages
(followed Hans' advice)
 - No more \sbox redefinition
(used it's expansion instead)
 - The page breaks unless the lettrine actually fits
(this is an independant improvement by me)
 
 This is the last version before EuroTeX. Really. ;-)
 
 Greetings, Taco
attachment: test.gif___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-27 Thread h h extern
Taco Hoekwater wrote:

Gerben Wierda wrote:
 
how do you handle additions like this in your ConTeXt distribution? 
Will they become part of it for instance?

Hans usually asks authors whether they want the module to be part
of the distribution. Mostly, authors say yes, but not always.
This is just a port of lettrine.sty, and I do not believe it should
be part of standard ConTeXt. I guess that means I should submit
it to CTAN
as usual taco is right -)
the main challenge with such modules is to avoid name conflicts, not so much a 
problem for the taco's who know context inside out, but maybe tricky for others

i can imagine something along the lines:
- if someone has such a port, given that it has aproper namespace, as taco did 
with his module, it can end up in

   context/port/tryout
- once a few people has looked at the code in order to uncover potential areas 
of conflict and/or to identify places that can be contexified [low level calls, 
fonts, etc], and when the code is tagged okay, it can move to

   context/port/final
watch the lower alphabetic order, it will then overload pending copies in tryout
- each module should have a test file that end up in
   context/port/test
so that users can check if things work as expected
being too rigourous is bad for development, but we need to have some 
rules/methods in order not to end up in a low level redefinition mess (not 
unthinkable when one converts from another macro package); of course we can 
always create

- context/port/yourownrisk
- context/port/zombie
last in the search path
as said by taco, ctan is the place to collect the files; each module can have a 
wiki page

taco and i can make t-figurines into an example [reference] for such a model
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-26 Thread Taco Hoekwater
David Wooten wrote:
Hmm, this is great.
However, I can't seem to get it to accept an image (Image=true or 
Image=yes). Anyone else have some luck?
It couldn't work. Here is a new version, with fixed image support,
some cleanups in the code, and support for per-argument setup
functionality as provided by \LettrineOptionsFor{...} in LaTeX
The one thing I could not/did not solve is how to make ConTeXt shut
up about 'bodyfont 112.5pt is defined (can better be done global)'.
I think I've covered all of lettrine.sty now, but I may have
overlooked a bug or two ;-)
Greetings, Taco



t-lettri.tex
Description: TeX document


drop.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-26 Thread Peter Münster
On Sat, 26 Feb 2005, Taco Hoekwater wrote:

 This is just a port of lettrine.sty, and I do not believe it should
 be part of standard ConTeXt.

Why not?

Thanks a lot for this port, Taco, it's great!
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Taco Hoekwater
Hoi Gerben,
Probably, but .. I do not know what it is that lettrine does that
\DroppedCaps does not do. Please do not assume that context users
have any specific knowledge of what latex packages do.
Gerben Wierda wrote:
Would someone be able to take lettrine.sty as an example and produce a 
version that works with ConTeXt (and plain TeX)?

Thanks,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Peter Münster
On Fri, 25 Feb 2005, Taco Hoekwater wrote:

 Probably, but .. I do not know what it is that lettrine does that
 \DroppedCaps does not do.

Hello Taco,
could you please give an example how to do the same with \DroppedCaps, what
is shown on page 30 of http://pmrb.free.fr/work/cours/latex-intro.pdf ?
Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Taco Hoekwater
Ah ok, I see. No you cannot do that with DroppedCaps, as is.
Will post something later ...
Taco
Peter Münster wrote:
On Fri, 25 Feb 2005, Taco Hoekwater wrote:

Probably, but .. I do not know what it is that lettrine does that
\DroppedCaps does not do.

Hello Taco,
could you please give an example how to do the same with \DroppedCaps, what
is shown on page 30 of http://pmrb.free.fr/work/cours/latex-intro.pdf ?
Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Mats Broberg
Dear listmembers,

I am not quite yet a ConTeXt user (struggling with the installation),
but having a background as typographer, graphic designer, and printer, I
feel that the lettrine.sty package could serve very well as a model for
something similar in ConTeXt. 

At any rate, in order to produce high quality intitials, a ConTeXt
equivalent should not have any less parameters than lettrine.sty.


To re-cap the parameters in lettrine.sty:

==

- lines=integer sets how many lines the dropped capital will occupy
(default=2);

- lhang=decimal (0  lhang = 1) sets how much of the dropped
capital’s width should hang into the margin (default=0);

- loversize=decimal (-1  loversize = 1) enlarges the dropped
capital’s height: with loversize=0.1 its height is enlarged by 10% so
that it raises above the top paragraph’s line (default=0);

- lraise=decimal does not affect the dropped capital’s height, but
moves it up (if positive), down (if negative); useful with capitals like
J or Q which have a positive depth, (default=0);

- findent=dimen (positive or negative) controls the horizontal gap
between the dropped capital and the indented block of text
(default=0pt);

- nindent=dimen shifts all indented lines, starting from the second
one, horizontally by dimen (this shift is relative to the first line,
default=0.5em);

- slope=dimen can be used with dropped capitals like A or V to add
dimen (positive or negative) to the indentation of each line starting
from the third one (no e
ect if lines=2, default=0pt);

- ante=text can be used to typeset text before the dropped capital
(typical use is for French guillemets starting the paragraph);

- image=true (new to version 1.6) will force \lettrine to replace the
letter normally used as dropped capital by an image in eps format
(latex) or in pdf, jpg, etc. format (pdflatex); this needs the graphicx
package to be loaded in the preamble of course.
\lettrine[image=true]{A}{n exemple} or just \lettrine[image]{A}{n
exemple} will load A.eps or A.pdf instead of letter A. This was
suggested by Bill Jetzer. Redefining \LettrineFont as \LettrineFontEPS
still works for compatibility but is deprecated.

==

Also, sometimes one wants to indent all indented lines to the same
position (instead of intenting the first line less) and this should
ideally be possible too. 

Plus setting a specific color for the initial, but that is handled by
ConTeXt's standard features (I guess).

Best regards,
Mats Broberg

 Ah ok, I see. No you cannot do that with DroppedCaps, as is.
 
 Will post something later ...
 
 Taco
 
 Peter Münster wrote:
  On Fri, 25 Feb 2005, Taco Hoekwater wrote:
  
  
 Probably, but .. I do not know what it is that lettrine does that 
 \DroppedCaps does not do.
  
  
  Hello Taco,
  could you please give an example how to do the same with 
 \DroppedCaps, 
  what is shown on page 30 of 
  http://pmrb.free.fr/work/cours/latex-intro.pdf ? Peter

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Hans Hagen
Mats Broberg wrote:
I am not quite yet a ConTeXt user (struggling with the installation),
but having a background as typographer, graphic designer, and printer, I
feel that the lettrine.sty package could serve very well as a model for
something similar in ConTeXt. 

 ...
basically you want to follow a shape; this is not that hard to implement so i 
can have a look at it; lettrines is then an instance of it

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Taco Hoekwater
Hans Hagen wrote:

basically you want to follow a shape; this is not that hard to implement 
so i can have a look at it; lettrines is then an instance of it
Lettrine is easier than that, actually. I thought this would be quite
funny, so here is a brand new module called t-lettri.tex, and an example.
Greetings, Taco



t-lettri.tex
Description: TeX document


drop.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread VnPenguin
On Fri, 25 Feb 2005 22:04:11 +0100, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Hans Hagen wrote:
  
  basically you want to follow a shape; this is not that hard to implement
  so i can have a look at it; lettrines is then an instance of it
 
 Lettrine is easier than that, actually. I thought this would be quite
 funny, so here is a brand new module called t-lettri.tex, and an example.
 

Just tried 2 attached files and I see error:
...
system (E-TEX) : [line 2280] \ifcsname 
protect 4 protect 3)
specials: fdf loaded
unprotect 3 protect 3)
specials: fdf,tpd loaded
)
system  : macros of module lettri loaded
(./t-lettri.tex
! Illegal parameter number in definition of \LettrineFontEPS.
to be read again 
   1
l.99 \def\LettrineFontEPS{#1
}{%
?

In the src t-lettri.tex  if I change

\def\LettrineFontEPS{#1}{%

to

\def\LettrineFontEPS#1{%

It works fine ;)

Cheers,
Q.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Taco Hoekwater
Sorrry about that, last-minute change :-)
VnPenguin wrote:
On Fri, 25 Feb 2005 22:04:11 +0100, Taco Hoekwater [EMAIL PROTECTED] wrote:
In the src t-lettri.tex  if I change
\def\LettrineFontEPS{#1}{%
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread David Wooten
Hmm, this is great.
However, I can't seem to get it to accept an image (Image=true or 
Image=yes). Anyone else have some luck?

On Feb 25, 2005, at 2:28 PM, Taco Hoekwater wrote:
Sorrry about that, last-minute change :-)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context