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

12
votes
2answers
2k views

Is there an advantage to using LaTeX graphics instead of eps or pdf?

Back in my first courses I learned that the best graphic format to use when plotting data with gnuplot (which will later be used in a LaTeX document) is eps (encapsulated postscript). I didn't really ...
6
votes
2answers
2k views

partially filled, tilted cylinder in TikZ [closed]

I have a diagram I'd like to reproduce in TikZ: Picture a can (cylinder of radius r and height L) that has liquid in it. In each diagram, the can is tilted so that the surface of the liquid just ...
3
votes
5answers
1k views

xy diagram: set height of a specific row

I'm using the xy package. In the diagram $$\xymatrix@R=8mm@C=8mm{ & 1\ar@{-}[ddl]\ar@{-}[dr] & \\ & & c\ar@{-}[dd]\\ a & & ...
8
votes
2answers
1k views

Defining a new command for making functional lines / package

As you have probably guessed from the title my mother tounge is not English. Therefore I have no idea if "Functional lines" is the correct term for what I am looking for. Basically I am looking to ...
14
votes
4answers
4k views

Reduce vertical space between bars in pgfgantt

Is it possible to reduce the default vertical space between bars in pgfgantt? The manual specifies "last line height" but there appears to be no "line height" option. ...
6
votes
2answers
415 views

How to do overlaying and solve line drawing problem in this TikZ example?

I'm working on a picture (code given below) and I've stumbled onto two problems: Lines drawn from the DRAM to the GPGPU don't connect properly. Also, when regenerating the picture the DRAM and GPGPU ...
4
votes
2answers
490 views

Convert a picture or figure to EPS or PDF file

In my document I'm embedding figures using the following code: \begin{figure}[!t] \centering \def\svgwidth{1.2\columnwidth} \resizebox{\columnwidth}{!}{ \endlinechar=255\relax ...
1
vote
2answers
317 views

Complicated diagram with xy (everything is wrong)

I'm trying to create a diagram for the countable direct limit in algebra. The following code $$\vspace{-1mm}\xymatrix{ &&& A\ar@{-->}[dd]^{\exists!\alpha}\\ ...
4
votes
1answer
619 views

Best way to replicate the node diagram in LeeMcq08?

Q: What would be the best (I'm sure there's some subjectivity involved) way to replicate the univariate distribution relationship diagram of LeeMcq08? From what I can gather Inkscape and TikZ along ...
7
votes
2answers
6k views

pgfplot: Customize the axis wide scientific notation multiplier

Hy Guys, I'm experiencing two problems with ticklabel formats. First, if I explicitly set scaled y ticks = true, the base ten notation still appears at every tick. Here's the diagram: Here the ...
12
votes
5answers
869 views

How would you produce the following exact hexagon?

I'm somewhat familiar with the array environment, but I'm not sure what the best approach would be to produce this diagram: How would I make this, or diagrams similar to this? The slanted arrows ...
12
votes
1answer
3k views

spiral spring in tikz

I'm aware of the possibility to easily draw linear springs with tikz but what about spiral springs (torsion)? It looks like there is nothing ready and a long journey in pgf is necessary. I could ...
1
vote
1answer
387 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
562 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
579 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 ...
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!] ...
3
votes
2answers
412 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
246 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
623 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 ...
5
votes
1answer
885 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 ...
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
6k 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} ...
11
votes
4answers
12k 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
648 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? ...
13
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
852 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
2k 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
523 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
90 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 ...
4
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 ...
2
votes
1answer
596 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
5k 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
772 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 ...
23
votes
1answer
7k 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
841 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 ...
8
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.)
43
votes
2answers
16k 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 ...
9
votes
2answers
672 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} ...
5
votes
2answers
494 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
419 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.