From: Max Chernoff via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Max Chernoff <mseven@telus.net>
Subject: Re: [NTG-context] SVG ViewBox figure battle
Date: Sat, 20 May 2023 17:26:36 -0600 [thread overview]
Message-ID: <571b7dbe68f598a113a2305cd08b08bbdc56ae51.camel@telus.net> (raw)
In-Reply-To: <CAANrE7rixiSwDjw8DuDEL==pPLr_us97kprDLhOAa_7aZsnZnA@mail.gmail.com>
Hi,
> Any ideas on how to force that setting without modifying grph-con.lua?
This seems to work:
\startluacode
function figures.converters.svg.pdf(oldname, newname)
figures.programs.inkscape.runner {
format = "filename",
resolution = "600",
crop = "--export-area-page",
newname = dir.expandname(newname),
oldname = dir.expandname(oldname),
}
end
\stopluacode
I mostly just copied that from grph-con.lua, but the CLD manual has a
few more details:
https://www.pragma-ade.com/general/manuals/cld-mkiv.pdf#%5B%7B%22num%22%3A89%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22Fit%22%7D%5D
-- Max
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2023-05-20 23:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-20 0:49 Thangalin via ntg-context
2023-05-20 20:39 ` Thangalin via ntg-context
2023-05-20 23:26 ` Max Chernoff 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=571b7dbe68f598a113a2305cd08b08bbdc56ae51.camel@telus.net \
--to=ntg-context@ntg.nl \
--cc=mseven@telus.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).