{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
167 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
204 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
288 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
214 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
111 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
813 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
218 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
379 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
373 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
167 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
169 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
251 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
88 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
446 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
84 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
420 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 ...
4
votes
1answer
316 views

PRL style horizontal line in Latex

I want to get the line similar to the one in PRL articles at the end. I don't want to use RevTex but can't figure out a simple way of doing it in Latex. Any help will be appreciated.
4
votes
1answer
135 views

Text over picture with white space

I'd like to label some level curves with values that are superimposed over the level curves, creating white space around the labels so that the underlying curves appear "broken". I figured a simple ...
1
vote
0answers
190 views

pictograms, Iconography, scalable shapes, custom nodes, shapes

Hy, I'm building up my own iconography, a set of pictograms that represent ideas so that i can connect them to illustrate more complex systems. I would like some suggestions of which is the best ...
1
vote
1answer
75 views

Too wide diagrams

I have been struggling with diagrams that exceed the margins of my document. Could you tell me how could I solve this problem without changing the margin sizes? I am using the XY package. Thanks!
13
votes
2answers
444 views

How to draw spherical triangles?

Does anyone know how to draw spherical arcs and spherical triangles using LaTeX?
4
votes
1answer
100 views

How to put picture into glossary entry?

I'm using the Glossaries package, which is fantastic, but I'd like to put in pictures which explain the term better than words would. Is there a way for me to do this?
4
votes
4answers
1k views

How can I produce a Hasse (or lattice) diagram?

I want to produce a some kind of lattice diagram, such as a Hasse diagram. How can I do so? I tried using matrix with letters and slashes but it seems ugly. Do I need any additional packages? EDIT: ...
1
vote
1answer
120 views

Label the source/target object in the middle of compositemaps from 2cell package of xy?

In the 2cell package for xy, there is a command for typesetting 2cells between composite arrows, namely \..compositearrow (where the .. stands for some number of u,l,d,r). I would like to use this ...
2
votes
1answer
120 views

Change the orientation of Arrow of xtwocell in the 2cell option for xy

I'm trying to make a diagram similar to this (from wikipedia) Except that I want to the double arrow $\eta$ two be pointing from node $B$ toward the middle of arrow $X$ (it is, after all, a natural ...
3
votes
1answer
453 views

Tikz automaton placed too far to the right

So I'm having a bit of trouble drawing an automaton that I've created. I've been looking around for a while to no real avail, so I decided to just ask the question myself: when I make an automaton ...
0
votes
1answer
283 views

Can LaTeX create graphics with mathematical curves? [duplicate]

I am trying to see how good LaTeX is. Can someone show me whether graphics like this. Thank you due to copyright complains removed the figure.
3
votes
1answer
195 views

Representing Equivalence Relations with Nodes, Loops, and Edges

I've never used TikZ for illustrating equivalence relations, but I thought I'd try it out. What I'd like to produce is something like this: What is the general method for connecting points to ...
3
votes
1answer
198 views

Change color of vertex outline in tkz-graph

Suppose I have the following graph: \documentclass[]{article} \usepackage[utf8]{inputenc} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{fullpage} \usepackage[upright]{fourier} ...
4
votes
1answer
165 views

TikZ and PGF — Design considerations and approach to sizing pictures?

The first pages of the TikZ/PGF manual specifies that measurements are in points, centimeters, or are relational to other lines/objects, but I don't understand how to determine that up front. I have ...
5
votes
1answer
149 views

Relational Grammar arcs

I'm quite used to draw syntactic trees and even AVMs for different linguistic theories, but I've stumbled upon the need to draw Relational Grammar / Arc-paired grammar arcs for a paper I'm writing ...
1
vote
2answers
266 views

Draw a picture of primes ideal lying over a prime ideal

Let $K$ be a number field and $L$ be a finite extension of $K$. Then, let $\mathfrak{p}$ be a prime in $K$ and $\mathfrak{P}$ be a prime lying over $\mathfrak{p}$. I would like to draw the following ...
3
votes
1answer
321 views

Flow of current in a circuit

I am trying to create a circuit with resistors and voltage sources. I need to have each resistor labeled with their resistance (above) and the unknown current (below) flowing through the resistor. I ...
12
votes
3answers
339 views

Draw Polygonal Number Using PSTricks (or TikZ)

I would like to draw the following using PSTricks (or TikZ): (Found on http://i1.wp.com/mathandmultimedia.com/wp-content/uploads/2012/08/polygonal-numbers.png.) I can do it myself using an ...
4
votes
2answers
399 views

Creating a digraph with formulas instead of nodes

I am looking to make a diagram with lines similar to this one: Labeling Edges in a Weighted Digraph But I am trying to have a mathematical formula, which is the label, instead of being above the dot ...
35
votes
3answers
1k views

Replicate the Fourier transform time-frequency domains correspondence illustration using TikZ

The following time-frequency correspondence illustration is in the wikipedia entry of the Fourier transform. Also a gif animation version (if the animation doesn't show, please open the following ...
3
votes
2answers
296 views

Drawing line around obstacle in circuit diagram

I have a circuit diagram with 3 DFFs (rectangles) and an xor gate (pointy bit on the right). For reference, let's identify the components from left to right as x[n], DFF0, DFF1, DFF2 and XOR0. ...
4
votes
1answer
195 views

How to draw compactification and completely regular diagrams in tikz

How can we draw diagrams like this: and
-1
votes
0answers
81 views

How draw an add-two shape? [closed]

I have two shapes: (x0,y0) (x1,y1) ..... end is join to x0,y0 ... How get shape who is additive this two shapes?
5
votes
1answer
113 views

change numbering when using \foreach to assign numbers for aid lines in a diagram

\documentclass[11pt]{article} \usepackage{xfrac, array, tabu, multirow, graphicx, setspace, dcolumn, tikz} \usepackage[fleqn]{mathtools} \usepackage[ngerman]{babel} \usepackage[applemac]{inputenc} ...
10
votes
3answers
272 views

Vertical cofibration arrow in xypic

I want to use xypic to make diagrams using vertical cofibration arrows, i.e. ones that look like $\rightarrowtail$. Naively using \ar@{>->} gives an arrow whose tail overlaps with the ...
5
votes
1answer
164 views

How to specify start and end date of \chronoperiode in a dd/mm/yyyy format

The package chronosys allows to draw a timeline with a reasonable degree of customization, without the need to draw it by yourself using tikz or similar tools. In my opinion, is the most promising ...
4
votes
1answer
874 views

Declare function for tikzpicture

I'd like to declare a function that will be part of the equation that I then want to plot. The equation that I want to plot is defined as \frac{e^{-rT}N'(d_{2})}{S\sigma\sqrt{T}} The function to ...