{pgfkeys} concerns a flexible key management system in TikZ/PGF.
23
votes
2answers
592 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 ...
10
votes
2answers
444 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 ...
15
votes
4answers
547 views
Multiple TikZ keys with foreach
Playing around with pgffor, I'm trying to slightly modify an example from the TikZ/pgf manual:
\path \foreach \x/\content/\style in {%
0/a/draw,
1/b/{draw,red},
2/c/{circle,blue},
3/d/draw%
} ...
14
votes
2answers
532 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, ...
3
votes
3answers
233 views
How to submit a set of tikz command with pgfkeys?
I would like to send a serie of tikz keys to a tikz path with the pgfkeys interface. I succeeded with the following code but is there a simpler way to do that ? Can I do the same thing with something ...
9
votes
2answers
336 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,
...
28
votes
1answer
1k 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 ...
8
votes
3answers
545 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: ...
7
votes
2answers
5k 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
...
5
votes
2answers
433 views
creating a fifo symbol with pgfdeclareshape
I'm compiling with:
pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2011.7.8)
pgf 2008/01/15 v2.10 (rcs-revision 1.12)
tikz 2010/10/13 v2.10 (rcs-revision 1.76)
...
5
votes
3answers
828 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 ...
4
votes
1answer
62 views
Spaces in pfgopts options
Is there a simple way to allow spaces in the options of a package using pgfopts to process them, which is local to that package i.e. I don't have to include some package in the main document before ...
11
votes
1answer
200 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?
5
votes
2answers
121 views
Simple example of pgfkeys
I'm struggling to get my head around the pgfkeys package. I currently use the keycommand package, which I find very easy to understand: it's just ordinary LaTeX commands with named rather than ...
4
votes
1answer
277 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:
...
7
votes
2answers
640 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}
...
6
votes
1answer
858 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 ...
6
votes
1answer
144 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, ...
5
votes
2answers
334 views
Complex objects in TikZ: pgfkeys scope and best practice
I try to define a reusable object in TikZ and run into some troubles. The following minimal working example shows the problem.
\documentclass{article}
\usepackage{tikz}
%\usepackage{trace-pgfkeys}
...
4
votes
2answers
126 views
new command, pfgkeys within pfgplots axis environment
I am trying to setup an command to create technical drawing dimensions (inspiration from Dimensioning of a technical drawing in TikZ).
I would like to use pgfkeys for that, in order to pass multiple ...
3
votes
1answer
56 views
A list of pairs in pgfkeys
Having learnt a lot about the pgfkeys package as a result of my last question, I'm now trying to do some more adventurous things.
Let's say I have a command called \blob, whose value is the ...
2
votes
1answer
636 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}
...
7
votes
1answer
547 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 ...
4
votes
1answer
377 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 ...
