我创建了下图:
\begin{equation}
\begin{array}{ccc}
&& A \\
&\rotatebox{45}{$\longrightarrow$}& \rotatebox{90}{$\subseteq$}\\
B&\subset& C
\end{array}
\end{equation}
但是对角箭头看起来太短了。我尝试使用\xrightarrow{\hspace*{1cm}}
,但没有帮助:图表的第二行变得太高了。
答案1
你可以用 很好地绘制这种图表tikz-cd
。文档位于 CTAN这里。
\documentclass[fleqn]{article}
\usepackage{tikz-cd}
\begin{document}
\begin{equation}
\begin{array}{ccc}
&& A \\
&\rotatebox{45}{$\longrightarrow$}& \rotatebox{90}{$\subseteq$}\\
B&\subset& C
\end{array}
\end{equation}
and now with tikz-cd
\begin{equation}
\begin{tikzcd}
& A \\
B \arrow[ru] \arrow[r,phantom, "{\subset}", description]
& C \arrow[u,phantom, "\rotatebox{90}{$\subseteq$}", description]
\end{tikzcd}
\end{equation}
\end{document}
答案2
借用以下代码拉里法里
\documentclass[fleqn]{article}
\usepackage{tikz-cd}
\tikzset{
symbol/.style={
draw=none,
every to/.append style={
edge node={node [sloped, allow upside down, auto=false]{$#1$}}}
}
}
\begin{document}
\begin{equation}
\begin{tikzcd}
& A \\
B \arrow[ru] \arrow[r,symbol=\subset]
& C \arrow[u,symbol=\subseteq]
\end{tikzcd}
\end{equation}
\end{document}
答案3
psmatrix
来自 的环境解决方案 pst-node
。您可以使用 进行编译pdflatex
,前提是您使用编译器开关--enable-write18
(MiKTeX) 或-shell-escape
(TeX Live、MacTeX):
\documentclass[a4paper,11pt, pdf]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}%
\usepackage{lmodern}
\usepackage{pst-node}
\newpsobject{ncemptyline}{ncline}{linestyle=none}
\newcommand*\ncsubset[2]{\ncemptyline{#1}{#2}\ncput[nrot=:U]{\subset}}
\newcommand*\ncsubseteq[2]{\ncemptyline{#1}{#2}\ncput[nrot=:U]{\subseteq}}
\newcommand*\ncsubsetneq[2]{\ncemptyline{#1}{#2}\ncput[nrot=:U]{\varsubsetneq}}
\newcommand*\ncvarsubsetneq[2]{\ncemptyline{#1}{#2}\ncput[nrot=:U]{\scalebox{1}[-1]{$ \varsubsetneq $}}}
\pagestyle{empty}
\begin{document}
\[ \psset{nodesep=2pt, linewidth=0.6pt, rowsep=6mm, colsep=8mm}
\begin{psmatrix}
& [name=A] A \\
[name=B] B& [name=C] C\\
\ncline[arrows=->]{B}{A}
\ncsubset{B}{C}\ncsubseteq{C}{A}
\end{psmatrix}
\]
\end{document}