Linked Questions

19
votes
5answers
1k views

What do the pgfkeys key handlers .get and .store in do?

When I need to retrieve the value of a key in a macro, I use the key handlers .get and .store in. Here is what is written in the pgfkeys documentation: Key handler key /.get= macro Executes a \...
16
votes
2answers
8k 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 ...
21
votes
2answers
881 views

When to use a regular .initial key or a .store in key?

The excellent pgfkeys package provides, among others, two kinds of keys: regular "value-centric" keys that can be declared with /.initial, and "macro-centric" keys are declared with /.store in. Here ...
13
votes
1answer
5k views

Add arrows to a smooth tikz function

Using this answer here I have been able to draw smooth curves using tikz Easy curves in TikZ but I also wanted arrows along my curves, after a bit of fiddling I came up with the following \...
14
votes
2answers
1k views

Key that takes a list of other keys as argument and sets them

I would like to define a key, let's call it mystyle, which has several subkeys, like mystyle/A and mystyle/B, and I'd like to be able to choose which of these subkeys to set by calling mystyle=A, ...
7
votes
1answer
3k views

Arguments of tikzset inside a beamer document

I am trying to use tikzset with an argument in a beamer document, and I am having an error I do not understand. \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame}{My try} \...
4
votes
1answer
2k views

A simple (indented) integration contour with Tikz

I would like to draw an integration contour which is pretty easy I think, but I am a newbie at the Tikz package. The integration contour goes from -iinfinity to +iinfinity parallel to the Imaginary ...
3
votes
1answer
1k views

Setting global styles with multiple parameters for tikz calendar

I'd like to create a style with parameters for use with the TikZ calendar library. Here's a working example similar to what I want: \documentclass[10pt]{article} \usepackage{tikz} \usetikzlibrary{...
5
votes
1answer
211 views

TikZ: Can a \foreach command run inside decoration = {markings,?

Can I use \foreach inside of decoration = {markings, ...? \documentclass[convert = false, tikz]{standalone} \usetikzlibrary{decorations.markings} \usetikzlibrary{arrows} \begin{document} \begin{...
4
votes
1answer
318 views

Is it possible to define abbreviations for coding?

I am using the tikz-timing package to create a timeline since chronosys and chronology wouldn't cooperate and were too limited and archaic-looking to suit my purposes, and moderntimeline unfortunately ...
4
votes
1answer
296 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} \...