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

16
votes
2answers
752 views

Creating plasmid diagrams in TeX

I need to create a diagram of plasmid in TeX, which looks like that: The images above are slightly different but show pretty much the same thing so it would be great if I could create any of them ...
8
votes
2answers
294 views

Individual value labels in Kiviat Diagram

I'm using the tkz-kiviat package to draw spider graphs and am quite happy with it. I can see how to add a axis label but how can I label the individual values of each node? There doesn't seem to be a ...
0
votes
0answers
55 views

Label in cyclic arrow diagram [duplicate]

Consider the following code from TeXample.net: How to refactor it for adding sloped labels on the outside of the arrows? Do you have a more elegant solution with TikZ? % Overlapping arrows % ...
7
votes
3answers
822 views

How can I create a 'Nutrition Facts' label?

I'd like to make the Nutrition Facts below. I'm pretty new to LaTeX. I can modify templates I find on the web, define new commands, redefine commands, but I have no idea what a macro is, all my ...
8
votes
1answer
290 views

Typesetting Sorting Diagrams

I am typesetting some diagrams representing sorting algorithms similar to those found in Miller and Ranum Python Book partly as an exercise in learning TikZ. I'm trying to typeset something similar to ...
2
votes
0answers
251 views

Inserting a vertex correction in Feyn - the Lyx Feynman package [closed]

I can't seem to be able to draw a standard Feynman diagram and add a vertex correction like here: http://commons.wikimedia.org/wiki/File:Feynman_second_order_vertex.svg When I try, my fermionic lines ...
9
votes
1answer
486 views

Drawing little semicircle to show that two intersecting lines are not connected [duplicate]

I want my diagram to show that two intersecting lines are not actually connected, but one passes above the other. The best result I would like to achieve would be a small semicircle as used in ...
5
votes
1answer
374 views

Fibre product in LaTeX

I would be thankful if anyone can guide me in writing commands for a fibre product in LaTeX. I would also like to know how to change the angle of the diagram as I want it to be.
6
votes
2answers
376 views

Create a simple 2 panel graph in LaTeX

I am trying to make two panel graph in LaTeX. I don't know how complex it will be. Can anyone suggest what would be the starting point in creating such graphs ? The graph is as follows: I would ...
6
votes
1answer
237 views

Circle with labelled rotated radians

I'm wondering how I can reproduce the following diagrams using TeX: I realize this question is similar to this other question, however I'm not nearly experienced enough to be able to translate ...
9
votes
3answers
404 views

Letter “p” ruining vertical alignment

I have a simple diagram I have created. \begin{figure}[t] \begin{center} \setlength{\unitlength}{10pt} \begin{picture}(24,4) \setlength\fboxsep{0pt} ...
2
votes
2answers
820 views

Blockdiagram with dsp library

I am using the dsp library, http://www.texample.net/tikz/examples/fir-filter/, to create a blockdiagram. Now I got 2 problems. I defined two labels, r and d_i however they are not visible on the ...
1
vote
1answer
2k views

Multiple Images in one frame Beamer

I have to do a presentation for an interview and I want to show in a slide in which there is a list of items after an item a sequence of 3 images that appear one over the previous in a specific ...
2
votes
2answers
470 views

Easiest way of drawing a graph in LaTeX

So, I'm looking for the easiest way of drawing something like this. It's a simple diagram. Is the picture environment the most appropiate one?
3
votes
1answer
212 views

Help with the geometry figure

Can someone help me with creating such a figure in metapost?
2
votes
0answers
94 views

To wrap the external lines so that it can touch the perimeter [closed]

Similar to this, Wrapping a Feynman diagram in an ellipse or a circle?, I am having some in tikz problem making sure the legs of these diagrams touching the perimeter. I tried the following, but I am ...
4
votes
1answer
132 views

Three graphics with tables of data

I need to create a figure like the following. If I have the color plots saved as png images (ie. test.png, rans.png and ddes.png), what would be the best way to create this sort of graphic in LaTeX?
3
votes
2answers
310 views

Draw a Cyclic State Machine with xypic

