, which I'll provide in a separate thread.
Here's the code:
% SOF
\pushoverloadmode \unprotect
\permanent\tolerant\protected\def\includesvgfile[#1]#*[#2]%
{\hbox\bgroup % no \dontleavehmode
\getdummyparameters[\c!offset=\zeropoint,#2]%
\clf_includesvgfile{#1}\dimexpr\dummyparameter\c
\pushoverloadmode \unprotect
\permanent\tolerant\protected\def\includesvgfile[#1]#*[#2]%
{\hbox\bgroup % no \dontleavehmode
\getdummyparameters[\c!offset=\zeropoint,#2]%
\clf_includesvgfile{#1}\dimexpr\dummyparameter\c!offset\relax
\egroup}
\permanent\tolerant\protected\def\includesvgbuffer[#
rcle.svg", to create a valid, external SVG file.
Copy "circle.svg" to a file named "diagram.svg" to create a second
valid, external SVG file.
Run: context main.tex
Expected
All the SVG images appear.
Actual
Figures 1, 2, and 4 show only the following text:
\includ
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?
Relate
re and include a link.
This is a combined TeX file containing two different ways I took to
try to accomplish the same thing:
\starttext
{\switchtobodyfont[2pt]
{\framed[offset=overlay]{\includesvgfile[../hammingCoderStopwatch-hammingCoder-gcc-RowsSparse-1023-1013.svg][offset
m using Chromium as the PDF viewer).
Can you check with a desktop pdf viewer as well.
> 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 th
iewer).
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 co
ncluding label stuffwhat you can also try (with lmtx) is this (no real interface yet):\starttext\hbox\bgroup \ctxlua{metapost.startsvghashing()}% \includesvgfile[labels-004.svg]% \ctxlua{metapost.stopsvghashing()}%\egroup\stoptextwhich should turn your labels into tex, so you can typeset them as tex (so $
investigate the details manual tip you provided, thanks a lot.
> you might want to peek into the luametafun manual as svg is discussed there,
> including label stuff
>
> what you can also try (with lmtx) is this (no real interface yet):
>
> \starttext
>
> \hbox\bgroup
&
there, including label stuff
what you can also try (with lmtx) is this (no real interface yet):
\starttext
\hbox\bgroup
\ctxlua{metapost.startsvghashing()}%
\includesvgfile[labels-004.svg]%
\ctxlua{metapost.stopsvghashing()}%
\egroup
\stoptext
which should turn your labels into tex, so you can
10 matches
Mail list logo