Hot answers tagged

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
  • 271k
17 votes
Accepted

Drawing cyclic quiver

You've got a start, which is good - but I would recommend just the TikZ package, mostly because I think it's easier to understand the code and adjust it as necessary. I went that route, so feel free ...
Jānis Lazovskis's user avatar
14 votes
Accepted

Column alignment in tikzcd

In the meantime of me thinking about something more clever, you can go with % arara: pdflatex \documentclass[a4paper,11pt,fleqn,oneside]{book} \usepackage{mathtools} \usepackage{tikz-cd} \begin{...
LaRiFaRi's user avatar
  • 43.7k
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

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
  • 271k
12 votes
Accepted

Split text nodes multiline in tikz-cd

You can for example use a \parbox or tabular for the long labels: \documentclass{article} \usepackage{tikz-cd} \usepackage{amsmath} \begin{document} \begin{tikzcd}[row sep=3cm, column sep=0.9cm] &...
Torbjørn T.'s user avatar
12 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
  • 296k
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
  • 271k
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
  • 271k
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,466
11 votes

Delayed drawing of arrows in tikz-cd

The functionality of the top answer can be obtained directly using tikzcd by placing the following command at the end of the diagram: \arrow[from=2-2, to=4-2, pos=0.75, crossing over, "T f"'] So the ...
Hood Chatham's user avatar
  • 5,457
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
  • 49.3k
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
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
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
10 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.2k
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
  • 271k

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