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

7
votes
3answers
214 views

codes for some pictures [closed]

I'm writing a paper in mathematics which contains some pictures and diagrams. Since I am a beginner-user of LaTeX, maybe I can get direct help from experts here. I am not sure if you respect this way ...
3
votes
1answer
193 views

Draw a 2-D representation of a protein with cpssp LaTeX

I have a MacBookAir and I want to draw a two-dimensional representation of a protein's secondary structure with cpssp in LaTeX. I have installed cpssp and MacTeX. I also created my ...
1
vote
2answers
290 views

Ugly diagonal arrows using xymatrix

I have tried to create some diagrams using xymatrix. However, the problem I have encountered is that diagonal arrows do not look very well - they are not smooth and resemble raster graphics rather ...
2
votes
4answers
807 views

TikZ: Diagram of a perceptron

I'm trying to create a TikZ based version of the following diagram (taken from here), but I don't know how to approach it. It doesn't need to look exactly like the original, but the basic idea should ...
1
vote
1answer
294 views

How to draw circle using 'xypic ' package?

I have little knowledge about the package xypic. I am stuck with the following problems: I cannot able drow a circle with radius BC, centered at C. I want to draw the five dots on the line. For ...
9
votes
3answers
1k views

Replicate this chart using LaTeX

I need to replicate this chart using LaTeX, I understand that TikZ should come in handy: Can anyone please show me the best and easiest way to render the chart? Any ideas, tips, nudges in the right ...
1
vote
1answer
124 views

change tag position in amsmath and xy-package

I use the amsmath-package and xy. Now I have a formulae like this \[ \label{eq-name} \tag{$\ast$} \xymatrix{ & A & B & C \\ D & & E & & F \\ & G & & H } \] ...
9
votes
1answer
757 views

TikZ: adding nodes to a circular diagram from smartdiagram package

This is what I would like to achieve: My MWE is below: \documentclass{article} \pagestyle{empty} \usepackage{lmodern} \usepackage{smartdiagram} \usetikzlibrary{shapes.geometric} ...
7
votes
1answer
504 views

TikZ flowchart child

