ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marco Patzer <lists@homerow.info>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: placing \externalfigure
Date: Sun, 12 Nov 2023 17:30:54 +0100	[thread overview]
Message-ID: <20231112173054.426334b0@homerow> (raw)
In-Reply-To: <5D261C13-895F-407A-AAA6-7490BD212B84@ziggo.nl>

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
___________________________________________________________________________________

  reply	other threads:[~2023-11-12 16:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-12 15:34 [NTG-context] " Hans van der Meer via ntg-context
2023-11-12 16:30 ` Marco Patzer [this message]
2023-11-12 20:17   ` [NTG-context] " Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231112173054.426334b0@homerow \
    --to=lists@homerow.info \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).