{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)

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
470 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
327 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
656 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
728 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 ...
247
votes
5answers
47k 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?
6
votes
1answer
856 views

Is there any cryptographic-related graphics drawing package?

For example, fig 4.7, 4.8 shows in http://williamstallings.com/Extras/Security-Notes/lectures/blockA.html
3
votes
1answer
307 views

How do I get the spacing in the redefined label box right?

I use the following code to make xy-pic arrow labels multiline capable: \let\oldlabelbox=\labelbox \def\newlabelbox#1{% \oldlabelbox{\vcenter{\normalbaselines% ...
44
votes
3answers
28k views

How can I draw simple trees in LaTeX?

I need to draw a tree, and constantly using dotty and including the PNGs is starting to be a pain. Is there a way to get LaTeX to draw it's own trees that doesn't involve learning an entirely new ...
15
votes
5answers
2k views

How to include graphs in my document?

I've just started using LyX for my Economics essays. Using Inkscape, I have been able to create some very neat diagrams to go with them. However I really need to be able to insert graphs (XY charts, ...
15
votes
1answer
3k views

How to open a temporary comics-like balloon in a beamer slide?

I would like to open a temporary comics-like balloons to explain a specific word in a beamer slide. Somebody has suggestions?
12
votes
3answers
940 views

Typographic conventions for width of figures in LaTeX data analysis reports

I posted this question on stats.SE, but the consensus was that it was better suited to tex.SE. Context: I've been thinking recently about conventions for figure width in data analysis reports that ...
4
votes
3answers
1k views

“Adventure UML” in TeX

I'm new in the world of TeX and I would like to know how can I create something like this. I am Windows user; what tools would be a better choice, which libraries can I use, where can I read ...
6
votes
3answers
2k views

How can I replicate affine Dynkin diagrams in Kac's textbook?

I'm sorry for asking a similar question to this tex.SE question, but my motivation is different. I'd like to replicate the affine Dynkin diagrams as in Kac's textbook, see pp. 53, 54 and 55 of the ...
26
votes
1answer
7k views

Making a (simple) directory tree

I'm trying to make a simple directory tree representation in LaTeX. Something like: spam | +-- ham +-- eggs | +-- more spam +-- dead parrots The tree won't be that long (say, ...
5
votes
4answers
1k views

Commutative diagram generating app

There are various types of commutative diagrams in mathematics, but several of them are the most common place. For example, a square (with 4 objects), a right triangle (with 3 objects), two adjacent ...
13
votes
6answers
6k views

A good tool to make electronic schematics and export them vectorially?

I have to make a relative simple diagram and import it to latex vectorially. What would you recommend me to do this? This question might not be best asked here, but I suspect a lot of you have ...
12
votes
5answers
4k views

Drawing 3d diagrams

I would like to use a few simple 3d diagrams in my LaTeX document. They primarily consist of polyline segments in 3d, along with an occasional simple surface (e.g. paraboloid). There are two ...
7
votes
3answers
705 views

Why do I have so much free space on the left-hand side of my tikz diagram?

Inspired by http://tex.stackexchange.com/questions/3892/ I created my own snake like diagram (see below). The entries are rather large and the figure thus too wide. My question is: Why does the ...
42
votes
4answers
6k views

How do you draw the “snake” arrow for the connecting homomorphism in the snake lemma?

How does one draw the "snake" arrow for the connecting homomorphism when using the snake lemma? I'd also be interested in drawing similar arrows act as "carriage returns" when considering a long ...
50
votes
10answers
53k views

Best way to generate a nice function plots in LaTeX?

Which is the best way to put function plots into a LaTeX document?
7
votes
6answers
1k views

Graphics: Clip or cutout a circle from a circle

I have a very specific problem that needs solving: I would like to produce a shape which can be most easily thought of as a circle or an ellipsis cut out of another bigger circle: Think e.g. the apple ...
19
votes
4answers
3k views

Draw only some segments of a path in TikZ?

Is there a good way to create a path in TikZ only some segments of which are stroked? I want to create the whole path in a single command so that it can be filled, but I also want to stroke some ...
6
votes
1answer
3k views

TikZ `edge from parent` followed by a node.

The TikZ documentation gives the following example for adding a label on an edge in a tree: \begin{tikzpicture} \node {r} child {node {t} edge from parent node {label}}; \end{tikzpicture} ...
14
votes
2answers
930 views

Wordle-like word clouds - can it be done without using an image?

I have seen the answer to this question: http://tex.stackexchange.com/questions/917/wordle-like-word-clouds So yes it can be done by generating an image and inserting it, but that's kind of ...
7
votes
3answers
5k views

Is there a way to resize a figure created with xymatrix?

I've drawn some figures using xymatrix, but they're much larger than I'd like them to be. Is there a way to resize them? I'd be happy to cut them down to a fixed percentage of the original or to a ...
12
votes
3answers
5k views

Mind maps in Latex?

I would like to dump some minds map in latex. I have them following this structure: Although it does not need need to be exactly like in that chart, just some nice way of drawing hierarchical ...
11
votes
3answers
2k views

String replacement in LaTeX

I'd like to know how to replace parts of a string in LaTeX. Specifically I'm given a measurement (like 3pt, 10mm, etc) and I'd like to remove the units of that measurement (so 3pt-->3, 10mm-->10, ...