{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
1answer
282 views

Add bars and annotations when using pgf-umlsd

I am using pgf-umlsd to draw a messaging diagram. At the moment, it looks like this: \documentclass{article} \usepackage{float} \usepackage{tikz} \usetikzlibrary{positioning, fit, calc, shapes, ...
3
votes
2answers
216 views

How to place markings on the lines in a tikz lattice diagram

I have a tikz diagram of a diamond lattice (say, of subgroups of a group). How can I place markings on the two opposite sides of this diamond? These markings would look similar to the equal to ...
0
votes
1answer
162 views

Cannot draw this diagram using tikz-cd

I'm having a lot of problem in drawing a diagram of the form \begin{itemize} \item \textbf{The Tower Property} \begin{tikzcd} L \arrow[hook]{u} \\ K \arrow[hook]{u} \\ k \arrow[hook]{u} ...
0
votes
0answers
39 views

Use Case diagrams , UML diagrams and E-R diagrams in LaTeX [duplicate]

Does LaTeX allow to draw Use Case Diagrams, UML Diagrams and E-R Diagrams. How to implement these? What packages to use?
2
votes
3answers
208 views

Simple (rectangular) diagrams labelled with mathematical expressions

I am looking to typeset a diagram vaguely similar to this one: The differences, for my diagram, are that I don't need an "A0" overlay - and... rather than sizes in mm, and A-numbers, I want math ...
2
votes
2answers
331 views

Creating protocol message diagrams

I would like to create small protocol message diagrams as seen in IETF documents (e.g. as in CoAP). Nice would be auto aligning depending the amount of text (bigger texts appear like in CoAP HLS) ...
3
votes
1answer
134 views

mandatory - optional - or Tree in TeX

Does anyone know how I can build trees like this - in TeX?
2
votes
0answers
204 views

Wrapper box for TikZ picture

I am trying to wrap a tikzpicture node inside a box, so that I can refer to this "bounding box" from inside the picture for positioning the nodes relative to that box. I am looking for a command ...
3
votes
2answers
284 views

Drawing with latex

I'm writing my final year mathematics project in latex and am deriving Keplers laws of planetary motion, i need some diagrams to explain the geometry I am using. I have already used tikz to draw an ...
3
votes
1answer
286 views

How can I convert md to pdf with pictures in and handle the error 'Could not find image..'?

I want to use pandoc to convert md format document into pdf format,latex template has been written, and example content which will be converted as follows(named as "example.md"): picture one: ...
6
votes
1answer
107 views

Function in the half of arrow with tikzcd

I'd like to do a diagram in which a function f appears in the half of the arrow, like this: Is it possible doing this with tikzcd package?
8
votes
6answers
2k views

Draw Vertices of Regular Polygon

I am trying to draw just the nodes (no sides) at the vertices of a regular hexagon. This answer should be easily modified to accomplish what I want, but I am such a novice that I have difficulty ...
5
votes
1answer
111 views

Aligning caption with figures in `subfigure` environment

I have the code \documentclass[11pt]{article} \usepackage[font=small,labelfont=bf]{caption} \usepackage{chngcntr} \counterwithin{figure}{section} \usepackage{subfigure} \begin{document} ...
1
vote
0answers
202 views

Drawing a block diagram using tikzlibrary [closed]

I was drawing a block diagram using tikzlibrary. I am adding the code now \usetikzlibrary{shapes,arrows} %for drawing shapes \begin{document} \tikzstyle{line}=[draw,-latex'] ...
2
votes
2answers
197 views

Drawing reflected (billiard) trajectories

I'm writing a paper on billiards, and would like to draw the following figures myself. Are there any good packages that can render them? I've heard that asymptote might be a good choice, but am not ...
12
votes
3answers
826 views

Graphing multiple functions on the same graph

I'm new to LaTeX and am attempting to type up some old differential equations notes. The only part I seem to be having trouble with is graphing multiple functions onto a single graph. For example the ...
-1
votes
1answer
146 views

how can i write latex code to produce this rectangle as picture [closed]

anyone can help me this question,i really hurry,
1
vote
0answers
52 views

One page caption one page picture

I'm searching for a way to create a book of figures as next: left pages contains captions of the images in right pages | caption || image | and if two images are in one page at right, I want ...
3
votes
1answer
68 views

Picture environment: line length does not match its coordinates

Well I have a problem matching line end with its coordinate. Here's the code: \documentclass{article} \begin{document} \begin{figure}[h] \centering \begin{picture}(260,210) ...
2
votes
1answer
226 views

How to label arrows in this commuting cube?

I would like to draw a commuting cube, where all the edges are also labeled. Below is my cube but I don't know how to do this, as the stackrel doesnt seem to work. \documentclass[12pt]{article} ...
3
votes
0answers
163 views

Problem with overwriting diagram files using feynmf

I've just installed feynmf package and tried working with a standard example. I'm working with MikTeX 2.9 on Windows. The compilation worked fine and I got the diagram in the PDF, but when changing ...
4
votes
1answer
252 views

Drawing graphs and Feynman diagrams with axodraw

I used CalcHEP to get following graph. However, the output gives a problem and it does not draw any graphs. (I have install axodraw.sty locally). The code is as follows: % u, D -> W+, b, B ...
3
votes
1answer
115 views

An unwanted overlapping of arrows with xymatrix

I try to make a commutative diagram like this: with the code $\xymatrix{ Y \ar@{->>}[rd] \ar@{->>}[r] &{Y_1} \ar@{.>}[d]^<<<{\cong}_<<<{\exists} ...
3
votes
0answers
623 views

How to draw Sequence diagram with TeX [closed]

I want to draw Sequence diagram in latex. I want it to to be like the following diagram: any hint? update [I changed the title from "use case" to "Sequence" , so sorry ]
6
votes
1answer
561 views

Triangular commutative diagram

I am using the \xymatrix command this is the code I've written \[\xymatrix{ & A \ar[d]^{i}\\ B \ar@{-->}[ru]^-{\exists \overset{\sim} \varphi}\ar[r]^{\varphi}&C }\] My problem is ...
7
votes
2answers
265 views

Double arrow for inline diagram

I want to make a diagram like A--->B, but there are two arrows, one written f_1 and another with f_2. I tried \stackrel, but this gives arrows with different sizes. If using ...
26
votes
2answers
711 views

Chaotic billiard with TikZ

I'm looking for a TikZ library that could help me to represent different shapes of chaotic billiards. Any idea?
48
votes
3answers
2k views

Holiday contest! Drawing a picture of Krampus for Yule

I've volunteered to use some of my Cthulhu reputation to sponsor a Christmas/holiday contest. You all have aced previous holiday questions, so I'm going to give you a bit more of a challenge: Draw me ...
7
votes
2answers
10k views

Drawing flow diagram in LaTeX using TikZ

I need to draw the following diagram using TikZ package in LaTeX I wrote the following code so far: ...
2
votes
2answers
221 views

Layered diagram with empty spaces

I am trying to achieve something like the following: +---------------------+ +---------------+ | A | | B | +---------------------+ +---------------+ ...
1
vote
0answers
138 views

Beamer–PSTricks Diagram “Wiggling”

I am working on a presentation using Beamer with diagrams done in PSTricks. I would like to animate one of my diagrams, and have achieved this by using various \only, \uncover, etc. statements. ...
5
votes
1answer
194 views

tikz parameterized circle node with t-lines inside within a tree diagram

I would like to draw a tree diagram consisting of circle nodes with three subparts divided by a t-line (see sample below). Instead of separating every tree node by hand I would like to only specify ...
29
votes
2answers
1k views

How to plot a lattice of points on the surface of a torus?

I am doing a report on the Ising model, without going into the complex details of the model, in its two-dimensional form it involves a lattice of points. Which, when periodic boundary conditions ...
7
votes
0answers
186 views

3d graphics/diagrams [closed]

Is there a convenient way to create a 3d graphic/diagram like the following in LaTeX (e.g. with tikz)? I'm aware that convenience is a point of view, however I would describe myself as a newbie to ...
4
votes
1answer
325 views

How can I draw this commutative diagram for function composition?

I am working on a project, and need to add a diagram that displays a commutative diagram illustrating basic function composition similar to what is on page 17 in the image attached. I would like to ...
5
votes
2answers
536 views

what software can draw this kind of figure?

It looks very beautiful! I'd love it! See http://www.science4all.org/le-nguyen-hoang/integer-programming/ Do someone know what software can draw this kind of figure? I'm interested in learning it. ...
8
votes
1answer
171 views

For each node I want to draw arrow '->'

I want to draw '->' for each path. Actually I tried to add every node option and '->', but this doesn't work. I know that \draw[->] (t1)--(t2); \draw[->] (t2)--(t3); ... would be work. But I want ...
5
votes
1answer
316 views

How to draw 'Open Oyster' Feynman diagram with FeynMF or other package?

I am curious to learn about Feynman diagrams, so I have started to read Richard Mattuck's book "A guide to Feynman Diagrams in the Many-Body problem". One of the first diagrams that appears in this ...
14
votes
0answers
517 views

Are there any other methods left to create a spiral of equidistant segments?

I want to create a spiral that is composed of equidistant segments as shown in the following figure. I tried to draw it with various methods. The colors are used to distinguish each method from the ...
4
votes
2answers
158 views

Inserting Symbols into my graphics

I am trying to show two braids are equivalent, I have my code as follows \begin{figure}[htb] \centering \begin{tikzpicture} \braid [line width=.4mm] a_2^{-1} a_1^{-1} ...
7
votes
1answer
364 views

TiKZ picture does not sit properly in `figure` environment

This code: \documentclass{tufte-handout} \usepackage{tikz} \begin{document} \title{Lorem ipsum} \author{me} \date{now} \maketitle Lorem ipsum dolor sit amet, blah blah blah... \begin{figure} ...
12
votes
3answers
653 views

How to create simple causal chains with TikZ

I have a problem trying to create a simple causal chain, as it can be seen on the attached file: List of available TikZ libraries with a short introduction. I'm having two main issues: I would like ...
3
votes
1answer
94 views

Math in picture environment

Is it possible to avoid excessive use of the symbol $ in pictures containing a lot of formulas/math symbols? I mean to use \put(m,n}{math} instead of \put(m,n}{$math$}.
4
votes
4answers
477 views

How to plot a curve in a polar form r = f(Θ)?

Can we use LaTeX to make the graph of $\rho = \sec(\theta)$?
4
votes
1answer
101 views

Custom commands for `xymatrix` paths

I would like to define a custom command to replace \ar@{->}`r[d]`[l]`[llld]_-{\delta}`[d][lld] in this bit of code: \[\xymatrix{ \cdots\ar@{->}[r] & H_n(X)\ar@{->}[r] & ...
5
votes
4answers
173 views

How can I make TikZ nodes center on a particular symbol/operator?

Here is a small example document. \documentclass[a4paper]{amsart} \usepackage{tikz} \newcommand{\dju}{\mathbin{\coprod}} \DeclareMathOperator{\id}{id} \begin{document} \begin{tikzpicture}[x = ...
5
votes
2answers
353 views

How can I make this diagram about graphs in LaTeX?

How can I make the following diagram in LaTex:
12
votes
2answers
263 views

Is there another better way to have a region with gradient opacity?

My objective is to get a region with gradient opacity. In the following MWE, the region is a quarter of a disk on the top a bird. I made the gradient opacity by partitioning the sector into 45 ...
6
votes
2answers
397 views

How to create the following figures in TikZ - Part 2

This is the second part of Question How to create the following figures in TikZ. I'd like to create the following figure with TikZ. \documentclass[tikz,border=5pt]{standalone} ...
9
votes
1answer
2k views

Drawing a data flow diagram in LaTeX

Would it be possible to draw a data flow diagram in LaTeX as follow? if so, how? (actually I am only puzzled with the bounding box). Thanks a lot Edit: the following code will get me everything ...