ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	David Roderick <angel.of.north@gmail.com>
Subject: [NTG-context] Re: creating a printed book
Date: Mon, 14 Oct 2024 18:17:18 +0200	[thread overview]
Message-ID: <afe9f0e2-0578-3720-b6f2-bf89b2342443@gmail.com> (raw)
In-Reply-To: <172890437192.1601626.12925809910871588681@cgl.ntg.nl>

David Roderick schrieb am 14.10.2024 um 13:12:
> Thank you for fixing this.  I espy another feature which is required.  I save the png's into a subdirectory called images_0007 which is a subdirectory of where my tex files are located.  I run context from the latter (main or lower) working directory.  Your script looks for the png's in this lower (main) directory:
>
>   \startplacefigure[location=here,reference=Picture 1178610960,title={}]% rId6
>   \externalfigure[image1.png]
>   \stopplacefigure
>
> should be:
> \startplacefigure[location=here,reference=Picture 1178610960,title={}]% rId6
> \externalfigure[images_00007/image1.png][hfactor=fit]
> \stopplacefigure
>
> If you could fix this it would be greatly appreciated, and methinks useful.

You don't have to include the subdirectory in \externalfigure when you 
set the search path at the begin of the document with

\setupexternalfigures[directory=images_00007]

Even the file extension can be left out.

%%%% begin example
\setupexternalfigures[directory=images_00007]

\starttext

\startplacefigure[reference=Picture 1178610960]
\externalfigure[image1][hfactor=fit]
\stopplacefigure

\stoptext
%%%% end example

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2024-10-14 16:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-11 16:19 [NTG-context] " David Roderick
2024-10-11 20:16 ` [NTG-context] " Hraban Ramm
2024-10-12 17:59   ` Hans Hagen via ntg-context
2024-10-13 12:19     ` angel.of.north
2024-10-13 22:25       ` Hans Hagen via ntg-context
2024-10-13 13:50     ` Henning Hraban Ramm
2024-10-12 22:32   ` angel.of.north
2024-10-13 13:37     ` Henning Hraban Ramm
2024-10-14 11:12       ` David Roderick
2024-10-14 16:00         ` Henning Hraban Ramm
2024-10-14 16:17         ` Wolfgang Schuster [this message]
2024-10-14 19:19           ` David Roderick
2024-10-14 19:32             ` Denis Maier via ntg-context
2024-10-14 19:19           ` Henning Hraban Ramm

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=afe9f0e2-0578-3720-b6f2-bf89b2342443@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=angel.of.north@gmail.com \
    --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).