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)

3
votes
2answers
547 views

I need pointers on how to draw my neural-network diagram

Please help me draw this diagram. I'm practicing on TikZ, but it's so difficult. I don't know which library I should use, matrix/chain or another something ? I also don't know how to draw a circle ...
2
votes
1answer
428 views

tikzposter text justification in blocks

I have started to use the tikzposter class and I wonder why the text inside blocks is flushed left by default instead of justified. How can I change the text alignment in blocks to be fully justified? ...
21
votes
5answers
1k views

Visualizing functions on the integers

I want to give a good visualization of two functions on the integers. Is there a way to write something that looks like this: I thought of using tikz, but I am not sure how.
2
votes
1answer
228 views

Repairing old tkz-2d TIKZ Example

I want use the following TikZ example: TikZ Example Intersecting arcs However, the package tkz-2d has been superseeded by tkz-euclide. It produces numerous errors and the ouput is a little dot. ...
13
votes
3answers
460 views

How to invert even-odd filling?

Consider the following code. It uses eofill filling rule where only the region bounded by odd number of strokes will be filled. Is it possible to invert this rule such that the region bounded by even ...
1
vote
1answer
936 views

pgfplots: multiple legends or one legend and a heading

In my plot, I want my standard legend that says what value of c corresponds to what color. However, I would also look to put the function in plot. \documentclass[tikz]{standalone} ...
0
votes
1answer
127 views

Alignment of graphs

\documentclass{article} \usepackage[demo]{graphicx} \usepackage{subfig} \usepackage{tabularx} \usepackage{tikz} \usetikzlibrary{arrows} ...
1
vote
1answer
634 views

Labelling tikz nodes AND edges

The following is a snippet of the original. It works.., \documentclass[12pt]{article} \usepackage{tikz} % drawing support \usetikzlibrary{trees,arrows,decorations.markings} ...
7
votes
3answers
602 views

Numbering nodes in a for loop

I've just started using TikZ to make basic graphs, and I'm trying to reproduce the Petersen graph. I've managed to make it without using for loops, but this obviously isn't a great method for bigger ...
4
votes
1answer
514 views

How to make add tick to node in tikz

I'm trying to draw a simple timeline in tikz. Here's what I have: \documentclass[12pt,a4paper,bibtotoc]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} ...
2
votes
1answer
676 views

Using current path position in coordinate calculation

I often find myself writing code like this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \node (aNodeWithALongName) at (1,1) {a}; \node ...
4
votes
1answer
881 views

TikZ picture in header with opacity

I have a very similar problem mentioned here. But I like to put a tikz logo with transparency in the heading of the document using fancyhdr. If I compile the example below by enabling any of the two ...
4
votes
2answers
3k views

How to Make This Block Diagram with LaTeX

I understand that there are some questions here regarding the block diagrams. However, I am strongly interested in one particular style shown as below: This is a picture from a paper. As can be ...
6
votes
1answer
1k views

Graph of sin(1/x) in pgfplots and TikZ

I try to draw the graph of sin(1/x) on domain (0,1]; using pgfplots, it seems to work, but with TikZ plot-function, it doesn't. What am I doing wrong? My code: \documentclass{standalone} ...
6
votes
1answer
280 views

Why overprint-environment not fix position?

I use overprint environment in beamer with two columns, when overlay it move down and the last slide has some space. How can I solve this problem. \documentclass{beamer} \usepackage{tikz} ...
5
votes
2answers
373 views

Shading a Region Between Two Dashed Lines

