ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
To: Joel via ntg-context <ntg-context@ntg.nl>
Cc: Henning Hraban Ramm <texml@fiee.net>
Subject: Re: How to set the vertical spacing between a sequence of images?
Date: Tue, 25 Oct 2022 10:22:30 +0200	[thread overview]
Message-ID: <b8684e83-9b50-8fc1-d8d4-cca882eeafaa@fiee.net> (raw)
In-Reply-To: <872497325.1649209.1666657934391@mail.yahoo.com>

Am 25.10.22 um 02:32 schrieb Joel via ntg-context:
> I have code like this which randomly pulls a page from `comic2.pdf` and 
> displays it, scaled to fit \textwidth, then displays four more random 
> pages afterwares.
> 
> \starttext
>          \dorecurse{5}{
>              \placefigure[force, 
> none]{}{\framed[frame=off]{\externalfigure[comic2.pdf][page=\randomnumber{1}{34}, width=\textwidth]}}
>          }
> \stoptext
> 
> The problem is I need to adjust the vertical space between the images. 
> It seems to be set to some lineheight or such, but I need the distance 
> between each image to be at 1/50th or 0.02 of \textwidth. ...though the 
> last image can have the ordinary gap afterwards.
> 
> How can I se the vertical spacing between this sequence of image to 
> 0.02\textwidth?

Do you need floats at all? Otherwise a combination might fit your needs, 
and there you can setup the distances.

https://wiki.contextgarden.net/Combinations

Hraban

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2022-10-25  8:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <872497325.1649209.1666657934391.ref@mail.yahoo.com>
2022-10-25  0:32 ` Joel via ntg-context
2022-10-25  8:22   ` Henning Hraban Ramm 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=b8684e83-9b50-8fc1-d8d4-cca882eeafaa@fiee.net \
    --to=ntg-context@ntg.nl \
    --cc=texml@fiee.net \
    /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).