{pgfkeys} concerns a flexible key management system in TikZ/PGF.

learn more… | top users | synonyms

5
votes
1answer
233 views

pgfkey containing a foreach statement with a variable number of values

I would like to use pgfkeys in a macro. One key contains a foreach statement which handles a variable number of values. I have some problems concerning the right order of the output. Here a simplified ...
2
votes
2answers
124 views

pgfkeys 'filtering state'

Please does anyone know the 'filtering state' referred to in the following code from the pgfkeys-core file? \def\pgfkeys@install@filter@and@invoke#1{% \ifpgfkeysfilteringisactive ...
67
votes
2answers
11k views

Should \tikzset or \tikzstyle be used to define TikZ styles?

The PGF/TikZ manual states in section 12.4 Using Graphic Options, page 120 (v2.10), that TikZ styles can be set using: \tikzset{my style/.style={<tikz options>},...} However, in several ...
4
votes
2answers
328 views

Some questions about pgfkeys code

(1) In the expression \def\pgfkeysgetvalue#1#2{\expandafter\let\expandafter#2\csname pgfk@#1\endcsname} #2 will be let to \relax whenever pgfk@#1 is undefined. Is this harmless in pgf? Even if it ...
14
votes
3answers
403 views

The '.is if' handler of pgfkeys

Let us start with an example from the pgf manual, version 2.10, page 495: \pgfkeys{/flat world/.is if=theworldisflat} \pgfkeys{/flat world=false} \def\x#1{% code-A \iftheworldisflat Flat ...
4
votes
1answer
568 views

Style to make axis tick label opaque using “extra y tick” feature

This is a follow up to Style to make axis tick label opaque, where a suggestion was made to use the extra y ticks to specify special tick marks and use extra y tick style to apply a style to only ...
9
votes
2answers
403 views

Can pgfkeys deal with active comma?

When I tried to compile \begingroup \def\iden#1{#1} \catcode`\,=13 \catcode`\==13 \iden{\endgroup \pgfkeys{/my family/.is family} \pgfkeys{/my family/my keys/.cd, ...
10
votes
2answers
260 views

What is the best way to alias a key using PGF Keys

