ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] placing \externalfigure
@ 2023-11-12 15:34 Hans van der Meer via ntg-context
  2023-11-12 16:30 ` [NTG-context] " Marco Patzer
  0 siblings, 1 reply; 3+ messages in thread
From: Hans van der Meer via ntg-context @ 2023-11-12 15:34 UTC (permalink / raw)
  To: conTeXt NTG; +Cc: Hans van der Meer


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

In placing \externalfigure[file] I observe the figure is placed with its bottom on the baseline, thus:

    [externalfigure]
--------------------------- baseline

I looked into the option list of setupexternalfigure but could not find one whereby the location with respect to the baseline is either top, bottom or center.
Such an option might not exist and then I must program around it. But I prefer to use something that is already there and fits my needs.

yours sincerely
dr. Hans van der Meer




[-- Attachment #1.2: Type: text/html, Size: 1166 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] 3+ messages in thread

* [NTG-context] Re: placing \externalfigure
  2023-11-12 15:34 [NTG-context] placing \externalfigure Hans van der Meer via ntg-context
@ 2023-11-12 16:30 ` Marco Patzer
  2023-11-12 20:17   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Patzer @ 2023-11-12 16:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, 12 Nov 2023 16:34:00 +0100
Hans van der Meer via ntg-context <ntg-context@ntg.nl> wrote:

> In placing \externalfigure[file] I observe the figure is placed with
> its bottom on the baseline, thus:
> 
>     [externalfigure]
> --------------------------- baseline
> 
> I looked into the option list of setupexternalfigure but could not
> find one whereby the location with respect to the baseline is either
> top, bottom or center.

Maybe this is what you're looking for:

\useMPlibrary [dum]
\setuplayout  [grid=yes]
\showgrid

\starttext
  foo \externalfigure[][][location=high]   bar \blank [5*line]
  foo \externalfigure[][][location=middle] bar \blank [5*line]
  foo \externalfigure[][][location=low]    bar
\stoptext

Marco
___________________________________________________________________________________
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] 3+ messages in thread

* [NTG-context] Re: placing \externalfigure
  2023-11-12 16:30 ` [NTG-context] " Marco Patzer
@ 2023-11-12 20:17   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2023-11-12 20:17 UTC (permalink / raw)
  To: ntg-context

On 11/12/2023 5:30 PM, Marco Patzer wrote:
> On Sun, 12 Nov 2023 16:34:00 +0100
> Hans van der Meer via ntg-context <ntg-context@ntg.nl> wrote:
> 
>> In placing \externalfigure[file] I observe the figure is placed with
>> its bottom on the baseline, thus:
>>
>>      [externalfigure]
>> --------------------------- baseline
>>
>> I looked into the option list of setupexternalfigure but could not
>> find one whereby the location with respect to the baseline is either
>> top, bottom or center.
> 
> Maybe this is what you're looking for:
> 
> \useMPlibrary [dum]
> \setuplayout  [grid=yes]
> \showgrid
> 
> \starttext
>    foo \externalfigure[][][location=high]   bar \blank [5*line]
>    foo \externalfigure[][][location=middle] bar \blank [5*line]
>    foo \externalfigure[][][location=low]    bar
> \stoptext

This variant:

     \useMPlibrary [dum]

     \starttext

     foo \figuresymbol[] bar

     foo \figuresymbol[][height=1cm,depth=\strutdepth] bar

     foo \figuresymbol[][height=3ex,depth=2ex] bar

     \stoptext

gives the lines proepr dimensions.

Hans

-----------------------------------------------------------------
                                           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] 3+ messages in thread

end of thread, other threads:[~2023-11-12 20:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-12 15:34 [NTG-context] placing \externalfigure Hans van der Meer via ntg-context
2023-11-12 16:30 ` [NTG-context] " Marco Patzer
2023-11-12 20:17   ` Hans Hagen

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).