{diagrams} is for general questions about vector graphics created programmatically inside a (La)TeX document. For questions about specific packages, use the appropriate tag, e.g. {tikz-pgf} or {pstricks}. For questions about inclusion of external graphic files, use {graphics} instead.

learn more… | top users | synonyms (1)

8
votes
1answer
2k views

Tikz task diagram (alignment and arrows)

I'm trying to create a diagram like this in LaTeX: This is what I have so far using the assignment structure from texample.net: Code: \begin{tikzpicture}[node distance=.8cm,start chain=going ...
11
votes
1answer
981 views

Need to plot a lattice and the topological building of a torus!

as told in the title I need to plot a lattice on the plane (not the standard one with basis (1,0), (0,1) ) and I'd like to show up how to build a torus starting from its topological square... If ...
8
votes
2answers
5k views

Database Entity Relationship Diagram

Is there a package that will allow me to create a database entity relationship diagram such as the one below?
2
votes
4answers
4k views

Shifting a path horizontally between nodes

With the following extract, how can I x-shift the second edge (edge2) between n1 and n2 so that it doesn't overlap with the first? Also, is there a way to add text to each of the edges so that they ...
6
votes
3answers
4k views

Align edges with anchor other than center

It seems that, when drawing an edge between two nodes, TikZ defaults to aligning the edge with the 'center' anchors of the two nodes. More precisely, the edge points from the center of one node to the ...
12
votes
2answers
2k views

How to get a 4 by 4 chessboard? Or any other size of board.

I've seen some package to draw chessboard on LaTeX such as skak and chessboard. However, after reading the documentation, they don't seem to support a change of the board size. I'm talking about the ...
4
votes
3answers
5k views

Bipartite graphs

I want to draw something similar to this in latex. How can I do it? I want it to be a directed graph and want to be able to label the vertices.
7
votes
1answer
10k views

Which font should be used for diagrams/graphs/flow charts?

I'm using the standard serif fonts in KOMA script for typesetting my thesis, 11pt for normal text. What font and font size would be recommended for use in graphs, diagrams and flow charts? The same ...
1
vote
2answers
1k views

Change the shape of a vertex using qtree

Using the QTree package, is it possible to add a shape to a node? For example, a square or a circle?
43
votes
3answers
14k views

Drawing Mechanical Systems in LaTeX

I really like CircuiTikZ for drawing diagrams in my LaTeX documents. However I mostly draw mechanical and not electronic systems, which is why I'm looking for some similar way to draw mechanical ...
21
votes
3answers
4k views

Molecular orbital diagrams in LaTeX?

This question led to a new package: modiagram I'm wondering if anyone has seen a package for drawing (qualitative) molecular orbital splitting diagrams in LaTeX? Or if there exist any packages ...
1
vote
1answer
361 views

Create Diagram - 4 blank horizontal lines in a row - Labels underneath w/lines or arrows pointing

So I want to draw a diagram explaining names of digit places ('hundreds' 'tens' 'ones'). I want blank lines with these labels underneath. I'm thinking qtree might be an idea (4 top branches being the ...
15
votes
2answers
2k views

Which package can easily write a graph, as an arbitrary curve or area, just for indication

Which package can easily write a graph, as an arbitrary curve or area, just for indication? The circle and ellipse don't be considered for their particular shape. TIKZ's Bézier curve is too ...
2
votes
1answer
567 views

Using the \newarrow command from Taylor's commutative diagrams package

I want to define new arrows to use in a commutative diagram, but I just can't make it work. The documentation is not particularly helpful; it doesn't even tell you where to put the ...
3
votes
1answer
739 views

Numbering chess diagrams (skak)

How do I put a number beside the chess diagram? I want to make a document of chess diagrams to be solved and then the solutions at the end. If someone has a skeleton to make this I would be happy. ...
15
votes
3answers
3k views

Political map in LaTeX

Is there a package that can be used to make political maps in LaTeX? Like a world map or a map of Europe?
12
votes
1answer
1k views

