我可以编写类似\begin{tikzcd}[t]
(maths)的内容\end{tikzcd}
,就像使用\begin{aligned}[t]
(maths){\end{aligned}
来让tikzcd
环境定位到“顶部”吗?在下面的例子中,我希望\implies
与 保持一致\int
。
编辑:出于某些原因(除非看起来相关,否则我不会费心描述),对于我来说,将标志保存在嵌套环境\implies
的父环境中会很方便。tikzcd
代码
\documentclass{article}
\usepackage{amsmath, amssymb, bm, tikz-cd}
\begin{document}
\begin{align*}
\implies
\begin{tikzcd}[column sep = small, ampersand replacement = \&]
\int g \text{d}t \arrow[r, equals] \arrow[d, equals] \& \int \bm{\Ddot{x}} \arrow[d, equals] \\
gt \arrow[r, equals] \& \bm{\Ddot{x}} + c
\end{tikzcd}
\end{align*}
\end{document}
答案1
如果我理解你的问题正确的话,那么你可以根据以下交换图来理解:
\documentclass[border=3.14]{standalone}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
\ar[r,Rightarrow] & \int g\,\mathrm{d}t
\ar[r, equal]
\ar[d, equal] & \int \ddot{x}\,\mathrm{d}t
\ar[d, equal] \\
& gt
\ar[r, equal] & \ddot{x} + c
\end{tikzcd}
\end{document}
附录: 现在,您编辑了您的问题,您似乎正在寻找以下内容:
\documentclass[varwidth, border=3.141591]{standalone}
\usepackage{tikz-cd}
\usepackage{amsmath, amssymb, bm}
\begin{document}
\begin{align}
\begin{tikzcd}[baseline=-1em, anchor=north, % <---
column sep = small, ampersand replacement = \&]
\ar[r,Rightarrow] \& \int g\, dt
\ar[r, equal]
\ar[d, equal] \& \int \ddot{x}\, dt
\ar[d, equal] \\
\& gt
\ar[r, equal] \& \ddot{x} + c
\end{tikzcd}
& = some\ math\ expression \\
c^2 & = a^2 + b^2
\end{align}
\end{document}
或者
\documentclass[varwidth, border=3.141591]{standalone}
\usepackage{tikz-cd}
\usepackage{amsmath, amssymb, bm}
\begin{document}
\begin{align}
\implies & \begin{tikzcd}[baseline=-1em, anchor=north,
column sep = small, ampersand replacement = \&]
\int g\, dt
\ar[r, equal]
\ar[d, equal] \& \int \ddot{x}\, dt
\ar[d, equal] \\
gt
\ar[r, equal] \& \ddot{x} + c
\end{tikzcd} \\
c^2 ={} & a^2 + b^2
\end{align}
\end{document}