ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Thangalin via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Thangalin <thangalin@gmail.com>
Subject: Re: [NTG-context] SVG ViewBox figure battle
Date: Sat, 20 May 2023 13:39:59 -0700	[thread overview]
Message-ID: <CAANrE7rixiSwDjw8DuDEL==pPLr_us97kprDLhOAa_7aZsnZnA@mail.gmail.com> (raw)
In-Reply-To: <CAANrE7ooy1tNN-YWACWgyO_hBwGD_fgwvcmnWY2tYX15XDEBZg@mail.gmail.com>

Hi again,

I changed tex/texmf-context/tex/context/base/mkiv/grph-con.lua to
replace "" with "--export-area-page" in the inkscapecrop function:

    local function inkscapecrop(specification)
        return (specification and specification.crop == v_yes) and
"--export-area-drawing" or "--export-area-page"
    end

This produces the desired results.

Any ideas on how to force that setting without modifying grph-con.lua?

Thank you!
___________________________________________________________________________________
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:[~2023-05-20 20:40 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 [this message]
2023-05-20 23:26   ` Max Chernoff via ntg-context

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='CAANrE7rixiSwDjw8DuDEL==pPLr_us97kprDLhOAa_7aZsnZnA@mail.gmail.com' \
    --to=ntg-context@ntg.nl \
    --cc=thangalin@gmail.com \
    /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).