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

learn more… | top users | synonyms

2
votes
2answers
29 views

How to make properly macro with the use of pic?

I'd like do make a picture that consists of few blocks. One of these blocks I called \elementsymbol (in MWE below) - it consists of an arrow surrounded by a circle. I have the problem with scaling ...
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 ...
1
vote
1answer
34 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/....
3
votes
2answers
71 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 ...
5
votes
2answers
122 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 ...
3
votes
1answer
22 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....
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 ...
6
votes
1answer
80 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
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 ...
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 ...
4
votes
1answer
102 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 ...
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 ...
2
votes
1answer
42 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 ...
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
96 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 ...
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 ...
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} \...
7
votes
2answers
133 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 ...
3
votes
0answers
56 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 ...
1
vote
2answers
115 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 ...
2
votes
0answers
69 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
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 ...
3
votes
1answer
151 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
127 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 ...
2
votes
2answers
115 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, ...
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
82 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 ...
4
votes
1answer
294 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{...
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
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 ...
3
votes
1answer
168 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
36 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 ...
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
48 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\...
1
vote
0answers
58 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} \...
4
votes
1answer
54 views

pgfkeys pass font command

I am defining options using the pgfkeys command. \newcommand{\subtitlefont}{} \pgfkeys{ /titleblock/.is family, /titleblock, default/.style = {titlesize = 48, titlelineskip = 52, ...
4
votes
0answers
79 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
42 views

Overriding a TikZ key branch and misdirecting `every node`

I would like to have a branch, say \foo\, containing exactly the same keys as another one, say \tikz\, except for some redefined ones. That's easily done with the following \pgfkeys: \input tikz \...
3
votes
1answer
228 views

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

I'm trying some features of tcolorbox package and I'm facing some problem with the option $tikznode$. Here my code: \documentclass{article} \usepackage{tcolorbox} \listfiles \begin{...
2
votes
2answers
145 views

PGF keys passing arguments to multiple environments

I'd like to combine both tcolorbox and textpos to place boxes to a specific position in a page. Here is a MWE: \documentclass[]{article} \usepackage{pgfkeys} \usepackage{tcolorbox} \usepackage[...
5
votes
2answers
132 views

tikz shapes, not quite getting things right (anchors and keys)

So, I'm having a go at defining a tikz/pgf shape. Basically these nodes will not contain any text, and it is just a method of not copying a lot of code to draw a few of these boxes. I have a few ...