我具有Tabularx结构,如下所示,如何根据我的需要对齐每个列或单元格,尤其是具有逐项项目的单元格或列。目前,逐项排列的对象是右对齐的,而我想对齐的中心是左对齐的。如何将标题对齐中心?此外,拐角处的交叉点未连接!!!我应该怎么办?文件如下:\begin{document} \begin{tabularx}{\textwidth}{|*{3}{>{\compress}X|}} \caption{caption} \label{tab:table1lable} \ \toprule head1 & head2 & head3 \ \midrule \endfirsthead %—————————————————————% \caption{caption} \ %\hfill(continued) \toprule head1 & head2 & head3 \ \midrule \endhead %—————————————————————% \multicolumn{3}{r}{\footnotesize\textit{continued on the next page}} \endfoot \bottomrule \endlastfoot
\hline A&B&C\\ \hline col1\_content & \begin{itemize} \item col2 list item1 \item col2 list item2 \end{itemize} & \begin{itemize} \item col3 list item1 \item col3 list item2 \end{itemize} \end{tabularx}
\end{document}完整的乳胶包装和序言如下:\documentclass[%draft,final,paper=a4,paper=portrait,fontsize=12pt,version=last,twoside,ngerman,titlepage,toc=listof,toc=bibliography,usenames,dvipsnames,svgnames,table]{scrbook}
\usepackage[a4paper,left=3cm,right=4cm,top=2cm,bottom=3cm]{geometry}\usepackage[T1]{fontenc}%\usepackage[ngerman]{babel}\usepackage[english]{babel}\usepackage[utf8]{inputenc}\usepackage[babel]{csquotes}%\usepackage[babel,german=quotes]{csquotes}\usepackage[super]{nth}%\usepackage{mathptmx}%\usepackage{tabularx}\usepackage{setspace}\onehalfspacing% Fix for floats\usepackage{scrhack}\usepackage{amsmath}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{xcolor}\usepackage{textcomp}\usepackage{booktabs}\setcounter{secnumdepth}{3}\setcounter{tocdepth}{3}\usepackage{hyperref}\usepackage{caption}% Fehler mit nicht zentrierten Captions beheben\captionsetup{width=2\textwidth}
\usepackage{graphicx}\usepackage{wrapfig}
\usepackage{ifdraft}\ifdraft{\let\ifxdraft\iftrue}{\let\ifxdraft\iffalse}
% Hurenkind und Schusterjunge\clubpenalty = 10000\widowpenalty = 10000\displaywidowpenalty = 10000
\usepackage{listings}
\lstdefinestyle{code}{ backgroundcolor=\color{white}, basicstyle=\footnotesize\ttfamily,, breakatwhitespace=false, breaklines=true, captionpos=b, commentstyle=\color{blue}, extendedchars=true, frame=single, identifierstyle=, keepspaces=true, keywordstyle=\color{Sepia}, language=C, numbers=left, numbersep=5pt, numberstyle=\tiny\color{gray}, rulecolor=\color{black}, showspaces=false, showstringspaces=false, showtabs=false, stepnumber=1, stringstyle=\color{orange}, tabsize=1, title=\lstname}
\lstdefinestyle{text}{ backgroundcolor=\color{white}, basicstyle=\footnotesize\ttfamily,, breakatwhitespace=false, breaklines=true, captionpos=b, extendedchars=true, frame=single, keepspaces=true, numbers=left, numbersep=5pt, numberstyle=\tiny\color{gray}, rulecolor=\color{black}, showspaces=false, showstringspaces=false, showtabs=false, stepnumber=1, tabsize=1, title=\lstname}
\usepackage{enumitem}\usepackage{tabularx, makecell}\usepackage{booktabs}\usepackage{multicol}\usepackage{ltablex}\keepXColumns
\makeatletter\newcommand*{\compress}{\@minipagetrue}\makeatother
%
\usepackage{colortbl} % color table\definecolor{maroon}{cmyk}{0,0.87,0.68,0.32}\newcommand{\gray}{\rowcolor[gray]{.90}}
%\usepackage{xargs} % Use more than one optional parameter in a new commands
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}% caption for tabular x\usepackage{siunitx} % SI Unit\usepackage{marginnote} % add margin note%\marginnote{This is a margin note using the geometry package, set at 3cm vertical offset to the line it is typeseted.}[3cm]
\usepackage{tabularx} % table
\title{Business Intelligence to Support an Indicator-Based Waste Incineration Process}\author{Mohammadjavad Ranji}\date{\today}
\makeatletter\let\ThesisTitle\@title\let\ThesisDate\@date\makeatother
\begin{document}
\begin{tabularx}{\textwidth}{|*{3}{>{\compress}X|}} \caption{caption} \label{tab:table1lable} \\ \toprule head1 & head2 & head3 \\ \midrule \endfirsthead %---------------------------------------------------------------% \caption{caption} \\ %\hfill(continued) \toprule head1 & head2 & head3 \\ \midrule \endhead %---------------------------------------------------------------% \multicolumn{3}{r}{\footnotesize\textit{continued on the next page}} \endfoot \bottomrule \endlastfoot \hline A&B&C\\ \hline col1\_content & \begin{itemize} \item col2 list item1 \item col2 list item2 \end{itemize} & \begin{itemize} \item col3 list item1 \item col3 list item2 \end{itemize} \end{tabularx}
\end{document}