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

3
votes
1answer
129 views

Building a flowchart with PSTricks

I am building several flow-charts similar to this. They represent a procedure (algorithm) for dividing a triangle. Right now, I use the following code: \newcommand{\thetriangle}{ ...
0
votes
1answer
126 views

How to draw this figure with arrows

How can I draw the following figure
4
votes
1answer
95 views

LaTeX Stretching the x-axis of the graph

I asked this question on Reddit and they told me to come here. I'm wondering if there is a way to stretch my graph, because it is narrow horizontally. Here is a picture: \documentclass{article} ...
8
votes
1answer
246 views

Multiway trees like in Knuth's The Art of Computer Programming, Volume 3

I was wondering if anybody knows how to draw a multiway tree like in Knuth's The Art of Computer Programming, Volume 3 on page 484? This looks like a rounded box with the value of the keys being ...
289
votes
47answers
76k views

Nice scientific pictures show off

Task Show off your best scientific illustration ! The main purpose of this question is to share beautiful scientific pictures, preferably with an educational aspect. Content Your post must ...
3
votes
3answers
218 views

Make an exam format with a logo

I am trying to make a header of an exam page but with logo. Below is my code. \usepackage{graphicx} \begin{document} \firstpageheadrule \begin{figure}[] \includegraphics[width=20mm]{logo.png} ...
5
votes
1answer
852 views

Drawing this directed graph in Latex

I am trying to draw a picture like the following in a Latex document file. I have tried to use Xfig, but when I want to draw a line it does not stop. I mean, there is no end point for the line (I ...
4
votes
2answers
202 views

Producing a diagram showing relations between sets?

I'm just starting to use Latex and I was wondering if it's possible to produce a graphic like the following. It seems like I would have to start with something like a table and then somehow add in ...
2
votes
1answer
184 views

Adding a picture in a scrartcl CV

I'm using this nice CV template and my only issue is to add a picture in the upper right corner of the sheet. The name can be aligned on the left in order to make room for the picture. ...
18
votes
3answers
764 views

Drawing diagrams of higher categories with TikZ

I a planning to give an introductive talk about strict n-categories and I wanted to use TikZ to show the relations between the k-morphims by some cellular diagrams. To be precise, I want to draw ...
5
votes
1answer
282 views

Drawing torus points and arches with coordinates read from a file

I have a quite intricate question... I have to plot a torus of radii (r,R) with two set of points of different colour on it its surface. The points' coordinates are in two different files that must be ...
7
votes
2answers
98 views

Commutative diagram with matrices as objects

I would like to create a diagram which has matrices as objects and arrows between these matrices. In particular, I'd like to have four matrices, two matrices in the upper row, and two in the lower ...
2
votes
0answers
102 views

Making a black hole and information

I would like to make the picture similar to the following to represent information in a black hole horizon and black hole inside the sphere in tex. I can make a sphere but making the discrete bits ...
2
votes
2answers
98 views

Aligning a Table and a diagram in the same line

I wish to align a table and a diagram vertically on a line. Here is my code: \begin{flushleft} \begin{tabular}{l||c|r} & a & b \\ \hline $q_0 & q_1 & q_0$ \\ ...
4
votes
1answer
206 views

Latex connecting lines between nodes on Tree

How can I connect 2 horizontal nodes on a tree? That is I want to connect z1 to z2. but the line should continue to the right of z2 and left of z1 to show continuity. Like wise for theta 1 and theta ...
0
votes
0answers
24 views

want to make table in latex command

to make my cv, to give educational information in a table with box box, I have used this \begin{document} \begin{tikzpicture} \draw[help lines] (-5,0) grid (4,4); \end{tikzpicture} and ...
7
votes
2answers
536 views

How could I create this type of diagram in LaTeX?

I would like to recreate the following diagram in LaTeX: Something that uses TikZ is likely to be good and I have seen TikZ-UML which is somewhat similar to what I want, but I would really value ...
7
votes
2answers
202 views

Connection handshake diagram with TikZ

I'm trying to get the following diagram on TikZ. However, I didn't find any package that is able to draw something similar. The most similar one I found was a sequence diagram using pgf-umlsd. The ...
1
vote
1answer
96 views

Configure arrows in pgf-umlsd

A standard diagram produced by pgf-umlsd uses only basic arrows, for example: \documentclass{article} \usepackage{float} \usepackage{tikz} \usetikzlibrary{positioning, fit, calc, shapes, arrows} ...
3
votes
4answers
774 views

Coordinate system in LaTeX with TikZ

How can I create a simple coordinate system with a linear line in LaTeX using the tikz package? It should look something like this. With the iterating numbers on each axis and all.
1
vote
1answer
175 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
169 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 ...
-1
votes
1answer
129 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
36 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
170 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
234 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
102 views

mandatory - optional - or Tree in TeX

Does anyone know how I can build trees like this - in TeX?
2
votes
0answers
161 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
210 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
188 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
81 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
850 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
89 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
174 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
175 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
664 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
113 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
49 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
62 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
151 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} ...
2
votes
0answers
115 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
171 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
90 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
471 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
303 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
204 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
630 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
5k 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
157 views

Layered diagram with empty spaces

I am trying to achieve something like the following: +---------------------+ +---------------+ | A | | B | +---------------------+ +---------------+ ...