我怎样才能制作出类似第 27 页和第 38 页的表格?http://users.ox.ac.uk/~cpgl0036/pdf/asudeh-giorgolo-perspectives.pdf ?
我正在使用。我希望知道如何构建下面和\documentclass[12pt,a4paper]{article}
之间的空间中提到的那种表格。\begin{document}
\end{document}
我不知道该怎么做,
\documentclass[12pt,a4paper]{article}
\begin{document}
\end{document}
过去我曾使用过以下模板:
\documentclass[12pt,a4paper]{article}
\begin{document}
\begin{tabular}{l*{6}{c}r}
& NP1 & Copula & NP2 \\
\hline
Equative & referential & & referential \\
Predicational & referential & & non-referential \\
Specificational & non-referential & & referential \\
\end{tabular}
\end{document}
但是,我希望构建一个如上述文章中所述的表格。
也许有某种方法会很有用,例如,将我说的我通常构建的那种表格转换为提到的网站中看到的那种表格。
答案1
我通常不会回答那些需要我帮忙的问题,尤其是当这些问题来自一个声誉相当高的用户时(说实话,MWE 是绝对有必要)。但我想我可以破例。请注意,我用 强制缩小了表格\scalebox
,因为它对于一页来说太大了a4
。
代码。
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{booktabs}
\usepackage{graphicx}
\begin{document}
\def\arraystretch{2}
\setlength\tabcolsep{23pt}
\scalebox{0.8}{
\begin{tabular}{l l l}
\toprule
WORD & DENOTATION & TYPE \\ \midrule
\textit{Reza} & $\mathbf{r}_{\sigma}$ & $e$ \\
\textit{Kim} & $\mathbf{k}_{\sigma}$ & $e$ \\
\textit{Dr. Octopus} & $\mathbf{o}_{\sigma}$ & $e$ \\
\textit{Mary Jane} & $\mathbf{mj}_{\sigma}$ & $e$ \\
\textit{Peter Parker} & $\mathbf{pp}_{\sigma}$ & $e$ \\
\textit{not} & $\lambda p. \neg p$ & $t \rightarrow t$ \\
\textit{but} & $\lambda p.\lambda q. p \wedge q$ & $t \rightarrow t \rightarrow t$ \\
\textit{is} & $\lambda x. \lambda y.x = y$ & $e \rightarrow e \rightarrow t$ \\
\textit{punch} & $\lambda o. \lambda s. \mathbf{punch}(s,o)$ & $e \rightarrow e \rightarrow t$ \\
\textit{believe} & $\lambda c. \lambda s. \mathbf{B}(s,c(\kappa (s)))$ & $\Diamond t \rightarrow e \rightarrow t$ \\
\textit{love} & $\lambda o. \lambda s. \mathbf{love}(s,o(\kappa (s)))$ & $\Diamond e \rightarrow e \rightarrow t$ \\
\textit{Hesperus} & $\lambda i. = \left\{
\begin{array}{ll}
\mathbf{es}_{\mathtt{k}}& \text{if }i =\mathtt{k} \\
\mathbf{v}_{\sigma}& \text{if } i=\sigma
\end{array}
\right.$ & $\Diamond e$ \\
\rule{0pt}{8ex}
\textit{Phosphorus} & $\lambda i. = \left\{
\begin{array}{ll}
\mathbf{ms}_{\mathtt{k}}& \text{if }i =\mathtt{k} \\
\mathbf{v}_{\sigma}& \text{if } i=\sigma
\end{array}
\right.$ & $\Diamond e$ \\
\rule{0pt}{8ex}
\textit{Spider-Man} & $\lambda i. = \left\{
\begin{array}{ll}
\mathbf{sm}_{i}& \text{if }i =\mathtt{o} \text{ or } i = \mathtt{mj} \\
\mathbf{pp}_{\sigma}& \text{if } i=\sigma
\end{array}
\right.$ & $\Diamond e$ \\
\rule{0pt}{8ex}
\textit{Jesus} & $\lambda i. = \left\{
\begin{array}{ll}
\mathbf{j}_{\mathtt{r}}& \text{if }i =\mathtt{r} \\
\mathbf{j}_{\sigma}& \text{if } i=\sigma
\end{array}
\right.$ & $\Diamond e$ \\
\rule{0pt}{8ex}
\textit{Sandy} & $\lambda i. = \left\{
\begin{array}{ll}
\mathbf{imp}_{\mathtt{k}}& \text{if }i =\mathtt{k} \\
\mathbf{s}_{\sigma}& \text{if } i=\sigma
\end{array}
\right.$ & $\Diamond e$ \\
\end{tabular}
}
\end{document}
结果如下(PS:我不会复制第二个表,因为您需要的所有组件都已在第一个表中;此外,我从自己构建某些东西中获得了乐趣;让它成为您的锻炼)。
答案2
您的问题属于“代做”类型,但本网站不提供此类服务。您确实需要阅读一些有关 LaTeX 的介绍性文献。Google 网站会为您提供大量示例,教您如何设计表格...
您还应该在问题中显示所需的表格形式。不要指望这里的人会为您搜索网络和文献。您应该帮助我们帮助您……
好吧,看看我上面的评论是否能帮助你:
\documentclass[12pt,a4paper]{article}
\usepackage[format=hang]{caption}
\usepackage{booktabs}
\begin{document}
\begin{table}
% \hrule
\begin{tabular}{l*{6}{c}r}
\toprule
& NP1 & Copula & NP2 \\
\midrule
Equative & referential & & referential \\
Predicational & referential & & non-referential \\
Specificational & non-referential & & referential \\
\bottomrule
\end{tabular}
\caption{this is my super very important table with very long description about table content which is broken over many lines}
\label{table-1}
\hrule
\end{table}
\end{document}
答案3
答案反映了作者的品味。让我添加我的版本 :)
\documentclass{article}
\usepackage{booktabs,amsmath,amssymb}
\usepackage{caption}
\captionsetup[table]{justification=raggedright, singlelinecheck=false,
labelfont=bf, labelsep=quad}
\begin{document}
\pagestyle{empty}
\begin{table}
\begin{minipage}{\textwidth}
\hrulefill\par
\centering
\begin{tabular}{lll}
\scshape Word & \scshape Denotation & \scshape Type\\
\midrule
\itshape dolphin & $\{\text{\bfseries flipper}_\sigma\}$ & $e\to
t$\\
\itshape seal & $\{\text{\bfseries hoover}_\sigma\}$ & $e\to
t$\\
\itshape marine mammal & $\lambda i.
\begin{cases}
\{\text{\bfseries hoover}_\sigma\} & \quad \text{if $i=e$}\\
\{\text{\bfseries flipper}_\sigma, \text{\bfseries
hoover}_\sigma\}&
\quad \text{if $i=\sigma$}
\end{cases}
$
& $\Diamond e\to t$\\
\end{tabular}
\caption{Relevant portion of speaker's lexicon}
\hrulefill
\end{minipage}
\end{table}
\end{document}