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

learn more… | top users | synonyms

2
votes
0answers
24 views

Filtering key-value options

I want to define a new environment whose implementation depends on another environment. The first environment should accept a list of key-value options. Some of these options are for use only on this ...
3
votes
0answers
46 views

Getting a value, which has been given to a TikZ key

I'm trying to write a package based on TikZ, and this is the problem i'm currently stumbling upon. Let's assume, that I have a key, for example /tikz/circuit symbol unit, which executes some code. ...
3
votes
0answers
21 views

pgfkeys error in ytableau package

I'm running TeX Live 2013 Debian (on a Linux Mint 17 machine). I'm getting the following error when I try to load the ytableau package: ! LaTeX Error: File `pgfkeys.sty' not found. When I search ...
12
votes
3answers
176 views

Is there a compact way to set the same default for multiple pgfkeys?

I want to set the same default value for multiple PGF keys, like in this case where both a and b have a default of 1: \documentclass{article} \usepackage{pgfkeys} \pgfkeys{ a/.code={a:#1}, ...
1
vote
1answer
51 views

Custom separator for CSV import via csvsimple

I have successfully used csvsimple to import .csv files. But I would like to have commas as number separators, so I modified the .csv file to use semicolons as separators and as csvsimple manual says, ...
5
votes
1answer
68 views

How to store tcolorbox's (multiple) settings in a macro?

I'd like to store tcolorbox' (multiple) settings in a (single) macro (in fact, a xkeyval's \cmdKV@fam@key macro) and use them afterwards via this macro (I know I should use pgfkeys instead, but my ...
5
votes
1answer
58 views

Tikz fit library: fitting only one dimension and accumulating calls

The fit library is very useful for adjusting the size of a node to fit other nodes inside it. It is also useful in conjunction with shift to make a node span to the width/height of other nodes but ...
4
votes
2answers
205 views

Parsing and programming in TikZ

Background: I'be been reading the PGF manual (keys section) and today the TeX Book just arrived in the mail and just started reading chapter 7 (How TeX reads what you type) -- feeling like Mickey ...
4
votes
0answers
40 views

How can I decide whether a key has had .value forbidden applied?

Is there a way to decide whether a given key has had the .value forbidden handler applied? For example, I would like to write a handler .only that can be applied to keys to simulate Beamer's \only ...
2
votes
0answers
83 views

I do not know the keys /tcb/flush right upper — pgfkeys error

On compiling with PdfLaTeX, the below MWE generates me the following error I do not know the keys /tcb/flush right upper. To resolve this issue, I downloaded tcolorbox and pgfkeys package from CTAN ...
4
votes
1answer
173 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
78 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
75 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
63 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
41 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
24 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
32 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} ...
13
votes
1answer
111 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
63 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
55 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
79 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
434 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
355 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
168 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
108 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
77 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 ...
8
votes
2answers
326 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
94 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
208 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
57 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} ...
7
votes
1answer
143 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
123 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
84 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
183 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} ...
7
votes
2answers
203 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
69 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
177 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
183 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
62 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
593 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
124 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 ...
24
votes
2answers
715 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
167 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
116 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 ...
12
votes
5answers
316 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
168 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
58 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
65 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
59 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
310 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, ...