From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Neven Sajko <nsajko@gmail.com>
Subject: Re: LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF
Date: Fri, 18 Dec 2020 16:41:51 +0100 [thread overview]
Message-ID: <697e51fe-5a2d-27af-53a6-9fb482c90a6a@xs4all.nl> (raw)
In-Reply-To: <CAL+bK4NBsnMY0uoYHHXmpq-xz-m8aBKjCOR1MQZ9b6NnUpk9ug@mail.gmail.com>
On 12/17/2020 3:03 PM, Neven Sajko wrote:
> Hello all,
>
> I am completely new to TeX, ConTeXt, MetaPost, etc. (Except for some
> MathJax snippets and the like.)
>
> I am using Aditya's LMTX package from AUR on Archlinux.
>
> I have some SVGs (generated by the Julia Gadfly package) that
> represent 2D plots of some functions, and I would like to include the
> SVGs in a ConTeXt document so it ends up as PDF. I started creating
> the document by including the SVGs using the new LMTX MetaPost SVG
> feature, however at this point I don't know how to proceed...
>
> This is the situation: the source SVGs look fine, but after including
> them in the document with the new ConTeXt feature mentioned above, the
> bottom-most part of the image is "cut off" (not visible). In the
> attached ZIP I included all relevant files (.tex, .svg, .pdf, ...), as
> well as PNG screenshots of the PDFs (in case the issue is
> PDF-viewer-specific, I'm using Chromium as the PDF viewer).
>
> I tried doing this in two different ways: using includesvgfile with
> the offset option, and using startMPcode with setbounds in the MetaFun
> code. In both cases I just get blank space instead of the cut-off
> content
>
> How can I fix this?
>
> Related question: is it possible to get the MetaPost code that (I
> think) the SVG gets translated to? I'm interested in how it looks
> like.
\enabletrackers[metapost.svg.result]
but i have a fix that does clipping different
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2020-12-18 15:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-17 14:03 Neven Sajko
2020-12-17 15:27 ` Aditya Mahajan
2020-12-17 16:08 ` Neven Sajko
2020-12-17 17:45 ` Pablo Rodriguez
2020-12-17 20:56 ` Pablo Rodriguez
2020-12-18 15:41 ` Hans Hagen [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=697e51fe-5a2d-27af-53a6-9fb482c90a6a@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=nsajko@gmail.com \
--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).