Linked Questions

137
votes
8answers
35k views

Is it possible to change the size of an arrowhead in TikZ/PGF?

I'm trying to draw an arrow with a bigger head than normal. Is it possible without changing the style of the line itself?
39
votes
3answers
4k views

Dimensioning of a technical drawing in TikZ

Is there is an easy way to mark dimensions in a technical drawing with TikZ? Is there a library or something? Edit I am using XeLaTeX. Update I chose Martin's answer because it serves me well ...
20
votes
5answers
5k views

Label angle with tikz

I am able to draw a nice right triangle with \begin{tikzpicture}[thick] \draw (0,0) -- (4,0) node[midway,below]{$f$} -- (4,2) node[midway,right]{$\frac{x}{2}$}-- cycle; \end{tikzpicture} Now I ...
16
votes
5answers
5k views

drawing tree using tikz, child overlap

I am trying to draw a tree but unfortunately i have some childs overlap each other,I increased the sibling distance , even i have used the option scale but i have the same problem. here is my code : ...
16
votes
4answers
837 views

How can I draw a TikZ element multiple times against a shaded background?

If I have two tikzpictures drawn: \documentclass{article} \usepackage[margin = 1in]{geometry} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing,calc,shapes,shapes.geometric,patterns} ...
12
votes
5answers
1k views

How do I draw a little red square to label my right triangle?

The sample code: \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw ( 0 , 0 ) coordinate (A) -- ( 4 , 0 ) coordinate (C) -- ( 0 , 3 ) coordinate (B) ...
16
votes
2answers
405 views

Blend/transparency styles in pstricks and TikZ

As depicted below, Illustrator offers various transparency styles: It is my understanding that, at this point, pstricks and TikZ are both limited to the normal style listed above. Could the other ...
13
votes
4answers
628 views

tikz declare function and babel french option

I would like to declare functions in tikz for multiple uses of the same function within the code. Sadly, it seems that the tikz "declare function" is not compatible with the french option in babel. ...
11
votes
2answers
1k views

pgfplots: mark max/min value of a function

How can I mark the maximum or minimum value of a function like x^2 in pgfplots? \begin{tikzpicture} \begin{axis} \addplot+[mark=none] plot {x^2}; \end{axis} \end{tikzpicture}
9
votes
3answers
314 views

Problem with babel and tikz using \draw

I'm trying the next code: \documentclass[pdftex,spanish]{article} \usepackage{babel} \usepackage{tikz} \begin{document} Simple arrow: \begin{tikzpicture} \draw[->] (-1.5,0) -- (1.5,0); ...
3
votes
3answers
437 views

How can I make the diamond-e framework in TikZ?

I am trying to construct this in TikZ but I am having a terrible time doing it. I was hoping someone can improve the code, I have below and make it look similar to the picture. \begin{tikzpicture} ...
5
votes
3answers
442 views

Improvement of PSTricks code for drawing of balls in a triangular box

Consider the following. Code % pdflatex -shell-escape test.tex \documentclass{article} \usepackage{auto-pst-pdf,pst-eucl} \usepackage{expl3} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n ...
6
votes
2answers
389 views

Partial triangular arrows with TikZ/PGF

I'd like to draw a partial arrow (i.e. with only "half" of the tip) but with a triangular tip shape (e.g. using >=latex), instead of the standard single line you get with "left to", "right to", etc. ...
10
votes
2answers
344 views

Referring to tikz picture again in the same document

I couldn't really think of a reasonable title for this question; but anyhow, here goes: I saw a very interesting question and solution today here: \documentclass{article} \usepackage{tikz} ...
3
votes
3answers
391 views

Overlap in graphing TikZ picture

I'm drawing trees in graph theory. Some of the nodes are overlapped. Can anyone help? % Red-black tree % Author: Madit \documentclass{article} \usepackage{tikz} ...

15 30 50 per page