{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
0answers
67 views

RGB EPS figures appear as CMYK in LaTeX

When I make EPS figures in Matlab and/or Illustrator, they look RGB, however, in the DVI file and in the subsequent PDF or PS file it appears CMYK. When I open up the figures outside of LaTeX, they ...
6
votes
1answer
98 views

Piecing together a diagram from other files

I'm in \documentaclass[landscape]{article} and I'm trying to figure out how I can put together a bunch of figures I've created (with the generous help of TSE users) on this document. What I'm trying ...
2
votes
1answer
91 views

Smartdiagram error when compile

I want to use the smartdiagram but by some reason a get a error: ! Undefined control sequence. \smartdiagram code #1#2->\StrCut {#1}{:}\diagramtype \option \IfNoValueTF {#... l.6 ...
5
votes
3answers
98 views

code for commutative diagrams

There are some diagrams which are little bit complicated, I use array package to draw basic ones I mean square ones. but is it possible to draw any diagram by [array] package? for example can you ...
3
votes
1answer
235 views

How to draw industry schematic diagram in LaTeX?

Is it possible to create the following diagram in LaTeX ? I am interested in the main body, any colour inside the box is fine.
2
votes
1answer
50 views

Labeling diagonal arrows with the diagrams package

As far as I can tell, the following code \usepackage[balance,small]{diagrams} ... \begin{diagram} && X && \\ & \ldTo^\Phi & & \rdTo^\Psi &\\ Y &&&& Z ...
15
votes
5answers
495 views

Draw a chain of beads

I would like to reproduce this kind of figure: I'm wondering what's the best way to achieve that with TikZ. My guess is to draw an element composed of a circle + a link and to link this element ...
5
votes
3answers
182 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
99 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
62 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
317 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
77 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 ...
1
vote
1answer
54 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 } \] ...
8
votes
1answer
342 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
280 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
78 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?
3
votes
1answer
62 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
79 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
71 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
132 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
36 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
28 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 ...
3
votes
1answer
174 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
160 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: ...
3
votes
2answers
124 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
173 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 ...
2
votes
2answers
69 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
117 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 ...
3
votes
1answer
136 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 ...
6
votes
1answer
205 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
62 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
158 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
126 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
289 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
97 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 :
15
votes
2answers
771 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 ...
0
votes
0answers
84 views

Insert a number into a diagram [closed]

I'm using LyX. I'm constructing many diagrams with arrows and I'd like to number them. I want the numbering inside the diagram. How can I do it without adding unnecessary rows and files?
5
votes
1answer
135 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 | | ...
3
votes
1answer
244 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
304 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 ...
0
votes
1answer
212 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 ...
6
votes
1answer
190 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
147 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?
12
votes
1answer
435 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
83 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
125 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} ...
1
vote
0answers
180 views

How to draw a curve in LaTeX

I'm using TeXworks and I'm trying to draw curves. I have to design a lot of different ones; I don't need the numbers, just basic shapes, and I will need to add straight lines over the curve to show ...
4
votes
1answer
177 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} ...
9
votes
2answers
217 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.
7
votes
2answers
320 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 ...

1 2 3 4 5 10