Re: [NTG-context] WARNING: File path includes directory that doesn't exist

2016-07-31 Thread Aditya Mahajan

On Sat, 30 Jul 2016, Thangalin wrote:


Hi,

Possible problem converting SVG to PDF.

$ 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

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


Please don't cross-post. See my detailed reply at:
http://tex.stackexchange.com/a/321837/323

For Hans: There is a bug in graph-inc.lua. You need to remove `-A` from 
programs.inkscape:


programs.inkscape = {
command  = "inkscape",
pdfargument = [[
"%oldname%"
--export-dpi=600
--export-pdf="%newname%"
]],
pngargument = [[
"%oldname%"
--export-dpi=600
--export-png="%newname%"
]],
}

-A and --export-pdf are synonyms. When inkscape -A --export-pdf="..." is 
used, inkscape thinks that `--export-pdf="..."` is the filename (but only 
if "..." is not in the current directory, weird).


Aditya

___
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
___

Re: [NTG-context] WARNING: File path includes directory that doesn't exist

2016-07-30 Thread Thangalin
$ inkscape -V
Inkscape 0.92pre1 unknown (Jul 30 2016)

https://launchpad.net/~inkscape.dev/+archive/ubuntu/trunk

I'm not sure if this version of Inkscape is at fault. It'd be cool if
there was a way to specify the SVG to PDF converter program (e.g., to
use rsvg-converter instead) from the command line.
___
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
___

[NTG-context] WARNING: File path includes directory that doesn't exist

2016-07-30 Thread Thangalin
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

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">
  
  

  
image/svg+xml
http://purl.org/dc/dcmitype/StillImage"; />

  

  
  

  


$ 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
___