我想将示例放在表格的右侧单元格中,将描述放在左侧。但我做不到。
\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{gb4e}
\usepackage{stmaryrd}
\usepackage{natbib}
\usepackage{qtree}
\usepackage{fixltx2e}
\title{Your Paper}
\author{You}
\date{\today}
\begin{document}
\maketitle
\begin{abstract}
Your abstract.
\end{abstract}
\begin{exe}
\ex \label {basicnolaga}
\gll a b-te c d \\ a.\textsc{nom} v-\textsc{prt} c d \\
\trans `a b c d.'
\end {exe}
\begin{table}[h]
\begin{tabular}{ll}
example above here n three lines & a description
\end{tabular}
\end{table}
\end{document}
答案1
您可以明确地将示例嵌入到minipage
表格内部,也可以将其用作p{<par-width>}
列指令:
平均能量损失
\documentclass{article}
\usepackage{gb4e}
\begin{document}
\begin{table}[h]
\begin{tabular}{p{3in}l}
\vspace{-\baselineskip}
\begin{exe}
\ex \label {basicnolaga}
\gll a b-te c d \\
a.\textsc{nom} v-\textsc{prt} c d \\
\trans `a b c d.'
\end {exe}
example above here n three lines
&
a description
\end{tabular}
\end{table}
\end{document}