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)

0
votes
1answer
39 views

How to make such a CV in LaTeX?

I am not good to LaTeX. I think I need tikz? It should look like this Can anyone help me? How to do that? Which documentclass should be used, how to make the sectioning look like that on the photo, ...
-2
votes
0answers
49 views

How can I draw the following diagram?

Please, How can I draw these diagrams using TiKZ ? r = r_{0} e^{bt}, \theta= bt x= R cos wt, y=R sin wt, z=hwt
1
vote
1answer
15 views

Configure newenvironment with xkeyval

I am having trouble getting xkeyval to work with \newenvironment. If I define the whole thing as a command instead, it works perfectly. So my guess is that the problem is not how I use xkeyval, but ...
0
votes
0answers
27 views

The specification “font=\footnotesize” is ignored in a node command

I have code that labels a function, a horizontal line, and a point with the node command. (Is this called a "command"?) I use the specification "font=\footnotesize" in the node command each time to ...
1
vote
0answers
28 views

Labeled Petersen graph with new tikz graph library

Following up on Petersen graph with new tikz graph library, I tried to label the vertices with something different than numbers. I thought the following would work: \documentclass{standalone} ...
2
votes
2answers
91 views

How do I add beautiful borders to the title page

I want to add an attractive border to the title page alone. Please explain how I can do this?
2
votes
1answer
29 views

Meshed Tree and horizontal orientation

I want to implement a tree like shown in the pictucre in tikz: I found the forrest package, but wasn't able to achieve neither the 'half-horizontal' shape nor the 'meshed' shape yet. I would ...
2
votes
1answer
74 views

Trimming TikZ grid

I have the following picture: obtained from: \begin{tikzpicture} \draw (0,0) grid (4,4); \draw[invmidarrow=0.5] (0,0) to[out=110,in=250] (0,2) (0,2) to[out=70,in=190] (1,4) (1,4) to[out=10,in=170] ...
2
votes
1answer
92 views

Make a Sequence of Pictures with TikZ

Recently, I often want to illustrate graph algorithms through a sequence of pictures as in My current method to do this is to create a chain, and then place a nested tikzpicture in each node. As ...
1
vote
1answer
39 views

How to add a text label to a line in a block diagram

I'm very new to LATEX and I'm trying to set a block diagram and at the same time format it exactly as I'd like, please see my block diagram below: https://www.writelatex.com/1492096yphfwt#/3712155/ ...
6
votes
10answers
470 views

How might I typeset the Fano plane in LaTeX?

I'm sorry if this is a duplicate in any way or is otherwise a lousy question. How might I typeset the Fano plane in LaTeX? In particular, I need a vector graphic of it and I would prefer to use the ...
2
votes
1answer
65 views

Euler diagram missing a part

Claudio Fiandrino provided a good answer to my question on Complex Venn Diagramm (actually a Euler diagram). I did alter the code somewhat to make the figure more resemble my previous Venn diagram ...
1
vote
0answers
22 views

Nested environments to scale tikzpicture [duplicate]

I found this nice solution to scale a TikZ picture to \textwidth and wanted to use it within an own defined environment. \documentclass{article} \usepackage{tikz} \usepackage{environ} \makeatletter ...
1
vote
1answer
46 views

How to re-center a “standalone” TikZ image to be converted to png