Can I make the page as big as my picture?

This is the reciprocal to How can I create a pdf document exactly as big as my tikz picture?. My understanding of all the answers there is that they extract a picture from a TeX document and strip ...
30
votes
4answers
12k views

Node shapes in TikZ

I want to draw a block diagram for a software app and I need two shapes which I couldn't find on the Internet. The shapes are a parallelogram and a rectangle with double side margins. One is for data ...
12
votes
4answers
7k views

Diagram editors with support for text entry as TeX?

I'm looking for good diagram editors with support for text entry as TeX. I have used ipe and dia in the past, but ipe does not let me change a rectangle (or any polygon) so it'll have round corners. ...
3
votes
1answer
472 views

Producing a PDF with clickable chart

Greetings. John Cook provides a clickable chart of probability distributions with different interconnections. Every node is linked to definition and every arrow is linked to a brief description of ...
19
votes
6answers
10k views

Inner and outer circles of a polygon in LaTeX

How do I draw a circle and its surrounding polygons, for example an octagon, in LaTeX?
9
votes
2answers
878 views

Squiggly line in Asymptote

A somewhat similar question to this one, but in a different language for graphics: Is there a simple way to draw a squiggly line in asymptote?
27
votes
3answers
5k views

Drawing random paths in TikZ

I am looking for a way to draw with TikZ something that looks like a random path. Here is an inspiration: Is it possible to have TikZ generate something that would be similar to a random path ...
2
votes
0answers
476 views

PicTeX files inside a Plain TeX file [closed]

I am using Plain TeX to write my (scientific) texts which usually include many awful equations and graphs (or figures) I am constructing with unsurpassed PicTeX. My big problem is that with my MikTeX ...
24
votes
5answers
4k views

Drawing stars/similar with Tikz

I'm writing a review for a book at the moment, and I thought I'd be clever and show off what LaTeX is capable of by adding a x-out-of-y stars graphic. Tikz can do many things so I would have thought ...
8
votes
3answers
2k views

Create a series of connected, list-filled boxes (flowchart?)

I would like to create a series of horizontally linked 'text boxes', with arrows between each one. Each box will contain some text (probably a list with a title). I would like it to look something ...
6
votes
2answers
328 views

Draw picture next to page number

How can I display (draw) a picture next to the page number. At best, the "style" of the picture would be calculated automatically, depending on the current page number, e.g., draw a circle on even ...
8
votes
3answers
639 views

Hackenbush Diagrams?

I'd like to put diagrams of Hackenbush positions such as the one pictured here in a paper I'm writing. Anyone know how? EDIT: I would also be happy with simpler orientations, such as where the edges ...
3
votes
1answer
668 views

drawing package in tex

I just want to learn how to make graphics in TeX. I have looked through this site and tried some TeX source file. But I am confused by the TikZ and tkz packages. Do they have any relation or are they ...
7
votes
4answers
731 views

What's the best way to draw loop invariants in LaTeX?

I want to draw a picture similar to this one for divide part of Quicksort. What's the best method to do so? Is there a package for it or should I use Tikz to do it? If Tikz can you point me to some ...
6
votes
3answers
2k views

Problem drawing Kiviat diagram

From this post, I started to play with TikZ/PGF to draw a Kiviat Diagram froma a file .dat Suppose to have two file table1.dat and table2.dat live these %table1 column1 column2 8.109115e-001 ...
7
votes
1answer
1k views

possibilities of the picture environment

from what I could find on the net, the picture environment does not offer the triangle shape. It is possible to get something similar with lines but not when you want the triangle to be fill up with a ...
27
votes
3answers
4k views

How to draw Kiviat Diagrams

This question led to a new package: tkz-kiviat Is there a way to draw Kiviat diagrams easily?
23
votes
6answers
5k views

Need recommendations for a drawing tool in LaTeX

