Questions tagged [tikz]

TikZ is a set of higher-level TeX macros for producing vector graphics that use PGF (Portable Graphics Format)

TikZ is a set of higher-level TeX macros for producing vector graphics that use PGF (Portable Graphics Format)

470 questions
13
votes
2 answers

What is the best technology for drawing trees and graphs?

What is the easiest, clearest way to draw graphs and trees for CS theory assignments? I am not happy with any of these solutions: text-based: ugly tikz latex package: cumbersome for larger trees Adobe Illustrator: time-consuming Has anyone…
flutillie
  • 554
  • 1
  • 7
  • 19
12
votes
3 answers

How to export every TikZ image to a separate pdf file?

I'm creating some graphs for my thesis in a single .tex file using the TikZ package in LaTeX. I'm using the standalone document class so that my graphs are generated without whitespaces. How can I export every graph in a separate PDF file so I can…
Kostas
  • 270
  • 1
  • 3
  • 10
12
votes
2 answers

How to handle text nodes that contain text that goes below baseline?

I have the following problem with Tikz/Latex: I have some nodes that contain text. Most text doesn't have letters that reach below the baseline. But for those nodes where it happens, the ratio and placement of node height and text/baseline is off.…
ziggystar
  • 28,410
  • 9
  • 72
  • 124
12
votes
2 answers

Is ggplot2's continuous color scale incompatible with knitr's tikzDevice?

I've been using knitr with R base graphics and tikz output for a while now, and wanted to try out ggplot2 instead. However, this minimal example fails to produce any output with knitr 1.0.5: \documentclass{article} \begin{document} <
Taral
  • 327
  • 1
  • 15
11
votes
1 answer

How to perform "complex" calculations in LaTeX/TikZ

I expect this question has already been answered a thousand times, but I just cannot find a solution to my issue =( I want to calculate some values in LaTeX (TikZ), some of which are lengths (e.g. 10 pt), some are not. As long as calculations are of…
Thargon
  • 424
  • 1
  • 3
  • 12
10
votes
1 answer

Getting data from a chart that is displayed on a website

I was asked to draw a graph like this one using Latex (more precisely, tikz and/or pgf). This would not be a problem if I had the data, but I don't. All I have is the website from where graphs can be displayed, but I don't know how to get the data…
Vivi
  • 4,070
  • 6
  • 29
  • 44
10
votes
1 answer

How to increase the font size of one node label in tikz

I have a tikz picture: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning, shapes, shadows, arrows} \begin{document} \thispagestyle{empty} \tikzstyle{abstract}=[circle, draw=black, fill=white] \tikzstyle{labelnode}=[circle,…
StatsSorceress
  • 3,019
  • 7
  • 41
  • 82
10
votes
2 answers

Enter a line break in node text in Latex Tikz library

I've just started using Latex to produce a maths-heavy document. I wanted to include a probability tree and found the Tikz library. The first bit of the code for my tree looks like: %To create probability trees, use tikz…
user1718097
  • 4,090
  • 11
  • 48
  • 63
10
votes
1 answer

Control font size in graphics in LaTeX when scaling in minipage/subfig?

I am using pgf/tikz graphics and I'm wondering how one can control the scaling of font sizes in the graphics when using them in minipage/subfig environments? Is there a way to manually set a permanent font size for pgf/tikz graphics or in latex in…
Jay
  • 2,917
  • 3
  • 18
  • 13
9
votes
1 answer

Is there anyway to export D3 JS graphs into LaTeX tikz graphs programmatically?

There are many ways of exporting R graphs and R Tables quickly into LaTeX using the R tikzDevice (on the R side) and the LaTeX tikz package (On LaTeX side). Have a look at this blog article for more info. Are there any automated method or JS library…
HB87
  • 413
  • 7
  • 16
9
votes
3 answers

Tikz: draw edge from node to label of another edge

I'm trying to figure out how to draw an edge between a node in tikz and the label of an edge between two other nodes. Here's an example of what I'm trying to do: Here's my code: \documentclass[11pt]{article} \usepackage[margin=1in,…
par
  • 103
  • 1
  • 1
  • 8
9
votes
4 answers

Latex, TikZ and separate compilation of chapters and figures

I have fairly large Latex document with a lot of TikZ figures inside. I have a habit of frequent recompilation and it takes forever to compile it using pdflatex. Figures in TikZ take most of the time. My question is what is the best way to split…
Łukasz Lew
  • 48,526
  • 41
  • 139
  • 208
8
votes
1 answer

Producing stacked 3D blocks using TikZ

I have started to learn TikZ for producing figures however I am still being limited to very simple drawings (lines, texts, etc.). Almost all the figures I need to build will ressemble 3D rectangular blocks following each other with sometimes writing…
jeandut
  • 2,471
  • 4
  • 29
  • 56
8
votes
4 answers

Tikz externalize issue when using pdflatex with -output-directory

When using pdflatex with -output-directory I run into issues when externalizing tikz figures. While the .md5 files are created where I expect them the command creating the externalized picture files (.pdf, .log, .dpth) fails. My assumption is that…
Nils
  • 81
  • 1
  • 1
  • 3
8
votes
3 answers

iPython notebook plantuml extension

How can we use plantuml UML tool in iPython notebook? It should helpful for us since UML figure is frequently used during paper work. After some google from internet, I have found one excellent reference for Using Asymptote in iPython notebook, then…
lucky1928
  • 8,708
  • 10
  • 43
  • 92
1
2
3
31 32