Andreas Leha <andreas.l...@med.uni-goettingen.de> writes: > Hi all, > > attached is a small patch that makes it possible to 'evaluate' latex > source blocks to tikz files.
Applied, thanks. > > When the :file header argument has a value ending in '.tikz' the > content of the body of the source block will be copied into the > resulting tikz file. This makes handling of tikz figures with > captions easier. > > Here is a use-case: [...] > This example works well besides some weird scaling/placement issue. > The best way I've found to deal with scaling/placement of raw or inline tikz is to use the subcaption and adjustbox packages as in the following example. % latex \begin{figure} \centering \begin{minipage}[b]{0.32\linewidth} \adjustbox{width=1.0\linewidth}{ \begin{tikzpicture} % ... \end{tikzpicture} } \subcaption{\small part 1} \end{minipage} \begin{minipage}[b]{0.32\linewidth} \adjustbox{width=1.0\linewidth}{ \begin{tikzpicture} % ... \end{tikzpicture} } \subcaption{\small part 2} \end{minipage} \begin{minipage}[b]{0.32\linewidth} \adjustbox{width=1.0\linewidth}{ \begin{tikzpicture} % ... \end{tikzpicture} } \subcaption{\small part 3} \end{minipage} \caption{Example with three sub-parts} \label{fig:example} \end{figure} -- Eric Schulte http://cs.unm.edu/~eschulte