编辑以便代码可以编译 - 我列出了所有包,以检查是否存在冲突(但我认为不应该存在冲突),并且我还省略了引用,以便您可以在没有我的 .bib 文件的情况下进行编译,这不会影响任何事情。我已注释掉 fontspec,因为它在那里,但它会抛出指定字体的错误,您不太可能拥有我的字体,或者它们可能被保存为其他字体。
我尝试了很多解决方案,但都没有成功。这是一个非常简单的表格(虽然我在其他地方有更复杂的表格 - 我之前已经让它正常工作,但我似乎删除了文档,用于另一项任务)。
%! TEX program = xelatex
\documentclass[a4paper, titlepage]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1,LGR]{fontenc}
%\usepackage{fontspec}
\usepackage[overlap, CJK]{ruby}
\usepackage{listings}
\usepackage[style=british]{csquotes}
\usepackage{xpatch}
\usepackage{amsmath,amsfonts,amsthm}
\usepackage{ot-tableau}
\usepackage{polyglossia}
\setdefaultlanguage[variant=british]{english}
\usepackage[bibencoding=utf8, backend=biber, style=authoryear-icomp, language=british]{biblatex}
\usepackage{easylist}
\usepackage{hyperref}
\usepackage{memhfixc}
\usepackage[nameinlink,noabbrev,capitalize]{cleveref}
\usepackage[nonumberlist,style=tree,abbreviations,xindy,toc]{glossaries-extra}
\usepackage{blindtext}
\usepackage{cgloss4e}
\usepackage{enumerate}
\usepackage{longtable}
\usepackage{textgreek}
\usepackage{booktabs, siunitx}
\usepackage{tabulary}
\usepackage{multirow}
\usepackage{graphicx}
\graphicspath{ {./images/} }
\usepackage{wrapfig}
\usepackage{chngcntr}
\usepackage{tablefootnote}
\usepackage[tableposition=above]{caption}
\usepackage{imakeidx}
\usepackage{xltxtra}
\usepackage{gb4e} %Ensure this is the last \usepackage
\sloppy
\begin{document}
\begin{table*}
\centering
\caption{Some of the events reported during muscular paralysis caused by curare injection.}
\begin{tabulary}{\textwidth}{ll}
\toprule
2:11 PM: & Curare injection administered over 15 minutes.\marginpar{All events are direct quotes or paraphrases of the original report.} \\
2:20: & Speech no longer possible. Can hear distinctly. Still able to nod head and move hands. \\
2:22: & Subject reports by movement of head that the experience is not unpleasant. \\
2:26: & Ability to comprehend and answer questions accurately is indicated by correctness of replies when inquiries are restated in the negative or double negative. \\
2:45: & Subject now unable to signal response to inquiries due to complete paralysis. \\
2:48: & Eyelids manually opened. Subject stated upon recovery that he was `clear as a bell' all this period. \\
4:50: & Subjects is able to sit up on edge of bed. Complete subjective report dictated. \\ \bottomrule
\end{tabulary}
\end{table*}
\end{document}
谢谢你!
答案1
tabulary
需要 LC 或 R 列来执行任何有用的操作,l
列始终是单行,并且不能\marginpar
在表格内部拥有。
\documentclass[a4paper, titlepage]{book}
\usepackage{tabulary,booktabs}
\sloppy
\begin{document}
\begin{table}
\centering
\caption{Some of the events reported during muscular paralysis caused by curare injection.}
\begin{tabulary}{\textwidth}{lL}
\toprule
2:11 PM: & Curare injection administered over 15 minutes. \\
2:20: & Speech no longer possible. Can hear distinctly. Still able to nod head and move hands. \\
2:22: & Subject reports by movement of head that the experience is not unpleasant. \\
2:26: & Ability to comprehend and answer questions accurately is indicated by correctness of replies when inquiries are restated in the negative or double negative. \\
2:45: & Subject now unable to signal response to inquiries due to complete paralysis. \\
2:48: & Eyelids manually opened. Subject stated upon recovery that he was `clear as a bell' all this period. \\
4:50: & Subjects is able to sit up on edge of bed. Complete subjective report dictated. \\ \bottomrule
\end{tabulary}
\end{table}
\end{document}