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

13
votes
4answers
796 views

Bending snakes with xy-pic

This is a follow-up to this question: How do you draw the "snake" arrow for the connecting homomorphism in the snake lemma? I'm trying to emulate this snake diagram Aluffi does in his book ...
4
votes
1answer
208 views

LaTeX color package: wrong spacing

I'm making a simple drawing, on which high school students have to complete the drawing.It's a drawing in R², so I also made a raster. If I use black lines for my raster, it is too dark, so I loaded ...
10
votes
2answers
763 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 ...
7
votes
2answers
929 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
336 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 & & ...
7
votes
2answers
558 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 ...
8
votes
3answers
1k 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
261 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
256 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
243 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}\\ ...
2
votes
1answer
348 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 ...
4
votes
2answers
2k 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
583 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 ...
10
votes
1answer
1k 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 ...
0
votes
0answers
626 views

How to create a plot-matrix with Asymptote? [closed]

Till now I mostly used Origin to create scientific plots for my documents but have recently decided to learn a vector graphics language which enables me to produce more beautiful looking plots with ...
1
vote
1answer
180 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
364 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
327 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
957 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
584 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
287 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} ...
6
votes
1answer
185 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 ...
22
votes
2answers
2k views

Drawing path diagrams with minimal effort?

I wonder how to draw such path diagrams with minimal effort.
8
votes
2answers
1k 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
454 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 ...
4
votes
1answer
465 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
528 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] ...
5
votes
1answer
4k 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} ...
8
votes
4answers
3k 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 ...
11
votes
4answers
624 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
395 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? ...
12
votes
1answer
1k 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
461 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 ...
5
votes
2answers
1k 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 ...
4
votes
2answers
400 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
216 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
83 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 ...
3
votes
2answers
720 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
579 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
300 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 ...
5
votes
1answer
1k 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.
5
votes
1answer
504 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 ...
16
votes
1answer
3k 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 ...
13
votes
2answers
1k 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
545 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?
6
votes
2answers
2k views

Feynman Diagrams with tikz

I am trying to find some example code for some very simple Feynman diagrams. Something similar to any or all of the pictures below I was able to find some example code on texample.net, but being ...
4
votes
2answers
550 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
2k 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 ...
-6
votes
1answer
306 views

How to produce figure with TikZ [closed]

Please help in recreating the following figure taken from Student Conceptions of Learning on the second page.
8
votes
1answer
668 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.)

1 6 7 8 9 10