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

6
votes
1answer
651 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
47 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
199 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
212 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
244 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
326 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
293 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
706 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
386 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
446 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
238 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
209 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
453 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
308 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
104 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
246 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
374 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
197 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
141 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
601 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 ...
24
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 ...
0
votes
1answer
4k 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
143 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
227 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 ...
2
votes
2answers
312 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
136 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
385 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
62 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?
7
votes
3answers
270 views

Improve PSTricks code for drawing of the Olympic flag

Consider the following example. Code % pdflatex -shell-escape test.tex \documentclass{article} \usepackage{auto-pst-pdf,pstricks-add} \usepackage[locale=DE]{siunitx} \ExplSyntaxOn \cs_new_eq:NN ...
6
votes
1answer
240 views

Create a Frequency Allocation Diagram

I need to reproduce a frequency allocation diagram in TeX. I prefer TikZ but open to PSTricks. I can create a simple bar allocation char using \node but unsure how to create layered blocks like the ...
6
votes
2answers
690 views

How to elegantly create a pyramid hierarchy in tikz

I want to create a pyramid hierarchy in tikz with smooth sides (unlike this step-pyramid) and place text in each level. Shown below is how I am currently doing this, is there a better way? ...
2
votes
1answer
173 views

Multithread integral function executing picture

I need to make a picture that should look like I saw a similar question here but the red function line appears neither when I use --shell-escape nor when I use --enable-write18. I use TeXstudio, by ...
9
votes
1answer
543 views

Family tree with multiple marriage ties

I'm trying to build a family tree, and among the many examples I've found online this one has been the most useful: How can I improve this family tree in TikZ? However, there are two things I cannot ...
22
votes
5answers
455 views

Easier way to make permutation diagrams?

I prefer using figures created inside TeX, but I only know very labor-intensive methods. The following creates a permutation diagram for (6,3,2,4,1,5) with some colors and additional symbols. I'm ...
5
votes
1answer
502 views

IDE for generating Flowchart LaTeX code

Is there any IDE that allows you to draw flowcharts and generate the LaTeX codes? I've searched on google but came accross TikZ which is only a library? Is there any IDE support?
4
votes
2answers
248 views

How to use \textwidth (or any variable) in a picture environment

I don't understand why this doesn't work. I am getting a compile error. Am I missing something? \documentclass[12pt,a4paper]{article} \begin{document} \begin{picture}(0,0) ...
7
votes
1answer
342 views

ellipse intersecting a circle

I am trying to draw an ellipse which intersects the sphere of influence, that is, the dashed circle around the moon. The ellipse needs to pass through (-170.864:.7cm) location along the v0 vector and ...
5
votes
1answer
419 views

How to draw a bow-tie risk diagram

I'd like to draw some bow-tie diagrams, which are diagrams for modelling risk, particularly for businesses like oil and gas and transport. In the centre, there is a "top event", and there are zero or ...
3
votes
1answer
135 views

Bad label placing in kiviat diagram

Shouldn't resizebox should resize the label along with the whole picture? How can I avoid the label put above the arrow? (Other than rotating the image, which I don't want to do.) ...
4
votes
1answer
207 views

Chronology adds arbitrary gaps

I'm trying to display a timeline in my document using the package chronology, however it does weird things. I'm using the following code: \begin{chronology}[5]{0}{30}{4ex}{\textwidth} ...
1
vote
1answer
267 views

Comic strip in TeX

I am creating figures using Stykz. Every frame (should have customisable resolution) consists of stick figure 2 or more text boxes Frame outline (will be best if looks handdrawn) I want to fit ...
1
vote
1answer
146 views

Insert dynamic graphs

Is it possible to insert dynamic graphs into your LaTeX document? For example, let's say I want to add ABC Enterprise's turnover into my LaTeX document for each month. Could I do something like ...
4
votes
0answers
135 views

Is it possible to draw schematic of coordinate transformations with translation and rotations [closed]

I am new to latex and have been fighting my way through my thesis. At the moment, I am trying to draw this with LaTeX. If you happen to know how to draw this or if you could direct me to start, I ...
1
vote
1answer
574 views

How do I make Bayesian networks?

I am trying to tek up a Bayesian network with nodes, edges, and truth tables next to each node like this: What tools can I use to make something like that? Perhaps some package from the TikZ ...
1
vote
2answers
94 views

picture width problem

I need to make the picture with the width of one column in two column paper, and I wrote \linewidth but it doesn't work as shown below; it's smaller than the width and also it is very small. I need to ...
3
votes
1answer
748 views

How can I set the node size for a TikZ image to be the same for all nodes?

I'm attempting to draw a Kripke structure in TikZ and while I'm successful for the most part, I'm not quite satisfied with the result. Here is my preamble: \documentclass[10pt,letterpaper]{amsart} % ...
2
votes
0answers
174 views

RGB EPS figures appear as CMYK in LaTeX [closed]

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
156 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
216 views

Smartdiagram error when compile [closed]

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 ...ram] ...
5
votes
3answers
153 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 ...