{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
2answers
2k views

LaTeX Flow Chart Path Problem [duplicate]

I have a flow chart that has all of the nodes that I want, there is just one path that I can't get. \begin{figure}[H] \begin{center} \tikzstyle{decision} = [diamond, draw, fill=blue!20, ...
3
votes
1answer
312 views

Creating Tic-Tac-Toe boards with LaTeX/TikZ

I am trying to create a diagram of tic-tac-toe boards similar to the one attached below. I cannot seem to find any documentation or examples on how to create these boards in LaTeX or TikZ. Does ...
107
votes
12answers
7k views

Can we make a love heart with LaTeX?

I understand that this post may cause some down votes because it seems a bit off-topic, but having seen the discussion on Christmas Tree with LaTeX I am still willing to try. My Girlfriend's birthday ...
7
votes
1answer
343 views

Veitch diagram draw with TikZ [duplicate]

How can I make the same diagram like this in LaTeX? I see that i could use package karnaugh but i don´t like placement of x.
2
votes
3answers
480 views

Needed tikz examples

I just drew this with GeoGebra, how to draw with tikz?
9
votes
1answer
338 views

TikZ - flowchart nodes alignment

I'm trying to code a flowchart and I'm almost there, but I can't get the nodes properly aligned. Lets say my flowchart has 3 columns: the nodes of the first are ok, but I need the nodes from 2nd and ...
2
votes
4answers
255 views

How to clip a rectangle with multiple shapes (circle)?

How to clip a rectangle with multiple shapes (circle)? I need to create a complex venn diagram and need to clip the outer rectangle in a shape that is combined with multiple circle. Not sure how to do ...
8
votes
1answer
303 views

3D arc in Asymptote

I constructed the technical figure embedded below. I wonder how to draw red arc to denote angle $\alpha$ between two blue vectors. (Actually, I add the desired output using Inkscape.) The Asymptote ...
6
votes
1answer
460 views

How to make hexagon diagram from Smart diagram package?

I know How to make a smart diagram from Smart Diagram Package, but "How to make hexagon diagram from Smart Diagram package" and How to change from bubble diagram to be hexagon diagram? like this : ...
3
votes
1answer
86 views

cannot draw graph with many nodes in latex

here is the latex code generated by a package \documentclass[11pt]{article} \usepackage{auto-pst-pdf,pstricks,pst-node,pst-tree,geometry} \usepackage{lscape} ...
7
votes
2answers
203 views

Fill area between two distinct curves

I have the following MWE in PSTricks: \documentclass{article} \usepackage{pstricks} \usepackage{pst-plot} \begin{document} \psset{xunit=2cm,yunit=1.5cm} \begin{pspicture}(80,-2)(120,2) ...
3
votes
2answers
263 views

Reliability block diagram

I've been trying to figure out how to draw a reliability block diagram and I've run into several good examples on how to draw diagrams. Here are a bunch: ...
2
votes
2answers
881 views

Drawing figures in LaTeX

Can I make the figure which I just posted here in LaTeX?
3
votes
1answer
157 views

draw complicated symmetric figure

I wish to draw a figure in PSTricks (a Paint-version is attached), consisting of three elements: Two identical objects, facing each other (they are they in the figure...) A red "parabola", ...
9
votes
3answers
302 views

How to draw a braid of long exact sequences

For example, in page 353 of Ranicki's book Algebraic and geometric surgery, there is a braid of long exact sequences like so: I use xy-pic. Thanks in advance!
9
votes
1answer
154 views

LaTeX typeset multiple comparisons

I originally asked this question on Stack Overflow, but was advised to also ask here... So, here goes! I'm teaching an applied stats course and was wondering whether anyone can advise me on how to ...
10
votes
1answer
322 views

Arrow with superscript in tikz-cd

I need my tikz-cd diagrams to have arrows (vertical and horizontal) that mimic \mapsto^* to match the relation in the text. The closest I've managed is to add a label {*} at [pos=1]: ...
6
votes
2answers
177 views

drawing figure to scale

I have a technical drawing of a mechanical setup which I would like to draw in either TikZ or PSTricks. My experience with these two packages is very limited. A "MWE" of the drawing is shown in the ...
0
votes
0answers
130 views

Make a 2cell diagram more beautiful (or less ugly)

I want to draw a two-cell diagram using xypic, the problem is that the bigone label is to long, how can I make the following diagram: looks like this one: using exclusively the two-cell feature ...
1
vote
0answers
63 views

Is there an extensive library of arrow tips with a standardized naming convention?

I am drafting diagrams where I need a lot of different arrow tips to indicate different types of directionality. Currently I am using a mixed set of libraries, which I mainly found through detexify. ...
12
votes
4answers
817 views

Drawing a regular polygon encompassed by a circle

I would like to replicate the sort of diagrams shown below - a regular polygon in dashed lines encompassed by a solid lined unit circle with vectors going from the origin to each labelled vertex in an ...
13
votes
3answers
636 views

Which LaTeX package is needed to draw radar-like diagrams?

Can you please suggest some LaTeX package of drawing charts in the format mentioned below? It should offer the possibility to put text as "Text A" as well as "Text B" . Note: Currently I'm using ...
3
votes
1answer
263 views

How to draw a conical spiral / redraw diagram?

I'm trying to redraw the diagram diagram below. I'm using it as an exemplar/reference in a document I am writing but I need it to be clearer hence the redraw. I tried and failed to draw it in ...
11
votes
3answers
217 views

Any package for matrix diagram?

Do you know if there is any LaTeX package available to create charts like these? (Source)
6
votes
1answer
237 views

\Mapsto in tikz-cd

I'm loving using tikz-cd to draw compiler correctness diagrams, but I can't manage to get quite the same arrows for relations that I'm using in the text. In particular, I'm not sure how to get \Mapsto ...
2
votes
2answers
129 views

xypic: 2cell diagram label position issue

This code \xymatrix{z & y\ltwocell_{f}^{g}{^{\alpha}} & x\ltwocell_{f'}^{g'}{^{\beta}}} =\xymatrix{z & & y\lltwocell_{f\cdot f'}^{g\cdot g'}{^{\alpha\circ\beta}}} produced this ...
5
votes
2answers
185 views

How to highlight a pair of terms with compact, rectangular, semi-transparent, colored regions?

I want to create a GIF animation showing the process of multiplying 2 binomials. Each frame must only show a pair of terms that are highlighted with a compact, rectangular, semi-transparent, colored ...
3
votes
2answers
171 views

How do I arrange diagrams in pgfplots vertically with labels?

I have two ternary diagrams I put side by side on the same page using pgfplots.How can I arrange them vertically and as well label them? An example of what I have is given below: ...
8
votes
2answers
206 views

How to make my protractor able to accept both points and nodes?

I want to make my \protractor can accept points in all available format defined in PSTricks. How to do this? \documentclass[pstricks,border=12pt]{standalone} \SpecialCoor ...
28
votes
5answers
2k views

How to produce a list of prime numbers in LaTeX

I would like to write a LaTeX script that produces all the prime numbers between the numbers n and m, where n < m. How can I do this? I feel it shoud not be that hard, but I cannot seem to program ...
5
votes
1answer
294 views

Repository of LaTeX Feynman diagram templates with pictures

I have over the last few years drawn a lot of Feynman diagrams in LaTeX with Feynmf and mpost. The results are nice, but time-consuming! For non-physicists, a Feynman diagram is an image made of lines ...
6
votes
2answers
216 views

How to produce multiplication tables/diagram/list using a script

I am a math teacher and would like to produce a LaTeX document that generates multiplication tables. I would like the output to be like 1x5=5 2x5=10 etc. Can someone help me out?
5
votes
1answer
112 views

Centering commutative diagram (using diagrams package)

When one has long text in a centered commutative diagram, apparently the diagram is centered as if the long text wasn't there. The result is that the diagram does not appear to be centered. I would ...
6
votes
1answer
837 views

Creating crow's foot style E-R diagrams, rather than Chen-style ones

I need to draw some Entity-Relationship diagrams for my computing coursework, which so far I have written in LaTeX. I could draw them manually using tikz, but that sounds somewhat unpleasant, so I ...
6
votes
1answer
221 views

Commutative Diagrams with internal mappings

I'd like to produce a commutative diagram with mappings specified inside it, as follows: My rankly amateur efforts so far have centered on tikzcd with extra columns and rows, as in ...
2
votes
1answer
388 views

Creating appealing directory trees - alternative to dirtree

I already found a similar question and thus know about the dirtree package. However, the result does not really look nice. Also I'd like to put the tree in a figure environment and get it centered. ...
3
votes
2answers
376 views

I need pointers on how to draw my neural-network diagram

Please help me draw this diagram. I'm practicing on TikZ, but it's so difficult. I don't know which library I should use, matrix/chain or another something ? I also don't know how to draw a circle ...
2
votes
1answer
170 views

Drawing arc with coordinates in 2D in asymptote

I've seen this post for 3D, but I cannot get this working in 2D. Here is my code: pair O1 = origin; pair O2 = (1.5,0); pair O3 = (1,-1); pair C = (0.75,sqrt(7)/4); pair F = (0.75,-sqrt(7)/4); pair E ...
3
votes
2answers
3k views

How to Make This Block Diagram with LaTeX

I understand that there are some questions here regarding the block diagrams. However, I am strongly interested in one particular style shown as below: This is a picture from a paper. As can be ...
6
votes
1answer
2k views

Diagram of an artificial neural network

I need draw some picture, but I don't know how do that. First, the simple graph with basic shapes, arrow,.... And then, draw a picture with math symbol or equation in math environment. Like that: ...
2
votes
1answer
170 views

How do I make my path node follow the path from a certain position?

I am trying to make a diagram with a curved arrow and I want its node to follow the arrow from about the "near end" point. I have been googling for hours now and I can't find the way to do it. I've ...
2
votes
0answers
95 views

Programmatically converting an integer into bits with graphical output [duplicate]

I just stumbled upon this interesting question about "how to automatically draw tree diagrams of prime factorization with LaTeX" and it rang a bell. I 'd like to create a command that displays the ...
5
votes
2answers
261 views

Draw a trellis with time labels

How can I draw a graph like the below image? It seems that I could use some package for drawing graphs but I am new and I dont know if they have limitations. The requirements are: -There is a ...
4
votes
2answers
89 views

psgo.sty the goboards are not drawn

I use TeXlive on Debian Wheezy. I have psgo.sty installed (in texlive-games). I have downloaded psgomanual.tex. After I enter the command latex psgomanual.tex I get a .dvi file. With lots of warnings ...
47
votes
6answers
2k views

How to automatically draw tree diagram of prime factorization with LaTeX?

I want to have a simple interface to automatically draw tree diagrams of prime factorization. For example, by invoking the following code, \PrimeTree{36} \PrimeTree{90} \PrimeTree{112} ...
6
votes
1answer
189 views

How to plot sectors in 3D with LaTeX?

I wish to have two sectors (one in blue color, the other in black pencil) in 3D, and they share the same vertex on the plane. The black pencil one lies on the plane, whereas the blue one is theta ...
0
votes
1answer
103 views

Picture environment in latex. How can I use the same length but

I am using the picture environment and this comes from a pdf I found online about it The picture environment has one mandatory argument, which specifies the size of the picture. The environment ...
13
votes
3answers
459 views

Drawing complex diagrams with TikZ using gradients

I am relatively new to LaTeX. I don't find it an issue writing documents and so on but when I try to draw diagrams I run into some bother. I was reading an article and found this diagram: I was ...
2
votes
0answers
88 views

Wrapping Lyx Graphic

I'm very new to this whole LaTeX system, but I love the typesetting, it looks so much better than Word, but i'm currently preparing an article with multiple columns using a \start{multicols} script i ...
0
votes
1answer
446 views

Import code from LaTeXDraw to writeLaTeX

I am new to LaTeX. I am trying to write my master thesis using WriteLaTeX. I wanted to make some figures using LaTeXDraw. However, I want to import the code to my report and not the final picture. How ...