\arraystrech 不适用于 tabularx

\arraystrech 不适用于 tabularx

我试图删除表格中的垂直空白,arraystrech但不知为何不起作用。我想调整行高以节省简历中的更多空间。

\documentclass[letter,12pt]{article}
\usepackage{url}
\usepackage{parskip}    
\usepackage{here}

\RequirePackage{color}
\RequirePackage{graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[scale=0.9]{geometry}
\usepackage{lscape}
\usepackage{tabularx}
\usepackage{enumitem}
\newcolumntype{C}{>{\centering\arraybackslash}X} 
\usepackage{supertabular}
\usepackage{tabularx}
\newlength{\fullcollw}
\setlength{\fullcollw}{0.47\textwidth}
\usepackage{titlesec}               
\usepackage{multicol}
\usepackage{multirow}
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
\titlespacing{\section}{0pt}{0pt}{10pt}
\usepackage[sorting=none, maxbibnames=2]{biblatex}
\usepackage[unicode, draft=false]{hyperref}
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour}
\addbibresource{citations.bib}
\setlength\bibitemsep{1em}
\usepackage{fontawesome5}

\begin{document}
\pagestyle{empty}

\section{Job Experience}
{\newcommand{\arraystretch}{0.1}
\begin{tabularx}{\linewidth}{ @{}l r@{} }
    \textbf{Row 1 (position name) } & \hfill  Date1 \\
        \multicolumn{2}{@{}X@{}}{
            \begin{itemize}[leftmargin=0.7cm]
                \item Some explanations of the position.... It is long and occupies the two columns... 
            \end{itemize}
        }
        \\
    \textbf{Row 2 (position name) } & \hfill Date2 \\
        \multicolumn{2}{@{}X@{}}{
            \begin{itemize}[leftmargin=0.7cm]
                \item Some explanations of the position.... It is long and occupies the two columns...
            \end{itemize}
        }
        \\ 
    \textbf{Row 3 (position name) }  & \hfill Date3\\
        \multicolumn{2}{@{}X@{}}{
            \begin{itemize}[leftmargin=0.7cm]
                \item Some explanations of the position.... It is long and occupies the two columns...
            \end{itemize}
        }
\end{tabularx}
}
\end{document}

在此处输入图片描述

答案1

你收到错误

! LaTeX Error: Command \arraystretch already defined

重新定义\arraystretch需要\renewcommand

但是 0.1 这个值没有任何用处,它指定表格的行间距应该比字母的高度更近。

一般情况下tabularx需要一个X

 \begin{tabularx}{\linewidth}{ @{}l r@{} }

是错误的,您可以使用,lX但这里不需要对齐,所以我将删除表格。

在此处输入图片描述

\documentclass[letter,12pt]{article}
\usepackage{url}
\usepackage{parskip}    
\usepackage{here}

\RequirePackage{color}
\RequirePackage{graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[scale=0.9]{geometry}
\usepackage{lscape}
\usepackage{tabularx}
\usepackage{enumitem}
\newcolumntype{C}{>{\centering\arraybackslash}X} 
\usepackage{supertabular}
\usepackage{tabularx}
\newlength{\fullcollw}
\setlength{\fullcollw}{0.47\textwidth}
\usepackage{titlesec}               
\usepackage{multicol}
\usepackage{multirow}
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
\titlespacing{\section}{0pt}{0pt}{10pt}
\usepackage[sorting=none, maxbibnames=2]{biblatex}
\usepackage[unicode, draft=false]{hyperref}
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour}
\addbibresource{citations.bib}
\setlength\bibitemsep{1em}
\usepackage{fontawesome5}

\begin{document}
\pagestyle{empty}

\section{Job Experience}

\noindent\textbf{Row 1 (position name)}\hfill  Date1
            \begin{itemize}[leftmargin=0.7cm]
                \item Some explanations of the position.... It is long and occupies the two columns... 
            \end{itemize}
        
\noindent\textbf{Row 2 (position name)\hfill Date2
            \begin{itemize}[leftmargin=0.7cm]
                \item Some explanations of the position.... It is long and occupies the two columns...
            \end{itemize}

\noindent\textbf{Row 3 (position name)\hfill Date3
            \begin{itemize}[leftmargin=0.7cm]
                \item Some explanations of the position.... It is long and occupies the two columns...
            \end{itemize}

\end{document}

相关内容