Am 15.06.22 um 18:11 schrieb Joel via ntg-context:
I wrote this macro to display images in my book. It should place the
image to the left, filling ~50% of \textwidth, then the caption is to
the right.
\setupcaption[location=right, minwidth=.5\textwidth]
\define[4]\figureis{%
\placefigure{#2, Courtesy #3, photo no.
#1\nocite[#4]{}}{\externalfigure[#1][maxheight=.7\paperheight,
maxwidth=.5\paperwidth, minwidth=.5\paperwidth]}
}
#1 = filename, other variables are used for reference/credit details.
The problem is, somehow some images are inexplicably displayed very tiny
on the page. I check the image file and they are not small, but somehow
is rendered small with the code above.
What is wrong in my code?
There are no parameters "minwidth" or "minheight", see
https://wiki.contextgarden.net/Command/setupexternalfigure
It’s probable that your pictures have a high resolution (dpi) defined,
so ConTeXt displays them according to that in their “natural” size.
Hraban
___
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
___