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

learn more… | top users | synonyms

4
votes
1answer
82 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 ...
4
votes
1answer
211 views

Pass a 3d coordinate via pgfkeys

I'm using 3dplot to draw in 3D. Now I want to define my own environment, called pose, that is supposed to be used inside a tikzpicture-environment. It should perform a coordinate system tansformation ...
4
votes
1answer
188 views

Compile error with MWE using pgfkeys, beamer, xparse and \includegraphics

First, please apologize the vague title, but I do not understand the problem enough to give a more exact title. The following MWE does not compile with a missing \endcsname inserted error around ...
4
votes
1answer
471 views

How can I append switches to the existing value of the TikZ font key?

Is it possible to append switches to the existing settings for the TikZ font key? For example, suppose that I want all nodes to be in the \sffamily typeface. This can be done by setting every ...
4
votes
1answer
732 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 ...
4
votes
1answer
239 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. ...
4
votes
1answer
43 views

pgfkeys computed (i.e., dynamically defined) key

I would like to perform some simple simulation in latex/tikz (in order to produce dynamical graphs). Say something like cellular automata, Ising model, etc. I need to store somewhere the value of ...
4
votes
1answer
62 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. ...
4
votes
1answer
149 views

Back-linking of pgfkeys

Please is there a way to avoid inadvertent cyclic linking of keys in \pgfkeys? A minimal example follows. Here I have keyb<->keya, which took its toll on TeX's capacity. \documentclass{article} ...
4
votes
1answer
110 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 ...
4
votes
1answer
66 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} ...
4
votes
1answer
177 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 ...
4
votes
1answer
186 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 ...
4
votes
0answers
45 views

Global definition of pgfplots axes style conflicts with colorbar

I am trying to plot an individual colorbar (with no axis), using the code below (MWE): \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.3} \begin{document} ...
4
votes
0answers
43 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 ...
4
votes
0answers
25 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, ...
4
votes
0answers
76 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 ...
3
votes
2answers
334 views

Undefined control sequence \pgfmath@

Why does the following code give me this error message? Error ERROR: Undefined control sequence. --- TeX said --- \pgfmath@dimen@ ...men@@ #1=0.0pt\relax \pgfmath@ l.28 \draw ...
3
votes
1answer
127 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 { ...
3
votes
1answer
355 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 ...
3
votes
1answer
221 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 ...
3
votes
1answer
64 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
1answer
227 views

What does error bars/.cd do?

In pgfplots, if you want error bars, you have to write error bars/.cd into each addplot that should have error bars. What does it mean and what does it do and why do I need it?
3
votes
1answer
116 views

How do I prevent the beamer class from removing my global options

I'm currently writing a latex package (or actually a beamer theme, but apparently that makes no difference) and I want to be able to specify a few things using key-value pairs in the global options. ...
3
votes
1answer
191 views

How to use pgfkeys' /.style args handler without knowing the exact form of the input?

I would like to be able to create a command (using pgfkeys) that can take inputs that are of a limited set of forms, and for which certain pieces will come from a limited set of values. More ...
3
votes
1answer
227 views

How to add text in a link tikzset

How to change tikzset the text is automatically added to the link \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{shapes,positioning,fit} \begin{document} ...
3
votes
1answer
433 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 ...
3
votes
1answer
104 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 ...
3
votes
0answers
90 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
36 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 ...
3
votes
0answers
74 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} ...
2
votes
1answer
104 views

How to define a special tikz node?

I want to define a special tikz node, that I'll use that way: \specialNode[name=mynode, label=mylabel, otherTikzOptions...] (node_name) at (some_coordinate); And gets coverted to: \node[circle, ...
2
votes
2answers
127 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 ...
2
votes
1answer
532 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 ...
2
votes
1answer
256 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} ...
2
votes
1answer
123 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 ...
2
votes
1answer
204 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
0answers
31 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 ...
2
votes
0answers
148 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 ...
2
votes
0answers
123 views

Problem with pgf library in TexLive [closed]

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 ...
2
votes
0answers
46 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 ...
2
votes
0answers
33 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} ...
2
votes
0answers
237 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} ...
2
votes
0answers
330 views

Problem with tikz-dependency [closed]

I've download the tikz-dependency package and tried the basic example as in the package docs. \documentclass{article} \usepackage{tikz} \usepackage{tikz-dependency} \begin{document} ...
1
vote
1answer
142 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 ...
1
vote
1answer
71 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}}% ...
1
vote
1answer
211 views

Pass key option inside a macro to a TikZ drawing command

I define a command with one optional key parameter. This command makes some calculations and them draws a tikzpicture. How can made my command to accept all the keys that a \draw command accept and ...
1
vote
1answer
104 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, ...
1
vote
1answer
170 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, ...
1
vote
1answer
75 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 ...