![Young 图中下支架](https://linux22.com/image/315582/Young%20%E5%9B%BE%E4%B8%AD%E4%B8%8B%E6%94%AF%E6%9E%B6.png)
我需要记录 Cherednik 图上不同行上两个块之间的空格数。我尝试过
\young(\underbrace{:::}_text{k}\hfill,\hfill)
但它不喜欢这样,只会调用一个错误。任何帮助都将不胜感激。
正在运行的代码如下
\documentclass[10pt]{article}
\usepackage{verbatim, amsmath} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{ytableau}
\usepackage[enableskew]{youngtab}
\usepackage[none]{hyphenat}
\begin{document}
\section{Cherednik Diagrams n=2,3}\label{MyFirstSection}
\[ \young(:::\hfill,\hfill)\]
\end{document}
答案1
一种可能性是使用ytableau
和tikzmark
TikZ 库(我无法使这种方法起作用youngtab
):
代码:
\documentclass[10pt]{article}
\usepackage{verbatim, amsmath} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{ytableau}
\usepackage[enableskew]{youngtab}
\usepackage[none]{hyphenat}
\usepackage{tikz}
\usetikzlibrary{tikzmark,decorations.pathreplacing}
\begin{document}
\section{Cherednik Diagrams n=2,3}\label{MyFirstSection}
\ytableausetup{smalltableaux}
\begin{ytableau}[]
\none & \none & \tikzmark{starta} \\
\tikzmark{end} \\
\end{ytableau}
\begin{tikzpicture}[remember picture,overlay]
\draw[decorate,decoration={brace,raise=4pt}]
([xshift=5pt]{{pic cs:starta}|-{pic cs:end}}) -- node[below=7pt] {$k$} ([xshift=-5pt]pic cs:end);
\end{tikzpicture}
\end{document}
为了标记间隙,请更改班次:
\documentclass[10pt]{article}
\usepackage{verbatim, amsmath} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{ytableau}
\usepackage[enableskew]{youngtab}
\usepackage[none]{hyphenat}
\usepackage{tikz}
\usetikzlibrary{tikzmark,decorations.pathreplacing}
\begin{document}
\section{Cherednik Diagrams n=2,3}\label{MyFirstSection}
\ytableausetup{smalltableaux}
\begin{ytableau}[]
\none & \none & \none & \none & \tikzmark{starta} \\
\tikzmark{end} \\
\end{ytableau}
\begin{tikzpicture}[remember picture,overlay]
\draw[decorate,decoration={brace,raise=4pt}]
([xshift=-5pt]{{pic cs:starta}|-{pic cs:end}}) -- node[below=5pt] {$k$} ([xshift=6pt]pic cs:end);
\end{tikzpicture}
\end{document}
该文档必须运行两到三次才能使元素到达其最终位置。
答案2
你是指这样的吗?
\documentclass[10pt]{article}
\usepackage{verbatim, amsmath,stackengine}
\stackMath
\usepackage{ytableau}
\usepackage[enableskew]{youngtab}
\usepackage[none]{hyphenat}
\begin{document}
\section{Cherednik Diagrams n=2,3}\label{MyFirstSection}
\[ \stackunder[5pt]{\young(:::\hfill,\hfill)}{%
\stackunder{\makebox[2.15em]{\upbracefill}}{k}}\]
\end{document}
将 更改2.15em
为其他值将改变下支撑的宽度。Young 图与下支撑的垂直间距已设置为5pt
。