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

1
vote
1answer
402 views

Formatting problem with lyx

I am writing a report in Lyx. I have included many images in the report. And I am having bit of problem with the placement of the image in the final report. I include a image in a section and ...
2
votes
1answer
591 views

Generate Entity-Relationship Diagram then generate SQL from that

Using a LaTeX or similar text-macro tool/library, how can I generate an Entity-Relationship Diagram then generate SQL from it?
1
vote
1answer
604 views

math.SE-compatible LaTeX for diagrams with non-horizontal “decorated” arrows?

I'm looking for LaTeX directives that I can use in posts to math.SE to make category-theory-style diagrams that use non-horizontal (vertical, slanted, curved) arrows, both "plain" (i.e. the non-...
1
vote
1answer
2k views

Generating UML Entity-Relationship Diagrams in LaTeX

Would you recommend LaTeX for this kind of UML diagramming? http://yuml.me/ is great for quickly drawing Use Case and Class diagrams. Please recommend a library of some sort for LaTeX, or ...
2
votes
1answer
2k views

Use of Tikzpicture and Includegraphics

The following codes output only the line but the figures are disappeared. Could anybody suggest how to force both the drawn line and the figures in the output? Many thanks! \begin{figure}[ht!] \begin{...
3
votes
2answers
438 views

Why does the tableau package raise the error “undefined control sequence” for \newpsstyle?

I'm running ubuntu 11.04, and trying tableau to draw logic diagrams for the first time. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{ifsym} \...
7
votes
1answer
256 views

How to put one cartoon in the background of one book

I would like to add one cartoon in the right margin of odd pages in one book. More precisely, ... ... the page #1 must contain the picture #1, ... the page #3 must contain the picture #2, ... the ...
25
votes
2answers
3k views

Drawing path diagrams with minimal effort?

I wonder how to draw such path diagrams with minimal effort.
9
votes
2answers
2k views

How can I show base-2 long division?

I am writing a report in Latex and need to represent the CRC computation. So basically, I need to show the Paper-n-Pencil Method of Long Division in LaTeX. Any idea how I can approach this problem ? ...
3
votes
3answers
637 views

Visualization backend for simple diagrams

Could someone recommend a solution for coding this kind of diagram into a TeX document? Background: Looking for further ways to make everything in my papers replicable or at least communicable in ...
6
votes
1answer
1k views

Word clouds in LaTeX

In this question a solution using ConTeXt. I'm not familiar with this engine (i.e. ConTeXt), and thus I don't know how to "translate" Aditya's answer to LaTeX... I downloaded IBM's tool, and now what....
1
vote
1answer
1k views

Diagram draw with xy package looks wrong

I'm trying out the xy package and have compiled one of the examples on this website: http://en.wikibooks.org/wiki/LaTeX/Creating_Graphics#Xy-pic \begin{displaymath} \xymatrix{ A \ar[d] \...
7
votes
1answer
7k views

How to create a bar chart in which the y-axis is expressed in percents?

Suppose there is a chart like the following: This chart was created using the code: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[...
13
votes
4answers
13k views

What's the best way to embed Visio diagrams?

I was wondering if there is an easier (and better) way of embedding Visio diagrams into a LaTeX document. As far as I know there a two ways: Save Visio Diagram as PNG and use \includegraphics Save ...
13
votes
4answers
2k views

Does LaTeX have a built-in scripting language?

Say I want to draw a simple graph in LaTeX. I'm interested to know if you can write a for loop or something to create things like lines or squares programmatically in LaTeX.
3
votes
1answer
692 views

Graph-like structures with Qtree

The Qtree package is "a LaTeX package for drawing tree diagrams." Is it possible to draw simple graph-like diagrams with it, similar to the one depicted below? If not, should I resort to TikZ-qtree?
15
votes
1answer
2k views

What's the name of this timeline package in LaTeX?

I tried searching through many resources to identify the package that allows to create this type of time lines: but all in vain. Could anyone, please, point in the right direction?
15
votes
4answers
922 views

Any nice packages for word alignment?

I want to visualize word alignments between sentence pairs, where the positions of aligned words may differ between the sentences, and a word in one sentence may be aligned to more than one word in ...
7
votes
2answers
3k views

Ditaa diagrams in TeX (LaTeX) document

I would like to make Diagrams in AsciiArt style. I've found Ditaa tool very usefull. I was happy to find, there is Eps output addoon for it. What the easiest, but clear and elegant way (following ...
6
votes
2answers
1k views

picture in enumerate item with floating text

I have a list with some text items and I want to add a picture to one of the items, so that the text of that item is floating to the left of the picture. If I use wrapfigure my picture gets placed at ...
3
votes
1answer
579 views

Is pict2e a replacement for picture?

I'm confused by the role the pict2e package plays vis-a-vis the picture package. I used to believe that it is an enhanced replacement, but that's obviously not the case as the following example ...
1
vote
0answers
91 views

How to create a diagram for the content of a text? [duplicate]

Possible Duplicate: Draw Image (Data flow) I would insert in a document TeX a diagram representing the relations of dependence between its contents. I mean something like the diagram on page 5 ...
5
votes
2answers
2k views

Easy way to type more kinds of arrows?

There is \rightrightarrows to produce two parallel arrows, \longrightarrow to produce a longer arrow and \xrightarrow to produce an extendable arrow. But is there an easy way to produce two long ...
8
votes
1answer
1k views

Theorem decorations that stay with theorem environment

I am typesetting a document using the memoir documentclass. Currently, my theorems have the following definition (using macros provided by the ntheorem package): % THEOREMS \theoremheaderfont{\...
2
votes
1answer
625 views

I do not know the key '/tikz/insert path'

Trying to compile this example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[remember picture,overlay] % A path that follows the edges of the current page \...
7
votes
1answer
6k views

strategy / payoff matrix

I am trying to create a strategy matrix in LaTeX such as Any suggestion would be greatly appreciated. I would like there to be two values in each cell, aligned as in this diagram.
6
votes
1answer
794 views

plot 1d curves in 3d space with nice looking intersections

I am trying to draw multiple colored one-dimensional parametric curves in three dimensional euclidean space. The curves themselves do not intersect in 3d, but ...
24
votes
1answer
8k views

Cisco Icons for network diagrams

First of all thanks for this great site. My foray to Latex has been easier than I thought. My company are producing technical documentations of as-built network projects from Structured Cabling to ...
19
votes
3answers
4k views

Breaking pictures across multiple pages

I am a relative TeX newbie trying to write a new package to generate timelines that can span multiple pages (the existing timeline solutions are not suitable for me, and I would like to write ...
3
votes
1answer
1k views

Drawing electromagnetic tetrahedron diagram having text within node connections

Any idea how to draw this beautiful electromagnetic tetrahedron (due to F.W. Hehl and Y.N. Obukhov) using LaTeX code?
4
votes
2answers
871 views

Better arrowheads in commutative diagrams

The Fourier package gives a different look for the arrowheads, which looks nice to me. I also want to use this arrowhead in the commutative diagrams. I have tried Taylor's diagrams package, xy-matrix, ...
4
votes
2answers
4k views

stripe pattern tikz manual chapter 78

Interleaving two colors in a stripes pattern Aim: coloring a shape (rectangle, circle, etc.) in two interleaving colors with the aid of patterns. One solution would be the definition of four ...
9
votes
1answer
1k views

How to draw a hypergraph (forest)?

How can I draw a hypergraph structure (a.k.a. forest) like this: (Note: This is not a duplicate of this question, of course, since that drawing is very different.)
46
votes
2answers
19k views

Which package can be used to draw automata?

I'm looking for a LaTeX package which helps drawing automata problems. I googled and found A package for drawing automata and graphs (Version 0.4). But I'm not sure is this package a standard one, or ...
10
votes
2answers
741 views

automatic resizing of edges with long labels

I would like to know if there is a way to automatically resize edges when they have long labels. For example, the following code \documentclass[10pt]{article} \usepackage{tikz} \usetikzlibrary{...
5
votes
2answers
522 views

Height of sparkline

I'm trying to place a sparkline in a ctable using the sparklines package. \documentclass[11pt]{article} \usepackage{ctable} \usepackage{sparklines} \begin{document} \ctable[ caption = ...
4
votes
2answers
447 views

Commutative Diagrams in Table of Figures

Should one treat commutative diagrams as figures within the figure environment? If not, is there a way to add a label/caption and have the page number and caption show in the Table of Figures (without ...
1
vote
4answers
1k views

Help with figures in TikZ

How can we make Figures 1 and 2 below with TikZ and LaTeX? In Figure 2, I want to give different colors to different quadrants.
1
vote
1answer
788 views

Draw a box around each element of the xy-pic

How could I draw lines (like those in a tabular environment drawn by \hline and |c|c|c| in the following code? \resizebox{\textwidth}{!}{ \xymatrix{ x_0 \ar[dr] & x_1 \ar[d] \ar[dr]...
2
votes
2answers
629 views

How can I align text, a diagram and a set of equations at the top?

I used the right environment + commands but I don't understand why my "1." the top of the diagram and the first line of the equation don't line up. Whatever else follows doesn't have to be aligned but ...
0
votes
3answers
327 views

Help drawing a figure with pgf

Here's an image of what I am trying to draw:
4
votes
1answer
2k views

Example of system architecture picture in TikZ

I am looking for an example of a system architecture diagram in TikZ. I would like to draw a picture similar to this one: Therefore I search for existing shapes for: cloud (Current State), database ...
8
votes
1answer
558 views

How to make multiple lines precisely converge in one point on an axis?

I am trying to produce a sequence/time diagram showing the synchronisation process of a master and slave in the Precision Time Protocol using TikZ. Being very new to TikZ I don't know much more than ...
18
votes
3answers
10k views

Problem with TikZ and vertical alignment of text inside nodes

I have a problem in TikZ with the vertical alignment of text inside nodes. With a very minimal example like this: \usetikzlibrary{arrows,positioning,shapes.geometric} \begin{tikzpicture}[% ->, ...
14
votes
3answers
7k views

How should I draw a singly/double linked list?

I need to draw some singly and double linked lists for a CS paper and I don't know what package should I use. As far as I've searched over the Internet I can't seem to find a good one. Maybe TiKZ/PGF? ...
6
votes
4answers
543 views

(Commutative) diagram with long labels on vertices

I am trying to draw a diagram that looks something similar to the following: ############## ---------> ############## \ / \ / ######...
6
votes
2answers
3k views

Block Diagrams Multi Input - Multi Output Components in TikZ

My problem is to define blocks (mainly rectangles) that has labels in them in terms of matrices (mostly block diagonal) such that the n-many arrows that goes in this rectangle visually is at the same ...
11
votes
2answers
8k views

How to draw up a hierarchical tree diagram for taxonomic classification

Please show me the most simple, elegant code for this: How to do it in other words.
3
votes
3answers
720 views

Kan extension in beamer.

I'm trying to include the diagram of a Kan extension in a beamer presentation (see the nLab page for an example). I've achieved to draw it through \xymatrix without the natural transformations symbol (...
2
votes
1answer
300 views

How can I make an arrow returning to same entry in xymatrix?

I'm trying to make a diagram with arrows returning to the same entry using xymatrix. The following example works perfectly fine. \[ \xymatrix{ V \ar@(dl,ul)[]^{h'} \ar@<0.5ex>[r]^{i} & W \...