I want to draw the following diagram : \documentclass[11pt,twoside,a4paper]{book} \usepackage[margin=0.45in]{geometry} \usepackage[all]{xy} \begin{document} \begin{figure}[ht] ...
8
votes
0answers
842 views

How to automatically generate Venn diagrams given the inclusion relations? [closed]

I'm writing a paper about classes of formal languages, and I'd like to have a diagram showing their heirarchy. Something similar to this (from Wikipedia:) Is there a LaTeX package which, I can give ...
1
vote
1answer
188 views

Is it possible to remove the ddots when using umlcreatecall in the tikz-uml package?

I am using the TikZ-UML package to make a UML Sequence Diagram and want to remove the ":" character (separating class and instance name) when using \begin{umlcreatecall}[]{A}{B}. This is possible with ...
7
votes
2answers
305 views

Position shift when adding label to 3D asymptote diagram

I have this strange issue with 3d asymptote diagrams. Without labels they act as a normal figure, but when I add label, the diagram moves to the edge off the page... MWE: ...
5
votes
1answer
227 views

XyPic xymatrix not showing arrow labels with TeX Live-2012

Recently I have upgraded my TeX installation to TeX Live-2012 from TeX Live-2009. Now \xymatrix is misbehaving. The behavior affects both Mac OS X and Ubuntu Linux 12.04 installations. For example, ...
7
votes
2answers
2k views

Commutative Diagrams

Can anyone help me in giving commands for commutative diagrams in LaTeX ? It doesn't seem to appear properly in the LaTeX guides that I have. A command for a simple triangular diagram with arrows ...
1
vote
0answers
51 views

How to draw an image in LaTeX [duplicate]

I would like to draw in pure Latex the three following images: Could you suggest me a package to do it (or directly how to do)? Thanks, Vi.
4
votes
1answer
413 views

Game proofs for cryptography

In cryptography a lot of security definitions (IND-CPA, IND-CCA etc.) are represented as games between an adversary and a challenger. Is there an existing package or a simple way to achieve this ...
4
votes
2answers
373 views

Commutative diagrams side by side have different sizes

Within the statement of a theorem, I have two commutative diagrams. I am trying to use pb-diagram to create them, and I would like them to be side by side. Unfortunately the size of the commutative ...
13
votes
2answers
318 views

Two coloured arrow

I would like to draw arrows in diagrams that have two colours split along the axis. (This shall represent a mixed case in colour-coded case distinction.) Here's a sketch: Here is a MWE to play with: ...
2
votes
1answer
540 views

Help With TikZ: Recreating Diagrams from e/m Ratio Experiment—Helmholtz Coils and Circuitry

I have two images I need to recreate in TikZ. The first is that of Helmholtz coils and their spacing in the experiment: And the second being the wiring for the coils: My (very) Minimal working ...
9
votes
3answers
414 views

Which package should I use for doing a connecting homomorphism diagram like this in latex

which package should I use for doing a diagram like this in latex:
12
votes
1answer
1k views

Help creating solid cylinders along a path in Tikz for crystal lattice diagram

I am trying to draw a diagram using Tikz that will show the crystalline lattice structure of diamond. It should look like the following illustration (reference). I have managed to figure out the ...
8
votes
3answers
503 views

Parallel lines on a grid and circle best practices?

I am a TeX/LaTeX noob, but I am learning rapidly. I am about to attempt to draw the following figure using LaTeX/TeX/TikZ I already have a, (I think) good working knowledge of how to draw circles, ...
6
votes
6answers
568 views

Representing Hasse diagram of the Green order

I need to represent graphs like the one below using xypics. They arise as the Hasse diagram of the Green order of finite semigroups (specifically finite Left Regular Bands) with the homomorphism to ...
4
votes
1answer
309 views

Constructing dag-like diagrams

I want to draw diagrams that look a bit like this. Mathematically, you could describe them as directed acyclic graphs with dangling arcs. They're somewhat reminiscent of route diagrams. Desired ...
3
votes
1answer
276 views

Drawing a big commutative diagram in tex

I am trying to draw a big commutative diagram for my paper. The diagram is quite easy, it looks like a 4 by 8 matrix but the labels of the vertices and those of the arrows are quite large. For this ...
10
votes
1answer
519 views

