From: Thangalin <thangalin@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: WARNING: File path includes directory that doesn't exist
Date: Sat, 30 Jul 2016 16:07:09 -0700 [thread overview]
Message-ID: <CAANrE7qmpgOnZkcwqpTQFSMTAoQA99kmfhSSk61URwSKKWE33A@mail.gmail.com> (raw)
Hi,
Possible problem converting SVG to PDF.
$ context --version
mtx-context | ConTeXt Process Management 0.63
mtx-context |
mtx-context | main context file:
/opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2016.07.18 16:46
cd $HOME/test
$ cat test.tex
\setupexternalfigures[
order={svg,pdf,png},
location={local,default,global},
directory={images},
frameoffset=.5em,
maxwidth=\makeupwidth,
width=\makeupwidth,
]
\starttext
\placefigure{}{\externalfigure[images/drawing.svg]}
\stoptext
$ cat images/drawing.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg8"
version="1.1"
viewBox="0 0 210 297"
height="297mm"
width="210mm">
<defs
id="defs2" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1">
<rect
y="8.2261906"
x="12.851191"
height="137.58333"
width="178.40475"
id="rect4231"
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#ffd5d5;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
/>
</g>
</svg>
$ context test.tex
... logging ...
** (inkscape:19807): WARNING **: File path
"--export-pdf=/home/username/temp/images/m_k_i_v_drawing.svg.pdf"
includes directory that doesn't exist.
... more logging ...
Work Around
$ cd images
$ inkscape -z drawing.svg
--export-pdf=/home/username/temp/images/m_k_i_v_drawing.svg.pdf
$ cd ..
$ context test.tex
No errors.
Any ideas how to fix, without manually converting each file first?
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2016-07-30 23:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-30 23:07 Thangalin [this message]
2016-07-30 23:10 ` Thangalin
2016-08-01 4:23 ` Aditya Mahajan
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=CAANrE7qmpgOnZkcwqpTQFSMTAoQA99kmfhSSk61URwSKKWE33A@mail.gmail.com \
--to=thangalin@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).