I have drawn an axis with two dashed vertical lines: \begin{tikzpicture} \begin{axis}[ axis x line=middle, axis y line=middle, ymin=-6, ymax=6, ytick={1,3,5,-1,-3,-5}, ylabel=$y$, ...
4
votes
1answer
159 views

Tikz or tabular to build up a table

To build up a table like the one from the picture with this wierd shape and diferent line thikness, would you go with tabular or with tikz ?
2
votes
1answer
112 views

Simple horizontal path

I am trying to create just a simple horizontal arrow (line 1) from Advertiser to Scanner above line 2 in a certain distance. Since too much time I am trying to find out the right grammatics but ...
3
votes
1answer
180 views

vertical distance between two graphics in sidewaysfigure environment

I have two tikz graphics in a \sidewaysfigure environment and i want to separate them with a little vertical spacing. The problem is that the two graphics are directly side by side, only the caption ...
5
votes
1answer
5k views

Questions about my cv header and cover letter

I am working on my cv and my cover letter and I have different questions. My current code: \documentclass[11pt,a4paper]{moderncv} \moderncvtheme[green]{classic} ...
13
votes
2answers
405 views

Typewriter in TikZ node

A small example: \documentclass{standalone} \usepackage{tikz} \begin{document} \tikz{\node[text width=1cm]{\tt totot\\t t t};} \tikz{\node{\parbox{1cm}{\tt totot\\t t t}};} \end{document} As you ...
4
votes
1answer
236 views

How to change label of \pgfcalendarweekdayshortname?

I will build the calendar in other langauge (thai) with tikzlibrary. I can change the \pgfcalendarmonthname but the \pgfcalendarweekdayshortname, I can't. The following code has errors. ...
5
votes
1answer
341 views

How do I decorate a parametric curve with text in Tikz

Nothing I'm doing is allowing me to get a compilable, decorated path. The MWE shows two attempts \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} ...
5
votes
2answers
393 views

Color legend in Y axis

I have the following multiple y-axis plot that results in the image on the top image. However, I want to add a sort of legend in each of the Y axis, similar to what I manually drew in the bottom ...
4
votes
1answer
3k views

Varying edge thickness

A couple of months back, I had asked a question regarding an elegant way of drawing a somewhat sophisticated graph. Thanks to the community I received tremendous help. To avoid repeating the whole ...
2
votes
1answer
673 views

Align tikz node labels

I have created the following picture using tikz: \tikzset{ graphnode/.style={ draw,fill, circle, minimum size=0.7mm, inner sep=0 }, } \begin{tikzpicture}[every ...
5
votes
1answer
308 views

Line style not updated when using gnuplot within pgfplots

I have a large data file with multiple columns. This makes it impossible for me to add multiple \addplot commands manually, so I am using gnuplot from within pgfplots. The problem is that gnuplot does ...
2
votes
1answer
216 views

Arrow in sequence diagram is too short for text

I'm struggling with pgf-umlsd. As you can see in the image the arrow does not "grow" with my text length, producing a very ugly layout: My code: \documentclass[a4paper]{article} ...
7
votes
2answers
244 views

How to get a reasonable coordinate system when combining pdfpages and TikZ?

I have been trying to add content to a (proprietary) PDF with LaTeX by using pdfpages to inlude the original pages and draw on them using TikZ. This is the code I have been using: ...
2
votes
1answer
228 views

How do I make my path node follow the path from a certain position?

I am trying to make a diagram with a curved arrow and I want its node to follow the arrow from about the "near end" point. I have been googling for hours now and I can't find the way to do it. I've ...
5
votes
1answer
504 views

Reusing parts of TikZ animation in beamer

I'd like to reuse part of an animated TikZ figure in beamer. Before switching to TikZ, I built PDF animations with IPE, and could select specific pages in the \includegraphics{} command. To do the ...
5
votes
1answer
3k views

How to shift in tikz scope relatively to an object + offset?

How do you shift (0,0) to something like: (MYBOX.west)++(0.1,0)? Here is a MnWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning, calc} \begin{document} ...
2
votes
0answers
100 views

Programmatically converting an integer into bits with graphical output [duplicate]

I just stumbled upon this interesting question about "how to automatically draw tree diagrams of prime factorization with LaTeX" and it rang a bell. I 'd like to create a command that displays the ...
1
vote
0answers
237 views

Drawing a trawling boat with TikZ [closed]

I would like to draw a diagram of a boat with LaTeX and I have started using a package called TikZ which looks very promising but I'm not sure how to use it to draw diagrams other than rectangles and ...
2
votes
1answer
109 views

specifying location of individual nodes in cycle process with tkz

Consider this example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture} \fill [orange] (0.1,0.1) rectangle (12,8); ...
7
votes
3answers
259 views

