TikZ is a higher-level drawing language built on top of the PGF graphics framework. For questions specifically about the PGF layer use {pgf-core} instead. Both tags are possible on the same question. The tag {diagrams} is also compatible with this tag.

learn more… | top users | synonyms (3)

30
votes
0answers
527 views

PDF/A compatibility with TikZ

When a LaTeX document contains TikZ figures with color gradients, it seems that Acrobat Pro's preflight function can no longer convert the PDF to comply with the PDF/A-1b standard. For instance, the ...
20
votes
0answers
672 views

A script language for beamer animations?

This is a follow-up question to Clever beamer animation? Writing a script that changes a tikz picture in beamer? as suggested there, I will put a bounty on this one. What I seek is a set of macros, ...
13
votes
0answers
319 views

How to use arrowheads from a unicode math font in TikZ diagrams under XeLaTeX or LuaLaTeX?

I like arrowheads in my TikZ diagrams to match the math font arrowheads. For Computer Modern, this is no problem: the TikZ arrows library provides matching arrowheads. But I often use other fonts ...
9
votes
0answers
666 views

best practice to include (standalone precompiled) graphics

General understanding I know that several people have asked about how to include plots and graphics (created by tikz and pstricks) into a latex document. What is the best way to include Matlab ...
8
votes
0answers
110 views

Did one manage to get the new dvisvgm driver from PGF 3.0 to work?

Background: PGF 3.0 added a new, direct way to create SVG. It now has a dvisvgm driver (pgfsys-dvisvgm.def) which has fewer (claimed) limitations than the pgfsys-tex4ht.def driver. Except it doesn't ...
7
votes
0answers
96 views

3d cube with a surface

I want to draw a unit shell showing the arrangement of the atoms as shown here. (Zumdahl, Chemical Principles, 5ed., Houghton Mifflin, p. 773.) I've come up with the following code that draws the ...
7
votes
0answers
303 views

Why isn't the arc drawn on the good plane using tikz-3dplot in Tait-Bryan convention

As some people on tex.sx, I used the tikz-3dplot and changed some commands to use Tait-Bryan convention instead of the default Euler convention. As you can see on the following picture, the rotation ...
6
votes
0answers
103 views

Draw Tikz highlighting on the background of text

I was recently referred to Cool Text Highlighting in LaTeX for Tikz highlighting-underlining. I've managed to modify Antal answer to my needs but I can't seem to achieve the following: I'd like the ...
6
votes
0answers
101 views

How to draw revolved disk shape using TikZ?

Is there an elegant way to rotate this shape about the axis and draw in 3D? Ideally I would like to be able to draw a revolved view of this as 180 deg, 270 deg and the full revolution at 360 deg. ...
6
votes
0answers
86 views

tikz foreach loops: is there an equivalent of metapost's step?

I apologise if I'm using and searching with incorrect terminology. This seems an obvious question (to me) so I'm surprised I've not found anything (and so assume I'm missing something). In metapost, ...
6
votes
0answers
173 views

Cube with louvre planes in LaTeX

I have this code which produces the diagram below: \documentclass{article} \usepackage{tikz} \usepackage{verbatim} ...
6
votes
0answers
87 views

TikZ library creation

I'm wondering about the best (ie faster) way to create a new Tikz library. Let's assume I have the components in a PDF/SVG/whatever vector graphic program. There is a possibility to directly convert ...
6
votes
0answers
126 views

Doing things to every page of a multi-page table

So, the designers did their job and specified coloured backgrounds and rounded corners for all tables. Like so: As described here, this requires doing nasty things like putting the whole table ...
6
votes
0answers
286 views

Typography and style - good choices for font styles in TikZ or pgfplots graphics?

When creating graphics or graphs with TikZ and/or pgfplots, one can put several commands to format the text to his likings. My question is: what are sound possibilities to format the elements in said ...
6
votes
0answers
144 views

how to add parameters to shape which internally use 'append after command'

years ago Mark Wibrow provided me the following code to adding text in inside border of a (rectangle) shape on this comp.text.tex thread: \documentclass[tikz,border=5mm]{standalone} %%% code from ...
5
votes
0answers
50 views

Style with 'transparency group'

