包含大量文字的表格

包含大量文字的表格

我的 LaTeX 技能非常有限。試圖製作一個看起來像這樣的表格,但不知道如何:

Word 中的表格如下所示

嘗試使用 booktabs 來處理水平線,使用 tabu 來處理列寬(我的論文中還有一些表格要製作)。

    \begin{table}[h]
    \caption{Interpretive and critical research paradigms for design research (adopted from \citealt{crouch2012doing})
    \label{crouch}
    \begin{tabu} to 1.0\linewidth { | X[l] | X[l] | X[l] | }
        \toprule
Research Paradigm       & Interpretive                                                                                                                                                                                                                                                              & Critical                                                                                                                                                                                                                                   \\
Epistemology / Ontology & \begin{tabular}[c]{@{}l@{}}It is only possible to represent aspects of social reality.\\ Researcher is a subjective observer.\\ The world is open to interpretation.\end{tabular}                                                                                         & \begin{tabular}[c]{@{}l@{}}The world is characterised by inequalities because the lifeworld is systemically colonised.\\ Ideology is all-pervasive.\\ Knowledge implies action.\end{tabular}                                               \\
Researcher’s role       & \begin{tabular}[c]{@{}l@{}}Engage with other people’s lives\\ Enable the ‘voices’ of others to be heard\end{tabular}                                                                                                                                                      & \begin{tabular}[c]{@{}l@{}}Critically observe design practices\\ Engage with other people’s lives\\ Initiate or facilitate change\end{tabular}                                                                                             \\
Research purpose        & \begin{tabular}[c]{@{}l@{}}To explore the habitus of designers and users, in,interaction with the field\\ To interpret design practices, objects and systems\\ To understand how the designer or the user engages with design practices, objects and systems\end{tabular} & \begin{tabular}[c]{@{}l@{}}To disrupt, emancipate, transform the habitus and field of design\\ To explore how the user is affected by design practices, objects and systems\\ To change design practices, objects and systems\end{tabular} \\
Underlying values       & Plurality 
        \bottomrule
    \end{tabu}
\end{table}

有人可以指導我嗎?

答案1

表格和列類型的方式p

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\usepackage{booktabs}
\title{Test121212}
\author{Konstantinos Leledakis}
\date{March 2019}

\begin{document}

\begin{table}[h]
    \caption{Interpretive and critical research paradigms for design research (adopted from \ldots%\citealt{crouch2012doing}
    )}
    \label{crouch}
    \begin{tabular}{  l  p{3.4cm}  p{3.4cm} }
        \toprule
\textbf{Research Paradigm}      
& \textbf{Interpretive}   
& \textbf{Critical} \\\midrule
Epistemology / Ontology 
& It is only possible to represent aspects of social reality. Researcher is a subjective observer. The world is open to interpretation.        
& The world is characterised by inequalities because the lifeworld is systemically colonised. Ideology is all-pervasive. Knowledge implies action. \\\hline
Researcher’s role       
& Engage with other people’s lives Enable the ‘voices’ of others to be heard                         
& Critically observe design practices Engage with other people’s lives Initiate or facilitate change  \\\hline
Research purpose        
& To explore the habitus of designers and users, in,interaction with the field To interpret design practices, objects and systems To understand how the designer or the user engages with design practices, objects and systems 
& To disrupt, emancipate, transform the habitus and field of design To explore how the user is affected by design practices, objects and systems To change design practices, \\\hline
objects and systems &
Underlying values       
& Plurality \\
        \bottomrule
    \end{tabular}
\end{table}

\end{document}

PS:p列類型是為這種情況建立的,並在列的儲存格內容上提供自動「換行符」。您可以使用m代替 來p使每行的儲存格垂直居中。

PS2:只是展示一種方法......但說實話,我會在表格中進行更多改進,以獲得一張漂亮的表格,但我認為這就是您此時此刻學習“如何”的順序所追求的。

在此輸入影像描述

答案2

這是跨越多個頁面的表格的一些程式碼(我減少了它的長度)。它使用套件captiontabularx和(這允許第一頁上的表格頁眉和最後一頁longtabletabu的頁腳與所有其他頁眉/頁腳不同,例如“續上一頁”和“續下一頁”) 。 (其他一些與表相關的包

   \documentclass{scrartcl}
%    \usepackage[utf8]{inputenc}
    \usepackage{tabularx}
    \usepackage{longtable, tabu}
\usepackage{ltablex}
\usepackage{ltxtable}
    \usepackage{booktabs, caption, apacite}
    \usepackage{hhline, blindtext}

    \begin{document}
    %\begin{center}
%\begin{center}
\begin{tabularx}{\linewidth}{p{1.7cm} | p{2.5cm} | p{4cm} | X}
\caption{Literature on Industrial Diversification (Overview) \label{overview_industrial}}\\
\hline \hline
Study       &Sample, Data   & Specifications        &Results \\ \hline \hline \endfirsthead%
%\caption{Literature on Industrial Diversification (Overview, continued from previous page) }\\
\multicolumn{4}{l}{Continued from previous page}\\
\hline \hline
Study       &Sample, Data Source    & Specifications        &Results \\ \hline \hline \endhead%
\multicolumn{4}{r}{Continued on next page}\\
\endfoot%
\endlastfoot%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \textbf{Research Paradigm}      
    & \textbf{Interpretive}   
    & \textbf{Critical} \\ \hline \hline
    Epistemology / Ontology 
    & It is only possible to represent aspects of social reality. Researcher is a subjective observer. The world is open to interpretation.        
    & The world is characterised by inequalities because the lifeworld is systemically colonised. Ideology is all-pervasive. Knowledge implies action. \\\hline
    Researcher’s role       
    & Engage with other people’s lives Enable the ‘voices’ of others to be heard                         
    & Critically observe design practices Engage with other people’s lives Initiate or facilitate change  \\ \hline
    Research purpose        
    & To explore the habitus of designers and users, in,interaction with the field To interpret design practices, objects and systems To understand how the designer or the user engages with design practices, objects and systems 
    & To disrupt, emancipate, transform the habitus and field of design To explore how the user is affected by design practices, objects and systems To change design practices, \\ \hline
  \textbf{Research Paradigm}      
    & \textbf{Interpretive}   
    & \textbf{Critical} \\ \hline \hline
    Epistemology / Ontology 
    & It is only possible to represent aspects of social reality. Researcher is a subjective observer. The world is open to interpretation.        
    & The world is characterised by inequalities because the lifeworld is systemically colonised. Ideology is all-pervasive. Knowledge implies action. \\\hline
    Researcher’s role       
    & Engage with other people’s lives Enable the ‘voices’ of others to be heard                         
    & Critically observe design practices Engage with other people’s lives Initiate or facilitate change  \\ \hline
    Research purpose        
    & To explore the habitus of designers and users, in,interaction with the field To interpret design practices, objects and systems To understand how the designer or the user engages with design practices, objects and systems 
    & To disrupt, emancipate, transform the habitus and field of design To explore how the user is affected by design practices, objects and systems To change design practices, \\ \hline
  \textbf{Research Paradigm}      
    & \textbf{Interpretive}   
    & \textbf{Critical} \\ \hline \hline
    Epistemology / Ontology 
    & It is only possible to represent aspects of social reality. Researcher is a subjective observer. The world is open to interpretation.        
    & The world is characterised by inequalities because the lifeworld is systemically colonised. Ideology is all-pervasive. Knowledge implies action. \\\hline
    Researcher’s role       
    & Engage with other people’s lives Enable the ‘voices’ of others to be heard                         
    & Critically observe design practices Engage with other people’s lives Initiate or facilitate change  \\ \hline
    Research purpose        
    & To explore the habitus of designers and users, in,interaction with the field To interpret design practices, objects and systems To understand how the designer or the user engages with design practices, objects and systems 
    & To disrupt, emancipate, transform the habitus and field of design To explore how the user is affected by design practices, objects and systems To change design practices,
                \\ \hline
something   &something something
                    &sample text
                    &\begin{minipage}[t][]{\linewidth}\begin{itemize} \item first element in list
        \item second one
        \item and so on
        \end{itemize}\end{minipage}
                \\  \hline \hline
\end{tabularx}
%\end{center}
    %\end{center}
    \end{document} 

答案3

我會使用tabularx(按照建議@瑪麗。 P。在他的回答中+1)而不是tabu包,包中的規則booktabs(如使用@koleygr在他的答案+1)中,ragged2e用於更好地填充單元格中可用空間的包以及makecell用於列標題和單元格中附加垂直空間的包。

由於您沒有提供您使用的文檔類別以及文檔中的頁面佈局的任何信息,因此我使用package.json 選擇article並定義頁面佈局geometry

\documentclass{article}
\usepackage{geometry}

\usepackage{ragged2e}
\usepackage{booktabs, makecell, tabularx}
\renewcommand\theadfont{\small\bfseries}
\renewcommand\theadgape{}
\setcellgapes{3pt}
\newcolumntype{L}{>{\RaggedRight}X}
\newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}}
\usepackage{caption}
\captionsetup[table]{position=above, skip=0.5ex}

