Can Tikz external library be used in Context?
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
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 ___________________________________________________________________________________
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
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
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
participants (4)
-
Aditya Mahajan
-
Devendra Ghate
-
Marco Patzer
-
Mojca Miklavec