I'm aware that one can use \tikzstyle{every label}=[...]
to apply styles to every label within a tikzpicture
; or \tikzset{mystyle/.style={...}}
to apply style specs to a specific type of node mystyle
(from this answer); however, I'm having trouble finding style specs that meet my needs, mostly because I don't know what types of options are valid TikZ and what aren't.
For example, I wanted the labels x
, y
, and z
in the take-grant diagram below to be in bold roman type, but not the labels on the edges. It turned out that adding the \tikzstyle{every label}=[font=\bfseries]
was what I needed, but it took a lot of mostly fruitless searching before I found that. Is there a concise resource which lists all of the style specs one can use?
More generally, although the TikZ manual gives lots of thorough examples of using options for nodes, paths, and styles, it does not appear to be comprehensive. Am I missing something? Are there better resources for enumerating options in general?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{arrows,topaths}
\begin{document}
\begin{tikzpicture}[>=stealth',semithick,auto]
\tikzstyle{subj} = [circle, minimum width=8pt, fill, inner sep=0pt]
\tikzstyle{obj} = [circle, minimum width=8pt, draw, inner sep=0pt]
\tikzstyle{dc} = [circle, minimum width=8pt, draw, inner sep=0pt, path picture={\draw (path picture bounding box.south east) -- (path picture bounding box.north west) (path picture bounding box.south west) -- (path picture bounding box.north east);}]
\tikzstyle{every label}=[font=\bfseries]
% Before diagram .........................
\node[obj, label=below:x] (xa) at (0,0) {};
\node[subj, label=below:z] (za) at (1,0) {};
\node[dc, label=below:y] (ya) at (2,0) {};
\path[->] (za) edge node[swap] {$t$} (xa)
edge node {$\alpha$} (ya);
\node at (3,0) {$\vdash^{*}$};
% After diagram .........................
\node[obj, label=below:x] (xb) at (4,0) {};
\node[subj, label=below:z] (zb) at (5,0) {};
\node[dc, label=below:y] (yb) at (6,0) {};
\path[->] (zb) edge node[swap] {$t$} (xb)
edge node {$\alpha$} (yb)
(xb) edge[bend left=60] node {$\alpha$} (yb);
\end{tikzpicture}
\end{document}
Best Answer
Here is a list of 710 keys (automatically extracted from the pgfmanual):
Edit:
Here is a command to extract automatically all the documented keys from the TeX files of pgfmanual (the result is not perfect):