我確信這是一個常見問題:有時,表的標題對於列來說太大了:
你最終得到的桌子要么太高、太寬,要么很難看。
以前,我堅持旋轉表格標題,但在這種情況下,表格也會旋轉。這意味著讀者必須翻頁二時間才能理解該表。從排版的角度來看,以相反的方式旋轉文字是錯誤的,或者至少不是最佳實踐。
該表目前由以下程式碼建立:
\renewcommand{\arraystretch}{1.5}
\begin{landscape}
\footnotesize
\begin{longtable}{ p{2.5cm} p{11cm} l l l p{1cm} l p{1cm} }
& \textbf{Beschreibung} & \rot{\textbf{Beliebtheit\footnotemark}} & \rot{\textbf{Skalierbarkeit}} & \rot{\textbf{Kompatabilität}} & \rot{\parbox[t]{4cm}{\textbf{Größe des Ökosystems}\\\textbf{und der Community}}} & \rot{\textbf{Gesamtbewertung}} & \rot{\textbf{Kommerziell}} \\
\toprule
\textbf{ElasticSearch\footurl{https://www.elastic.co/de/}} & ElasticSearch ist in Java geschrieben und basiert auf Lucene. Die Suchmaschine ist Teil eines großen Ökosystems, des sogenannten Elastic Stacks. Durch eine große Skalierbarkeit und Flexibilität ist sie auf Enterprise-Applikationen ausgelegt. & 5 & & & & & nein \\
\textbf{Solr\footurl{https://lucene.apache.org/solr/}} & Solr ist eine Suchmaschine, die auf Lucene basiert und in Java geschrieben ist. Die Entwickler beschreiben das Tool als \enquote{zuverlässig, skalierbar und fehlertolerant} \cite{ASF2019}. & 2 & & & & & nein \\
\textbf{Splunk\footurl{https://www.splunk.com/de_de}} & Splunk bietet verschiedene Lösungen an, mit denen eine Enterprise Search umgesetzt werden kann, hauptsächlich Splunk Enterprise und Splunk Cloud. Der Entwickler legt Fokus auf eine flexible, anpassbare Lösung \cite{Splunk>2019}. & 2 & & & & & ja \\
\textbf{Amazon CloudSearch\footurl{https://aws.amazon.com/de/cloudsearch/}} & Amazon CloudSearch ist ein Cloud-Service, der eine vollumfängliche Suchlösung bereitstellt. Anwender können Daten hochladen aus denen automatische ein Suchindex erstellt wird. & 1 & & & & & ja \\
\textbf{Google Cloud Search\footurl{https://gsuite.google.com/intl/de/products/cloud-search/}} & Mit Google Cloud Search können unternehmensinterne Datenquellen durchsuchbar gemacht, die Lösung setzt dabei wie Amazon CloudSearch auf Cloud-Technologie. Der Service löst 2019 Google Search Appliance vollständig ab. & - & & & & & ja \\
\bottomrule
\caption{Bewertung wichtiger Suchmaschinen als Entscheidungsgrundlage}
\label{table:engine-rating}
\end{longtable}
\end{landscape}
\footnotetext{Die Beliebtheit wurde einer Statistik von DB-Engines \cite{DBEngines2019} entnommen und auf den Bereich $[1, 5]$ normalisiert.}
要旋轉表頭,我目前使用中建議的程式碼這個 tex SE 答案,我只是把它改成了90度。
創建僅引用其他地方的圖例的表標題的最佳方法是什麼(標題:“A”“B”“C”,頁面底部:A:“Beliebtheit”等等...)?
在這裡你可以明白我的意思(請原諒品質不好,這是我在工作場所能做的最好的事情...):
答案1
這是我的建議,將該threeparttablex
包與xltabular
.這是基於這樣的假設:您的實際表格將比問題中顯示的表格長,因此需要在表格內進行分頁。
根據表中最後一列的內容,您也可以註解掉landscape
下面MWE中的環境,得到下表:
如果您的表格長度不超過一個年齡,我建議使用threeparttable
代替threeparttablex
和tabularx
代替xltabular
。
\documentclass{article}
\usepackage{pdflscape}
\usepackage{booktabs}
\usepackage{xltabular}
\usepackage{threeparttablex}
\usepackage{calc}
\usepackage{csquotes}
\usepackage{url}
\begin{document}
\renewcommand{\arraystretch}{1.5}
\begin{landscape}
\footnotesize
\begin{ThreePartTable}
\begin{TableNotes}
\item[1] Die Beliebtheit wurde einer Statistik von DB-Engines \cite{DBEngines2019} entnommen und auf den Bereich $[1, 5]$ normalisiert.
\item[2] \url{https://www.elastic.co/de/}
\item[3] \url{https://lucene.apache.org/solr/}
\item[4] \url{https://www.splunk.com/de_de}
\item[5] \url{https://aws.amazon.com/de/cloudsearch/}
\item[6] \url{https://gsuite.google.com/intl/de/products/cloud-search/}
\end{TableNotes}
\begin{xltabular}{\linewidth}{ >{\raggedright\arraybackslash}p{2cm} X l l l l l l }
\caption{Bewertung wichtiger Suchmaschinen als Entscheidungsgrundlage}\\
\endhead
\bottomrule
\multicolumn{8}{p{\textwidth-2\tabcolsep}}{\textbf{A}: Beliebtheit, \textbf{B}: Skalierbarkeit, \textbf{C}: Kompatabilität, \textbf{D}: Größe des Ökosystems und der Community, \textbf{E}: Gesamtbewertung, \textbf{F}: Kommerziell}\\
\insertTableNotes
\endfoot
& \textbf{Beschreibung} & \textbf{A\tnote{1}} & \textbf{B} & \textbf{C} & \textbf{D} & \textbf{E} & \textbf{F} \\
\toprule
\textbf{ElasticSearch\tnote{2}} & ElasticSearch ist in Java geschrieben und basiert auf Lucene. Die Suchmaschine ist Teil eines großen Ökosystems, des sogenannten Elastic Stacks. Durch eine große Skalierbarkeit und Flexibilität ist sie auf Enterprise-Applikationen ausgelegt. & 5 & & & & & nein \\
\textbf{Solr\tnote{3}} & Solr ist eine Suchmaschine, die auf Lucene basiert und in Java geschrieben ist. Die Entwickler beschreiben das Tool als \enquote{zuverlässig, skalierbar und fehlertolerant} \cite{ASF2019}. & 2 & & & & & nein \\
\textbf{Splunk\tnote{4}} & Splunk bietet verschiedene Lösungen an, mit denen eine Enterprise Search umgesetzt werden kann, hauptsächlich Splunk Enterprise und Splunk Cloud. Der Entwickler legt Fokus auf eine flexible, anpassbare Lösung \cite{Splunk>2019}. & 2 & & & & & ja \\
\textbf{Amazon CloudSearch\tnote{5}} & Amazon CloudSearch ist ein Cloud-Service, der eine vollumfängliche Suchlösung bereitstellt. Anwender können Daten hochladen aus denen automatische ein Suchindex erstellt wird. & 1 & & & & & ja \\
\textbf{Google Cloud Search\tnote{6}} & Mit Google Cloud Search können unternehmensinterne Datenquellen durchsuchbar gemacht, die Lösung setzt dabei wie Amazon CloudSearch auf Cloud-Technologie. Der Service löst 2019 Google Search Appliance vollständig ab. & - & & & & & ja \\
\label{table:engine-rating}
\end{xltabular}
\end{ThreePartTable}
\end{landscape}
\end{document}