Can we define a style telling "put all arrows on the same transparency group as the path" ? In the following example, I would like to redefine ephemeral style such that the blue and the red arrows ...
5
votes
0answers
46 views

Tikz arrows on loops not showing up

I am trying to draw a diagram with arrows between boxes. Most of them show up fine, but an arrow head on a loop from a node to itself does not. I have defined a custom arrow head since the default ...
5
votes
0answers
127 views

Fonts Compatible with Laser Cutting

Pretty straightforward question: My friends and I have access to a laser cutter and we are making a word clock. Thus I was wondering if anyone knew of a LaTeX font compatible with laser cutting such ...
5
votes
0answers
32 views

Cannot use pgf-blur twice with XeLaTex

The following code \documentclass{article} %\def\pgfsysdriver{pgfsys-dvipdfmx.def} %this line does not matter \usepackage{tikz}\usetikzlibrary{shadows.blur} \begin{document} \begin{tikzpicture} ...
5
votes
0answers
71 views

\coordinate intersection does not work appropriately in TikZ

I was trying to use TikZ to sketch some graph but something weird happened. I was trying to use "intersection" to get the coordinate of the intersection of two lines, but strangely, there is always ...
5
votes
0answers
102 views

dashed calligraphic curved parenthesis

I tried to get a dashed curved brace but I didn't got exactly what I expected. Here is the code I used and the result below. \documentclass{standalone} \usepackage{tikz} ...
5
votes
0answers
129 views

Cross in particular plane in 3D