Recreating a Cathode Ray Tube Diagram in TikZ?

Could someone help me produce this diagram in TikZ? This is the code I have right now. \begin{tikzpicture} \draw (3.5, 3.5) circle (130 pt); \draw[blue, very thick] (-1, 3.5) parabola (5.5, 1.5); ...
3
votes
1answer
445 views

Contract Bridge diagrams with LaTeX

I write bridge diagram with LaTeX. Source file is in PBN format. Hand is for exampe QT2 98 J962 AKJ6. How this string change to \pika Q102\srdce 98 \karo J962 \tref AKJ6 ? To begin \pika, first space ...
3
votes
1answer
201 views

Reference for a commutative diagram

How to give a number (for later reference) to the following diagram? \begin{displaymath} \xymatrix@!C{ \{ \prod_{g \in A} \OO_g \} \ar@{->>}[r] & { \{\prod_{g \in A^{\prime}} \OO_g \} }\\ ...
3
votes
1answer
411 views

How to draw a diagram with boxes of text inside each other and have them laid out automatically?

How do I make a diagram of the following structure where each element is a box with text and possibly sub-elements. Here is an example of the desired structure. The sizes and alignment of the boxes ...
1
vote
0answers
616 views

Why can I compile a tikzpicture perfectly in one chapter but not in another? [closed]

I am having trouble with including a tikz flow chart in my code. In my preamble I have included \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{shapes,arrows} and this is the flow chart: ...
1
vote
1answer
329 views

Wrapping text around a pdf

I am making a poster and have an image which is of PDF format. I want the picture to be to right of the block it is in and the text to run down the left hand side of it? I have searched but can not ...
0
votes
1answer
210 views

Missing number treated as zero [closed]

I am getting Missing number treated as zero error when I type the following code in my document. But when I wrote it in a new document, everything seems OK. $\xymatrix{ A \ar[d] \ar[dr] \ar[r] & ...
6
votes
4answers
986 views

Brace diagram in TikZ

I apologize if this has already been covered in some other posts, but I couldn't find it anywhere and I'm not even sure if "brace diagram" is the correct name in English. I have found some examples ...
28
votes
6answers
1k views

Design of an asteroid belt in TikZ

How can I construct an asteroid belt in TikZ? That is my question: I get everything right, but I do not know how to make the asteroid belt. I have no code to add besides the preamble with TikZ ...
1
vote
1answer
9k views

“\caption outside float” error

I am trying to have a caption in a commutative diagram using the xypic package. But it is not working. I have written the code below: \documentclass[a4paper,12pt]{article} \usepackage{xypic} ...
7
votes
1answer
210 views

Hiding arrow in xymatrix?

I want to enlarge a xy-diagram. Using the \invisible command, I got some strange spacing. That's why I decided to redraw the complete diagram using the \only and the \phantom command. But there is an ...
1
vote
0answers
230 views

Drawing lozenges in Tikz [duplicate]

I'm creating a simple flowchart using Tikz, and I'd really like the "decision" nodes to be lozenge-shaped (think "tilted parallelogram") rather than square, in order to fit text better. Here's a ...
3
votes
2answers
618 views

Displayed Math in tikz-cd diagrams

I have been using tikz-cd package to produce diagrams however I'm not finding a way to use displayed math within it. My point is that when I use the product sign for instance inside of it, it simply ...
2
votes
1answer
194 views

How to make a commutative diagram smooth?

I have drawn the following diagram: using the following command: \documentclass[11pt,twoside,a4paper]{book} \usepackage[margin=1.5in]{geometry} \usepackage{xypic} \begin{document} \xymatrix{ ...
6
votes
2answers
539 views

TikZ matrix decoration

What I'm trying to achieve is a code structure to draw this kind of diagram: I need to decorate a two-rows matrix grouping one or more columns with a square bracket above them, and then again with ...
0
votes
1answer
66 views

How to exclude the picture's path? [closed]

I imported a picture and LaTeX created pdf well. The problem is the path (like C:/users/file_name/....jpg) is above the picture in the pdf file. How can I exclude that?