ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Error when using TikZ with the library datavisualization
Date: Fri, 27 Feb 2015 01:21:58 +0100	[thread overview]
Message-ID: <54EFB8A6.3010109@wxs.nl> (raw)
In-Reply-To: <etPan.54efb511.6b8b4567.3072@Jannik-Voges-MacBook-Pro.local>

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
___________________________________________________________________________________

      reply	other threads:[~2015-02-27  0:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27  0:06 Alias 1
2015-02-27  0:21 ` Hans Hagen [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=54EFB8A6.3010109@wxs.nl \
    --to=pragma@wxs.nl \
    --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).