I'm creating tikz graphics in (x,y,z) Cartesian coordinate system. I'm defining objects (circle in my WE) in some plane using \tikzset{xyplane/.style={canvas is yx plane at z=#1}}. I noticed it ...
5
votes
0answers
147 views

Draw background lines dashed in TikZ-3dplot depending on view position

In the graphic the red line is partly covered (in the background) of the 3d-object. Is it possible to draw the background parts of the lines dashed (or calculate the "intersection" points)? After ...
5
votes
0answers
103 views

Bad segment length evaluation in Tikz l-system

I would like to draw a fractal tree with Tikz lindenmayersystems library. Here is the code I use: \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{lindenmayersystems} ...
5
votes
0answers
248 views

How to draw (and paint) the Voronoi regions of a series of points using Tikz?

How can I draw (and paint) Voronoi regions of a series of points in plane using Tikz? How about if the points are in 3d space?
5
votes
0answers
149 views

Absolute path for pgf externalisation

The graphic externalisation works well when it is done in a subfolder of my TeX files with the command \tikzsetexternalprefix{figures/} However, I get an error message when I try to set a different ...
5
votes
0answers
2k views

How to incorporate and scale matplotlib plots in latex using the PGF backend?

I am using the pgf backend of matplotlib to generate pgf files which I want to put into my latex document using tikzscale to be able to resize them easily. Example python code: #!/usr/bin/env python ...
5
votes
0answers
291 views

Common label for a groupplot

This can be considered a combination of the following questions How can a title be placed for a group of pgfplots? Align ylabels of grouped plots at a common line The following piece of code ...
5
votes
0answers
107 views

TikZ - bug in \pgfarrowsdeclarecombine*?

Can someone tell me if the following is a bug? MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \pgfarrowsdeclarecombine{onetwo}{onetwo}{triangle 45}{triangle 45}{open triangle ...
5
votes
0answers
317 views

Font size for TikZ picture datavisualization

This is a folloup question to: set fontsize for TikZ figure As I mentioned I design my pictures around the fontsize, therefore it is good for me if I can set the font size to a particular size for ...
4
votes
0answers
90 views

TikZ: Is \tikztonodes incompatible with arc?

Consider the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows, decorations.text, decorations.pathmorphing, decorations.markings, positioning, shapes} \usetikzlibrary{} ...
4
votes
0answers
85 views

Transform paper folding diagram to 3D object or vice versa

I made this commands to make paper models, and I ask if it is possible to have a 3D view of them converting in tikz-3D, or backward. But it's easier to draw the flat model and generate the volume ...
4
votes
0answers
124 views

Reasons to prefer tikz or pstricks over any GUI driven graphics tool

If I need a figure for a document I usually use TikZ or PSTricks. Sometimes I would like to promote it to other people who usually use only GUI programs for such kind of stuff. But then I restrain ...
4
votes
0answers
45 views

Text highlighting that works with CMYK xcolor mode?

I looked at Cool Text Highlighting in LaTeX, and as my MWE (below) demonstrates: ... the first part, highlighted with soul's \hl, fails when [cmyk]{xcolor} is used. The accepted answer in the link ...
4
votes
0answers
82 views

tikz: draw a piece of a path between given coordinates

I have a path in my application that I want to split up in smaller paths. These, I would like to draw with a label attached to them. Take the following image as an example: The upper arc is split ...
4
votes
0answers
113 views

Unknown TikZ/pgfplots error with external

I am trying to compile a large document (PhD thesis) and I have no problems compiling without using external, but as soon as I enable that feature, it has problems. So far I haven't found the answer ...
4
votes
0answers
87 views

Global definition of pgfplots axes style conflicts with colorbar

I am trying to plot an individual colorbar (with no axis), using the code below (MWE): \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.3} \begin{document} ...
4
votes
0answers
96 views

How to typeset a letter or grapheme specimen with alternates?

I want to print a font specimen for certain letters, each of which should cover a complete A4 page. The Open Type font contains many letters with several glyphs, which are accessible as character ...
4
votes
0answers
60 views

Error 'Dimension too large', with TikZ and PGF

I have adapted an example from TEXample.net (Original author: Andreas Menge, http://www.texample.net/tikz/examples/3d-graph-model/) for creating parallelepipeds with a helper grid to give perspective. ...
4
votes
0answers
206 views

What is a good BPMN tool in Tikz

I'm looking for a nice package (or tool) to write BPMN diagrams directly into my documents. However, I had no luck so far. I found several tools that may help doing the diagrams, and then exporting ...
4
votes
0answers
250 views

pgfplots: howto read touchstone files (s1p, s2p, s3p,…)

With pgfplots you can simply create nice plots that seamlessly integrate into your tikz figure. As a high frequency engineer you will inevitably use a network analyzer to measure S-parameters. The de ...
4
votes
0answers
88 views

Bottom margin not respected with tikz and verticaly centered boxes

I've been working on making a Cards Against Humanity clone in TeX and have everything but this one last bit working. The text on one card is long enough that I need to stick the logo/game name on the ...
4
votes
0answers
123 views

TikZ: turn a box into a shape

I want to turn a rectangle with ports in the top and bottom into a shape I can use with a node. How can I do this? \documentclass[tikz,14pt,border=10pt]{standalone} %%%< \usepackage{verbatim} ...
4
votes
0answers
158 views

TikZ Chromaticity Diagram

I'm trying to make a chromaticity diagram in tikZ, does anyone know how to make one? I want this My issue is not in forming the spectral locus that I can do, right now I'm only using three points ...
4
votes
0answers
158 views

How to exclude or remove weekends from ganttchart

Hi there and sorry for the incomplete question which only a psychic could answer :-) My problem is that I want to have my nice ganttchart or time schedule, but without including weekends. As my ...
4
votes
0answers
213 views

Chains in nested tikz pictures

I am trying to draw a complex item (consisting of multiple \nodes) as a cohesive whole using a nested \tikzpicture. My outermost picture uses a chain, onto which every \node is put. My inner picture ...
4
votes
0answers
398 views

3d arrows in tikz, or arrows that fit perspective

I'm trying to draw a 3d arrow in a 3d box (well lots of them actually). I've got the 3d box sorted, but the arrow doesn't look quite right. I've set up my axes/projection with: ...
4
votes
0answers
186 views

Problems with pgfplots, loops inside tikzpicture and reading from files

I was trying to implement this method (How to import ASCII coordinates to TikZ) to import coordinates and draw them, but I am having this problem Undefined control sequence \end{tikzpicture} Extra }, ...
4
votes
0answers
114 views

tikz figure on beamer

How could we make the following figure, while having in each "click" one curve with a comment for it, and at the end having the whole shape? For the tikz figure How could I make curves in that way ...
4
votes
0answers
158 views

pgfplots: Plot only parts of table and in “random” order

I have been lurking around stackexchange for a long time and so far been able to find solutions for my newbie problems but now I'm really stuck! My problem is probably not that complicated, yet a bit ...