I have never used a graphing tool in LaTeX but now I need to draw a picture. It is not very complicated: an xy-plane with axis; a number of points; a number of straight lines and finally two ...
15
votes
3answers
2k views

What's a good package for typesetting quantum circuits?

I want to typeset things that look like I'm already aware of Q-circuit, which has nice custom macros for this purpose, but is based on the relatively slow and clunky XyPic TikZ, which I can use ...
23
votes
4answers
4k views

Is there an easy way to TeX geometric pictures?

Say I want to include geometry graphics such as the following in a document: I don't merely want to import preexisting figures, I want to be able to draw my own corresponding to a solution I may ...
249
votes
5answers
48k views

Drawing on an image with TikZ

Recently I have learned how to draw simple stuff with TikZ. I really like it. Now I wonder if it is possible to draw with TikZ on a image. Instead of pasting a image in Illustrator and adding some ...
12
votes
1answer
3k views

How to draw lines around multiple table cells

\documentclass[fleqn,12pt,a4paper]{article} \usepackage{tabularx} \begin{document} \begin{table}[ht] \begin{minipage}[b]{1 \linewidth}\centering \begin{tabular}{|c|c|c|c|c|} \hline ...
8
votes
3answers
1k views

electronics TeX

is there a good TeX flavor for expressing electronics symbols in documents?
6
votes
1answer
1k views

Asymptote generated 3D raster image

Consider the following minimal Asymptote 3D example: \documentclass{article} \usepackage{filecontents} \usepackage{asymptote} \begin{filecontents*}{testfile.asy} import three; ...
9
votes
3answers
4k views

Best practice for control flow charts

I wanted to plot a flow chart graph which looks similar to this diagram: that comes from this source. Which package would be best for that? I don't want to use pstricks
6
votes
2answers
1k views

Draw Image (Data flow)

I am newbie in this TEX world and I would like to draw something like this: But I don't know where to start. I tried using: \usepackage{pstricks,pst-node,pst-tree} but when I try to use it I got ...
4
votes
1answer
465 views

Can you have curving, empty, broken arrows in xymatrix?

In \xymatrix, the command \ar@{}[dr] |{\text{lab}} typesets an empty arrow, broken by some text. Similarly, the command \ar@/^10pt/ @{->}[ur] |{\text{lab}} typesets a curving arrow, broken by some ...
16
votes
2answers
1k views

Is there a way to draw 3D-style “buttons”?

I was wondering if there is a latex package to get pseudo-3D style "buttons" as are often seen on the web, or if not is there an easy way to draw them? An example of what I mean:
11
votes
2answers
2k views

Difference between 2D and 3D graphics packages

I read that TikZ, PSTricks and MetaPost are 2D vector graphics packages while Asymptote is considered 3D. However I also know that you can specify 3D coordinates in say TikZ so that drawing a 3D ...
10
votes
3answers
4k views

How do I draw parallel arrows in commutative diagrams with TikZ?

How do I draw two parallel arrows having the same domain and the same codomain in a commutative diagram with TikZ? For that matter, how do I draw any sort of parallel paths between two nodes? Do I ...
6
votes
3answers
1k views

LaTeX and graphviz: “no room for a new \write”

I'm using TeXShop on Mac OS X (based on LaTeX) in conjunction with the graphvizzz package in order to draw inline directed graphs in my documents (with the use of write18 and the dot command). ...
28
votes
1answer
20k views

How to make bend lines/arrows with TikZ?

I've been testing out TikZ lately, but I'm still quite new to it. What I want to do is to create a line to indicate that a parameter belongs to a part of the drawing. For example "This surface that ...
4
votes
1answer
2k views

How can I center horizontally but not vertically?

This centers both horizontally and vertically, but I do not want vertical centering. I want the grid to be at the top of the page. (The geometry package works well at defining margins though). ...
21
votes
4answers
5k views

Drawing hexagons

I have a case where I need to draw a hexagonal grid in LaTeX. I am considering just reading the grid from an eps file. Is there an alternative way to do it completely within LaTeX?