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

learn more… | top users | synonyms

4
votes
1answer
38 views

pgfkeyvalue string is not parsed by xkeyvalue

I'm trying to create a database using pgfkeys. It is working rather well, until I needed to execute some parameters stored in a key and pass it to some command that uses xkeyvalue to parse the ...
4
votes
1answer
115 views

Use pgfkeys to set a style variable

I'd like to use pgfkeys to define the scale for a number of tikz pictures. However, wenn I do the following: \documentclass{article} \usepackage{tikz} \begin{document} \pgfkeys{/my ...
4
votes
2answers
100 views

Defining styles that provide nested, parameterized styles with TikZ

I want to draw different kinds of graphs which I want to define using styles. One particular graph has labelled nodes, and I want to be able to attach these labels using a custom key (cn). The ...
4
votes
1answer
84 views

Expanding arguments to pgf/tikz styles

In an answer on this site is proposed a method to draw arrows on paths. For example, using the style [arrow inside={pos=0.2}] will put an arrow at position 0.2 on the path : \begin{tikzpicture} ...
4
votes
1answer
2k views

Problem with “Package pgfkeys Error”

I am trying to create a color box using tcolorbox package. source code is like this- \documentclass[11pt]{article} \usepackage[top=.5in, bottom=.5in, left=1in, right=1in]{geometry} ...
4
votes
4answers
155 views

How do I override a previously set value for `/tikz/rotate`?

I was writing my own style for a particular collection of nodes, most of which I wanted rotated in the same manner. So I defined the following style: my node style/.style={rotate=60,draw} Please ...
4
votes
1answer
325 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
360 views

Default value for a key defined with pgfkeys

Hereafter is a simple macro with keys nom and prenom defined with `pgfkeys. \documentclass[a4paper]{article} \usepackage{tikz} \pgfkeys{ /test/pgf/.cd, nom/.store in = \nom, ...
4
votes
2answers
498 views

pgfopts error when installing ytableau

I am trying to install ytableau.sty, following the directions here and here, and in the ytableau README. I am running TexShop 2.47 on OS X 10.6. Here's a walkthrough of what I've done, although I ...
4
votes
3answers
332 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 ...
4
votes
1answer
60 views

How to handle a color key in pgfkeys

I'm trying to use pgfkeys to parse the arguments in a set of macros. I need to use some arguments for color. But, I get an error with the xcolor package saying that the key I defined is not a valid ...
4
votes
1answer
95 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
240 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
221 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
887 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
261 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
55 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
92 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
152 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
103 views

Filter in PGFPlots by x coordinate value

I've been trying to springboard off of the answer I got from percusse here, but I'm drowning in the PGFPlots manual. I wanted to plot a smooth region in the middle, given the x coordinate values ...
4
votes
1answer
144 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
71 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
225 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
192 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
56 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
89 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
1answer
87 views

create new TikZ key with code and style tags

Assume I want to perform a complicated calculation within a TikZ key defintion. What is the recommended way to do this? Reading through the manual and digging around in other questions led me to ...
3
votes
2answers
446 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
408 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
182 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
235 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
71 views

How to create a variable number of arguments as PGF key?

Many interfaces use a variable number of arguments, for example in CSS margin:1pt 1pt 1pt 1pt The clip functions of the graphics package also have similar examples. Is this possible with PGF ...
3
votes
1answer
964 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 ...
3
votes
1answer
76 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
275 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
53 views

Dynamically open and close environments for foreach construction

I am trying to iterate through a list of data. The data has sections mixed between the items. When a section appears, I need to typeset it with \section, then I need to create a itemize environment ...
3
votes
1answer
138 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
252 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
280 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
497 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
176 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
140 views

Custom vertical lines with pgfgantt (pgf multiplier issues)

I'm having some issues drawing vertical lines in a ganttchart (using the pgfgantt package). The approach is to define the bars in the chart using a dd-mm-yyyy format but only showing the months. To ...
3
votes
0answers
138 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
87 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
99 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
158 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
134 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
385 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
146 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
269 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 ...