This tag marks questions about the basic layer of the TikZ/PGF graphic language stack. For questions about higher layers use the tikz-pgf tag.

learn more… | top users | synonyms

32
votes
8answers
11k views

What is the easiest way to draw 3D cube with TikZ?

I'm trying to find the easiest way to draw a 3D cube (it's for my UML diagram) with TikZ. Could you please give an example? Like this:
19
votes
1answer
3k views

What is the advantage of using \includegraphics instead of \pgfimage for ordinary image inclusion?

The TikZ & PGF manual says that ‘LaTeX’s \includegraphics is designed better than pgf’s image mechanism’ and that ‘LaTeX users are encouraged to use \includegraphics to include images.’ But is ...
12
votes
4answers
990 views

Tikz shape similar to rectangle with selective drawing of borders

I am looking for a tikz shape similar to the rectangle shape, but with the possibility of drawing individual borders selectively. Also when used with rounded corners, the corners missing a border ...
18
votes
1answer
954 views

Reuse of soft path in fading declaration? Transformation of fadings?

This question led to a new package: pgf-blur I have an idea for a fairly realistic-looking fading drop shadow, that works with almost arbitrary node shapes. This would also give a generic ...
4
votes
1answer
503 views

How to animate a path or how to draw starting fraction of a complex but linear path?

I would like to reproduce something similar to Animating Protocols but with a compound path and not a straight one. \documentclass{standalone} \usepackage{tikz} \usepackage{animate} ...
6
votes
2answers
720 views

How to raise a generic curve. Problem with \pgfdeclaredecoration

The goal I want to obtain is to have a parallel curve to a generic curve defined in a \draw command trough TikZ. To achieve it, I used the TikZ decorations library and the command ...
12
votes
2answers
2k views

Custom shapes in TikZ

I am trying to define a new shape in TikZ following the instructions of section 75.5 of the manual. Reading the question Drawing mechanical systems in LaTeX, I started to think that a "mechanical" ...
21
votes
5answers
620 views

Parsing text letter by letter

The PGF package has a module named parser that can parse a block of text from an initial state to a final state letter by letter. For example, the following MWE will parse a given text and count the ...
5
votes
2answers
990 views

creating a fifo symbol with pgfdeclareshape

I'm compiling with: pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2011.7.8) pgf 2008/01/15 v2.10 (rcs-revision 1.12) tikz 2010/10/13 v2.10 (rcs-revision 1.76) ...
9
votes
2answers
649 views

Making a PGF shape

I'm having terrible trouble trying to declare a new shape with PGF and would appreciate help. What I would like to achieve is: where the lighter grey boxes are \nodepart anchors, and the base shape ...
2
votes
3answers
610 views

Length, surface, and coordinates of a tikz-pgf path

I need to perform computations on the points that belong to a tikz-pgf path. More specifically, I want to know how many points have a y coordinate exceeding a given value, and I want to calculate ...
5
votes
2answers
1k views

How to use pgf-math inside an argument?

I response to xport's recent questions, I tried to do the following \usepackage{pgf} [...] \rule{\pgfmathdivide{4}{3}\pgfmathresult mm}{5mm} Unfortunately, this fails with the following error ...
4
votes
1answer
236 views

Determine if within a PGF axis environment

Is there an easy way to test whether a macro is called from within an PGF \begin{axis}...\end{axis} environment? One solution would be to define a new environment myself that sets a flag at ...
7
votes
1answer
175 views

Logarithmic scaling of picture in tikz

I'm looking for something along the lines of \begin{scope}[scaling=logarithmic] ... \end{scope} The reason is, that I'm trying to visualise whether the Minkowski sums of some specific sets in R^2 ...
7
votes
2answers
2k views

Using form-only patterns with variable: possible TikZ bug

While trying to use a variable pattern in TikZ with varying pattern color, I found that it did not seem to work. Here's a minimal working example: \documentclass[tikz]{standalone} ...
7
votes
1answer
137 views

Why do my “to path” arrowheads disappear when I upgrade to PGF 2.10?

Since I upgraded to PGF 2.10, some of my arrows drawn with to don't look right anymore. For instance, they are missing arrow-heads, and some other styles I applied to them have also disappeared. For ...
5
votes
1answer
853 views

Line with transparence changing with TikZ

I'd like to have a colored line that starts with transparent 100 and ends with trasparent, let's say, 30. I tried this code: \documentclass{standalone} \usepackage{tikz} ...
1
vote
1answer
1k views

Acrobat on Windows doesn't recognize the images from pdflatex pdfs generated on Ubuntu [closed]

I'm dealing with an annoying behaviour of my pdf file. It seems that Acrobat or Reader doesn't recognize the images. I work with texlive on Ubuntu 11.04 and I compile the source file with pdftex in ...
1
vote
2answers
410 views

Flushing PGF commands and local variable

I think I need a way to flush the PGF commands as the reference to \LabelText uses the last value, and not value at the time of invocation. The macro LabelPoint is intended to replace the first ...