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

learn more… | top users | synonyms

4
votes
0answers
85 views

Alternate lefthand/righthand width and check odd page in tcolorbox

I am creating a new environment using the tcolorbox package in the define options pos=t,b,r,l and lwidth and rwidth for margins, using the scheme key=value of pgfkeys. My idea is to create two new ...
2
votes
0answers
36 views

Problem with pgf library in TexLive

I am using TexLive, and I am writing a paper with someone else. He has sent me all of his files. He uses tikz to draw commutative diagrams. I am trying to compile his files, but I get an undefined ...
3
votes
1answer
33 views

pgfkey to set anchor for negative values in a bar chart

I have a ybar chart with positive and negative bars and "node near coords". I'd like to have the nodes of pos. bars at the top and nodes of neg. bars at the bottom/under the bar. With the following ...
5
votes
1answer
54 views

Passing (just) other options, when using pgfopts

I want to use pgfopts (and therefore pgfkeys) when customizing a class with new options, keeping the old ones, and using some of them. Here is a simplified example with a class "exa" which extends ...
2
votes
0answers
32 views

Using key-value interface for pgfkeys results in error

I've been reading a lot of posts lately on the difference between using the key-value interface and the handler interface of pgfkeys. To my understanding, the same values can be stored and retrieved ...
4
votes
0answers
21 views

The difference between \pgfkeysvalueof and /.store in [duplicate]

I thought using \pgfkeysvalueof on a key that does not have a /.store in and the variable of a key that does have a /.store in would give the same result. This seems not to be the case. This example, ...
2
votes
0answers
26 views

Remove key from style

Is it possible to create a key handler with the pgfkeys package that removes a key from a style? Here's a minimal working example: \documentclass[preview,margin=10pt,convert]{standalone} ...
8
votes
1answer
65 views

Which arguments of `\includegraphics` cannot be set beforehand?

From the documentation of the graphicx package: Most of the keyval keys used in the graphicx package may also be set using the command \setkeys provided by the keyval package. For instance, ...
1
vote
1answer
45 views

Check the value of a pgfkey

I need to be able to check if the value of a pgfkey is empty or not. A solution I have tried (using package etoolbox): \edef\temp{\pgfkeysvalueof{/path/key}}% ...
4
votes
1answer
40 views

Changing the default value of a pgfkey

I want to create a command that can change the default value of my pgfkeys. I think the problem is that the value set as default is not expanded. Therefore the icondefaultsa below doesn't work. ...
5
votes
1answer
68 views

Reset pgfkey to default value in nested command call

I have created a new command whose argument can be a new call to the same command. How can I then reset the values of the pgfkeys in the nested call to their default values, so that they don't have ...
24
votes
2answers
344 views

What is the correct way to get a pgfkey value?

This is my first foray into the pgfkeys package and I found the following behavior really odd. The Tikz/pgfkeys manual mentions two ways for setting key values: \pgfkeys{key=value} and ...
2
votes
1answer
118 views

Package pgfkeys Error: I do not know the key '/tcb/library/most'

I get the following error while compiling and the pdf is also not generated properly: ERROR: Package pgfkeys Error: I do not know the key '/tcb/library/most' and I am going to ignore it. Perhaps you ...
8
votes
2answers
137 views

How to create and use a new pgf key

In this example, I would like to have a new key NbGrad then I could write : \begin{tikzpicture}[>=stealth,x=6cm,font=\footnotesize,NbGrad=12] And use the key as I use \NbGrad or another way if ...
9
votes
1answer
91 views

Working with keys instead of \def

I have looked around on TeX.SX and I have learnt a lot of things. One of the things I have not yet mastered is how to use the key=value function that packages like keyval or xkeyval offer or even ...
6
votes
1answer
71 views

Style key syntax problem