Is it possible to show block C as a single block rather than having 3 blocks? \documentclass[landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
5
votes
1answer
176 views

Multiple Commutative Diagrams

I need to make two commutative diagrams (I am using the CD environment) in the same line (I mean not one above the other) can anyone give me an idea?
4
votes
1answer
196 views

Overlapping columns in xymatrix

I have the following diagram: \documentclass{article} \usepackage{xypic,amsmath} \DeclareMathOperator{\coker}{coker} \DeclareMathOperator{\im}{im} \newcommand{\subU}[1]{\left.#1\right|_U} ...
2
votes
0answers
513 views

File error in non stop mode [closed]

I am trying to make a feynman diagram using feynmf. My code is \documentclass[a4paper,11pt]{article} \usepackage{xcolor} \usepackage{amsthm} \theoremstyle{definition} \newtheorem{exe}{Exercise} ...
2
votes
1answer
581 views

How do I add a caption to a diagram generated with qtree?

I have a diagram that I created with qtree, but would like to add a caption to it. How can this be done?
1
vote
1answer
769 views

Feynman diagram using feynmf - keeping lines straight after vertex, keeping line flat

\documentclass[a4paper,11pt]{report} \usepackage{feynmp} \usepackage[pdftex]{graphicx} \DeclareGraphicsRule{*}{mps}{*}{} \begin{document} \begin{figure} \label{fig:ele_int_conv} \centering ...
0
votes
0answers
39 views

Resizing a CD diagram in math mode [duplicate]

I have a problem, I try to resize a diagram, this is what I write \[ \scalebox{1.4}{ \begin{CD} C @>\phi>> C'=\phi(C)\\ @V\textnormal{Dual}VV\\ ...
0
votes
0answers
31 views

image placement using hfill [duplicate]

Is it possible places images at the same horizontal level? \begin{figure}[h] \includegraphics[scale=0.54]{/h.jpg} \caption{Architecture} \label{fig:Architecture}\hfill ...
5
votes
1answer
372 views

Vector graphics using arbitrary functions (other than bezier, arcs etc) to create shapes

Is it possible to create vector graphics with latex or an external program that allows the usage of more or less arbitrary functions (other than beziers and standard shapes like circles etc) to define ...
3
votes
0answers
343 views

Drawing specific curves/planes [closed]

I want to submit a paper and the only thing that's left to do is to add some graphics. My deadline is on Wednesday/Thursday. What I want to do is some basic curve/plane drawings. Here is an image: ...
4
votes
2answers
204 views

How to plot dense functions smoothly and correctly

I tried to plot a function like this f(x)= (sin(x)^2)*(cos((x/2)^2)) on a tiny bandwidth around 180 degrees on various tools like PyXPlot, Asymptote and GNUPlot, I'm not expert in any of these but ...
4
votes
1answer
363 views

Insert Picture on Titlepage

I have made a titlepage with a wide (104pt) vertical line and i want to place a logo on top of that line. I tried to do it with icluding a picture with tikzpicture, but it places the image at the ...
3
votes
2answers
114 views

Compile a pspicture under Emacs

I copied the solution from this link to a file try.tex under Emacs: \documentclass{article} \usepackage{pst-tree} \begin{document} Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. ...
1
vote
1answer
548 views

How to generate text and timing diagram together using tikz-timing package?

I am new to TeX and I am trying to create a document which has regular text, paragraphs etc and also a timing diagram somewhere in between. I am using the TikZ timing package. Here is an example of ...
4
votes
1answer
924 views

Shorten or extend xypic arrows

In an xypic or xymatrix diagram, is it possible to specify that an arrow should only cover part of the distance it normally would? In other words, for an arrow \xymatrix{ A \ar[r] & B }, or ...
8
votes
1answer
1k views

TikZ: Controlling text within nodes and placing nodes in text

Need some help working with TikZ. Let me begin by saying that I think TikZ is amazing. I hardly know what I'm doing at this point and yet I've been able to draw some very nice diagrams with it. ...
2
votes
1answer
246 views

xymatrix: How to change the position of a vertex?

I have the following simple diagram: \[ \xymatrix{ A \ar[r]\ar[d] & B\ar[d] \\ C \ar[r] & Dxxx = Exxx = Fxxx} \] which will be typeset so that B will have a down arrow, possibly ...
0
votes
1answer
492 views

Creating picture using LaTeX

I want to create picture on the following link. How can I create this picture using LaTeX? I have tried different things but nothing works. Reference: p.510 of ...
5
votes
1answer
405 views

How to draw a hierarchical structure with edges?

I would like to show such a structure in my LaTeX document. How can this be done?
2
votes
2answers
1k views

Network/Message Sequence Diagram

I am looking to produce something similar (but more complex) to this diagram: This depicts network packets between two sides of communication. I don't know if there is any specific name for it ...
3
votes
1answer
182 views

Picture and Paragraph in Metapost

How to insert a paragraph in Metapost and a drawing below that? This has to be done within a single Metapost block, (i.e) within a single \startMPcode and \stopMPcode block Sample image :
18
votes
3answers
5k views

How to draw a coordinate system with LaTeX?

I want to draw a coordinate system like this: I would like to specify the width and height of the coordinate system and where the origin begins (upper left corner). I also want to specify the x and ...
5
votes
1answer
252 views

Label beside line before a branching node in a TiKZ “tree” chart

I'm very, very new to TiKZ. I'd like to make the (very crude) following diagram with TiKZ: Start | | Process 1 | / \ / \ / \ Item Item | | ...
4
votes
1answer
970 views

How to draw array (data structure) and show partition?

I'm doing a homework for algorithm class where I have to show what a particular array looks like at each step of the quick sort algorithm, in a manner similar to this image: (page from CLRS book). ...
3
votes
1answer
391 views

How to create a “Diagram package”?

After looking for some material about Venn Diagrams, for example that (Ed Sandifer. How Euler Did It, Venn Diagrams Mathematical Association of America, January 2004) and after checking different ...
1
vote
1answer
386 views

#ifdef analog for LaTeX

For example there is a simple tex-file with following text: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw (0,0) circle (0.4cm); \end{tikzpicture} \end{document} Is it ...
7
votes
1answer
507 views

Typesetting inline Penrose/Cvitanovic tensor diagrams (birdtracks)

In the 50's, Roger Penrose invented a private graphical notation for tensors, which he later published. Wikipedia has a short description. It's basically a directed graph with some labels on it and ...
3
votes
2answers
450 views

xypic: How to typeset the dashed line in this diagram?

I use xypics for diagrams, but I don't know how to put the dashed line in the diagram below. Search didn't find much. Can anybody here help?
15
votes
1answer
1k views

Drawing 3D crystal lattice with tikz/pstricks

I need to draw 3D lattice of DO3 type (Ni-Mn-Al, DO3) and more complex ones. Both TiKZ and PSTricks packages draw following objects on top of previously drawn disregarding "real" 3D position. For ...
3
votes
2answers
149 views

Set picture size to size of a given box

I would like to use the picture mode in latex, but need to set the size of the drawing region to the size of some other box. I would normally do \begin{picture}(max_hor, max_ver)(ll_hor, ll_ver) ...
3
votes
1answer
463 views

Using \put command relative to page size

I want to include a logo in the pdf pages included in Beamer. I tried writing macro and progressed so far. \documentclass[fleqn,xcolor=dvipsnames]{beamer} \newlength{\logosize} ...
5
votes
1answer
2k views

Is it possible to make a picture transparent in beamer?

Here is my MWE. \documentclass [11 pt, xcolor=pdftex,x11names,table]{beamer} \usetheme{Madrid} \setbeamercovered{transparent=15} \begin{document} \begin{frame} \frametitle{Test} ...
10
votes
2answers
505 views

How to generate n points over a circumference and choose label and color

I would like to place n points over a circumference like Figure 3 of this file. I'd choose the label to be assigned to each vertex and color and I'd like to have the code in TikZ-pgf.
9
votes
2answers
1k views

Help with circle and arrows diagram with PGFPLOTS

I'm trying to make a plot similar to this one but I'm having a really hard time. If anyone can help me getting the details, I'll appreciate. I thought I couldn't post questions like this, but as ...
8
votes
3answers
600 views

How do I create a LCM tree diagram?

I am trying to create a LCM tree diagram which looks something like this: Also what is the code to draw circles around numbers?
4
votes
2answers
725 views

What tool was used to generate these technical diagrams?

I was reading a paper or Computed Tomography, and I found these two nice diagrams: And I was wondering, what tool was used to make them. I've worked with Tikz for example, but I believe it would ...
4
votes
1answer
191 views

Nested xy-pic diagrams

Is it possible to include a xy-pic diagram as an entry of another xy-pic diagram? I have a map to a group of homomorphisms and I would like to print the homomorphism image. Is there some way to do ...
7
votes
1answer
767 views

Help for one simple diagram about genetic algorithmic

I would like to produce the following diagram. Thanks to the following comments and one example from TeXample.net, I have done the following code. There is some problems. How can I fix them ? ...
12
votes
2answers
2k views

Create diagrams in LaTeX with TikZ

I am relatively new to the concept of generating diagrams in LaTeX, and do not know if LaTeX is capable of generating the diagram i wish to create. The diagram looks like this: I was hoping someone ...
7
votes
2answers
304 views

Bending arrows with XY

I'm in trouble with the following diagram: \[ \xymatrix{ & & & & & & X_1\times_Y X_2\ar@/_1pc/[dllll]\ar[dll]\ar[dddd]\\ & & X_1 \times_Z X_2\ar[dl]\ar[rr]\ar[dd] ...
6
votes
1answer
526 views

How to Draw Intervals

I am writing up some exercises for students who are using College Algebra as their textbook. I need to know how to TeX pictures of intervals like those on page 3 and page 5 of the linked book. ...
6
votes
1answer
413 views

Displaying genetic algorithms on data

It is useful for explaining how a genetic algorithms works to display things like in the two following pictures. In those pictures, it could be useful to have two more features. Display dotted ...