ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Gavin <gavinpublic@comcast.net>
To: ntg-context@ntg.nl
Subject: \startstaticMPfigure not producing .pdf or .mp.md5 files
Date: Sun, 30 May 2021 08:36:56 -0600	[thread overview]
Message-ID: <F88E95D7-6AAF-4B8C-B2BC-3973F01D64F3@comcast.net> (raw)

Hello colleagues,

I’m writing a physics textbook with lots of figures, some quite complex. I’ve been using TikZ, but I’m experimenting with MetaPost. Consulting the ConTeXt wiki, I found that \startstaticMPfigure and friends are designed exactly for this sort of use. However, I’m not seeing the documented behavior. In particular, I’m not seeing .pdf and .mp.md5 files being produced. Perhaps I don’t know where to look. I thought they would be in the same directory as the document.

The example from the wiki is this:

\startstaticMPfigure{center}
 draw fullcircle scaled 2cm ;
 dotlabel.bot(textext("(0,0)"),origin) ;
\stopstaticMPfigure

\startstaticMPfigure{radius}
 draw fullcircle scaled 2cm ;
 drawarrow (0,0)--(1cm,0) ;
 label.bot(textext("$r$"),(5mm,0)) ;
\stopstaticMPfigure

\starttext
Circle centered \usestaticMPfigure[center][width=1cm] at origin with radius
\usestaticMPfigure[radius][width=1cm] $r=1\,\text{cm}$.
\stoptext

I would expect this to produce files center.pdf, radius.pdf, center.mp.md5, radius.md.mp5, and perhaps other logs, etc. I don’t see them anywhere.

I’m running on MacOS with a current LMTX from TeXShop with the script:

#!/bin/bash
export PATH=/Users/Gavin/context-osx-64/tex/texmf-osx-64/bin:$PATH
~/context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script context --directives="system.showerror" --autopdf "$1”

I’ve also tried MkIV and the TeXLive 2021 versions with the same results.

I don’t actually need the separate pdf, but I do want the diagrams to be redrawn only when something has changed. Without a .mp.md5, I’m not sure what to expect.

If the behavior has changed, I can update the wiki. I’m also curious about why \staticMPfigure is not mentioned in the MetaFun manual.

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

             reply	other threads:[~2021-05-30 14:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-30 14:36 Gavin [this message]
2021-05-30 15:03 ` Jairo A. del Rio
2021-05-30 17:46   ` Gavin

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=F88E95D7-6AAF-4B8C-B2BC-3973F01D64F3@comcast.net \
    --to=gavinpublic@comcast.net \
    --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).