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: [NTG-context] SVG ViewBox figure battle
Date: Fri, 19 May 2023 17:49:01 -0700	[thread overview]
Message-ID: <CAANrE7ooy1tNN-YWACWgyO_hBwGD_fgwvcmnWY2tYX15XDEBZg@mail.gmail.com> (raw)

Hi there!

The following document contains SVG. Save the SVG as "problem.svg" and
run the document through LMTX version 2023.05.08 17:39:

% SOF
\startbuffer[csvg]
<svg viewBox="0 0 100 100" version="1.1">
  <path d="M0 0h100v100H0z" />
  <path fill="#2d514e" d="M 72.474,42.6 33.073,42.8 51.872,-26.7 Z" />
</svg>
\stopbuffer

\starttext
  % honours viewbox
  \placefigure[none]{}{\includesvgbuffer[csvg]}
  \page
  % dishonours viewbox
  \externalfigure[problem.svg]
\stoptext
% EOF

The ViewBox is ignored when run through Inkscape. Is this because the
--export-area-page option is not being passed when invoked?

Given identical inputs, would it make sense for placefigure and
externalfigure to produce identical results?

Cheers!
___________________________________________________________________________________
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  0:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-20  0:49 Thangalin via ntg-context [this message]
2023-05-20 20:39 ` Thangalin via ntg-context
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=CAANrE7ooy1tNN-YWACWgyO_hBwGD_fgwvcmnWY2tYX15XDEBZg@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).