Questions tagged [tikz-cd]

{tikz-cd} concerns commutative diagrams produced by the tikz-cd package.

Filter by
Sorted by
Tagged with
0 votes
2 answers
97 views

Having a curved arrow instead

I have the following code: \begin{tikzcd} A \arrow{r}{f} \arrow[swap]{dr}{g\circ f} & B \arrow{d}{g} \\ & C \end{tikzcd} but I need to have a curved arrow from A to C, any help ...
user avatar
0 votes
0 answers
46 views

TikZ: Complicated Flow Chart, question #142548, How do I get the text?

Question 142548This solution looks extremely useful, however after compiling the given code, all I get is: . My guess is that there is an update to do to some packages to get the correct pdf (the ...
user avatar
  • 844
1 vote
3 answers
166 views

Shift a tikz-cd diagram up when wrapping text around it

I want to include a tikz-cd diagram alongside text, wrapped around it. To do this, I am using the package wrapfig. The code looks like this: \documentclass[psamsfonts]{amsart} \usepackage{quiver} \...
user avatar
3 votes
2 answers
80 views

I need modification of the following code. I need to draw the red dashed lines as given in figure

This is what I have done \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=3] \tikzstyle{every node}=[circle, ...
user avatar
0 votes
1 answer
73 views

Attaching a small rhombus with a circular bullet at its bottom

I wanna attach (means by adding a second arrow) a small rhombus with a circular bullet at its bottom to the following drawing: \documentclass{article} \usepackage{amsmath} \usepackage{tikz-cd} ...
user avatar
  • 353
1 vote
0 answers
69 views

How to resize tikzcd figure to fit in beamer frame? [duplicate]

I am preparing my slides using beamer. My working code is as follows: \documentclass{beamer} \usepackage{pgf,tikz,tikz-cd} \usetikzlibrary{calc, arrows, backgrounds, fit, positioning, quotes, shapes,...
user avatar
1 vote
1 answer
96 views

Putting 2 dotted lines inside a rhombus

I know how to draw 3 rhombi above each other as follows: \documentclass{article} \usepackage{amsmath} \usepackage{tikz-cd} \usetikzlibrary{shapes.geometric} \begin{document} \[\...
user avatar
  • 353
0 votes
1 answer
45 views

How can I draw 3 straight arrows pointing to the same thing?

In the following figure: \begin{tikzcd} A \arrow{r}{f} \arrow[swap]{dr}{g\circ f} & B \arrow{d}{g} \\ & C \end{tikzcd} I want to draw 3 straight arrows pointing from $B$ to the ...
user avatar
  • 353
0 votes
2 answers
40 views

Move equation label underneath diagram/equation with tikzd

I'm doing a lot of equations with tikzcd, and for some bigger equations I want the equation number labet to be on the bottom of the diagram. Is there any way to achieve this without manipulating the ...
user avatar
0 votes
2 answers
128 views

Changing the arrows into $\mapsto.$

I wanna change the arrows into $\mapsto$ in the following diagram: \begin{center} \begin{tikzcd}[arrows=<-] & s'_1 \ar[rd,"j_1^*"]\\ s \ar[ru,"i_1^*"] \ar{r}{i_2^*} \ar[...
user avatar
  • 353
3 votes
3 answers
384 views

How can I draw a big equality in a commutative diagram with extensions?

Here is the figure I want to draw: I know how to draw a commutative square, like this: \[\begin{tikzcd}[sep = large] 0 \ar[r] & A \ar[d]\ar[r] & B \ar[d]\ar[r] & C \ar[d]\ar[r] & 0 &...
user avatar
  • 353
3 votes
2 answers
157 views

Reversing all arrows without changing the place of any set

Here is the code; I want to reverse its arrows without changing the place of any set: \begin{center} \begin{tikzcd} & N_1 \ar{rd}{j_1}\\ N\ar{ru}{i_1} \ar{r}{i_2}\ar{rd}[swap]{i_3} &...
user avatar
  • 353
1 vote
1 answer
55 views

Adjusting a code of a diagram

Here is the code I am trying to compile on my overleaf: \begin{tikzcd}[row sep=huge] H_{\bullet}(\Sigma X) \arrow[r,"c_*"] \arrow[dr,bend right,"\Delta"'] & H_{\bullet}(\...
user avatar
  • 353
2 votes
1 answer
139 views

Increase the thickness of an arrow in xy and tikz-cd package

We start from these simples MWE. The first is done with xy package, with your tips: \documentclass[a4paper,12pt]{article} \usepackage[all]{xy} \begin{document} \xymatrix{A \ar[r]& B} \end{document}...
user avatar
  • 46.4k
3 votes
1 answer
216 views

Labels of arrows in a tikzcd diagram not showing in Beamer

I just made a diagram for a Beamer presentation, but the names of the arrows involved do not appear after compiling. Here's a picture reflecting the situation. Here's some minimal working example (...
user avatar
  • 559
2 votes
2 answers
77 views

Arrows labeled with matrices in tikz-cd

I want to write a commutative diagram with tikz where some arrows are labeled with matrices. I know that nesting creates problems in tikz, and I don't know how to handle this. I usually put the ...
user avatar
1 vote
1 answer
44 views

tikzcd: distortion from large nodes

I have the following piece of tikz-cd code where the large node in the middle is making that column larger than the others, resulting in distortion: \[\begin{tikzcd}[column sep={4em,between origins},...
user avatar
2 votes
1 answer
95 views

Is there an alternative for \begin{figure} to caption diagrams in tikzcd?

I am writing my thesis at the moment and I need a few diagrams inside a Theorem. At the moment I am using tikzcd and figure, but my diagrams always jump to the beginning of my page. Is there a better ...
user avatar
  • 103
2 votes
1 answer
150 views

How to fix the problem in tikzpicture code?

I have created the tikzpicture code using geogebra but the dimension of size is large and crossing the size of page. I tried to make some change but the figure get disturbed. How to fix this issue. I ...
user avatar
5 votes
3 answers
168 views

Define a numbered, referenceable environment

In the document that I am writing, I regularly need to draw commutative diagrams using tikz-cd (see MWE). I'd like to define a custom diagram environment which has the following properties: no ...
user avatar
3 votes
2 answers
236 views

description in arrow is not working in tikzcd

Following is the code: \documentclass[11pt,twoside]{book} \usepackage{tikz-cd} \begin{document} \[\begin{tikzcd} x \arrow[rr, "f"{name=F}, bend left=49] \arrow[rr, "h"'...
user avatar
1 vote
1 answer
290 views

Tikz-cd arrow tips

I changed the commutative diagrams in a LaTeX document from xypic to tikz-cd. I must add that I also have some tikz diagrams with arrows (for example, Dynkin diagrams). Initially I had some problems ...
user avatar
2 votes
1 answer
45 views

Can't Resolve "! Missing \endcsname inserted" Error with tikzcd Package

I've read the other questions on this site corresponding to the same error and I just don't understand why I can't resolve the issue on my machine. Here is essentially what my code looks like: \...
user avatar
  • 207
1 vote
1 answer
51 views

Tikz-cd: diagram does not look centered

I have a tikz-cd diagram which does not want to sit in the middle of the page. I figured out it is because the names of the nodes are to long, because if I replace them all with X, then everything is ...
user avatar
  • 113
0 votes
1 answer
20 views

Command to insert information into optional settings of tikzcd environment

I'd like to make a command to avoid writing /tikz/column 1/.append style={anchor=base west} every time. Is something like this possible? \documentclass{article} \usepackage{tikz-cd} \newcommand{\...
user avatar
  • 715
4 votes
3 answers
145 views

Automatically displaying node labels in tikz-cd

The CoDi package has a prompter feature which, when enabled, puts every node inside a box, labelling them with their object names (see page 8 of the CoDi manual): Is it possible to make tikz-cd do ...
user avatar
  • 191
0 votes
1 answer
66 views

ln-Function in Tikz

I'd like to plot the function f(x)=\ln \left(\frac{1}{2} \frac{x-2}{x}\right) using TikZ. Can someone help me what the correct syntax?
user avatar
  • 177
5 votes
2 answers
119 views

Automatically stretching non-default arrows in tikz-cd

Can I make a non-standard arrow stretch automatically? I'm hoping not to have to apply a \scalebox manually every time. Approach to generating non-standard symbols is taken from here. Code \...
user avatar
  • 715
0 votes
3 answers
304 views

Change tikz-cd arrow 'background color' in beamer

I'm typesetting a diagram in beamer. It renders like this: EDIT: the problem appears to be just the background color of the arrow. It's white and not transparent, therefore stands out on the black ...
user avatar
  • 199
2 votes
2 answers
156 views

Overlapping columns in tikzcd

The bottom-left and bottom-right expressions don't need to be so far apart. Can I make them sit closer together? I guess that means making the outer columns overlap the middle column. Code \...
user avatar
  • 715
1 vote
2 answers
222 views

Adding arrow between two parts of tikzcd diagram

I have the following tikzcd diagram, where I am trying to create an a line between the nodes B and A/I. I tried using two phantom nodes and join an arrow between them, but nothing shows up except a ...
user avatar
  • 209
1 vote
1 answer
182 views

Drawing commutative diagram with encircled nodes in tikz-cd package

I currently have, the following two commutative diagrams for the second and third ring isomorphism theorems: Second Isomorphism \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,fit} \...
user avatar
  • 209
0 votes
0 answers
25 views

Reducing whitespace after linebreaks in tikzcd

I have the following snippet \begin{tikzcd}[ampersand replacement = \&] x_j \arrow[r, mapsto] \& \frac{x_j}{x_i} \\ A(Y_i) \arrow[r, leftrightarrow, "\sim"] \& (S(Y)_{x_i}...
user avatar
2 votes
0 answers
44 views

Can a tikzcd arrow be replaced with another symbol? [duplicate]

I'd like to put other symbols than arrows, e.g. a + sign, between the nodes of a tikzcd diagram. Is this possible?
user avatar
  • 715
10 votes
1 answer
330 views

Drawing partition in LaTeX

I want to draw partition lattice for n=4 like this I was looking for informations how to do it and i found package tikz-cd which i think could be useful but the only thing I managed to do by myself is ...
user avatar
8 votes
2 answers
226 views

Draw dephased exact sequence diagram

I was wondering whether there was a simple way to draw the following diagram, the problem is that I don't know how to draw three diagram dephased of a little bit with the elements under, not the ...
user avatar
-1 votes
1 answer
86 views

Vertical positioning of tikzcd environment

Can I write something like \begin{tikzcd}[t](maths)\end{tikzcd}, as with \begin{aligned}[t](maths){\end{aligned} to get the tikzcd environment to position "top"? In the example below, I want ...
user avatar
  • 715
2 votes
3 answers
267 views

How to draw this commutative diagram

Please, I want to draw the below diagram in latex and don't know how to go about it.
user avatar
-1 votes
2 answers
125 views

How to draw tikz-cd diagram similar to the Snake Lemma diagram [duplicate]

I would like to draw this diagram in tikz-cd. Specifically I would like the arrow to start 'from the top' of B here. I have looked at the example in the manual for tikz-cd, drawing the Snake Lemma, ...
user avatar
  • 1
0 votes
2 answers
158 views

How to draw this graph in tikz?

I am trying to draw the following diagram in tikz. The code I am working on is: \documentclass {article} % example taken from % http://www.guitex.org/home/images/doc/GuideGuIT/introingtikz.pdf \...
user avatar
  • 231
1 vote
1 answer
103 views

Tweaking alignment of arrows in tikz-cd

Is there a way to tweak the alignment of arrows in tikz-cd? In particular, I'd like to align the \bm{\hat{y}} equation with the centre of the \underbrace. I've tried using negative \hspace, and that ...
user avatar
  • 715
1 vote
1 answer
291 views

Drawing a Hasse diagram in latex

I am currently trying to draw the followig hasse diagram in Latex. From my undertsanding i think i should be using the tikzcd pacakge but having trouble getting undertstanding how it works. I would be ...
user avatar
  • 25
2 votes
2 answers
219 views

How can I split the arrow in the following diagram?

I got a help on drawing this diagram from here \documentclass{article} \usepackage{tikz} \usetikzlibrary{cd} \begin{document} \[\begin{tikzcd} & P \ar[dl, dashed, "\tilde{f}&...
user avatar
  • 227
4 votes
3 answers
347 views

How can I put the arrow with the 0 in this diagram?

Here is the diagram I want to draw: I got a help on drawing the following from here : \documentclass{article} \usepackage{tikz} \usetikzlibrary{cd} \begin{document} $$\begin{tikzcd} &...
user avatar
  • 227
3 votes
2 answers
224 views

Drawing commutative left triangle

Here is the figure I want to draw: I do not know exactly from which vertex should I start drawing. Could anyone show me how to draw this please?
user avatar
  • 227
2 votes
3 answers
165 views

Many arrows with alternating directions stacked on top of each other with tikz-cd

When you draw simplicial diagrams in mathematics, the result often looks something like this: \documentclass{article} \usepackage{tikz-cd} \tikzcdset{ diagrams={>={Straight Barb[scale=0.5]}} } ...
user avatar
  • 11.2k
2 votes
2 answers
45 views

Need help with making commutative diagram

I’m trying to make a commutative diagram. The below image is output of following latex programming which is obviously not something I want. Can someone please fix it. \documentclass[oneside,10pt]{...
user avatar
5 votes
3 answers
421 views

How to make an arrow between arrows that is not sloped?

I am trying to make a diagram with arrows between arrows. Here is how it currently looks: with code: \begin{tikzcd} & a \arrow[ld, "Rei"', no head, ""{name=r1}] \arrow[rd, &...
user avatar
  • 177
1 vote
1 answer
71 views

Commutative diagrams with TikZ: how do I compress this diagram?

So I am trying to do a taxonomy diagram using the tikzcd package. The diagram can be generated with following code (I do not how to show a picture of directly): \documentclass \begin{tikzcd}[ampersand ...
user avatar
0 votes
0 answers
71 views

tikzcd intelligent label placement

Is it possible for tikzcd to intelligently place labels? For example, when drawing the following diagram, \begin{tikzcd}[row sep=large] & C \arrow[ld, "f"] \arrow[rd, "g"] \...
user avatar

1 2 3
4
5
16