{pgfkeys} concerns a flexible key management system in TikZ/PGF.
2
votes
2answers
64 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
59 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 ...
0
votes
0answers
40 views
Trouble with each nth point {integer}
I am trying to plot a big size vectors using pgfplots but I always I get the following:
Package pgfkeys Error: I do not know the key '/tikz/each nth point' and I am going to ignore it....
Is ...
5
votes
2answers
131 views
Simple example of pgfkeys
I'm struggling to get my head around the pgfkeys package. I currently use the keycommand package, which I find very easy to understand: it's just ordinary LaTeX commands with named rather than ...
1
vote
0answers
76 views
Why can I compile a tikzpicture perfectly in one chapter but not in another? [closed]
I am having trouble with including a tikz flow chart in my code.
In my preamble I have included
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{shapes,arrows}
and this is the flow chart:
...
2
votes
1answer
62 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
61 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.
...
1
vote
1answer
66 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 ...
2
votes
0answers
67 views
Pass a 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 ...
5
votes
0answers
82 views
Appending to a style that sets code with arguments in pgfkeys
I'm trying to create some templating infrastructure that heavily depends on pgfkeys' styles to easily customise the appearance of how some bits of text are typeset on my document. However, I've run ...
8
votes
2answers
126 views
How to make this pgfkeys code more compact and streamlined?
I have just managed to create my first command with pgfkeys. I defined a command \myset, whose purpose is to make (for example)
\myset[big]{abc}
correspond to
\bigl\{abc\bigr\}
Part of my goal ...
3
votes
1answer
85 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}
...
7
votes
1answer
71 views
Is it possible to store \pgfmathresult in a pgfkey?
I would like to perform a calculation using \pgfmathparse and then store \pgfmathresult as the value of a pgfkey.
\documentclass{article}
\usepackage{tikz}
\begin{document}
...
4
votes
2answers
131 views
new command, pfgkeys within pfgplots axis environment
I am trying to setup an command to create technical drawing dimensions (inspiration from Dimensioning of a technical drawing in TikZ).
I would like to use pgfkeys for that, in order to pass multiple ...
1
vote
1answer
123 views
I am trying to use circuitikz, but this error pops up whenever I compile
I am currently trying to run some examples in the circuitikz library, and I keep getting the following error and the document will not compile:
Package pgfkeys Error: I do not know the key ...
2
votes
0answers
64 views
Shorten both ends of a line with on key
Consider the following snippet:
\begin{tikzpicture}
\def\ptRad{2pt}
\fill (0,0) circle (\ptRad);
\fill (1,1) circle (\ptRad);
\draw[<->, shorten <=\ptRad,shorten >=\ptRad] ...
3
votes
1answer
83 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?
6
votes
3answers
105 views
PGF keys error with key filter for keys containing \par
I am trying to use pgfkeys to store some text for use later. The end goal is to use a key filter to process options first and then apply them to text before it is stored.
In the MWE below, if it try ...
5
votes
2answers
341 views
Complex objects in TikZ: pgfkeys scope and best practice
I try to define a reusable object in TikZ and run into some troubles. The following minimal working example shows the problem.
\documentclass{article}
\usepackage{tikz}
%\usepackage{trace-pgfkeys}
...
4
votes
1answer
72 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 ...
0
votes
0answers
103 views
pgf add axis leads to following error message: ! Undefined control sequence -> what to do [closed]
I would like to add a coordinate plot with pgf plot to my document. Used it before in a latex beamer presentation and it worked. For my usual document it gives me the following error message:
...
7
votes
1answer
152 views
Creating tikz anchors based on pgfkey value
I'm trying to create several anchors equally spaced on the edge of my shape. The way I've tried to do this is to pass a key value in the node that would then define the anchors.
The following code is ...
6
votes
1answer
118 views
pgfdeclareshape : how is a fill color recognized?
my custom made shape triangle does not recognize the fill color (or stroke color), if set as an option like fill=green, say. It does recognize the fill option though. I seem to miss some ...
5
votes
1answer
127 views
using \pgfkeys to set style parameters being passed to tkz-euclide
I've been using pstricks for a long time and feel very much at home there. But, recently I decided I want to learn tikz since that seems to integrate better with beamer. However, I keep running into ...
4
votes
1answer
118 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,
...
3
votes
3answers
238 views
How to submit a set of tikz command with pgfkeys?
I would like to send a serie of tikz keys to a tikz path with the pgfkeys interface. I succeeded with the following code but is there a simpler way to do that ? Can I do the same thing with something ...
1
vote
1answer
86 views
Difference between options and mandatory arguments with pgfkeys
I try to use the pgfkeys package. Hereafter there is a short example of a simple command which use pgfkeys. I would like to know why the containts of a variable is not considered in a same way in the ...
1
vote
0answers
43 views
How can I pass class/package options with spaces in values? [duplicate]
Possible Duplicate:
Spaces in pfgopts options
I have read Joseph Wright's excellent article on key-value systems, as well as questions on this site about how to pass arguments to class ...
6
votes
2answers
155 views
Filtering options with pgfkeys
I am looking for an example of how to get pgfkeys to split a list of options so that: (1) some of the options are processed now, and (2) the rest of the options are passed to a second macro for ...
6
votes
2answers
145 views
Save choice and execute later in pgfkeys?
Using pgfkeys, I would like to have a choice key which, rather than immediately executing some code when a value is selected, stores the selection somewhere and then later on demand I can execute the ...
2
votes
0answers
161 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}
...
8
votes
2answers
413 views
pgfplotstable: How to access column name?
I have used \pgfplotstableset to assign column names in the preamble. However, I don't know how to access them.
\documentclass{article}
\usepackage{amsmath}
\usepackage{pgfplots, pgfplotstable, ...
5
votes
1answer
195 views
pgfdeclareshape with variable dimensions using pgfkeys
I am trying to define some shapes for TikZ using \pgfdeclareshape. I would like to use options to make their size adjustable, however I do not get it to work. This example compiles, but the size of ...
5
votes
2answers
444 views
creating a fifo symbol with pgfdeclareshape
I'm compiling with:
pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2011.7.8)
pgf 2008/01/15 v2.10 (rcs-revision 1.12)
tikz 2010/10/13 v2.10 (rcs-revision 1.76)
...
0
votes
0answers
90 views
Mathematical Expression of PGFkey [closed]
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[ymax=2, ymin=0]
...
2
votes
1answer
281 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
2answers
275 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 ...
15
votes
4answers
547 views
Multiple TikZ keys with foreach
Playing around with pgffor, I'm trying to slightly modify an example from the TikZ/pgf manual:
\path \foreach \x/\content/\style in {%
0/a/draw,
1/b/{draw,red},
2/c/{circle,blue},
3/d/draw%
} ...
1
vote
1answer
386 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
1answer
608 views
Package pgfkeys Error: I do not know the key '/tikz/ '
I have an error when I want to compile the LaTeX code below when I set \var to 1.
Otherwise I have no problem.
The error I got is: Package pgfkeys Error: I do not know the key '/tikz/ '
Could you ...
3
votes
0answers
112 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}
...
7
votes
2answers
197 views
Restoring previous value of PGF/TikZ key?
How does one restore the previous value of a PGF/TikZ key?
For example, I would like to set the inner sep of a matrix to 0em but set the inner sep of nodes within the matrix to be the value that ...
6
votes
1answer
123 views
pgfkeys - .is family handler
This might seem a trivial question, but not for someone wanting to understand pgfkeys very well. In the following definition from pgfkeys package, why can't the \edef be replaced by \def? I have asked ...
4
votes
1answer
64 views
Spaces in pfgopts options
Is there a simple way to allow spaces in the options of a package using pgfopts to process them, which is local to that package i.e. I don't have to include some package in the main document before ...
4
votes
1answer
206 views
Problem with default values with pgfkeys
I try to make a fine macro to display the dimensions of lines inside a technical figure. This problem appears in several questions and answers but I would like to add some refinements. The next code ...
2
votes
1answer
175 views
pgfkey containing a foreach statement with a variable number of values
I would like to use pgfkeys in a macro. One key contains a foreach statement which handles a variable number of values. I have some problems concerning the right order of the output. Here a simplified ...
2
votes
2answers
104 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
...
4
votes
2answers
281 views
Some questions about pgfkeys code
(1) In the expression
\def\pgfkeysgetvalue#1#2{\expandafter\let\expandafter#2\csname pgfk@#1\endcsname}
#2 will be let to \relax whenever pgfk@#1 is undefined. Is this harmless in pgf? Even if it ...
13
votes
3answers
297 views
The '.is if' handler of pgfkeys
Let us start with an example from the pgf manual, version 2.10, page 495:
\pgfkeys{/flat world/.is if=theworldisflat}
\pgfkeys{/flat world=false}
\def\x#1{% code-A
\iftheworldisflat
Flat
...
4
votes
1answer
386 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 ...



