* Error when using TikZ with the library datavisualization
@ 2015-02-27 0:06 Alias 1
2015-02-27 0:21 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Alias 1 @ 2015-02-27 0:06 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1605 bytes --]
Hello
The following code gives an error (current beta and version from texlive 2014):
\usemodule[tikz]
\usetikzlibrary[datavisualization]
\starttext
A
\stoptext
The log gives the following error:
tex error > error on line 682 in file /usr/local/texlive/2014/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.code.tex: ! Missing number, treated as zero
<to be read again>
^
l.682 {\catcode`\^^
M=\active%
672 \def\pgf@temp{#1}%
673 \ifx\pgf@temp\tikz@lib@dv@auto@attribute%
674 \tikzdatavisualizationset{\tikz@dv@axis/label/.expanded=$\noexpand\mathit{\pgfkeysvalueof{\tikz@dv@axis/attribute}}$}%
675 \else
676 \tikzdatavisualizationset{\tikz@dv@axis/label={#1}}%
677 \fi
678 },
679 label/.default=\tikz@lib@dv@auto@attribute,
680 %
681 % Strategies
682 >> %
683 tick placement strategy/.style={\tikz@dv@axis/@compute at positions={#1}},
684 linear steps/.style={tick placement strategy=\tikz@lib@dv@compute@at@linear},
685 %
686 % Attribute setter
687 %
688 goto/.code={\tikz@dv@goto{\tikz@dv@axis}{#1}},
689 goto pos/.code={\tikz@dv@goto@pos{\tikz@dv@axis}{#1}},
690 anchor at min/.code={\tikz@lib@dv@special@at{\tikz@dv@axis}{\tikz@dv@min@anchor}},
691 anchor at max/.code={\tikz@lib@dv@special@at{\tikz@dv@axis}{\tikz@dv@max@anchor}},
692 %
[-- Attachment #1.2: Type: text/html, Size: 5564 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] 2+ messages in thread
* Re: Error when using TikZ with the library datavisualization
2015-02-27 0:06 Error when using TikZ with the library datavisualization Alias 1
@ 2015-02-27 0:21 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2015-02-27 0:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 2/27/2015 1:06 AM, Alias 1 wrote:
> Hello
>
>
>
> The following code gives an error (current beta and version from texlive
> 2014):
>
>
> \usemodule[tikz]
>
> \usetikzlibrary[datavisualization]
how is \usetikzlibrary defined?
it should load the file in unprotected mode (\between \unprotect ..
\protect)
as hack you can probably do
\unprotected \usetikzlibrary[datavisualization]
>
> \starttext
>
> A
>
> \stoptext
>
>
> The log gives the following error:
>
> tex error > error on line 682 in file
> /usr/local/texlive/2014/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.code.tex:
> ! Missing number, treated as zero
>
> <to be read again>
> ^
> l.682 {\catcode`\^^
> M=\active%
>
> 672 \def\pgf@temp{#1}%
> 673 \ifx\pgf@temp\tikz@lib@dv@auto@attribute%
> 674
> \tikzdatavisualizationset{\tikz@dv@axis/label/.expanded=$\noexpand\mathit{\pgfkeysvalueof{\tikz@dv@axis/attribute}}$}%
> 675 \else
> 676 \tikzdatavisualizationset{\tikz@dv@axis/label={#1}}%
> 677 \fi
> 678 },
> 679 label/.default=\tikz@lib@dv@auto@attribute,
> 680 %
> 681 % Strategies
> 682 >> %
> 683 tick placement strategy/.style={\tikz@dv@axis/@compute at
> positions={#1}},
> 684 linear steps/.style={tick placement
> strategy=\tikz@lib@dv@compute@at@linear},
> 685 %
> 686 % Attribute setter
> 687 %
> 688 goto/.code={\tikz@dv@goto{\tikz@dv@axis}{#1}},
> 689 goto pos/.code={\tikz@dv@goto@pos{\tikz@dv@axis}{#1}},
> 690 anchor at
> min/.code={\tikz@lib@dv@special@at{\tikz@dv@axis}{\tikz@dv@min@anchor}},
> 691 anchor at
> max/.code={\tikz@lib@dv@special@at{\tikz@dv@axis}{\tikz@dv@max@anchor}},
> 692 %
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 2+ messages in thread
end of thread, other threads:[~2015-02-27 0:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-27 0:06 Error when using TikZ with the library datavisualization Alias 1
2015-02-27 0:21 ` Hans Hagen
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).