ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Khaled Hosny <khaledhosny@eglug.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Include SVG pictures with ConTeXt
Date: Thu, 3 Jul 2008 16:22:53 +0300	[thread overview]
Message-ID: <20080703132253.GA30216@khaled-laptop> (raw)
In-Reply-To: <4867E681.6020105@wxs.nl>


[-- Attachment #1.1.1: Type: text/plain, Size: 862 bytes --]

On Sun, Jun 29, 2008 at 09:46:09PM +0200, Hans Hagen wrote:
> Taco Hoekwater wrote:
> > 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.
> 
> \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 being present
> 
This doesn't work with luatex. It gives me some errors, see the log file.

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team

[-- Attachment #1.1.2: svg.log --]
[-- Type: text/plain, Size: 6266 bytes --]

(svg.tex

ConTeXt  ver: 2008.06.28 23:33 MKIV  fmt: 2008.7.3  int: english/english

language       : language en is active
system         : cont-new loaded
(/opt/context/tex/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv
lua            : used config path - /opt/context/tex/texmf/web2c/texmf.cnf
lua            : used cache path - /opt/context/tex/texmf-cache/luatex-cache/context/9d2177de8a31df158f21be632b7742b7
) (/opt/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
system         : cont-old loaded
(/opt/context/tex/texmf-context/tex/context/base/cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(/opt/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
system         : cont-sys loaded
(/opt/context/tex/texmf-context/tex/context/user/cont-sys.tex (/opt/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/opt/context/tex/texmf-context/tex/context/base/type-siz.tex) (/opt/context/tex/texmf-context/tex/context/base/type-otf.tex))
bodyfont       : 12pt rm is loaded
specials       : tex loaded
system         : svg.top loaded
(svg.top
specials       : loading definition file tpd
(/opt/context/tex/texmf-context/tex/context/base/spec-tpd.tex
specials       : loading definition file fdf
(/opt/context/tex/texmf-context/tex/context/base/spec-fdf.tex (/opt/context/tex/texmf-context/tex/context/base/spec-fdf.mkiv))
specials       : fdf loaded
(/opt/context/tex/texmf-context/tex/context/base/spec-tpd.mkiv))
specials       : fdf loaded
)
system         : module res-08 loaded
(/opt/context/tex/texmf-context/tex/context/base/x-res-08.tex) (svg.tuo) (svg.tuo)
systems        : begin file svg at line 6
! LuaTeX error ...text/tex/texmf-context/tex/context/base/core-inc.lua:375: attempt to call global 'exists' (a nil value)
stack traceback:
	...text/tex/texmf-context/tex/context/base/core-inc.lua:375: in function <...text/tex/texmf-context/tex/context/base/core-inc.lua:341>
	(tail call): ?
	...text/tex/texmf-context/tex/context/base/core-inc.lua:543: in function 'identifier'
	...text/tex/texmf-context/tex/context/base/core-inc.lua:559: in function 'identify'
	<main ctx instance>:1: in main chunk.
\calculateexternalfigure ...a {figures.identify()}
                                                  \ifconditional \testextern...
<argument> ...\s!dummy ][sample.svg][][frame=on][]
                                                  \calculateexternalscreenfi...
\firstofoneargument #1->#1
                          
\doexternalfigure ...value {\??ef \??ef #1}[#3]}}}
                                                  \globallet \currentresourc...
<to be read again> 
                   \par 
l.9 
    
? 
color          : mpcmyk color space is supported
color          : mpspot color space is supported
color          : system rgb is local activated
fonts          : resetting map file list
{/opt/context/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
fonts          : using map file: original-base
{/opt/context/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
fonts          : using map file: lm-math
{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}
fonts          : using map file: lm-rm
{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts          : using map file: original-ams-base
{/opt/context/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
fonts          : using map file: original-ams-euler
{/opt/context/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
fonts          : using map file: original-public-lm
{/opt/context/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map} [1.1]
systems        : end file svg at line 10
 )</opt/context/tex/texmf/fonts/opentype/public/lm/lmmono8-regular.otf></opt/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats : used config path          - /opt/context/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path           - /opt/context/tex/texmf-cache
mkiv lua stats : modules/dumps/instances   - 89/21/1
mkiv lua stats : input load time           - 0.032 seconds
mkiv lua stats : fonts load time           - 0.894 seconds
mkiv lua stats : xml load time             - 0.000 seconds, lpath calls: 0, cached calls: 0
mkiv lua stats : lxml load time            - 0.000 seconds preparation, backreferences: 0
mkiv lua stats : mps conversion time       - 0.000 seconds
mkiv lua stats : node processing time      - 0.000 seconds including kernel
mkiv lua stats : kernel processing time    - 0.000 seconds
mkiv lua stats : attribute processing time - 0.002 seconds
mkiv lua stats : language load time        - 0.025 seconds, n=2
mkiv lua stats : graphics processing time  - 0.708 seconds including tex, n=1
mkiv lua stats : metapost processing time  - 0.000 seconds, loading: 0.000 seconds, execution: 0.000 seconds, n: 0
mkiv lua stats : current memory usage      - 46809519 bytes
mkiv lua stats : cleaned up reserved nodes - 21 nodes, 8 lists of 100
mkiv lua stats : node memory usage         - 19 glue_spec, 2 dir
mkiv lua stats : loaded patterns           - en:en:pat:exc:2
mkiv lua stats : loaded fonts              - file:lmmono12-regular:otf file:lmmono8-regular:otf file:lmroman10-bolditalic*default:otf file:lmroman10-italic*default:otf file:lmroman12-bold*default:otf file:lmroman12-italic*default:otf file:lmroman12-regular*default:otf file:lmroman7-bold*default:otf file:lmroman7-regular*default:otf file:lmroman9-bold*default:otf file:lmroman9-italic*default:otf file:lmroman9-regular*default:otf file:lmromancaps10-regular*default:otf file:lmromanslant10-bold*default:otf file:lmromanslant10-regular*default:otf file:lmromanslant12-regular*default:otf file:lmromanslant9-regular*default:otf lmex10:tfm lmmi12:tfm lmmi7:tfm lmmi9:tfm lmsy10:tfm lmsy7:tfm lmsy9:tfm msam10:tfm msam7:tfm msbm10:tfm msbm7:tfm rm-lmr12:tfm rm-lmr7:tfm rm-lmr9:tfm
mkiv lua stats : runtime                   - 2.318 seconds, 1 processed pages, 1 shipped pages, 0.431 pages/second


[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2008-07-03 13:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-23 23:13 A \part command for ConTeXt TeXWorld
2008-06-24  0:14 ` Aditya Mahajan
2008-06-24  7:15   ` Hans Hagen
2008-06-27  1:00 ` Include SVG pictures with ConTeXt TeXWorld
2008-06-29  2:27   ` TeXWorld
2008-06-29  7:44     ` Taco Hoekwater
2008-06-29 19:46       ` Hans Hagen
2008-06-30  1:22         ` TeXWorld
2008-06-30  7:29           ` Hans Hagen
2008-07-03 11:11         ` Henning Hraban Ramm
2008-07-03 11:21           ` Wolfgang Schuster
2008-07-03 12:56           ` Hans Hagen
2008-07-03 13:22         ` Khaled Hosny [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=20080703132253.GA30216@khaled-laptop \
    --to=khaledhosny@eglug.org \
    --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).