关于表格的问题,如何改进它?

关于表格的问题,如何改进它?
   \documentclass[12pt,a4paper,final]{article}
\usepackage[left=1.5cm,right=1.5cm,top=1cm,bottom=2cm]{geometry}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{array}
\usepackage{polyglossia}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setmainlanguage[numerals = maghrib, calendar = gregorian]{arabic}
\setotherlanguage{english}
\setmainfont[Ligatures=TeX]{Amiri}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.15]{Amiri}
\begin{document}
\large
\setnonlatin
\vspace{0.25cm}
\begin{center}
\renewcommand{\arraystretch}{1.8}
\begin{tabular}{|c|c|}
\hline
النهاية 
& 
التعريف
\\
\hline
$\lim\limits_{x\to x_0} f(x)=\ell$ 
&
$\forall\varepsilon>0, \exists \delta_{\varepsilon}>0, \forall x\in D_f:\,  |x-x_0|\leq \delta\Rightarrow |f(x)-\ell|\leq \varepsilon$
\\
\hline
$\lim\limits_{x\to x_0} f(x)=+\infty$
&
$\forall A>0, \exists \delta_{A}>0, \forall x\in D_f:\,  |x-x_0|\leq \delta\Rightarrow f(x)\geq A$
\\
\hline
\end{tabular}
\end{center}
\end{document}

我希望在中心,每个定义在另一个之下

谢谢

答案1

从教学角度来说,我不确定这样的表格是否有用。

无论如何,你可以通过删除几乎所有的规则并避免居中对齐来改进它。为了对齐所有“lim”符号,我使用了测量最宽下标的技巧,并将所有下标排版在宽度相同的框中。

\documentclass[12pt,a4paper,final]{article}
\usepackage[left=1.5cm,right=1.5cm,top=1cm,bottom=2cm]{geometry}
\usepackage{amsmath,amssymb,mathtools}
\usepackage{array,booktabs}
\usepackage{fontspec}
\usepackage{polyglossia}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setmainlanguage[numerals = maghrib, calendar = gregorian]{arabic}
\setotherlanguage{english}
\setmainfont[Ligatures=TeX]{Amiri}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.15]{Amiri}

\begin{document}

