English 中文(简体)
LaTeX: 将数字环境添加到表层环境
原标题:LaTeX: Adding an Enumerate environment to a Tabular environment
  • 时间:2010-01-09 15:12:40
  •  标签:
  • latex

我试图在的表格(>-----/code>)上添加一个定购单(-tabular):

 egin{tabular}{|l|l|}
  hline
  Event Flow & 
   egin{enumerate}
   item This is item 1
   item This is item 2
   end{enumerate}
  \
  hline
 end{tabular}

但我正经历以下错误:

! LaTeX Error: Something s wrong--perhaps a missing item.

See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ...

                                               l.34    item T
           his is item 1 ?

谁能告诉我,问题究竟是什么?

因为当我把<条码>数字环境置于<条码>外时,它就发挥了作用;因此,我目前缺少一张表格的例子。

最佳回答

以下著作:

documentclass{article}
egin{document}
egin{tabular}{|l|l|}
  hline
  Event Flow & 
  egin{minipage}{5in}
    vskip 4pt
    egin{enumerate}
   item This is item 1
   item This is item 2
   end{enumerate}
   vskip 4pt
 end{minipage}
 \
  hline
 end{tabular}
end{document}

我对麻烦的猜测是,所列举的环境需要纵向,你可以试验一个盒子。

问题回答

你可以采用以下解决办法:

documentclass{article}
egin{document}
egin{tabular}{|l|p{5cm}|}
  hline
  Event Flow & 
    egin{enumerate}
      item This is item 1
      item This is item 2
    end{enumerate} \
  hline
 end{tabular}
end{document}

换言之,你可以避免需要<条码>minipage,简单地设定一款类型栏(该栏有具体规定的宽度)。 汇编

https://i.stack.imgur.com/jzIsb.png” alt=“table with liste”/>





相关问题
Effective Version Control for Slides

I have to maintain a huge set of training material in forms of slides. At a first glance, I ve noticed there s no support for version control in OpenOffice OOImpress (but I might be wrong on this). ...

Maths in LaTex table of contents

I am trying to add a table of contents for my LaTex document. The issue I am having is that this line: subsubsection{The expectation of (X^2)} Causes an error in the file that contains the ...

Using vim s `gqap sometimes indents unusually

For the life of me, I cannot figure out the cause of this: when writing in LaTeX documents, I like to keep my line width to maximum of 80 characters. As such, I will execute the vim command gqap and ...

aligning math equations in Latex

I am trying to align the following equations around the equal sign. What can I do? Thanks! I am using the AMSMath package $$mddot{x}_{1}-K(x_{2}+x_{12})+C(dot{x}_{12}+dot{x}_{2})+2Cdot{x}_{1} ...

LaTeX output does not update

I have just begun using LaTeX. I am working in Windows and am using TeXnicCenter as my editor. When I build and output, having the following code: documentclass{article} egin{document} This is a ...

How to put line break in a math

I d like to express the following sentence (source_location is also italic, it s not correctly rendered): Each entry has a list of tuple: < source_location, R/W, trip_counter, occurrence, killed ...

热门标签