From: eidenbenz <eidenbenz@arch.ethz.ch>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: custom cite in \externalfigure
Date: Fri, 6 May 2016 09:47:39 +0200 [thread overview]
Message-ID: <8AEB94DC-0C6A-4028-AE5F-1B4F5AE8DD44@arch.ethz.ch> (raw)
In-Reply-To: <20160504153935.20f98c61@iram-hb-003386.hsd1.co.comcast.net>
that's what I did at first:
\startsetups btx:duane:cite:external
{\externalfigure[\btxfield{url_image}][width=10cm]}
\stopsetups
the problem is that I need the control the width of externalfigure in the text.
With the above solution I have to define a different cite rendering for every possible width I need in my layout.
Isn't there a way to just get the filename of the cite so I can a macro with the width as an argument?
Thanks Michael
> On 04 May 2016, at 23:39, Alan Braslau <alan.braslau@cea.fr> wrote:
>
> On Wed, 4 May 2016 21:31:46 +0000
> "Eidenbenz Michael" <eidenbenz@arch.ethz.ch> wrote:
>
>> what seems strange to me is that \cite[filename] works as such, but
>> not as an argument to \externalfigure
>
> The \externalfigure tries to do quite a lot with its argument(s).
>
> You can use \placecitation [duane::tug2014]
> defining your rendering appropriately to call \externalfigure.
>
> Alan
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2016-05-06 7:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-30 20:06 eidenbenz
2016-05-04 8:02 ` Hans Hagen
2016-05-04 21:31 ` Eidenbenz Michael
2016-05-04 21:39 ` Alan Braslau
2016-05-06 7:47 ` eidenbenz [this message]
2016-05-06 19:09 ` Alan BRASLAU
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=8AEB94DC-0C6A-4028-AE5F-1B4F5AE8DD44@arch.ethz.ch \
--to=eidenbenz@arch.ethz.ch \
--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).