ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] \shiftdown
@ 2024-11-24 10:59 Thomas Meyer
  2024-11-24 11:18 ` [NTG-context] \shiftdown Hans Hagen
  2024-11-24 11:20 ` Bruce Horrocks
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Meyer @ 2024-11-24 10:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: \shiftdown
  2024-11-24 10:59 [NTG-context] \shiftdown Thomas Meyer
@ 2024-11-24 11:18 ` Hans Hagen
  2024-11-24 18:33   ` Thomas Meyer
  2024-11-24 11:20 ` Bruce Horrocks
  1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2024-11-24 11:18 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: \shiftdown
  2024-11-24 10:59 [NTG-context] \shiftdown Thomas Meyer
  2024-11-24 11:18 ` [NTG-context] \shiftdown Hans Hagen
@ 2024-11-24 11:20 ` Bruce Horrocks
  1 sibling, 0 replies; 4+ messages in thread
From: Bruce Horrocks @ 2024-11-24 11:20 UTC (permalink / raw)
  To: ntg-context mailing list



> On 24 Nov 2024, at 10:59, Thomas Meyer <thomasgmeyer@t-online.de> 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

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: \shiftdown
  2024-11-24 11:18 ` [NTG-context] \shiftdown Hans Hagen
@ 2024-11-24 18:33   ` Thomas Meyer
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Meyer @ 2024-11-24 18:33 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1850 bytes --]

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
> ___________________________________________________________________________________ 
>

[-- Attachment #1.2: Type: text/html, Size: 3421 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-24 18:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-24 10:59 [NTG-context] \shiftdown Thomas Meyer
2024-11-24 11:18 ` [NTG-context] \shiftdown Hans Hagen
2024-11-24 18:33   ` Thomas Meyer
2024-11-24 11:20 ` Bruce Horrocks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).