Skip to main content
24 votes

How to put a square inside a commutative diagram?

The right way with tikz-cd is to use a "phantom" arrow as in \arrow[dr, phantom, "\square"] MWE (I've used some code to reproduce the picture and not yours): \documentclass{article} \usepackage{...
karlkoeller's user avatar
19 votes
Accepted

Can we rotate symbols in LaTeX? How should we make this diagram?

Two solutions, one with “standard” tools, one with tikz-cd and code by LaRiFaRi. \documentclass{article} \usepackage{amsmath,amssymb} % for both solutions \usepackage{graphicx} % for the first ...
egreg's user avatar
  • 1.1m
18 votes
Accepted

How to scale a tikzcd diagram

Like this? \documentclass{article} \usepackage{tikz-cd} \usepackage{lipsum} \usepackage{adjustbox} \begin{document} \lipsum[1] \adjustbox{scale=2,center}{% \begin{tikzcd} X \arrow{d}[swap]...
Bernard's user avatar
  • 273k
14 votes
Accepted

Display problems with a tikz-cd diagram

The problem are the cells with different widths. You can use between origins to fix the issue. I also changed the dots to be “rotated \cdots”. The commands \updots and \downdots have an optional ...
egreg's user avatar
  • 1.1m
13 votes
Accepted

Double arrows in tikzcd

Add the arrow and shift it. I'd give some more room to the diagram and change side for most of the labels. \documentclass{article} \usepackage{amsmath} \usepackage{tikz-cd} \begin{document} \begin{...
egreg's user avatar
  • 1.1m
13 votes
Accepted

Very curved arrow with tikzcd

above image exploit option looseness from TikZ: \documentclass[border=3mm, preview ]{standalone} \usepackage{tikz-cd} \begin{document} \[ \begin{tikzcd} A & ...
Zarko's user avatar
  • 300k
13 votes
Accepted

Setting the name of matrix in tikz-cd

The name is already set and can be retrived from the macro \tikzcdmatrixname. To further draw over your tikzcd matrix use execute at end picture. \documentclass{article} \usepackage{tikz} \...
Henri Menke's user avatar
13 votes
Accepted

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

I propose to use a scaled version of \circlearrowleft on a phantom vertical arrow: \documentclass{article} \usepackage{amssymb, mathrsfs} \usepackage{adjustbox} \usepackage{tikz-cd} \begin{document} ...
Bernard's user avatar
  • 273k
12 votes
Accepted

Tikz-cd problems whilst also using breqn package

In order to cope with babel that may make ; into an active character (with French, for instance), Tikz provides a definition for the active ; as \tikz@nonactivesemicolon which is just a standard ...
egreg's user avatar
  • 1.1m
12 votes

Tikzcd pullback square issue

Why don't you simply insert the \lrcorner symbol? \documentclass[svgnames]{article} \usepackage{tikz-cd, amsmath, amssymb}% \begin{document} \begin{center} \begin{tikzcd} F \arrow[r] \arrow[d] \...
Bernard's user avatar
  • 273k
12 votes

Can we rotate symbols in LaTeX? How should we make this diagram?

A solution with stackengine: \documentclass{article} \usepackage{amsmath, amssymb, graphicx} \usepackage[usestackEOL]{stackengine} \begin{document} \[ \stackMath \dotsm \xrightarrow{\enspace\cong\...
Bernard's user avatar
  • 273k
12 votes
Accepted

usepackage{tikz-cd} vs usetikzlibrary{cd}

No (practical) difference. The code (excluding copyright comment lines) in tikz-cd.sty is: \ProvidesPackage{tikz-cd}[2014/10/30 v0.9e Commutative diagrams with tikz] \RequirePackage{tikz}[2013/12/13] ...
Phelype Oleinik's user avatar
12 votes
Accepted

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

The main idea is to combine text along path of library decorations.text with canvas is plane of library 3d. In my last answer, I have shown how to place node on specified plane by set x unit vector ...
ZhiyuanLck's user avatar
  • 4,526
11 votes
Accepted

How to rotate an arrow label in tikz-cd

You can apply styles to labels in tikz-cd. Usually they would be like "\sim" draw, while with multiple options, they would need to be enclosed by braces. However, I'm inexplicably getting an error in ...
Alenanno's user avatar
  • 37.5k
11 votes
Accepted

Centering diagrams made with tikz-cd

The reason for this is that the curved arrows define helper coordinates that are placed far outside the drawn parts of the diagram, so the diagram contains a lot of whitespace, and its width is ...
Torbjørn T.'s user avatar
11 votes

Curved arrow in tikzcd

Just use an \arrow command like for the other arrows. Add \arrow[bend right=60,swap]{drr}{X} to the first cell. Moreover, I suggest to use swap in some places to move the label to the other side of ...
gernot's user avatar
  • 50k
11 votes
Accepted

Drawing rectangular commutative diagrams

Same principle really. See the diagram as a 4×3 matrix. In the first row you have KF' in the second column, nothing in the first and third col. In the second row you have K and F' in the first and ...
Torbjørn T.'s user avatar
11 votes

Vertical subset symbol in tikzcd

This can be done as a single tikzcd using phantom arrows: If you want the rows more compact you can add [row sep=small], or set row sep to any length you like. \documentclass{article} \usepackage{...
Sandy G's user avatar
  • 46.6k
11 votes
Accepted

Problem with a commutative diagram

You need three columns. But also to vertically align \pi and \pi'. With \setheight{x}{y} we typeset x, but as if its vertical dimensions were those of y. \documentclass{article} \usepackage{amsmath} ...
egreg's user avatar
  • 1.1m
11 votes

How to typeset commutative diagrams

You're pretty close. Move \beta X to the second column by adding & in front of it. Then move your g arrow to the third cell in the row. Note that you can use ' to swap the side of the arrow where ...
Sandy G's user avatar
  • 46.6k
10 votes

Missing \endcsname in Tikzcd

Based on your name, I suspect your document is something like \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[polish]{babel} \usepackage{tikz-cd} \begin{...
egreg's user avatar
  • 1.1m
10 votes
Accepted

How to put a square inside a commutative diagram?

Two solutions: one with pstricks and a psmatrix environment, the other with tikz-cd, in which I use the short syntax for arrows: \documentclass{article} \usepackage{mathtools, amssymb} \usepackage{...
Bernard's user avatar
  • 273k
10 votes
Accepted

How to make a commutative diagram using {tikz-cd}?

Think to a matrix and add the arrows: \documentclass{article} \usepackage{amsmath,amssymb,tikz-cd} \begin{document} \begin{equation*} \begin{tikzcd}[row sep=huge] A \arrow[r,"\phi_n"] \arrow[d,swap,...
egreg's user avatar
  • 1.1m
10 votes
Accepted

\tikzcdset{arrow style=math font} breaks the rendering of arrows

tikz-cd assumes two things when drawing the arrows: That the line width of the arrow is the same as the width of a fraction rule, and that the arrow goes along the math axis. Both is not true for ...
Ulrike Fischer's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible