ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Can Tikz external library be used in Context?
@ 2013-01-24 16:44 Devendra Ghate
  2013-01-24 17:53 ` Marco Patzer
  2013-01-24 17:57 ` Mojca Miklavec
  0 siblings, 2 replies; 6+ messages in thread
From: Devendra Ghate @ 2013-01-24 16:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Following MWE produces the error given below. I have been able to include
other tikz libraries (arrows, decorations) successfully.

*MWE*

\usemodule[tikz]
\usetikzlibrary{external}

\starttext
  A
\stoptext

*Error*
---------------------------------------------
! Missing number, treated as zero.

system          > tex > error on line 1290 in file 
/home/deven/context/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzexternalshared.code.tex: 
Missing number, treated as zero ...

1280 \gdef\tikzexternal@activate@normal@dq{\let"=\tikzexternal@normal@dq}
1281 \gdef\tikzexternal@activate@normal@sq{\let'=\tikzexternal@normal@sq}
1282 
\gdef\tikzexternal@activate@normal@semic{\let;=\tikzexternal@normal@semic}
1283 \gdef\tikzexternal@activate@normal@and{\let&=\tikzexternal@normal@and}
1284 
\gdef\tikzexternal@activate@normal@dash{\let-=\tikzexternal@normal@dash}
1285     \catcode`\|=0
1286     \catcode`\\=12
1287     |xdef|tikzexternal@normal@backslash{\}%
1288     }
1289     {
1290 >>  \catcode`\^^I=12
1291     \catcode`\$=12
1292     \catcode`\%=12
1293     \catcode`\#=12
1294     \gdef\tikzexternal@HASHchar{#}
1295 
\gdef\tikzexternal@TABchar{^^I}\gdef\tikzexternal@PERCENTchar{%}\xdef\tikzexternal@DOLLARchar{$}}
1296
1297     % Creates the '/tikz/external/system call' command as string and
1298     % returns it into the (global!) macro #2.
1299     % #1: the image file name (as returned by
1300     % \tikzexternalgetnextfilename)

<to be read again>
                    ^
l.1290 \catcode`\^^
                    I=12

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can Tikz external library be used in Context?
  2013-01-24 16:44 Can Tikz external library be used in Context? Devendra Ghate
@ 2013-01-24 17:53 ` Marco Patzer
  2013-01-24 18:53   ` Devendra Ghate
  2013-01-24 17:57 ` Mojca Miklavec
  1 sibling, 1 reply; 6+ messages in thread
From: Marco Patzer @ 2013-01-24 17:53 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 250 bytes --]

On 2013–01–24 Devendra Ghate wrote:

> \usemodule[tikz]
> \usetikzlibrary{external}

Use brackets:

\usetikzlibrary [external]

> \starttext
>  A
> \stoptext

This example works here with current version: 2013.01.24 16:47.

Marco

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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can Tikz external library be used in Context?
  2013-01-24 16:44 Can Tikz external library be used in Context? Devendra Ghate
  2013-01-24 17:53 ` Marco Patzer
@ 2013-01-24 17:57 ` Mojca Miklavec
  1 sibling, 0 replies; 6+ messages in thread
From: Mojca Miklavec @ 2013-01-24 17:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Jan 24, 2013 at 5:44 PM, Devendra Ghate wrote:
> Hi,
>
> Following MWE produces the error given below. I have been able to include
> other tikz libraries (arrows, decorations) successfully.
>
> *MWE*
>
> \usemodule[tikz]
> \usetikzlibrary{external}

You need to use [brackets] instead of {braces}. See the manual, for
example section 3.2 (Setting up the environment).

\usemodule[tikz]
\usetikzlibrary[arrows]

\starttext
  \starttikzpicture
    \draw[stealth-] (0,0) -- (1,1);
  \stoptikzpicture
\stoptext

Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can Tikz external library be used in Context?
  2013-01-24 17:53 ` Marco Patzer
@ 2013-01-24 18:53   ` Devendra Ghate
  2013-01-24 20:05     ` Marco Patzer
  0 siblings, 1 reply; 6+ messages in thread
From: Devendra Ghate @ 2013-01-24 18:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1364 bytes --]


On 01/24/2013 11:23 PM, Marco Patzer wrote:
> On 2013--01--24 Devendra Ghate wrote:
>
>> \usemodule[tikz]
>> \usetikzlibrary{external}
> Use brackets:
>
> \usetikzlibrary [external]
>
>> \starttext
>>   A
>> \stoptext
> This example works here with current version: 2013.01.24 16:47.
>
> Marco
>

Just upgraded context installation( to 2013.01.24 16:47),
corrected my MWE and I am still getting exactly the same error.

I followed the guidelines from the wiki for upgrading:

rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
./first-setup.sh --modules=all

Is there any way of checking if my installation is correct?

Regards,
Devendra

PS: Why didn't context throw an error when I made a mistake of
using braces instead of brackets? In fact, I generated a flow
  chart in tikz using the arrows library like that. Everything worked
fine.

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


[-- Attachment #1.2: Type: text/html, Size: 2705 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can Tikz external library be used in Context?
  2013-01-24 18:53   ` Devendra Ghate
@ 2013-01-24 20:05     ` Marco Patzer
  2013-01-24 20:26       ` Aditya Mahajan
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Patzer @ 2013-01-24 20:05 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 981 bytes --]

On 2013–01–25 Devendra Ghate wrote:

> Just upgraded context installation( to 2013.01.24 16:47),
> corrected my MWE and I am still getting exactly the same error.

You're right, it fails here, too. The message got lost in between
all the tikz log output. On my machine I get:

Package tikz: Error! I did not find the tikz library 'external'. I looked for files named tikzlibraryexternal.code.tex and pgflibraryexternal.code.tex, but neither could be found in the current texmf trees..

And tikz is right with that. There is no such file in the
distribution. Either the name of this module changed or the file is
missing in the distribution, I guess.

The pgfplots module ships with a file called

/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_tikzlibraryexternal.code.tex

this seems to be the file in question. However, the name
“oldpgfcompatib” insinuates that this module might be deprecated.
Maybe Mojca knows more details about this issue.

Marco

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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can Tikz external library be used in Context?
  2013-01-24 20:05     ` Marco Patzer
@ 2013-01-24 20:26       ` Aditya Mahajan
  0 siblings, 0 replies; 6+ messages in thread
From: Aditya Mahajan @ 2013-01-24 20:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1041 bytes --]

On Thu, 24 Jan 2013, Marco Patzer wrote:

> On 2013–01–25 Devendra Ghate wrote:
>
>> Just upgraded context installation( to 2013.01.24 16:47),
>> corrected my MWE and I am still getting exactly the same error.
>
> You're right, it fails here, too. The message got lost in between
> all the tikz log output. On my machine I get:
>
> Package tikz: Error! I did not find the tikz library 'external'. I looked for files named tikzlibraryexternal.code.tex and pgflibraryexternal.code.tex, but neither could be found in the current texmf trees..
>
> And tikz is right with that. There is no such file in the
> distribution. Either the name of this module changed or the file is
> missing in the distribution, I guess.

From the pgf manaul:

32.3 A Word About ConTEXt And Plain TEX

Currently, the basic layer backend \beginpgfgraphicnamed ... 
\endpgfgraphicnamed relies on LATEX only, so externalization is only 
supported for LATEX yet.

Perhaps you can use the filter module for externalizing tikz figures.

Aditya

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-01-24 20:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-24 16:44 Can Tikz external library be used in Context? Devendra Ghate
2013-01-24 17:53 ` Marco Patzer
2013-01-24 18:53   ` Devendra Ghate
2013-01-24 20:05     ` Marco Patzer
2013-01-24 20:26       ` Aditya Mahajan
2013-01-24 17:57 ` Mojca Miklavec

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