From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Otared Kavian via ntg-context <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
Otared Kavian <otared@gmail.com>
Subject: Re: \externafigure and \at do not work together
Date: Mon, 1 Nov 2021 12:40:32 +0100 [thread overview]
Message-ID: <ce770d38-fceb-0864-e4e5-9ead3d4e3033@gmail.com> (raw)
In-Reply-To: <672A680A-1795-4A00-A0F9-3CCDCEACC32A@gmail.com>
Otared Kavian via ntg-context schrieb am 31.10.2021 um 18:11:
> Hi,
>
> Your example has two issues, since you invoke \externalfigure before \starttext, and moreover you don’t use the place figure mechanism.
> The following gives the result you want:
>
> \setupinteraction[state=start]
> \starttext
> \startplacefigure[reference=clock]
> \externalfigure[clock.jpg]
> \stopplacefigure
> In figure \at[clock] you see a clock
> \page
> In figure \at[clock] you see a clock.
>
> Or better: in \in{Figure}[clock] you see a clock.
> \stoptext
With \in you the value of the float counter while \at shows the page
where the float is placed.
The original example passed a name to the optional argument of
\externalfigure but when you do this you just access a named list of
figure options, e.g. rotating the image by 90 degrees counter clockwise.
\setupexternalfigures[location={local,global,default}]
\defineexternalfigure[rotated][orientation=90]
\starttext
\externalfigure[hacker.jpg][rotated]
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2021-11-01 11:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-31 12:07 a badin via ntg-context
2021-10-31 12:49 ` a badin via ntg-context
2021-10-31 13:03 ` Bruce Horrocks via ntg-context
2021-10-31 17:11 ` Otared Kavian via ntg-context
2021-11-01 11:40 ` Wolfgang Schuster via ntg-context [this message]
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=ce770d38-fceb-0864-e4e5-9ead3d4e3033@gmail.com \
--to=ntg-context@ntg.nl \
--cc=otared@gmail.com \
--cc=wolfgang.schuster.lists@gmail.com \
/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).