Re: [NTG-context] SVG support (was: Tutorial)

2005-04-12 Thread Henning Hraban Ramm
Am 12.04.2005 um 00:07 schrieb Hans Hagen: Because i want to post a new context zip with svg support Big news in a half sentence! What does SVG support mean in ConTeXt / this context? Translation of SVG to MetaPost? Which SVG level/standard? Grüßlis vom Hraban! --- http://www.fiee.net/texnique

Re: [NTG-context] Change color of EPS file.

2012-09-14 Thread Troy Henderson
For those that care, here is basically how the service works. The filter is applied to an SVG, and the uploaded graphic is converted to SVG using the following process: EPS - PDF - SVG PDF - SVG SVG - PDF - SVG where the EPS - PDF conversion is done with the standard `epstopdf` included

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Peter Wüsten
I just tried using an SVG image directly in MkIV, and it worked like a breeze. Apparently ConTeXt converts the image to PDF on the fly as I found a PDF-file with a similar name (m_k_v_i_your SVG filename.pdf) in the same directory as the SVG-file. If you would still love to convert your SVG

Re: [NTG-context] Bibtex SVG

2004-12-20 Thread Henning Hraban Ramm
Am 20.12.2004 um 13:48 schrieb Micha Morawski: Is it possible to include graphics (or even animations) in SVG format into the pdf documents ? Which graphics formats you can use depends from the TeX processor. AFAIK there's none that can handle SVG. Not even Adobe's Distiller can handle SVG

Re: [NTG-context] beta

2016-06-08 Thread Jan Tosovsky
On 2016-06-08 Hans Hagen wrote: > > This version has (experimental) support for color fonts. > ... > svg one uses svg information from the font Btw, SVG fonts were removed from SVG 2.0 and considered as a deprecated feature: http://caniuse.com/#feat=svg-fonts https://lists.w3.

[NTG-context] png and svg backend in mplib embedded in luatex

2017-02-17 Thread luigi scarso
We are planning to drop the png and svg backend of mplib embedded in luatex . This means that if test.lua uses the png or svg backend $>luatex --luaonly test.lua will not work anymore as expected. To be clear:, *) metapost and mplib will stay as is now; *) mplib when embedded in lua

[NTG-context] Convert SVG to MetaPost

2019-08-12 Thread Jon Wong
Hi all, Is it possible to convert SVG to MetaPost? Currently, I have Bash scripts in my workflow to invoke Inkscape (converting SVG to PDF). I don’t like to allow shell access to TeX. If I can convert SVG to MetaPost, I will gladly Git-track MetaPost files instead of SVG files. That will do

[NTG-context] SVG text alignment issue

