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

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
3k 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). ...
27
votes
1answer
19k 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
4k 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
842 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
306 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% ...
41
votes
2answers
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
926 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
698 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 ...
41
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 ...
47
votes
11answers
51k views

Best way to generate a nice function graph in LaTeX?

Which is the best way to put function graphs 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
898 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, ...
4
votes
2answers
305 views

How to specify an arbitrary slope with the vector command?

i want to draw a vector with the vector command, but it seems like that the slope must be specified in integers less than some limit, thus commands like \put(0,10){\vector(8,7){200}} will failed to ...
6
votes
2answers
1k views

How to nest xymatrix in Xy-pic

This is a bit of a long post, so apologies in advance. I would like to nest xymatrices in Xy-pic so that entire xymatrices would be treated as single entries in another xymatrix. I tried the obvious ...
4
votes
2answers
3k views

Center flow chart horizontally

I have the following flow chart but it appears uncentered. How can I center it? \documentclass{article} \usepackage{pstricks} \usepackage{pst-node} \usepackage{pst-blur} \pagestyle{empty} ...
7
votes
2answers
735 views

TikZ: Labeling objects and referencing them

According to the TikZ manual I can use name= to assign a label to the drawings, but when I do the following: \begin{tikzpicture} \draw [ blue, thick, name=e1] (10pt,10pt) ellipse (50pt and 30pt); ...
7
votes
3answers
712 views

On lozenge diagrams

In the literature of sequence transformations, some algorithms are nicely represented as lozenge diagrams, e.g. or in an extended form, I could probably cheat and use matrix, array or some such ...
6
votes
3answers
949 views

How to generate postscript files from LaTeX pictures, with correct dimensions?

I have a document containing, among other things, some figures created using the picture environment. Now I need to create a postscript file for each figure, but if I simply copy them into otherwise ...
4
votes
1answer
479 views

Tikz and enlarging part of the draw. [closed]

I plotted a number of curves on the same figure using tikzpicture. but i am having a problem with enlarging part of the curves on the same figure. I searched for that and i found something similar on ...
27
votes
8answers
3k views

How to draw triangular grid in TikZ?

Is there an easy way to draw a triangular grid in TikZ, like this?
12
votes
3answers
2k views

Grouping objects and applying operation to the group

Forgive me for my perhaps naive questions, I am beginning to discover Tikz potentials. To ease certain operations as moving objects or transforming them, I want to know if there is a mechanism in ...
12
votes
6answers
3k views

How do I draw bar graphs in my LaTeX documents?

I have set up the TexLive distribution on my Ubuntu system. What graphics or graph-drawing package should I use to embed bar graphs in my LaTeX documents?
11
votes
4answers
2k views

Drawing arrow heads without the tails in TikZ?

I have an ellipse in a TikZ diagram and I would like to indicate a direction using an arrow head, but do not wish to draw the path leading up to the arrow head. I currently have \draw[->] (0,2) ...
28
votes
2answers
3k views

Drawing a hypergraph

What is the proper way to draw a hypergraph? Is there a package to do this, or is there an easy way to draw such diagrams with a common drawing method like tikz? I'm trying to draw something like
10
votes
3answers
2k views

Pushouts and pullbacks

How do I typeset that little symbol which indicates that a commutative square is a pushout or pullback square? I usually draw my diagrams in XY-pic, so I'd be most interested in how to do it there. ...
14
votes
4answers
1k views

What is the best way to typeset spectral sequences?

While writing articles about algebraic topology, I have had to typeset spectral sequences. These are tools for calculating homology and cohomology. Examples appear on page 10 of this book by Hatcher. ...
50
votes
2answers
7k views

Wordle-like word clouds

Wordle creates word clouds based on the frequency on words in a text, similar to tag clouds. What makes it unique is that it can lay out words in arbitrary directions without too much white space. See ...
59
votes
7answers
27k views

Typsetting UML class diagrams

What's the best way to draw UML class diagrams in LaTeX?
13
votes
4answers
4k views

What is a good way to draw Dynkin diagrams in LaTeX?

I'm about to start writing something up which includes a fair number of Dynkin diagrams, and I can think of several ways of going about it: Just draw the darn things in, e.g., InkScape, and include ...
37
votes
8answers
8k views

How to draw a torus

Is there an easy way to draw a contour image of torus below with tikz? Or for that matter with any other graphics package.
65
votes
9answers
28k views

What graphics packages are there for creating graphics in LaTeX documents?

What packages do you use and recommend for creating graphics in your LaTeX documents? As this is a community wiki post, please add your package to the accepted answer (or add a comment, and ...
53
votes
4answers
12k views

How do I insert an image in LaTeX so it looks good on print?

LaTeX documents print beautifully, but images often looks "ugly", "pixelated" or "low-res" compared to the text. By images I don't mean photos, which I rarely use, but rather diagrams, charts and ...