In tikz is there a way to set a node style to center the center of each node within a given scope

In the following MWE, I know that the commented line works. What I want to know is why the every node/.style approach is not working. \documentclass{article} \usepackage{tikz} \begin{document} ...
7
votes
3answers
288 views

Position both math environment and tikz picture in the tabular

\usepackage{tikz} \begin{document} \begin{tabular}[b]{@{}ccc@{}} \begin{tikzpicture}[grow=right,sloped] \tikzstyle{level 1}=[level distance=2cm, sibling distance=2cm] \tikzstyle{level 2}=[level ...
7
votes
1answer
470 views

A Basic TikZ Drawing

I've not yet had enough experience drawing in TikZ to be able to do it quickly. I also find the manual a bit daunting -- though if I had time, I'm sure it does a fabulous job explaining everything I ...
3
votes
1answer
405 views

tikz-3dplot: Drawing an arc with the let syntax in 3d

How can I use the let syntax to draw an arc when using tikz-3dplot? At the present, the arc is drawn but doesn't look right. \documentclass[tikz, convert = false]{standalone} ...
3
votes
1answer
166 views

rotated text not appearing where expected when using tikz and xelatex

I thought I'd change the font to something none standard from the list of font available on my computer. When I tried to compile the following document, the text that should appear along the spokes ...
2
votes
1answer
108 views

Correctly highlight long ToC entries using TikZ without pagenumbers

Using this answer, I have highlighting for chapters in my Table of Contents. For long chapter names, however, the box is wonky, because P1.north west and P1.north east do not span the entire line: ...
6
votes
1answer
512 views

generate circular path with tikz and include empty node

In the following example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[every node/.style={inner sep=1pt}] \node (1) ...
3
votes
1answer
292 views

tikz sloped lines

I would like to draw lines at a specific angle with tikzpicture. But it doesn't work the way I think it should. Example: \documentclass[a4paper,12pt]{article} \usepackage{tikz} \begin{document} ...
1
vote
1answer
663 views

Replacing an arrow with an inclusion symbol in Tikz

Instead of an arrow from one place to another, I'd like to have the \subseteq symbol. More specifically, the \subseteq symbol rotated, which I believe can be rendered \rotatebox{90}{$\subseteq$} . ...
8
votes
1answer
1k views

How do I get \pgfmathparse to create value rounded to one decimal place?

I'm trying to place a grid over an image to help me place other object where I want on the image. But, I'm having difficulty getting tikz to show coordinates as I wish. Here's my MWE: ...
6
votes
1answer
277 views

How to change style of a node based on its name?

I've create pie charts using pgf-pie and I have exactly the same problem as in this pgf-pie issue. I changed pgf-pie code to draw small percentages outside of the main circle. But I have one problem ...
1
vote
1answer
94 views

unexpected tikz style behaviour

I was doing a figure based on drawing some rectangles which the area represents the relative amount of such element and I encounter two unexpected situations: (1) I decided to go with rectangles to ...
2
votes
0answers
55 views

TikZ external Library and pgfplots reading data from external txt file [duplicate]

I'm using the external library of TikZ for speeding up the compilation of my LaTeX document. In another thread, Christian Feuersänger reported that from December 2012, the external library uses MD5 ...
3
votes
2answers
640 views

Using a coordinate with a pin, on an edge with TiKz

I am trying to get a pin edge to touch another edge, under the influence of shorten: \begin{tikzpicture}[s/.style={->,shorten >=1ex,shorten <=1ex}] \node (a) at (180:1) {$a$}; \node ...
9
votes
3answers
499 views

Animating a TikZ picture

I would like to animate the following picture so that the length of the blue box becomes smaller and smaller. Using the overprint environment along with \transduration{0.2} makes the job. However, ...