Questions tagged [tikz-cd]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
15 views

In LyX, tikz-cd appears inline. How to make it display as in Display Formula?

I am typing an article in LyX. I use ERT to input tikz-cd. The diagram is faithfully shown in the output, but always inline. I would like to make it display, precisely like a Display Formula in LyX, ...
3
votes
1answer
76 views

Turnstile arrow in tikz-cd

I want to produce a "turnstile" ie \vdash style arrow in tikz-cd. I can do it with option [maps to, no head] but then the vertical bar appears too short: \documentclass{article} \usepackage{...
0
votes
2answers
62 views

How to draw different arrows in TikZ block diagram

I have the following code and I want to do some thing like this to it. Could you help how to draw the arrows and ... \begin{tikzpicture}[ % GLOBAL CFG font=\sf \scriptsize, >=LaTeX, cell/.style={...
1
vote
1answer
36 views

Long exact sequence too long

Is there any way to fit the following long exact sequence in normal text width without making it too ugly? \documentclass{amsart} \usepackage{tikz-cd} \begin{document} \[\begin{tikzcd}[column sep = ...
2
votes
1answer
41 views

Massive error in tikz-cd in 3 lines of code. Help!

I have 3 lines of code that is supposed to say "This is a very important equation" downarrow $x = 123$ \documentclass{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} ...
1
vote
1answer
35 views

Skewed labels in tikzcd

I was drawing a diagram on natural transformation using tikzcd. However, I don't know why the output was "skewed": \documentclass{article} \usepackage{mathrsfs} \usepackage{tikz-cd} \begin{...
3
votes
1answer
62 views

Merging Arrows to Show Implications in Tikz-CD

I'm trying to create a diagram with logical implications between various propositions, and some of them are conjunctions. Suppose I want to show this: A => C A&B => D the best I can get ...
2
votes
1answer
27 views

Resize individual cells in tikz-cd

I would like to typeset diagrams like this which can be done with \documentclass{minimal} \usepackage{tikz,tikz-cd} \begin{document} \begin{tikzcd} A\otimes B\arrow[d,"f", ...
0
votes
3answers
37 views

Inline vertical diagrams

Is there a package that allows for vertical in-line diagrams, like the one below? I've tried the following code inline using xy-pic \documentclass{article} \usepackage[all,cmtip,2cell]{xy} \begin{...
0
votes
0answers
37 views

Combine multiple tikz-cd diagrams as in tikzpicture

EDIT: I found the desired solution here: https://tex.stackexchange.com/a/525046/225692 As was pointed out in the comments, one can also combine tikz-cd diagrams as subfigures with the subcaption ...
0
votes
1answer
46 views

latex code for kernel in category theory

I need latex code for this picture. Could you please help me provide one using the package tikz-cd? I don't know latex properly. Also, how can I reverse arrows in the diagram later? Thanks a lot!
0
votes
0answers
30 views

Set the color of a tikz-cd Glyph arrow tip with xelatex

I'm using a Glyph tip from tikz-cd to get arrows like \looparrowright and friends. However I would like to change the color. latex compiles the following MWE correctly, but xelatex leaves the loop ...
1
vote
1answer
39 views

tikz-cd arrow between arrows is asymmetric (too short in one direction)

I want to draw an arrow (A) between two arrows (B and C) in tikz-cd, so that A is directly touching both B and C, like in the following diagram. The code below seems like the sensible attempt at this ...
0
votes
1answer
32 views

How to draw a diagram with arrows facing each other using tikz-cd?

I want to have the four objects, with lines facing opposite directions and with lines facing each other as such: I'm quite new to tikz-cd and I was wondering how to do this, especially with aligning ...
0
votes
2answers
92 views

How to make this 3D diagram with Tikz? [duplicate]

I would like to include this diagram into my work However, I don't know how to start, since I have never used tikz, but the more modest tikzcd for my commutative diagrams. I should point out three ...
3
votes
2answers
102 views

Manually placing cells in tikzcd

I have been trying to make manual cell shifting in a tikz-cd diagram work in my case, but I am running into some issues when my diagram gets too big. My desired diagram is something like \...
1
vote
2answers
38 views

How to simply rotate without any shifts

So I am trying to draw a simple vector at the (-2,-2) point that is exactly 60 degrees. However, when I rotate, it places the arrow somewhere completely different. I do not know what else to do ...
2
votes
1answer
56 views

Tikzcd question on arrow labels

I tried to draw a commutative diagram of this form: The code and link to it on https://tikzcd.yichuanshen.de/ are these one: \begin{tikzcd} u_i \arrow["?"', loop, distance=2em, in=125, out=...
1
vote
0answers
40 views

Errors with tikzcd when labeling arrows [closed]

I am trying to create some diagrams using tikz-cd, but I get several errors the moment I add any label to the arrows. To be precise, this works fine: \[ \begin{tikzcd} G \arrow[r] \arrow[d] & G \...
0
votes
1answer
38 views

Problems with order in crossings tikzcd

I need to draw the following diagram but I don't know how to use crossing over in order to make the arrow that goes from C to B cross over the rest. Is it possible to do so? Here is my code. How ...
13
votes
4answers
874 views

Represent schematically using the tikz package a “commutative” diagram where two of the “arrows” are circular loops

Consider the diagram where the clockwise circular arrows indicate $M_{f^t}$ has a structure inherited from the structure of the R-module $\mathscr{D}_{n,k}[t]. I have tried to duplicate it as follows ...
1
vote
2answers
43 views

uniform entry sizes in tikzcd

I've asked before about the easiest way to normalize entry sizes in tikzcd but feel like I still don't understand the best practices to draw a relatively symmetric diagram with widely divergent entry ...
2
votes
1answer
41 views

Incompatibility between Tikz-cd and German language under Polyglossia

The following MWE shows a incompatibility between tikz-cd and polyglossia: \documentclass{report} \usepackage{polyglossia} \setmainlanguage{german} \usepackage{tikz-cd} \begin{document} \begin{...
7
votes
1answer
176 views

Curve of fixed height between two nodes in tikz-cd

I have a tikz-cd diagram, and I would like to bend the arrows by a certain distance (so that their heights are a fixed distance from the straight line connecting the endpoints). With bend left, the ...
0
votes
1answer
35 views

Set the label colour in tikzcd to be different to the arrow colour

The arrows in my tikz-cd graph are green. I would like the label for the arrows to be a different colour. In fact, I would like the text in the label to be of multiple colours. Is it possible to to ...
2
votes
2answers
58 views

TikZ conflicts with babel on beamer

I'm trying to draw commutative diagrams with tikz-cd in a LaTeX presentation but I repeatedly get the error "! Argument of \language@active@arg" has an extra }.". \documentclass{beamer} ...
6
votes
3answers
451 views

How can I make code of tikzpicture to plot the graph of $\sin x$ as shown in the figure?

I want to plot the graph of sin(x), getting the degrees on the x-axis as shown in the figure. I tried like this, but it is not like what I want. Can someone help providing me the code? \documentclass[...
0
votes
1answer
77 views

How to fix the error TeX capacity exceeded, sorry [input stack size=5000].?

I created a code of tikzpicture in Geogebra, but when I try to run it I am getting this error ! TeX capacity exceeded, sorry [input stack size=5000]. \font@name -> \T1/ptm/m/n/10 l.460 ...-20.0:380....
5
votes
1answer
73 views

Label placement on a tikzcd “to path” arrow

I am using to path in order to have a better control of an arrow in a tikzcd diagram. However, I am having trouble to placement the label. With this code \documentclass{article} \usepackage{tikz-cd} \...
4
votes
1answer
163 views

Deforming/projecting text in TikZ(-cd) along a curved surface

This is a continuation of STeX Exchange 552946. I've been trying to get some 3D effects on tikz-cd, and got an amazing answer by @ZhiyuanLck. The only remaining problem is getting text/arrows to be ...
2
votes
1answer
46 views

Tikzcd: how to get a continuous vertical line?

In order to illustrate the "Free Functor" w.r.t. a functor $F$, I used the following diagram \usepackage{tikz,tikz-cd} \begin{document} \begin{figure}[h!] \centering \begin{tikzcd}[column ...
3
votes
1answer
170 views

3D arrows in tikz-cd

Is there a way to get a "3D slant" effect on tikz-cd? I mean something like the Rightarrows in the following diagram, which I made using code from another tex.SE answer: There are still ...
3
votes
1answer
39 views

Tikz left aligning node text on multiple lines

So for some reason even, even with using &, the text on multiple lines wont left align and I can't figure out why. Can someone give me a tip? \documentclass{minimal} \usepackage{tikz} \usepackage{...
1
vote
1answer
20 views

Name of arrow does not appear in commutative diagram [duplicate]

In Latex, I put the following code: \begin{tikzcd} A \arrow[r, "f"] & B \end{tikzcd} However, the 'f' does not appear over the arrow. How can I solve this?
0
votes
1answer
37 views

Arrows inside a diagram using tikzcd

I would like to draw the following diagram using tikzcd. I have asked a question before to draw arrows inside a square and a triangle. It is at Arrows inside a commutative diagram using tikzcd I have ...
1
vote
1answer
36 views

Kan extension diagram in tikzcd

I am trying to draw the following picture using tikzcd and here is my current attempt: \begin{document} \begin{tikzcd}[row sep=huge, column sep=huge] % drawing 0- and 1-celss \mathcal{C} \...
1
vote
0answers
29 views

Commutative squares in Beamer [closed]

I'm trying to draw a commutative square in a beamer presentation, but my attempts haven't been successful. For example, if I use this method (from here): \begin{tikzcd} A \dar{g} \rar{f} & B \...
1
vote
1answer
44 views

Beamer and tikz-cd

The answers here have helped me get the PDF to asctually compile, but the product is not what I need just yet Beamer Tikz-cd Problem I am trying to produce this diagram, which compiles just fine in ...
1
vote
1answer
136 views

reducing size of a diagram in tikzcd

Following is the minimal working example \documentclass[12pt,reqno,a4paper]{amsart} %\usepackage[utf8]{inputenc} % not needed with up-to-date TeX systems \usepackage[english]{babel} \usepackage[all]{...
2
votes
1answer
28 views

tikz-cd inside restatable environment causes a compilation error

I'm trying to include a tikz-cd diagram inside a restatable theorem environment, but this gives me a compilation error. Is there a way to avoid this? Minimum working example: \documentclass{article} ...
2
votes
1answer
39 views

Two arrows sharing a single point as target and initial are not lie in same straight-line in tikz picture

I am currently running the following code: \pdfminorversion=4 \documentclass[]{article} \usepackage{tikz-cd} \usepackage{adjustbox} \begin{document} $$\adjustbox{scale=1,center}{% \begin{...
7
votes
3answers
384 views

usepackage{tikz-cd} vs usetikzlibrary{cd}

Is there a difference between using the package tikz-cd and using the cd tikz library and loading tikz directly? I can't find the answer in the documentation of either package.
2
votes
1answer
66 views

Equilateral triangle commutative diagram

Here is my LaTeX for a commutative diagram using tikz-cd: \documentclass{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}[column sep=small] & & Y & & \\ & A \...
2
votes
2answers
95 views

Make tikz arrows glow

I have a tikz-cd diagram where I would like each arrow to have a "glow", where the glow is the same colour as the arrow. How might I do this? MWE \documentclass{article} \usepackage[dvipsnames]{...
1
vote
1answer
31 views

Tikz-cd diagrams are not fancy

So I tried looking for that on the net, but nobody seems to be addressing this issue. I am trying to add diagrams to a document, and it does work. But the result is not as fancy as in this tool : ...
1
vote
1answer
27 views

How can I draw a commutative diagram without the arrows overlapping?

I am trying to draw a commutative diagram as follows. \usepackage{tikz-cd} \usepackage{newtxmath} \begin{document} \[ \begin{tikzcd} & P \arrow[d, "\pi_i" near start] &\\ & P_i \arrow[u,...
0
votes
3answers
71 views

TikzCd: Midway label of a diagonal edge

I have the following problem. I want to label the edge of A and B with a letter f. The thing is, if I use \draw [->] (v1) -- node[midway]{$f$} (v2); I get this: And if I use \draw [->] (v1) ...
1
vote
2answers
41 views

yshift for arrow labels in tikz-cd, without also shifting arrow

The syntax for arrows in tikz-cd is \arrow[options]. Arrows can either be positioned relatively (e.g. \arrow[r, "\phi"]) or absolutely (\arrow[from=1-1, to=1-2, "\phi"]). I want to shift the label of ...
1
vote
1answer
52 views

Commutative Diagram in Standalone using TikZcd

I'm trying to draw a diagram of a function that is Injective but not Surjective. I'm using standalone, and want the end result to look like the this image: My code is modified from https://tex....
0
votes
1answer
32 views

How can I align a short bit in a tikz diagram with part of a longer expression without tearing the long expression apart?

I have this commutative diagram, drawn with tiz-cd: \[ \begin{tikzcd}[row sep=0.1em] R \arrow[r, "T_R"] & T_R(R) \arrow[r, "G", dashed] & T_S(S) & S \arrow[l, "T_S"'] \\ ...

1
2 3 4 5
12