I tried both \documentclass{standalone} \usepackage{tikz,pgfplots} \tikzset{axeseul/.style={% /pgfplots/axis x line align=center, % rien en y /pgfplots/axis y line align=none, % sans axe ...
6
votes
2answers
167 views

Problems with pgfkeys

I'm trying to use pgfkeys to define commands with custom parameters, but I can't even get the example in pgfmanual to run: \documentclass{article} \usepackage{pgfkeys} \begin{document} ...
4
votes
1answer
83 views

\AfterGroup sorcery and choking tex/pgf

In the following code, the line \AfterGroup* (from theetextools package) causes the pdfLatex compiler to 'choke', i.e it produces only this output and the process is stuck forever, consuming 13% of ...
8
votes
2answers
170 views

Correct use of arguments pattern in pgfkeys/append after command in tikz?

I could not find many examples for the correct use of arguments patterns in pgfkes, but I was able to come up with the following: \documentclass{standalone} \usepackage{tikz} ...
6
votes
1answer
46 views

Using \pgfkeys in \section

I am using \pgfkeys to help organize custom symbols. However, I ran into a problem when trying to execute a key inside \section command. \documentclass{article} \usepackage{tikz} ...
5
votes
1answer
90 views

Avoiding `Dimension too large' and `ill-formatted floating point' errors in tikz

I am attempting to draw some pictures using tikz, with the decorations library, and am encountering a `Dimension too large' error. I have read the 20+ other questions/answers about this error, and ...
6
votes
0answers
104 views

how to add parameters to shape which internally use 'append after command'

years ago Mark Wibrow provided me the following code to adding text in inside border of a (rectangle) shape on this comp.text.tex thread: \documentclass[tikz,border=5mm]{standalone} %%% code from ...
8
votes
1answer
69 views

How do I pass an unknown value to a choice key in pgfkeys?

Why is the parameter value not being passed to my code for the unknown key value here? \documentclass{article} \usepackage{pgfkeys} \makeatletter \def\ae@size{2cm} \pgfkeys{/ae/example/.cd, ...
2
votes
0answers
120 views

pgfkeys error in tcolorbox

I am trying to duplicate part of an example code given in the tcolorbox package documentation on page 13. It looks like this: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{skins} ...
6
votes
2answers
157 views

Creating anchors in a shape with a \foreach loop

I was playing around with this question, and in particular tried to modify and expand the linked example. It works fine, but there is an error when I try to use a \foreach loop to define the different ...
5
votes
0answers
68 views

How can I set up nested keys using pgfkeys

I've got several documents that I would like to be able to format in different styles depending on the context of the presentation. The content should stay the same, but the formatting may need to ...
2
votes
1answer
137 views

Alternate colback and colbacklower in tcblisting

I have written a new environment based on tcblisting from package tcolorbox. I want the background color for code always in "gray" and the background color of the text compiled in "white". He held ...
2
votes
1answer
114 views

! Package pgfkeys Error | compiling a standalone picture as \includestandalone{fig}

I have two tikz pictures in external files (fig1.tex and fig2.tex): fig1.tex \documentclass[a4paper,class=minimal,border=0pt]{standalone} \usepackage{tikz} \usetikzlibrary{plotmarks} ...
4
votes
1answer
57 views

Using pgfkeys to switch between “enumerate” and “enumerate*” when using the enumitem package with the package option “inline”"

No matter what I seem to do, I'm just getting this wrong. I would like to be able to set a key to determine how my list is arranged. \documentclass{article} \usepackage[inline]{enumitem} ...
6
votes
1answer
474 views

Creating a Gantt chart error

Comes up with error pgfkeys:I do not know the key /pgfgantt/group peaks. I for the life of me cant seem to find what is wrong. Can anybody help me with this please? Thanks % Out line proposal ...
1
vote
1answer
105 views

Using a macro inside the axis options for pgfplots

I want to create an macro to replace the string '{a,b,c}' in my code: xticklabels={a,b,c} so I set \newcommand\inputnames{a,b,c} xticklabels=\inputnames but this gives me the same result as ...
23
votes
2answers
617 views

Arguments for TikZ style

Motivation To put arrows inside of a TikZ path I have defined myself a TikZ style arrow inside. To make it even more portable I want it to take arguments like this \draw[arrow inside={pos = 0.1, end ...
1
vote
1answer
157 views

set tikz options through pgfkeys

I'm using tcolorbox and using pgfkeys to set some of the tikz options. But they do not seem to be working. Consider the MWE given below. If I set draw color using \pgfkeys{/tikz/.cd, fill=red, ...
2
votes
1answer
103 views

TeX capacity exceeded with \pgfkeys

I'm trying to create a code listing and set custom options using pgfkeys. The below provided code works fine. The style handler for title option (currently commented out) is breaking TeX compilation ...
11
votes
5answers
273 views

What do the pgfkeys key handlers .get and .store in do?

When I need to retrieve the value of a key in a macro, I use the key handlers .get and .store in. Here is what is written in the pgfkeys documentation: Key handler key /.get= macro Executes a ...
5
votes
3answers
153 views

How can I remove outer brackets without expanding content?

I'm trying to use pgfkeys to collect information that will be passed to a clist. But, I'm not able to get this to work correctly. It seems that I'm getting brackets around the list and is prevent ...
3
votes
1answer
52 views

How can I use `pgffor` to iterate through a database of keys and properly retrieve them

I would like to create a command that stores a database. I then want to iterate over the database and print out the results to the document. This MWE shows two different approaches I've taken. But ...
3
votes
0answers
54 views

pgfkey `/.store in` handler not functioning as expected

I'm still working on learning how to use pgfkeys. Here's a snippet of code that I'm working on. It compiles fine: \documentclass{article} \RequirePackage{xparse} \RequirePackage{pgfkeys,pgffor} ...
1
vote
1answer
49 views

Problem with referencing plots

I want to reference some plots (done with pgfplots) in my text but somehow it's not possible. If i copypaste the examples from the pgfplot- documentation it works but if I move one of the labels to ...
11
votes
2answers
255 views

Key that takes a list of other keys as argument and sets them

I would like to define a key, let's call it mystyle, which has several subkeys, like mystyle/A and mystyle/B, and I'd like to be able to choose which of these subkeys to set by calling mystyle=A, ...
4
votes
0answers
61 views

Difficulty getting pgfkeys to set my fontsizes as I want

I apologize that this isn't particularly short. I'm going through old code and refactoring. In the process, I'm running into various bugs in how I've written things. In this particular example, the ...
17
votes
2answers
223 views

When to use a regular .initial key or a .store in key?

The excellent pgfkeys package provides, among others, two kinds of keys: regular "value-centric" keys that can be declared with /.initial, and "macro-centric" keys are declared with /.store in. Here ...
13
votes
4answers
226 views

How do you test whether a known key value has been set in pgfkeys

Using the .code handler to my keys and a private macro, I can easily test whether a key has been set when using pgfkeys. For example: \documentclass{article} \newcounter{mytestenvcounter} ...
8
votes
2answers
113 views

Is there a way to define starred variants for a keyvalue system?

I've created an environment for which various parameters are set through key values. Instead of creating a hornet's nest of various booleans, I would just like to have a slight variant form for some ...
8
votes
1answer
106 views

pgfkeys overeager in stripping away my braces

This is an extremely minimal example of what I'm trying to do. \documentclass{article} \usepackage{pgfkeys} \pgfkeys { /ae/example/set/parameters/.cd, keya/.code = { \def\mykeya{#1} }, ...
3
votes
1answer
75 views

pgfkeys “/handlers/first char syntax” generating error

I'm trying to follow the example from the tikz manual (2.10-CVS development version), but I'm not meeting success. Here's my MWE \documentclass{article} \usepackage{pgfkeys} \pgfkeys { ...
4
votes
1answer
161 views

What does “circle through” do with its argument?

The tikz library through can be used to draw a circle from a center coordinate A through another coordinate B like so: \node [draw] at (A) [circle through=(B)] {}; When attempting to specify the ...
4
votes
1answer
65 views

How retain (overridden) default values with pgfkeys?

I'm creating a package for drawing sequence charts and make use of pgfkeys to keep default values for various parameters that I need. However, sometimes I wish to provide to my macros one or more ...
6
votes
1answer
96 views

pgfkeys: Store unknown keys in a command

Does pgfkeys have some some predefined handler to store unknown keys and their values in a command as a list? E.g. in the following example I would like to get a command which contains blub=1, ...
8
votes
1answer
197 views

Is it possible to set a default value for an argument in a TikZ style?

In a command like: \tikset{qar/.style={draw,rectangle,fill=#1}} is it possible to add a default key value for the option fill so that if you have: \node [qar] {}; the node will be filled with ...