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

learn more… | top users | synonyms

5
votes
0answers
19 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
93 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 ...
8
votes
0answers
52 views

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

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 argument in braces. In that case, the braces ...
2
votes
1answer
38 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
131 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: ...
7
votes
1answer
80 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
57 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
40 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
108 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
50 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
73 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
54 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
91 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 ...
2
votes
1answer
79 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
112 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 ...
0
votes
1answer
65 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
74 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
67 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
169 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: ...
4
votes
3answers
83 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
46 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 ...
2
votes
0answers
42 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
57 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
58 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
151 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
34 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
34 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
28 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
44 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][]{% ...
1
vote
0answers
49 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
47 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
65 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
176 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 ...
2
votes
2answers
116 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} ...
5
votes
2answers
113 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 ...
5
votes
1answer
90 views

How do you define a default choice in pgfkeys

I've found the question Default value for a key defined with pgfkeys which works fine. But I would like to define an .is choice key with a default value, and I can't seem to get things to work. I've ...
0
votes
1answer
48 views

Pgfplots, Gnuplot: Put all *.gnuplot and *.table in subfolder - Global setting

MWE: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \pgfmathsetmacro\z{0.403713} \pgfmathsetmacro\w{343.386319715305} \begin{document} \begin{tikzpicture}[ gnuplot ...
4
votes
1answer
71 views

Evaluate pgfkey before reading and writing to file with newfile

I want to define a custom aux file that contains some data, stored in a pgfkey. This data has to be stored from the keys and then written to the keys. However, when I take a look at the aux file, it ...
3
votes
1answer
110 views

How can we define a custom variant of addplot, including new keys and default values?

I frequently create plots with \addplot using a lot of optional arguments, making it difficult to keep the code consistent. I have a few repeating plotstyles so I tried to implement a new macro that ...
1
vote
1answer
176 views

Error in Tikz text

I am facing this error when I am using a tikz text Can you please tell me what is wrong ? Package pgfkeys Error: The key '/tikz/text' requires a value. I am going to ignore this key. See the pgfkeys ...
6
votes
1answer
561 views

Tikz: adjusting pin anchor

Old title: Pgf .style args: optional named arguments with defaults I was looking for a possibility to adjust the anchor of the text of a pin. Tikz does not allow this out of the box. This question ...
0
votes
0answers
58 views

Number format as optional key value argument for LaTeX function

I followed the answer as given in http://tex.stackexchange.com/a/34318/28093 in constructing a function which uses key values. It works fine, but I also want to be able to give the number format as ...
5
votes
1answer
98 views

Key names of the axis limits when not set explicitly

In the minimum working example below I use the keys xmin, xmax, ymin and ymax for calculations of coordinates for annotations. However, this only works when the axis limits are set explicitly in the ...
9
votes
2answers
144 views

Setting a length with a key to a TikZ node

I would like to create some split rectangles whose widths are defined by the length of a designated line. I would like to do this through a key such as in: \documentclass[border=4pt]{standalone} ...
3
votes
1answer
79 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 ...
4
votes
1answer
60 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 ...
3
votes
1answer
423 views

How to get line width and inner sep values?

I try to get the values of line widths and node inner sep. How to read such a value form own style (if it will be specified during modifications of the picture) or if it is not specified in this ...
4
votes
1answer
150 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 ...
5
votes
1answer
88 views

How to .append to a value and retrieve it using .store in macro

I'm learning pgfkeys and trying to use it for key-value argument handling. I'm trying to set a style using it. For it, I defined a macro \mystyle to handle it, and use the same technique as in here ...