I’m trying to construct png icons following the method explained here. Below is an example file that needs to be adjusted because part of the border is eaten up (all the upper part and the very end ...
3
votes
0answers
37 views

Is xelatex compatible with pgf masks?

When making my presentation with beamer I use xelatex to get nice fonts or I use pgf package to make images with transparent backgrounds. Unfortunately, I cannot use both at once as xelatex ignores ...
4
votes
1answer
73 views

Zigzagging Flow Chart

I would like to have a flow chart that moves is a ZigZag from top to bottom. I thought I could do it with a layered graph and with orient switching but that doesn't seem to be working for me. So far ...
1
vote
0answers
22 views

draw plot \x^2, sign error [duplicate]

I try to plot quadratic fonction. \documentclass{article} \usepackage{tikz} \begin{document} bad, negative square equal...negative! \begin{tikzpicture} \draw plot (\x,\x^2/4/1.0); ...
6
votes
2answers
119 views

help with complex plane image

Is it possible to draw the following image to replace -1i and 1i with just -i and i? Thanks! \documentclass[landscape]{article} \usepackage{tikz} \usepackage{pgfplots} \RequirePackage[scaled]{helvet} ...
4
votes
3answers
648 views

Complex Venn Diagramm

Further to my question on Venn diagrams overlapping color filling, I have the following MWE: \documentclass{book} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{shapes,fadings,patterns} ...
3
votes
1answer
83 views

End of proof symbol in tikz environment

I have a (tikz) diagram (a matrix of math modes) at the end of a proof and would like to place the end of proof symbol on the height of the last line of the diagram. I tried to place \qedhere in the ...
1
vote
1answer
32 views

How do get Tikz arrows.meta working with Ubuntu and TexLive

The Tikz arrows.meta package does not work on my Ubuntu 14.04 installation. When I attempt to compile a Latex file with \usetikzlibrary{arrows.meta} I get the error ! I can't find file ...
4
votes
1answer
32 views

How can we set the parbox width to fractional multiple of horizontal unit of tikzpicture?

In the following code, I set the horizontal unit of tikzpicture to 1/20 of the width of an image. I also want to use \parbox with a fractional multiple of this unit as its width. ...
6
votes
1answer
69 views

Make “axis cs” the default coordinate system in a PGFPlots plot

I would like to know if there is a way to specify axis cs to be the default coordinate system inside a plot in PGFPlots, so I don't have to type axis cs: in front of every coordinate pair. Here's a ...
3
votes
1answer
53 views

Overlapping labels in tikz barplot

I have a problem with the placement and size of nodes in my barplot. I changed the size in the code from \small to \tiny: every node near coord/.append style={font=\tiny} but, the numbers are still ...
4
votes
3answers
120 views

Expansion Issues When Passing TikZ Styles to Macro Created by Macro

I'm struggling (again) with expansions. This time I have a generic function \misdirection that creates a TikZ environment subject to a few options. Then, I create a macro \freezeStyle that creates a ...
3
votes
1answer
106 views

Sigmoid membership functions with tikz

I would like to draw fuzzy membership functions using tikz. The problem has already been solved in Trapezoidal solution for trapezoidal MF, but I need something similar for sigmoidally shaped ...
3
votes
1answer
41 views

tikz Controlling the position of prongs of underbrackets in an equation

I would like to make a two (or more) pronged underbracket (or overbracket). In particular, I would like to control the: number of prongs. position of the prongs by specifying to which characters in ...
0
votes
0answers
39 views

Drawing 2nd background layer in tikz

The code below is the code for a figure I stole from http://www.texample.net/tikz/examples/labs-schema/. I am attempting to modify it heavily by stripping down most of the nodes and installing an ...
3
votes
2answers
32 views

tikz matrix undefined control sequence

I would like to use tkiz matrix but any compilation within a tikz picture ends with error: ! Undefined control sequence. <argument> \pgf@matrix@last@nextcell@options I wonder if there is no ...
3
votes
2answers
105 views

Making TikZ do certain calculations

I want to draw a picture illustrating how a vector field that is invariant under rotation around a point need not be radial in 2D, but does need to be radial in 3D. This question will concentrate on ...
4
votes
1answer
66 views

Tikz/pgf half-arrow stroke always down/left

I want to draw so-called bond graphs with TikZ, where elements (nodes) are connected through half-arrows. I can use a "left/right to" arrow head, use the 3.0 \draw[-{Straight Barb[left]}] (a) -- (b), ...
0
votes
0answers
64 views

How to make this specific block in XeLaTeX

I want to do these "cards" using XeLaTeX. Concerning the above card, I would like to remove the heart, arrow, and action buttons. In other words, I would like to remove the action area 2. Also I ...
0
votes
0answers
16 views

Problems with Babel, TikZ, dot2texi, and Hebrew

I've been trying to run pdflatex (with the -shell-escape flag of course) on the following code but got an error: ! Bad space factor (0). \@savsf \documentclass[english, hebrew]{article} ...
2
votes
1answer
55 views

Filling regions created by plot[smooth] with color

I would like to color each region of the picture by some color. Tikz code: \begin{tikzpicture} \node[draw=none] at (3.5,3) {\scriptsize \ldots}; \node[draw=none] at (0.42,1.47) [text width=1cm] ...
2
votes
3answers
407 views

Creating a diagram in LaTeX, possibly with TikZ?

I am interested in drawing some flow style diagram with arrows, as sketched in the picture to represent the flow of recursion. I was hoping someone could point me in the right direction as to how I ...
4
votes
1answer
72 views

Where can I find a complete list of the standard subgraphs offered by tikz?

One can use subgraph I_nm and subgraph C_n, is there a complete list? In particular I'm looking for a linear subgraph, but a complete list would be extremely helpful. I just found this in the ...
1
vote
1answer
34 views

How can I label inputs to a logic gate using Circuitikz?

Is there any way, or how would I go about adding labels and straight line inputs to logic circuit diagram? The code I have now is as follows: \documentclass[11pt]{article} \usepackage{circuitikz} ...
6
votes
2answers
244 views

drawing smooth path through symmetric points, gives non symmetric curve

I want to make a graphic going through some points. I've choose the points symmetric, to have a symmetric curve, but the curve is not. I could define some extra points, but their must be a better ...
1
vote
2answers
99 views

drawing convex envelope of a function

I am writing an introductory chapter to my thesis report. I want to add a figure that illustrates the convex envelope of a function no matter what function, though, it has to be continuous. I'm not ...
4
votes
1answer
60 views

Problem with a Lua function in a \foreach loop

I have written a Lua function to position dates in a timeline that I am drawing with TikZ. The function seems to work, but when I use it in a \foreach loop I get the following error: ! LuaTeX error ...
2
votes
0answers
48 views

Set tikz font type like text

I have the problem that my labels from lines as from the axis are in a different font as my text. How can I set the tikz font to a similar one as the text? I have the following example: ...
7
votes
1answer
72 views

PDF for the hypergeometric distribution

I wish to plot the p.d.f. for the hypergeometric distribution, and I have been using lua combined with pgfplots. However I get an error when I use the density function with the formula for the ...
4
votes
1answer
81 views

TikZ node label distance depends on length when using tikzstyle

When I include circle in the every node style, the distance from the label to the node depends on the length of the label: \documentclass{standalone} \usepackage{tikz} \begin{document} ...
11
votes
2answers
256 views

\foreach with \newcommand how to use them together?

What I want to do is to shorten this \newcommand with a \foreach since this is just a very little part of what I will use. \newcommand{\CC}{{\mathbb C}} % the set of complex numbers ...
3
votes
1answer
96 views

Figure not centered properly in LaTeX, kindly help!

I am making a figure in LaTeX of which the code is given below. In the end result, the figure is not centered in the page, the page offset from the left is more than the page offset from the right. ...
6
votes
4answers
236 views

Tikzpicture e-function

I have the problem that i get an error message (dimension too large) when i try to draw an e-function: \documentclass[BCOR=3mm,11pt,headsepline,footsepline]{scrbook} \usepackage[ngerman]{babel} ...
5
votes
2answers
141 views

Petersen graph with new tikz graph library

I'm considering moving from tkz-berge to the new tikz graph library for drawing my graphs (in the sense of graph theory). I have produced the Petersen graph, but is there is a more elegant way of ...
6
votes
1answer
58 views

How to make only one part of double bond bold with chemfig?

I'm trying to get this kind of appearance for chemical structure (see highlighted regions): By so far I could manage to do like this: This is my code: \documentclass[12pt]{standalone} ...
2
votes
0answers
51 views

My Markov-Chain Graph is not shown in the right place

This is my Graph: \begin{figure}[htb] \centering \tikzsetnextfilename{kalman} \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node ...
4
votes
3answers
861 views

How to draw the cards of a deck?

How to draw the cards from a deck using a Latex package, as TikZ?