\title{Test121212}
\author{Konstantinos Leledakis}
\date{March 2019}

%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}
    \begin{table}[h]
\caption{Interpretive and critical research paradigms for design research (adopted from \ldots%\citealt{crouch2012doing}
    )}
\label{crouch}
\makegapedcells
\setlength\tabcolsep{4pt}
%    \small
\begin{tabularx}{\linewidth}{@{} P{21mm} L L @{}}
    \toprule
\thead[lb]{Research\\ Paradigm}
    &   \thead[b]{Interpretive}
        &   \thead{Critical}                                                \\
    \midrule
Epistemology/ Ontology
    &   It is only possible to represent aspects of social reality. Researcher is a subjective observer. The world is open to interpretation.
        &   The world is characterised by inequalities because the lifeworld is systemically colonised. Ideology is all-pervasive. Knowledge implies action.     \\
Researcher’s role
    &   Engage with other people’s lives Enable the ‘voices’ of others to be heard
        &   Critically observe design practices Engage with other people’s lives Initiate or facilitate change                                                   \\
Research purpose
    &   To explore the habitus of designers and users, in,interaction with the field To interpret design practices, objects and systems To understand how the designer or the user engages with design practices, objects and systems
        &   To disrupt, emancipate, transform the habitus and field of design To explore how the user is affected by design practices, objects and systems To change design practices,
                                                                            \\
objects and systems
    &   Underlying values
        &   Plurality                                                       \\
    \bottomrule
\end{tabularx}
    \end{table}

這使:

在此輸入影像描述

您也可以考慮使用較小的字體大小,例如\small。在這種情況下,單元格的填充會更好,並且可能會發生,文字行會更少。

相關內容