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

24
votes
4answers
5k 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 ...
282
votes
5answers
60k 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 ...
14
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?
7
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; ...
10
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
7
votes
2answers
2k 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
494 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 ...
12
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). ...
30
votes
1answer
23k 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
3k 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). ...
23
votes
4answers
6k 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?
7
votes
2answers
1k 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
313 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% ...
50
votes
3answers
43k 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
3k 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, ...
16
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
1k 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 ...
7
votes
3answers
3k 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 ...
39
votes
2answers
10k 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 ...
14
votes
6answers
7k 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
741 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 ...
47
votes
4answers
7k 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 ...
60
votes
11answers
76k 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 ...
21
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
4k 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
1k 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
6k 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
6k 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
347 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 ...
5
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
798 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
787 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
1k 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
488 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 ...
29
votes
8answers
4k views

How to draw triangular grid in TikZ?

Is there an easy way to draw a triangular grid in TikZ, like this?
13
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
3k 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) ...
30
votes
2answers
4k 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
11
votes
3answers
3k 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. ...