2022-06-28 Thread Thangalin via ntg-context
In the following example, the line and text should be aligned to the middle when LMTX converts the SVG figure using MP. (Note that you may have to install Roboto, but the font isn't the issue.) % SOF \startbuffer[svg] http://www.w3.org/2000/svg; xmlns:svg="http://www.w3.org/200

Re: [NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Hans Hagen
On 4/3/2021 8:10 PM, Thangalin wrote: Issues encountered with version 2021.03.31 18:04. 1. Comments in SVG % SOF \startbuffer[svg] http://www.w3.org/2000/svg <http://www.w3.org/2000/svg>"> \stopbuffer \starttext   \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Matija Šuklje
Dne nedelja 4. aprila 2010 ob 19:23:18 je Peter Wüsten napisal(a): I just tried using an SVG image directly in MkIV, and it worked like a breeze. Apparently ConTeXt converts the image to PDF on the fly as I found a PDF-file with a similar name (m_k_v_i_your SVG filename.pdf) in the same

Re: [NTG-context] Convert SVG to MetaPost

2019-08-13 Thread Hans Hagen
On 8/12/2019 1:15 PM, Taco Hoekwater wrote: Hi, On 12 Aug 2019, at 12:10, Jon Wong wrote: Hi all, Is it possible to convert SVG to MetaPost? Currently, I have Bash scripts in my workflow to invoke Inkscape (converting SVG to PDF). I don’t like to allow shell access to TeX. If I can

[NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Thangalin
Issues encountered with version 2021.03.31 18:04. 1. Comments in SVG % SOF \startbuffer[svg] http://www.w3.org/2000/svg;> \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: Black circle, no border, comment lines ignored. Actual: Em

Re: [NTG-context] Figure Help

2011-11-09 Thread Aditya Mahajan
I knew about the detour via inkscape, but I hoped for native support. So I guess svg is not supported then? The current implmentation (at least when I looked at it 3 months back) called inkscape to convert svg to pdf. IIRC, it is possible to configure which program is used to do

Re: [NTG-context] SVG again

2004-12-23 Thread Hans Hagen
Micha Morawski wrote: PDF supports SVG graphic starting from version 5 of Acrobat (according adobe) I would like to obtain effects similar to http://www.learnsvg.com/pdf/chapter09_svg.pdf So I hope, it is not very difficult to include this possibilities into Context. Am I right? do you know

[NTG-context] SVG text clipping issue

2022-06-29 Thread Thangalin via ntg-context
Text that's tight against its viewbox gets clipped: https://i.ibb.co/BGQVzzx/text-clipped.png Here's the code: % SOF \startbuffer[svg] http://www.w3.org/2000/svg; xmlns:svg="http://www.w3.org/2000/svg;> 16p13.3 \stopbuffer \starttext \placefigure[]{}{\includesvgbu

Re: [NTG-context] Include SVG pictures with ConTeXt

2008-07-03 Thread Wolfgang Schuster
On Thu, Jul 3, 2008 at 1:11 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote: Am 2008-06-29 um 21:46 schrieb Hans Hagen: \usemodule[res-08] \setups[rl:manipulate] \setupexternalfigures[location=local,directory=.,conversion=pdf] % lowres,prefix=lowres/] \starttext \externalfigure[svg

Re: [NTG-context] Convert SVG to MetaPost

2019-08-12 Thread Taco Hoekwater
Hi, > On 12 Aug 2019, at 12:10, Jon Wong wrote: > > Hi all, > > Is it possible to convert SVG to MetaPost? > > Currently, I have Bash scripts in my workflow to invoke Inkscape (converting > SVG to PDF). I don’t like to allow shell access to TeX. > > If I

Re: [NTG-context] SVG support

2005-04-12 Thread Hans Hagen
Henning Hraban Ramm wrote: Am 12.04.2005 um 00:07 schrieb Hans Hagen: Because i want to post a new context zip with svg support Big news in a half sentence! What does SVG support mean in ConTeXt / this context? Translation of SVG to MetaPost? Which SVG level/standard? i've implemented a mechanism

Re: [NTG-context] beta

2016-06-08 Thread Hans Hagen
On 6/8/2016 11:02 PM, Jan Tosovsky wrote: On 2016-06-08 Hans Hagen wrote: This version has (experimental) support for color fonts. ... svg one uses svg information from the font Btw, SVG fonts were removed from SVG 2.0 and considered as a deprecated feature: http://caniuse.com/#feat=svg

Re: [NTG-context] Convert SVG to MetaPost

2019-08-12 Thread luigi scarso
On Mon, Aug 12, 2019 at 12:11 PM Jon Wong wrote: > Hi all, > > Is it possible to convert SVG to MetaPost? > > Currently, I have Bash scripts in my workflow to invoke Inkscape > (converting SVG to PDF). I don’t like to allow shell access to TeX. > > If I can convert SVG to

[NTG-context] SVG style ignored after double semicolon

2022-05-08 Thread Thangalin via ntg-context
Hey hey, The following produces a filled square, rather than an empty one: \startbuffer[svg] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext Remove the extra semicolon to get the expected result: It appears that a style immediately following

Re: [NTG-context] Include SVG pictures with ConTeXt

2008-07-03 Thread Hans Hagen
Henning Hraban Ramm wrote: Am 2008-06-29 um 21:46 schrieb Hans Hagen: \usemodule[res-08] \setups[rl:manipulate] \setupexternalfigures[location=local,directory=.,conversion=pdf] % lowres,prefix=lowres/] \starttext \externalfigure[svg/ausmap.svg][frame=on] \stoptext it assumes inkscape

Re: [NTG-context] Bibtex SVG

2004-12-21 Thread h h extern
Henning Hraban Ramm wrote: Am 20.12.2004 um 13:48 schrieb Micha Morawski: Is it possible to include graphics (or even animations) in SVG format into the pdf documents ? Which graphics formats you can use depends from the TeX processor. AFAIK there's none that can handle SVG. Not even Adobe's

[NTG-context] SVG support

2007-12-04 Thread Zeus Gómez Marmolejo
Hi all, I'm working with Inkscape and I would like to embed some figures directly in vector format. How do I do that?? I'm trying this: \externalfigure[system][type=svg][scale=1000] But a dummy image appears. Is there any svg support in context?! Regards, Zeus

[NTG-context] SVG with \externalfigure and http:// handler

2013-04-11 Thread Marco Patzer
Hi, Including local SVG graphics works, so does including remote PNGs. Remote SVGs are not displayed, however. Example: \starttext \externalfigure[http://www.gnu.org/graphics/gnu2.svg] \stoptext Is this not supported or am I missing a required option? Marco signature.asc Description

Re: [NTG-context] SVG images

2006-01-26 Thread Ville Voipio
Skencil http://www.skencil.org can open and save SVG and exports to PDF via reportlab. As I have not worked with transparency yet I do not know if that works all the way from SVG to PDF. Could you post me a little sample image to run it through Skencil? All right. I sent some files

Re: [NTG-context] Html to pdf using pragma script

2010-12-21 Thread Hans Hagen
On 21-12-2010 8:04, Anand Raj wrote: Hi, how to map svg tags from xml and tex file.? Dump the svg blob in a file (say image-1.svg) and then use \extenalfigure[image-1.svg] to place it. Conversion to pdf will happen automatically then. Hans

Re: [NTG-context] Html to pdf using pragma script

2010-12-21 Thread luigi scarso
On Tue, Dec 21, 2010 at 10:01 AM, Hans Hagen pra...@wxs.nl wrote: On 21-12-2010 8:04, Anand Raj wrote: Hi, how to map svg tags from xml and tex file.? Dump the svg blob in a file (say image-1.svg) and then use \extenalfigure[image-1.svg] to place it. Conversion to pdf will happen

Re: [NTG-context] Handling EMBED tag in Tex

2011-01-10 Thread Anand Raj
*d.svg* ?xml version=1.0 standalone=no? !DOCTYPE svg PUBLIC -//W3C//DTD SVG 20010904//EN http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd; svg id=root xml:space=preserve width=100% height=100% preserveAspectRatio=xMidYMid meet xmlns=http://www.w3.org/2000/svg; /svg can you help me

Re: [NTG-context] Finite state machine

2011-04-26 Thread Cecil Westerhof
2011/4/26 mathew m...@pobox.com: I just want to include a finite state machine in a pdf document. I usually go GraphViz - SVG, touch up the SVG with Inkscape, then save from Inkscape to PDF. If you're happy with GraphViz's standard output, it'll write PDF directly. SVG can be included

[NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Matija Šuklje
Is there a SVG to MetaPost/MetaFun converter available? I want to get this quite simple logo to converted from SVG into a ConTeXt- native vector graphic. Cheers, Matija P.S. Too bad SVG is not ConTeXt-native (yet?) -- gsm: +386 41 849 552 www: http://matija.suklje.name xmpp: matija.suk

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-05 Thread Hans Hagen
On 4-4-2010 7:29, Matija Šuklje wrote: Dne nedelja 4. aprila 2010 ob 19:23:18 je Peter Wüsten napisal(a): I just tried using an SVG image directly in MkIV, and it worked like a breeze. Apparently ConTeXt converts the image to PDF on the fly as I found a PDF-file with a similar name

Re: [NTG-context] Convert SVG to MetaPost

2019-08-12 Thread Jon Wong
Hi Taco! Very enlightening! I’ll just use both MetaPost and SVG for their intended purposes. (SVG will come from workflow involving GIMP/Inkscape; MetaPost for logical, rather than graphical, figures.) Regards Jon > On Aug 12, 2019, at 7:30 PM, luigi scarso wrote: > > > >

[NTG-context] SVG stroked path colours

2021-04-14 Thread Thangalin
A regression? % SOF \startbuffer[svg] http://www.w3.org/2000/svg; width="179" height="126" viewBox="0 0 134 94"> \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: Green box, black outline. Actual:

[NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
I've tried the following from the manuals and adapted some code to see if it works: 1. \definefontfeature[svg][svg=yes] \definefontsynonym[Emoji][file:emojionecolor-svginot.ttf*default,svg] \definesymbol[bug][\getglyphdirect{Emoji}{\char"1F41B}] \starttext \symbol[bug] \stoptext The emoj

[NTG-context] Include SVG pictures with ConTeXt

2008-06-26 Thread TeXWorld
Hello, I wonder if it is possible to include SVG picture directly in ConTeXt without conversion. Thank you. Jack ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] \externalfigure and file size

2012-01-20 Thread luigi scarso
will not show the same result -- basically only acroread is able to show swf inside a pdf, and it depends to the OS and version 3) a svg image. PDF spec. doesn't support SVG, so we must also agree on the same program to convert the svg into a bitmap or vector image, and this is a problem: as you have seen

[NTG-context] SVG is not rendered in the new beta

2011-01-25 Thread Anand Raj
Hi, svg images are not rendered in the new beta. \startxmlsetups xml:img \externalfigure[\xmlatt{#1}{src}] \stopxmlsetups Thanks Anand ___ If your question is of interest to others as well, please add

[NTG-context] Bibtex SVG

2004-12-20 Thread Micha Morawski
Does Context support bibtex together with harvard style citations? and Is it possible to include graphics (or even animations) in SVG format into the pdf documents ? Thank You in advance Michal Morawski ___ ntg-context mailing list [EMAIL PROTECTED

[NTG-context] SVG again

2004-12-22 Thread Micha Morawski
PDF supports SVG graphic starting from version 5 of Acrobat (according adobe) I would like to obtain effects similar to http://www.learnsvg.com/pdf/chapter09_svg.pdf So I hope, it is not very difficult to include this possibilities into Context. Am I right? Michal Morawski

[NTG-context] SVG images inside XML setups

2021-03-08 Thread Thangalin
Here's a fairly minimal example showing an issue, using ConTeXt LMTX. Save the following as "main.tex": % SOF \startbuffer[document] \stopbuffer \startbuffer[csvg] http://www.w3.org/2000/svg;> \stopbuffer \startxmlsetups xml:xhtml \xmlsetsetup{\xmldocument}{body|img}{xml:*} \

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Hans Hagen via ntg-context
On 6/29/2022 4:35 AM, Aditya Mahajan via ntg-context wrote: On Mon, 27 Jun 2022, Thangalin via ntg-context wrote: In the following example, the line and text should be aligned to the middle when LMTX converts the SVG figure using MP. (Note that you may have to install Roboto, but the font

Re: [NTG-context] SVG support

2007-12-04 Thread Mojca Miklavec
On Dec 4, 2007 3:13 PM, Zeus Gómez Marmolejo wrote: Hi all, I'm working with Inkscape and I would like to embed some figures directly in vector format. How do I do that?? I'm trying this: \externalfigure[system][type=svg][scale=1000] But a dummy image appears. Is there any svg support

Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-26 Thread mathew
On Thu, May 26, 2011 at 12:32, mathew m...@pobox.com wrote: Wow, that's odd. I've found that SVG - PDF - MkIV results in huge document bloat, whereas SVG - EPS - MkIV works much better. (Using Inkscape for both SVG conversions.) Some numbers: SVG to PDF: Two diagrams, 25k. SVG to EPS: Same

Re: [NTG-context] SVG images

2006-01-26 Thread Tobias Hilbricht
Am Donnerstag, 26. Januar 2006 13:05 schrieb Ville Voipio: I would need to embed some SVG images - I want to have my vector images in vector format (i.e., no Inkscape-to-PNG) - alpha-channel transparency is used in the images, and it should be present in the PDF file, as well (i.e

Re: [NTG-context] Finite state machine

2011-04-26 Thread Aditya Mahajan
On Tue, 26 Apr 2011, Vedran Miletić wrote: 2011/4/26 Cecil Westerhof cldwester...@gmail.com 2011/4/26 mathew m...@pobox.com: I just want to include a finite state machine in a pdf document. I usually go GraphViz - SVG, touch up the SVG with Inkscape, then save from Inkscape to PDF

Re: [NTG-context] Interlining in a TwoColumns set

2016-08-15 Thread Pablo Rodriguez
On 08/15/2016 10:39 AM, Jean-Pierre Delange wrote: > Hi Pablo and Wolfgang, > > Many thanks ! The issue concerning a logo image in a TwoColumns document > is resolved. It was only a matter of file format. I thought (I don't > know why), that ConTeXt use SVG format. I've convert

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Pablo Rodriguez
> Hi Neven, > > it seems to be an issue with the conversion of the SVG file. Hans, I thought it was an issue with the MP conversion of the SVG file. I was wrong: it is an issue on how LMTX deals with the SVG conversion in MP. MkIV is totally fine respecting image dimensions. Many tha

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2016-06-29 Thread Mojca Miklavec
ome Blender, so I decided to try to use the super ugly route with >> metapost -> svg -> dxf -> g-code >> for the first time. >> >> I have a few questions. >> >> (1) I love Hans' shortcuts in metafun, but I seem to remember that things >> like >&

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
I did. It turns out that installing graphicsmagick does the trick (pun intended) for Noto Color Emoji. However, the issue persists for SVG fonts and the same message appears, despite of having cleaned the cache (I've used mtxrun --script cache --erase). Using the code Pablo sent, with EmojiOne

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Thangalin via ntg-context
Hi Heinrich, Use the SVG I provided. R and Renjin use two different SVG generators. Renjin uses JFreeSVG when exporting as SVG. As you pointed out, there are no issues with R because it will export an SVG file without any double semicolons. In other words, try this: \startbuffer[svg

[NTG-context] SVG converter bugs

2023-07-06 Thread Max Chernoff
Hi Hans, I've been using the SVG->MP converter and I've found a few bugs. Most of the bugs are with "weird" SVG input, but I have no control over the input, and the metadata on most of the files shows that it was exported from Adobe Illustrator which is (unfortunately) quite popular

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2017-07-27 Thread Mojca Miklavec
>> >> pstoedit -dt -f dxf:-polyaslines\ -mm something.1 something.dxf >> >> For some reason the SVG files from metapost get wrong dimensions when >> converted via inkscape, but pstoedit works super reliably. > > > in that case you can consider: > > mp ->

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-08 Thread Thangalin via ntg-context
the output, even when running with --debug. Any hints on how to sprinkle debug info into the code? Or was I barking up the wrong source file? Cheers! On Sun, May 8, 2022 at 1:33 AM Thangalin wrote: > Hey hey, > > The following produces a filled square, rather than an empty one: > > \start

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Mojca Miklavec
On Sun, Apr 4, 2010 at 19:29, Matija Šuklje wrote: Dne nedelja 4. aprila 2010 ob 19:23:18 je Peter Wüsten napisal(a): I just tried using an SVG image directly in MkIV, and it worked like a breeze. Apparently ConTeXt converts the image to PDF on the fly as I found a PDF-file with a similar name

Re: [NTG-context] Exported figures

2011-09-05 Thread Aditya Mahajan
Normally, this should not matter, but sometimes part of the image is repeated due to rounding differences. what magic flag deals with a specific page in pdf in inkscape? I used svg2pdf which converts all pages of a pdf to split svg files. But, in the end, decided not to use svg images

Re: [NTG-context] \externalfigure and file size

2012-01-19 Thread Wagner Macedo
It would be good if you attach the svg file. Could you do this? -- Wagner Macedo On 19 January 2012 21:01, Kip Warner k...@thevertigo.com wrote: Hey Peter. The original SVG is about 7KB. With rasterize off and exported to PDF, its under 2KB. With rasterize on, its still only 78KB. Whatever

Re: [NTG-context] Simple rings with svg

2012-05-10 Thread Aditya Mahajan
On Thu, 10 May 2012, Ian Lawrence wrote: I read on the wiki that now svg is natively supported. Hmm. No. You need to have inkscape installed (and in your PATH) for svg to pdf conversion to work. FWIW, I cannot find the intermediate file 'm_k_i_v_ChangingField_ILUC.pdf' on my disk either

[NTG-context] [Fwd: [Fwd: MetaPost to SVG Converter]]

2005-11-08 Thread Tobias Burnus
Original Message Original-Nachricht Betreff: MetaPost to SVG Converter Datum: 7 Nov 2005 22:00:00 -0800 Von: tlhiv [EMAIL PROTECTED] Organisation: http://groups.google.com Newsgruppen: comp.text.tex For all that are interested, I've setup a page which

Re: [NTG-context] graphics

2018-12-05 Thread luigi scarso
On Wed, Dec 5, 2018 at 10:15 AM Henri Menke wrote: > ConTeXt already comes with a full XML parser. SVG is XML. It would be > nice if it was possible to render some subset of SVG. > In the mean time, I think we should also consider Headless Chromium for SVG -> PDF (with --

Re: [NTG-context] graphics

2018-12-05 Thread luigi scarso
On Wed, Dec 5, 2018 at 1:37 PM Hans Hagen wrote: > On 12/5/2018 10:14 AM, Henri Menke wrote: > > ConTeXt already comes with a full XML parser. SVG is XML. It would be > > nice if it was possible to render some subset of SVG. > So what subset? ... Doing some shapes etc is do

[NTG-context] Placing SVG icons and text side by side

2021-10-07 Thread noib3 via ntg-context
How can I place an SVG icon "inline", i.e. side by side to some text? Here's my MWE ``` \useURL [github] [https://github.com/test] [] [github.com/test] \starttext \placefigure[none]{}{\externalfigure[github.svg][width=17.5pt]} \from[github] \stoptext ``` I have attached a

[NTG-context] [ export to svg ]

2023-08-19 Thread vm via ntg-context
Is there a (simple) way to export the results of a \startMPpage ... \stopMPpage directly to a svg file? My current route is to import the pdf into inkscape, group path objects by stroke color, then save the result as svg and translate that into a hpgl format for the pen plotter. I guess/hope

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Thangalin via ntg-context
Here's a screenshot comparing ConTeXt's PDF output (left) with KeenWrite's preview for the same SVG document: https://i.ibb.co/68nqwrg/render-r-plot.png I've filed a bug against Renjin's SVG exporter. Any guidance on how to fix this is greatly appreciated

[NTG-context] SVG ViewBox figure battle

2023-05-19 Thread Thangalin via ntg-context
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] \stopbuffer \starttext % honours viewbox \placefigure[none]{}{\includesvgbuffer[csvg]} \page % dishonou

[NTG-context] how to include an an svg file?

2024-03-12 Thread seyal . zavira
hi all. when i want to put some SVGs in my document the svg does not render properly here is the code: \starttext \startMPcode draw lmt_svg [ filename = "smile.svg"] \stopMPcode \stoptext also when i look at evenmore manual at page15, for font Abelone-FREE the gradients has rendere

[NTG-context] Re: how to include an an svg file?

2024-03-13 Thread Henning Hraban Ramm
Am 12.03.24 um 23:59 schrieb seyal zavira: You are correct. when i convert this svg to pdf via inkscape it works like a charm. But what is standard way of including an svg file with context if we want to inkscape render the images? \externalfigure[smile] without any other settings

Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-26 Thread mathew
On Wed, May 25, 2011 at 09:40, Hans Hagen pra...@wxs.nl wrote: Normally I convert such images to pdf first (using acrobat or gs) simply because inclusion of pdf is much faster. Wow, that's odd. I've found that SVG - PDF - MkIV results in huge document bloat, whereas SVG - EPS - MkIV works much

Re: [NTG-context] Figure Help

2011-11-09 Thread Christian
May be I missed one or the other mail on this topic. There is indeed support for svg-inclusion in MKIV. In order to be possibly of help I would like you to send a minimal example. Since I'm also interested in this and fail to get it working, please allow me to provide such an example. The svg

Re: [NTG-context] \externalfigure and file size

2012-01-19 Thread Wolfgang Schuster
Am 20.01.2012 um 01:01 schrieb Kip Warner: On Thu, 2012-01-19 at 11:58 +0100, Peter Rolf wrote: Probably because the exported PDF contains a raster image (at least the blured part). If you use Inkscape to save your SVG logo as PDF, you will see a dialog box with an option for this (rasterize

Re: [NTG-context] Including a large SVG image

2013-06-05 Thread luigi scarso
the picture when you make a minimal document containing only some text and the problematic SVG? Should I upload the SVG and manual PDF output somewhere? Yes, if you could, that would be appreciated. Here is the PDF converted by hand from the SVG: https://docs.google.com/file/**d

Re: [NTG-context] Including a large SVG image

2013-06-08 Thread Sander Maijers
I almost forgot to upload the graphics. Here is the SVG: https://dl.dropboxusercontent.com/u/19254345/scatterplot_of_WER_vs_PPL.svg SVG (7z compressed): https://dl.dropboxusercontent.com/u/19254345/scatterplot_of_WER_vs_PPL.svg.7z PDF: https://dl.dropboxusercontent.com/u/19254345

Re: [NTG-context] Finite state machine

2011-04-26 Thread Vedran Miletić
2011/4/26 Cecil Westerhof cldwester...@gmail.com 2011/4/26 mathew m...@pobox.com: I just want to include a finite state machine in a pdf document. I usually go GraphViz - SVG, touch up the SVG with Inkscape, then save from Inkscape to PDF. If you're happy with GraphViz's standard

[NTG-context] svg - png conversion

2010-02-08 Thread Peter Münster
Hello, How can I convert svg to png on the fly? I've created a file test.rlx: ?xml version='1.0 standalone='yes'? rl:manipulators rl:manipulator name='png' suffix='svg' rl:oldrl:value name='path'//rl:value name='file' method='nosuffix'/.png/rl:old rl:newrl:value name

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Pablo Rodriguez
On 12/17/20 5:08 PM, Neven Sajko wrote: > On Thu, 17 Dec 2020 at 15:27, Aditya Mahajan wrote: > [...] >> Can you check with a desktop pdf viewer as well. > > It looks the same with MuPDF. Hi Neven, it seems to be an issue with the conversion of the SVG file. > This i

[NTG-context] SVG transparent stroke shown

2021-05-06 Thread Thangalin
Hi again! % SOF\startbuffer[svg] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: No border around the outer white box, border around the inner green box. Actual: Border around both boxes. Version: 2021.05.06 Additional details

[NTG-context] Set up external figure for particular image type

2022-07-08 Thread Thangalin via ntg-context
A document has a mix of SVG and PNG images. Changing the parameters for `\setupexternalfigure` affects both SVG and PNG images. Consider the following code: \setupexternalfigures[ order={svg,pdf,png,jpg}, location={local,default,global}, directory={images}, maxwidth

Re: [NTG-context] Set up external figure for particular image type

2022-07-18 Thread Wolfgang Schuster via ntg-context
Thangalin via ntg-context schrieb am 18.07.2022 um 19:10: Thank you, Wolfgang. That looks promising. SVG files are converted using MetaPost. I thought the following would work: svg=>{\externalfigure[#1][svg][conversion=mp]} You can probably remove the second argument ([svg]) wh

Re: [NTG-context] Set up external figure for particular image type

2022-07-18 Thread Thangalin via ntg-context
Thank you, Wolfgang. That looks promising. SVG files are converted using MetaPost. I thought the following would work: svg=>{\externalfigure[#1][svg][conversion=mp]} Is there anything else that needs to happen to ensure SVG files are piped through MetaPost? Thanks ag

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread Jean-Pierre Delange
Hi ! Did you have a look at this : https://wiki.contextgarden.net/SVG Le 12/03/2024 à 14:36, seyal.zav...@gmail.com a écrit : hi all. when i want to put some SVGs in my document the svg does not render properly here is the code: \starttext \startMPcode draw lmt_svg [ filename = "smil

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2016-06-30 Thread Hans Hagen
decided to try to use the super ugly route with metapost -> svg -> dxf -> g-code for the first time. I have a few questions. (1) I love Hans' shortcuts in metafun, but I seem to remember that things like input metafun; or perhaps input mp-tool; used to work, so that I d

Re: [NTG-context] Include SVG pictures with ConTeXt

2008-06-29 Thread Taco Hoekwater
TeXWorld wrote: TeXWorld a écrit : Hello, I wonder if it is possible to include SVG picture directly in ConTeXt without conversion. Thank you. Jack No answer. Does it mean that it's not possible ? Not that I know of, but I was hoping someone else did. Best wishes, Taco

Re: [NTG-context] SVG?

2012-07-28 Thread Peter Münster
On Sat, Jul 28 2012, Bill Meahan wrote: Do recent versions of MKIV (specifically, the one in TeXLive 2012) support SVG - http://wiki.contextgarden.net/Humour#Can_you_run_it_for_me.3F ;) -- Peter

Re: [NTG-context] Html to pdf using pragma script

2010-12-20 Thread Anand Raj
Hi, how to map svg tags from xml and tex file.? On Mon, Dec 20, 2010 at 4:48 PM, Anand Raj anand.s...@gmail.com wrote: Hi, I want to convert the html page to pdf. the html contains svg and mathml content. Thanks Anand

Re: [NTG-context] SVG is not rendered in the new beta

2011-01-26 Thread Wolfgang Schuster
Am 26.01.2011 um 02:49 schrieb Anand Raj: Hi, svg images are not rendered in the new beta. \startxmlsetups xml:img \externalfigure[\xmlatt{#1}{src}] \stopxmlsetups Does it work in a normal document? \starttext \externalfigure[figure.svg] \stoptext Wolfgang

Re: [NTG-context] SVG is not rendered in the new beta

2011-01-26 Thread Wolfgang Schuster
Am 26.01.2011 um 10:39 schrieb Anand Raj: yes. works fine for jpg images. But does it also work with svg-images? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] SVG again

2004-12-23 Thread Hans Hagen
Micha Morawski wrote: So I hope, it is not very difficult to include this possibilities into Context. Am I right? no; actually i have it someplace on my machine, but since svg support was rather bugged in acrobat 6 the code never made it into the distribution; i'll have a look at it Hans

[NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Jason Ross via ntg-context
The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all incorrect. This file was generated with Matplotlib

[NTG-context] [ metapost -> svg ]

2023-11-05 Thread vm via ntg-context
With the latest lmtx installed, what would be the correct cli command to generate a svg outputfile from a metapost source? .Floris ___ If your question is of interest to others as well, please add an entry

[NTG-context] Re: [ export to svg ]

2023-08-19 Thread vm via ntg-context
On 19/08/2023 15:05, Hans Hagen via ntg-context wrote: mutool can do that indeed. context test.tex mutool convert -F svg test.pdf thank you! .F ___ If your question is of interest to others as well, please

Re: [NTG-context] SVG text alignment issue

2022-06-28 Thread Aditya Mahajan via ntg-context
On Mon, 27 Jun 2022, Thangalin via ntg-context wrote: > In the following example, the line and text should be aligned to the > middle when LMTX converts the SVG figure using MP. (Note that you may have > to install Roboto, but the font isn't the issue.) > > % SOF > \startbuffe

[NTG-context] beta

2016-06-08 Thread Hans Hagen
Hi, I uploaded a new beta. This version has (experimental) support for color fonts. (not to be confused with 'coloring text in a font'). \definefontfeature[svg][default][svg=yes] \definefontfeature[colored][default][colr=yes] % \definefont[Emoj][file:emojionecolor-svginot.ttf*default,svg

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Neven Sajko
hing else. > Can you check with a desktop pdf viewer as well. It looks the same with MuPDF. > The mailing list has a size limit for attachments, so I think that your zip > file did not get included in your message. Could you just include the tex > file and maybe upload the svg somewhe

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Thangalin via ntg-context
Thanks for checking this. Unfortunately, introducing \hbox didn't work; the text is still off-center with respect to the vertical line: https://i.ibb.co/hYGfdgZ/text-align.png For comparison, the SVG file loaded into Inkscape appears similar to: https://i.ibb.co/KF3PBkw/inkscape-alignment.png

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Heinrich Paeßens via ntg-context
: > > Hi Heinrich, > > Use the SVG I provided. R and Renjin use two different SVG generators. Renjin > uses JFreeSVG when exporting as SVG. As you pointed out, there are no issues > with R because it will export an SVG file without any double semicolons. > > In other words

[NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2016-06-29 Thread Mojca Miklavec
Hi, I want to play with CNC and don't yet have any experience with CAD software (nor the licence for the expensive ones) other than perhaps some Blender, so I decided to try to use the super ugly route with metapost -> svg -> dxf -> g-code for the first time. I have a few question

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Heinrich Paeßens via ntg-context
ok, let’s get smarter. how about sanitizing the svg-file from JFreeSVG with svgo or svgcleaner or nano or else? And as a side effect you’d have the file optimized, ie. a smaller size (lossless I suppose) … and are you sure that the ;;-issue is the only bug? After sanitizing you’ll never know

Re: [NTG-context] Including a large SVG image

2013-06-05 Thread Sander Maijers
and the problematic SVG? Should I upload the SVG and manual PDF output somewhere? Yes, if you could, that would be appreciated. Here is the PDF converted by hand from the SVG: https://docs.google.com/file/d/0BynsKFwk6jYJQlMxR3paNW0zS2s/edit?usp=sharing I can upload the SVG in the evening, if you need it. I

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2016-06-29 Thread Hans Hagen
On 6/29/2016 12:31 PM, Mojca Miklavec wrote: Hi, I want to play with CNC and don't yet have any experience with CAD software (nor the licence for the expensive ones) other than perhaps some Blender, so I decided to try to use the super ugly route with metapost -> svg -> dxf -&g

[NTG-context] [Metapost] Using mkIV and metapost to produce SVG

2014-05-05 Thread ralf . waldvogel
Dear all,I would like to produce an svg file from a Metapost input file using some of ConTeXt's typesetting features (esp. using System OTF Fonts) using something like:\startbuffer[buffer:dummy] \start\startcolor[white]\framed[align=middle,width=28mm,frame=off]{ \SansBodyBold

  1   2   3   4   5   6   >