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

learn more… | top users | synonyms

1
vote
1answer
32 views

Indexing hangs with pgfkeys

The following code hangs pdflatex with no errors: \documentclass{article} \usepackage{tikz} \usepackage{makeidx} \newcommand{\propertydef}[2]{\pgfkeys{/assume/#1/.code=#2} \pgfkeys{/assume/#1/....
1
vote
1answer
43 views

pgfkeys and ifs

I'm still looking for a viable solution to have "conditional pictures", or pictures, where I can enable and disable certain parts of the pictures with styles (very much like beamer overlays). My aim ...
3
votes
2answers
69 views

Parametric Pics : Pic Actions at Infinity

This question tries to expand upon the another both of which aim at providing a "Best" practices for tikz-pics or atleast a couple of how to examples clarifying some of the more advanced trickery that ...
2
votes
2answers
114 views

PGFPlots: How to add a legend entry from a macro into a foreach loop?

I'm doing a stacked bar plot where each plot is taken from a different column of the same file, and I have the list of column names I want to use in a macro: \newcommand\tools{tool1, tool2, tool3, ...
5
votes
2answers
121 views

Parametric Pics : Variations of Infinity

Let's argue that I want to draw variations of the infinity symbol (Mostly because I can't draw ducks although it makes for a good MWE). I can't find a simple example that uses pgf/tikz keys to ...
5
votes
2answers
706 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 ...
3
votes
1answer
21 views

Computing minimum width based on style arg

I have successfully defined a "block" that I can instantiate in various sizes, with annotations at its sides. However, I would like to set the minimum width to sqrt(#2), while keeping the label as #2....
1
vote
1answer
39 views

How to declare a tikz “directory” or group of keys

In the mwe below, I declare a key /tikz/my key/radius, and I set up /tikz/my key so that using my key={radius=50pt} works. This is a common pattern, for example decorate, decoration={lots of options ...
7
votes
2answers
309 views

How to create a table automatically for a homework in statistics?

I want to create a long table containing some statistical data, such as the sample, the average, and the variance, etc. I am using the pgf package and its various extensions to do this. Here is a ...
1
vote
0answers
46 views

tikz text width causes error

What am i doing wrong to have this error in my thesis report ? ./Chapter1.tex:666: Package pgfkeys Error: I do not know the key '/tikz/width', to which you passed '12cm', and I am going to ignore it....
6
votes
1answer
79 views

tikz library shadows does not accept space

With TikZ library shadows, a space immediately after the curly bracket in drop shadow = { shadow... throws an error. If there is no space after the bracket, there is no error, i.e. drop shadow = {...
3
votes
1answer
23 views

pgfkeys - storing today's date with pgfplotstablenew, pgfplotstablesave

I'm working on making a simple tool to generate burn down reports/track task progress; this is my first foray into more complicated table manipulation so there's probably something pretty basic I'm ...
2
votes
1answer
61 views

tikzcircuit style not known after upgrade to TeXLive 2015?

I have this little snippet: \documentclass{standalone} \usepackage{tikz} \usepackage[siunitx]{circuitikz} \listfiles \begin{document} \begin{circuitikz}[ american, opamp ...
2
votes
1answer
40 views

Overwrite point meta value after explicit definition

I want do some surface/mesh plots in pgfplots with a kind of logarithmic axis for positive and negative values. This is sometimes called a symlog colormap transformation, i.e. a logarithmic axis for ...
9
votes
0answers
82 views

Passing special characters to “shorthand” x+y options in TikZ

Update: this is now a bug report on sf.net. I think I understand the rules for special characters in pgfkeys key arguments: If it contains any of {,, =, ]}, it must be protected by putting the entire ...
4
votes
1answer
50 views

Problem with pgfkeys

Perhaps a stupid mistake but the results are different, why ? I want the nodes on a horizontal line. If I comment \pgfqkeys{/LX}{#1} then the result is fine (the nodes are on horizontal line) \...
5
votes
0answers
28 views

Problem between keys, paths with two macros and pgfkeys

Sorry the code below for my minimal example is a bit long. In this code I defined two macros : the first macro \SC draws semi-circle and the second macro \ARC draws arcs. The first macro uses the ...
28
votes
2answers
919 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 ...
4
votes
1answer
101 views

Best Key-Value System For LaTeX

I want to make new macros that support key=value style. But, there are many such packages for doing this. What is the best choice, given these priorities: Highly developed, complete, or actively ...
2
votes
1answer
41 views

Additional row when using pgfkeys inside a table

Inspired by the answer http://tex.stackexchange.com/a/37484, I tried to create a table with a key-value interface. Using \pgfkeys only outside of the tabular environment works as intended, but if it ...
8
votes
2answers
1k views

Using LaTeX commands inside pgfplotsset

Is there any way to use LaTeX commands inside \pgfplotsset? For instance, the following code produces an error indicated in the \pgfplotsset line, whereas if one replaced \contents in the \...
5
votes
1answer
138 views

rounding to one decimal woes…

I have a problem with rounding --- I have seen How do I get \pgfmathparse to create value rounded to one decimal place? but still I can't obtain the result I need. See this MWE: \usepackage[utf8]{...
9
votes
1answer
94 views

real colons in a expl3 context

I'm fighting to find a good way to use colons in an expl3 context. The example uses tcolorbox for a demonstration but I ran into the problem also in other places where a colon was used to delimit an ...
7
votes
2answers
129 views

Problem between pgfkeys, tikz and personal macro

The following minimal working example shows the problem. The mainmacro is an example of what I need; here I want to use my keys and keys from tikz (like draw,color,shape). The result is fine only if I ...
2
votes
1answer
76 views

Create custom symbol: diamond / rhombus shape

I read this little article: http://www.elfsoft2000.com/projects/bipole.pdf and the other two mentioned in this. I want to create a symbol to use in my papers and projects. In my country, some of them ...
3
votes
0answers
55 views

Remove the first and last values of xtick and ytick

I use the following code to create a tufte-like range plot as suggested here: Tufte like axis with pgfplots \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \makeatletter ...
4
votes
0answers
54 views

pgfplots: math expressions of variables in axis style

I would like to use a calculated value of pgf variable exp(\pgfplots@data@xmin) This is a concrete example what I need \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \...
3
votes
2answers
120 views

How to move anchors in new circuitikz component?

There are some components missing in the nice circuitikz package. I tried to create these with help of the answers to questions CircuiTikZ — create new component and New component in circuitikz. Now I ...
1
vote
2answers
113 views

Package pgfkeys Error(s)

I am searching for a solution of 5 package pgfkeys errors. I think the root of the problem is the same. Preliminary I tested if the pgfplot version is the same I have installed (v1.13) and I used in ...
1
vote
2answers
758 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, ...
2
votes
0answers
67 views

Reason not to use a specific key val package

According to the very nice list of packages concerning this topic (A big list of every keyval package) I am confused which package I should use now to be prepared for the future. Any ideas which ...
3
votes
1answer
149 views

TikZ/PGF error when using forest

I am trying to make a linguistics tree using the forest package, as in the second example in this thread. I was able to generate the tree for the most part, but I cannot draw the triangle for some ...
3
votes
3answers
126 views

Make a PGFkeys path take precedence over another path for a whole scope

I've been writing a package for LaTeX lately called TikZ-Feynman. It is an extension to TikZ and just like PGFplots, it defines a new environment within {tikzpicture} called {feynman} and makes ...
8
votes
1answer
82 views

Does expl3 key-setting syntax have an equivalent of TikZ/PGF's .cd?

This question has the following form: 'I know how to do X using Y. I can also do X using Z but not so elegantly as using Y. Can I do X using Z in the same way that I can do X using Y, for a more ...
3
votes
0answers
80 views

How to list all known pgfkeys?

Is there a way to list all known pgfkeys (i.e., those that are currently set)? Concretely, I'm looking for a way to get the value of the tikz scale option. I was hoping there would be a pgfkey for ...
17
votes
3answers
803 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 ...
4
votes
1answer
289 views

\pgfmathprintnumber and pre-defined styles

In text mode I would like to use \pgfmathprintnumber to print numbers in an uniform style. The style used shall be defined in the preamble of the document. See the following MWE: \documentclass{...
7
votes
1answer
241 views

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

Edit: It seems that this question (one of mine first here) is not so clear as I imagined, when ask them. So I -- stimulated by recently received comments on it -- rephrase it with hope, that now ...
4
votes
3answers
91 views

Saving a PGFKey to the aux file

I want to save the value of a particular key (from pgfkeys) into the aux file for my LaTeX document. If it matters, I'm using LuaLaTeX, but the same problem is exhibited by XeLaTeX, pdfLaTeX, and the ...
3
votes
1answer
56 views

Print text conditionally if argument is not empty

I would like to define a command with arguments managed using pgf-key that prints some text conditionally on the the fact that a value was indeed passed. Here is my current code \documentclass{...
2
votes
0answers
44 views

Tizkit: Package pgfkeys Error: I do not know the key '/tikz/shape1' [duplicate]

I'm trying to use tikzit, and I created a shape (basically a new kind of node). The shape is located into /home/user/.config/tikzit/shapes/shape1 but tikzit (and pdflatex as well, obviously) doesn't ...
2
votes
1answer
62 views

Processing complex label-like expressions with pgfkeys

I would like to use pgfkeys to process expressions like label={[scale=.8,pos=.9]above right:$-2\pi i$} (which typically appear as labels in nodes), and extract from them three parameters according ...
3
votes
1answer
167 views

How to make a line style for drawing the ground line?

I'd like to draw a piece of "ground line" (picture below), but I don't know, how to make a line style and how to ensure proper localizations of the picture boundary. The solution of achieving an ...
3
votes
0answers
35 views

How to do math on overlay arguments using pgfkeys (handle numbers and ranges)

Context I'm trying to do some basic operations on arguments on pgfkeys, and got stuck while trying to do simple arithmetic on them. Thankfully, egreg gave a nice solution for handling the arithmetic ...
3
votes
1answer
61 views

What does fontenc do and when is it applied? Based on an example of creating my own package

After quite a time of using LaTeX, I am now trying to understand how it works. The following example concerns the functionality of fontenc. In order to not have to write down the inclusions of all ...
4
votes
1answer
35 views

How to do math on pgfkeys arguments and asign them to other keys

I'm trying to reduce the work load of applying some overlays over and over with different numbers. However, I need to compute for a given frame the next or previous one, thus needing to do simple ...
0
votes
1answer
32 views

Initialize a pgfkey with style and defaults (as in object constructors)

Using pgfkeys, I'd like to initialize keys as in setting attributes with an object constructor. Such that I can create keys /Photo/May, /Photo/June etc. based on some initial properties of /Photo, ...
4
votes
2answers
47 views

How to interpret the contents of a macro as key=value assignment for pgfkeys

Based on this pgfkeys method, I tried to collect options in a macro for later re-use: % Set options for a photo % #1 = options, #2 = photo name, i.e. June \newcommand\SetPhoto[2][]{% \expandafter\...
4
votes
0answers
78 views

How can I reliably and consistently save PGF keys filtered by path to a macro for later use?

I am trying to use PGF keys in TikZ with a relatively complex key tree. (Complex by my standards, that is - I'm sure it isn't that complicated in the scheme of things.) What I hoped to do is to ...
1
vote
0answers
57 views

Using pgfkeys inside overlay specification

I would like to use labels to assign overlay specifications. Below is the code I have so far. My main question is why does not the following terminate to compile. \documentclass[11pt]{beamer} \...