I would like to be able to alias a PGF key to another name, is this possible and if it is, how do I do this? For example if I have defined a key as: \pgfkeys{path/ color/.store in=\color@cx ...
12
votes
1answer
318 views

PGF Keys differences between .initial and .default

I am not too sure just by reading the manual as to the subtle differences between the .initial and .default PGF key types. Can someone explain and demonstrate the differences with a minimal example?
9
votes
2answers
209 views

Problem with loop-generated pkgkeys containing a space

I'm trying to use \pgfkeys in the following setting: \documentclass{article} \usepackage{tikz} \usepackage{pgfkeys} \begin{document} \begin{tikzpicture}[% m1 color/.initial=red, m2 ...
8
votes
2answers
492 views

Accessing a style property in TikZ? [duplicate]

Possible Duplicate: How to extract the value from a pgfkeys style element Let us assume I have defined the following TikZ style: \tikzset{ mystyle/.style={draw, fill=green, node ...
7
votes
1answer
785 views

Style to make axis tick label opaque

I would like to make a specific tick label have a white opaque fill around it, so that the a line does not cross over it. Ideally I would like to be able to specify exactly which tick, but do not ...
3
votes
1answer
321 views

Unsetting a PGF/TikZ key

Is there any possibility of “unsetting” a PGF/TikZ key? By “unsetting” I mean to remove the key from the list of keys and make PGF/TikZ behave as if it was never specified. To clarify, consider this ...
8
votes
3answers
291 views

How to know the status of a style? defined? empty?

mystyle/.style= {...} is perhaps used ? I would like to know how to verify if the style is really defined and in this case, I would like to know if the style is empty ? Is it possible to use ...
3
votes
1answer
388 views

PgfplotsTable: How to merge cell contents of two tables to one table?

I have two tables (sorry, inline tables are not working with pgfplotstable 2011/12/19 on my system, even with the option format=inline): Data table (data.csv): X,A,B U,1.1,1.2 V,2.1,2.2 ...
5
votes
1answer
134 views

pgfkeys: allowing one key to activate another key

I have two custom keys: key1, which is boolean; and key2, which accepts a value. The idea is that key1 activates a feature, and key2 customizes the feature. However, if key2 is used, I want key1 set ...
6
votes
1answer
452 views

How to use pgfkeys with “to path”

I'm not sure if the title is correct but I'll try to explain my problem correctly. I always work on the pgfvectorian package and I try to add some useful macros. One of these macros is to place an ...
30
votes
1answer
3k views

optional arguments to tikzpicture to set style globally

I can't get my head around how to get tikz and pgfkeys to do what I want. I would like to define a command which draws a little tikz picture. I'd like this command that would take optional keyval ...
16
votes
2answers
685 views

How to extract the value from a pgfkeys style element

Lets say I have defined some style: \tikzset{mystyle/.style={inner xsep=2pt, outer xsep=10pt}} Given the name of the style: How can I later get the (possibly overriden) value of one of its element, ...
4
votes
1answer
229 views

How to get the tikz/font pgfkey value and pass is to \pgfnode command

Let's say that I'm writing a decoration where I use the \pgfnode command in it. It works well but if I change the pgfkey TikZ/font to any dimension, it is not passed to the nodes in the decoration. ...
8
votes
3answers
711 views

Optional arguments in pgfkeys?

I need an optional argument in a pgfkey? Something like the following: \pgfkeys{example/.code = (Argument: #2, optional argument: #1)} \pgfkeys{example=[other]{some}} should result in (Argument: ...
3
votes
1answer
206 views

Font size as a key-value pair using pgfkeys does not work

I want to define a new environment whose contents can be typeset using a specific font family and size optionally specified as key-value pairs. For handling the key-value pairs I am using pgfkeys. Why ...
11
votes
0answers
1k views

MacTeX pgfkeys/tikz package fails [closed]

the document listed below, (taken from here: texample.net) fails on my system (running MacTeX 2011) with the error: Package pgfkeys Error: I do not know the key '/tikz/drop shadow' and I am going to ...
26
votes
2answers
681 views

How do I debug pgfkeys?

I'm sure if you're reading this question you are already familiar with my love for pgfkeys. However, it is absolutely impossible to debug: \tracingmacros is a total mess, with every key expanding to ...
6
votes
1answer
165 views

How to make a pgf default action create a different key

I know very little pgf, but I'm trying to learn...so bear with me (please). I would like to have a default action on a pgf path so that if I try to access any unknown key, without giving it a value, ...
7
votes
1answer
318 views

How does \pgfkeysvalueof work?

With this minimal example \documentclass{report} \usepackage{tikz} \begin{document} \tikzset{ line width = 5cm, CC/.initial = 7cm } It doesn't works :\pgfkeysvalueof{/tikz/line width} It works : ...
4
votes
3answers
284 views

PGFkeys problem. Meta arrow tips with parameters works only when I use different line width. Why?

The solution given here has a problem. Let re-write a minimum example \documentclass{standalone} \usepackage{tikz} \makeatletter \tikzset{arrow length/.initial = 6pt, arrow angle/.initial ...
5
votes
1answer
351 views

How do you pass unknown keys as options to a TikZ picture?

I try to write a command that accepts options, using pgfkeys. Unknown keys are collected in a style, that I try to use as global options for a tikzpicture environement. A minimal example would be: ...
5
votes
1answer
284 views

Nested macro envocation - syntax error?

I get a Argument of \\drs has an extra }. when I try to process the following: \documentclass{article} \usepackage{tikz} \newcommand{\drs}[2][lambda/.initial={}]{% \{% {\pgfkeys{/drs/.cd, #1, ...
10
votes
2answers
828 views

Using pgfkeys as an argument to a macro

I would like to use pgfkeys in a macro but find the documentation a bit hard to get started with. The following code should illustrate the problem I am trying to solve: \documentclass{article} ...
4
votes
1answer
791 views

Line with transparence changing with TikZ

I'd like to have a colored line that starts with transparent 100 and ends with trasparent, let's say, 30. I tried this code: \documentclass{standalone} \usepackage{tikz} ...
5
votes
1answer
391 views

TikZ. Access node's name within a .code handler.

I'd like to place variable number of additional nodes on the border of the rectangle. I suggest it to look in a somewhat following way: \node[name=R, my rectangle=top:3 bottom:1 left:2 right:1] {Node ...
12
votes
2answers
556 views

Is there a way to set a *global* key value using `pgfkeys`?

The simple answer to this question appears to be "No"; quoting from the pgf manual: The setting of a key is always local to the current TeX group. However, this is very annoying because it means ...
5
votes
3answers
1k views

Problem drawing Kiviat diagram

From this post, I started to play with TikZ/PGF to draw a Kiviat Diagram froma a file .dat Suppose to have two file table1.dat and table2.dat live these %table1 column1 column2 8.109115e-001 ...
9
votes
2answers
8k views

Weird tikz/pgfkeys error while trying example from the tikz manual.

I am still learning to use tikz from the manual. I got an error for this code: \documentclass[twocolumn,english]{article} \usepackage{tikz} \begin{document} \begin{figure} \centering ...
7
votes
3answers
492 views

Passing options to a macro

Background We're developing an automated graph drawing framework for TikZ with LuaTeX. The TeX interface on the pgf layer is nearly done, the next step will be the TikZ Layer. The maker of TikZ, Till ...
6
votes
1answer
1k views

Example on how to use pgfkeys and pgfopts for class or package

Is there a tutorial on how to create a package or class with pgfkeys/pgfopts that goes beyond this pdf? keyval.pdf In particular I would be interested on how I can create package/class options and ...