ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] SVG ViewBox figure battle
@ 2023-05-20  0:49 Thangalin via ntg-context
  2023-05-20 20:39 ` Thangalin via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Thangalin via ntg-context @ 2023-05-20  0:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thangalin

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-20 23:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-20  0:49 [NTG-context] SVG ViewBox figure battle Thangalin via ntg-context
2023-05-20 20:39 ` Thangalin via ntg-context
2023-05-20 23:26   ` Max Chernoff via ntg-context

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).