数组,水平空间/边距

数组,水平空间/边距

如何才能使垂直线和百分号之间的水平空格消失?

在此处输入图片描述

\documentclass[a4paper,fontsize=13pt]{scrartcl}

\usepackage[english, main=ngerman]{babel}
\usepackage[a4paper,left=3cm,right=3cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{xfrac}
\usepackage{enumitem}
\usepackage{aligned-overset}



\begin{document}
\begin[equation}
\begin{array}{|l@{}}
         \text{\%} \; x^{2(k+1)}=(\beta_{1} \beta_{2})^{k+1} x^{0}, \\
         \text{\%} \; \Delta_{2(k+1)}= (\beta_{1} \beta_{2})^{k+1} \Delta_{0} 
\end{array}
\end{equation}

\end{document}

答案1

关键是\begin{array}{|@{}l@{}}。原始帖子的代码中缺少的首@{}字母 会覆盖列前的默认填充。如果您想要介于默认值和无空格之间的值,例如,可以使用\begin{array}{|@{\hspace{1pt}}l@{}}

\documentclass[a4paper,fontsize=13pt]{scrartcl}

\usepackage[english, main=ngerman]{babel}
\usepackage[a4paper,left=3cm,right=3cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{xfrac}
\usepackage{enumitem}
\usepackage{aligned-overset}



\begin{document}
\[
  \begin{array}{|@{}l@{}}
         \text{\%} \; x^{2(k+1)}=(\beta_{1} \beta_{2})^{k+1} x^{0}, \\
         \text{\%} \; \Delta_{2(k+1)}= (\beta_{1} \beta_{2})^{k+1} \Delta_{0} 
\end{array}
\]
\end{document}

在此处输入图片描述

相关内容