我正在尝试使用以下命令输入下图tikzcd
:
我最终
通过以下代码:
\documentclass{article}
\usepackage{tikz, tikz-cd}
\usetikzlibrary{matrix,decorations.pathmorphing,arrows}
\tikzset{commutative diagrams/.cd,arrow style=tikz,diagrams={>=stealth'}}
\begin{document}
\[
\begin{tikzcd}
M\times N \arrow{r}{\iota} \arrow[swap]{dr}{\varphi} & M\otimes_RN \arrow{d}{\Phi} \\
& L
\end{tikzcd}
\]
\end{document}
我怎样才能调整向下箭头的位置?我怎样才能将箭头尖端改为第一张图片中的尖端?
答案1
Computer Modern Rightarrow
如果您修改库中的箭头和,则arrows.meta
它看起来有点像图像中的箭头,即width
length
>={Computer Modern Rightarrow[length=5pt,width=3pt]}
要移动箭头,您可以使用手册中描述的start anchor
和键。end anchor
\documentclass{article}
\usepackage{tikz-cd}
\usetikzlibrary{arrows.meta} % not arrows, but arrows.meta
\tikzset{
commutative diagrams/.cd,
arrow style=tikz,
diagrams={>={Computer Modern Rightarrow[length=5pt,width=3pt]}},
}
\begin{document}
\[
\begin{tikzcd}
M\times N \arrow{r}{\iota}
\arrow[swap,
start anchor={[shift={(-3pt,3pt)}]south east}, % fine tune start of arrow
end anchor={[shift={(2pt,-4pt)}]north west} % fine tune end of arrow
]{dr}{\varphi}
& M\otimes_RN \arrow{d}{\Phi} \\
& L
\end{tikzcd}
\]
\end{document}