Hi guys, I would like to move the first capital letter of a term down so that the rest of the term ends up approximately in the centre of the capital letter. The capital letter should be larger than the rest and is not a problem in itself. However, I can't manage this with \shiftdown. It always shifts down at a fixed distance. And I can't work with \setupshift. The inputs of unit=pt, dy=5 etc. don't seem to do anything, at least nothing happens with \shiftdown. Any help would be appreciated Greetings Thomas
On 11/24/2024 11:59 AM, Thomas Meyer wrote:
Hi guys,
I would like to move the first capital letter of a term down so that the rest of the term ends up approximately in the centre of the capital letter. The capital letter should be larger than the rest and is not a problem in itself. However, I can't manage this with \shiftdown. It always shifts down at a fixed distance. And I can't work with \setupshift. The inputs of unit=pt, dy=5 etc. don't seem to do anything, at least nothing happens with \shiftdown.
Any help would be appreciated
\protected\def\MoveDown#1#2% {\glyph yoffset -#1 `#2} \starttext More and More democracies go \MoveDown{.5ex}{D}own hill. \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Many thanks to Bruce and Hans, that was exactly what I wanted! Am 24.11.24 um 12:18 schrieb Hans Hagen:
On 11/24/2024 11:59 AM, Thomas Meyer wrote:
Hi guys,
I would like to move the first capital letter of a term down so that the rest of the term ends up approximately in the centre of the capital letter. The capital letter should be larger than the rest and is not a problem in itself. However, I can't manage this with \shiftdown. It always shifts down at a fixed distance. And I can't work with \setupshift. The inputs of unit=pt, dy=5 etc. don't seem to do anything, at least nothing happens with \shiftdown.
Any help would be appreciated
\protected\def\MoveDown#1#2% {\glyph yoffset -#1 `#2}
\starttext More and More democracies go \MoveDown{.5ex}{D}own hill. \stoptext
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
On 24 Nov 2024, at 10:59, Thomas Meyer
wrote: Hi guys,
I would like to move the first capital letter of a term down so that the rest of the term ends up approximately in the centre of the capital letter. The capital letter should be larger than the rest and is not a problem in itself. However, I can't manage this with \shiftdown. It always shifts down at a fixed distance. And I can't work with \setupshift. The inputs of unit=pt, dy=5 etc. don't seem to do anything, at least nothing happens with \shiftdown.
Any help would be appreciated
\defineshift [LowerCapital] [dy=0.25,style=\tfb] \starttext \LowerCapital{T}his might be what you want? \stoptext — Bruce Horrocks Hampshire, UK
participants (3)
-
Bruce Horrocks
-
Hans Hagen
-
Thomas Meyer