\begin{center}
\large
\setnonlatin
\settowidth{\dimen0}{$\scriptstyle x\to-\infty$}
\newcommand{\fl}[1]{\mathmakebox[\dimen0]{#1}}
\begin{tabular}{ll}
\toprule\multicolumn{1}{c}{النهاية} & \multicolumn{1}{c}{التعريف} \\
\midrule
\addlinespace
$\lim\limits_{\fl{x\to x_0}} f(x)=\ell$ 
&
$\forall\varepsilon>0, \exists \delta_{\varepsilon}>0, \forall x\in D_f:\,  |x-x_0|\leq \delta\Rightarrow |f(x)-\ell|\leq \varepsilon$
\\\addlinespace
$\lim\limits_{\fl{x\to x_0}} f(x)=+\infty$
&
$\forall A>0, \exists \delta_{A}>0, \forall x\in D_f:\,  |x-x_0|\leq \delta\Rightarrow f(x)\geq A$
\\\addlinespace
$\lim\limits_{\fl{x\to x_0}} f(x)=-\infty$
&
$\forall A<0, \exists \delta_{A}>0, \forall x\in D_f:\,  |x-x_0|\leq \delta\Rightarrow f(x)\leq A$
\\\addlinespace
$\lim\limits_{\fl{x\to +\infty}} f(x)=\ell$
&
$\forall \varepsilon>0, \exists B>0, \forall x\in D_f:\,  x\geq B\Rightarrow |f(x)-f(x_0)|\leq \varepsilon$
\\\addlinespace
$\lim\limits_{\fl{x\to +\infty}} f(x)=+\infty$
&
$\forall A>0, \exists B>0, \forall x\in D_f:\,  x\geq B\Rightarrow f(x)\geq A$
\\\addlinespace
$\lim\limits_{\fl{x\to +\infty}} f(x)=-\infty$
&
$\forall A<0, \exists B>0, \forall x\in D_f:\,  x\leq B\Rightarrow f(x)\leq A$
\\\addlinespace
$\lim\limits_{\fl{x\to -\infty}} f(x)=\ell$
&
$\forall \varepsilon>0, \exists B<0, \forall x\in D_f:\,  x\leq B\Rightarrow |f(x)-f(x_0)|\leq \varepsilon$
\\\addlinespace
$\lim\limits_{\fl{x\to -\infty}} f(x)=+\infty$
&
$\forall A>0, \exists B<0, \forall x\in D_f:\,  x\leq B\Rightarrow f(x)\geq A$
\\\addlinespace
$\lim\limits_{\fl{x\to -\infty}} f(x)=-\infty$
&
$\forall A<0, \exists B<0, \forall x\in D_f:\,  x\leq B\Rightarrow f(x)\leq A$
\\\addlinespace
\bottomrule
\end{tabular}
\end{center}
\end{document}

在此处输入图片描述

如果您确实想要一个可读性较差的“笼中”表格,则可以使用幻像以便在更大的空间中垂直居中文本。

\documentclass[12pt,a4paper,final]{article}
\usepackage[left=1.5cm,right=1.5cm,top=1cm,bottom=2cm]{geometry}
\usepackage{amsmath,amssymb,mathtools}
\usepackage{array,booktabs}
\usepackage{fontspec}
\usepackage{polyglossia}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setmainlanguage[numerals = maghrib, calendar = gregorian]{arabic}
\setotherlanguage{english}
\setmainfont[Ligatures=TeX]{Amiri}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.15]{Amiri}

\begin{document}

\begin{center}
\large
\setnonlatin
\settowidth{\dimen0}{$\scriptstyle x\to-\infty$}
\newcommand{\fl}[1]{\mathmakebox[\dimen0]{#1}}
\begin{tabular}{| >{$\displaystyle}l<{$} | >{$}l<{\vphantom{\Bigg|}$} |}
\hline
\multicolumn{1}{|c|}{النهاية} & \multicolumn{1}{c|}{التعريف} \\
\hline
\lim\limits_{\fl{x\to x_0}} f(x)=\ell 
&
\forall\varepsilon>0, \exists \delta_{\varepsilon}>0, \forall x\in D_f:\,  |x-x_0|\leq \delta\Rightarrow |f(x)-\ell|\leq \varepsilon
\\\hline
\lim\limits_{\fl{x\to x_0}} f(x)=+\infty
&
\forall A>0, \exists \delta_{A}>0, \forall x\in D_f:\,  |x-x_0|\leq \delta\Rightarrow f(x)\geq A
\\\hline
\lim\limits_{\fl{x\to x_0}} f(x)=-\infty
&
\forall A<0, \exists \delta_{A}>0, \forall x\in D_f:\,  |x-x_0|\leq \delta\Rightarrow f(x)\leq A
\\\hline
\lim\limits_{\fl{x\to +\infty}} f(x)=\ell
&
\forall \varepsilon>0, \exists B>0, \forall x\in D_f:\,  x\geq B\Rightarrow |f(x)-f(x_0)|\leq \varepsilon
\\\hline
\lim\limits_{\fl{x\to +\infty}} f(x)=+\infty
&
\forall A>0, \exists B>0, \forall x\in D_f:\,  x\geq B\Rightarrow f(x)\geq A
\\\hline
\lim\limits_{\fl{x\to +\infty}} f(x)=-\infty
&
\forall A<0, \exists B>0, \forall x\in D_f:\,  x\leq B\Rightarrow f(x)\leq A
\\\hline
\lim\limits_{\fl{x\to -\infty}} f(x)=\ell
&
\forall \varepsilon>0, \exists B<0, \forall x\in D_f:\,  x\leq B\Rightarrow |f(x)-f(x_0)|\leq \varepsilon
\\\hline
\lim\limits_{\fl{x\to -\infty}} f(x)=+\infty
&
\forall A>0, \exists B<0, \forall x\in D_f:\,  x\leq B\Rightarrow f(x)\geq A
\\\hline
\lim\limits_{\fl{x\to -\infty}} f(x)=-\infty
&
\forall A<0, \exists B<0, \forall x\in D_f:\,  x\leq B\Rightarrow f(x)\leq A
\\\hline
\end{tabular}
\end{center}
\end{document}

在此处输入图片描述

相关内容