2

我有一个 org 文件没有按照我想要的方式导出到 LaTeX。我正在编写一个测验来测试求职者使用关系数据的专业知识。为清楚起见,我决定将列名结构为 foo_bar。我的示例(如下)包括一个名为Columns的部分和一个明显是表格的部分。下划线在下工作正常,但它们在表中显示为下标。为什么?

#+title: Relational Data
#+options: ^:nil toc:nil num:nil author:nil timestamp:nil

* tRemovalEpisodes
  A "removal" is a discrete event blah blah blah. This is all fine. 

  _Columns_
  - removal_id (int) is a Primary Key
  - child_id (int) is a Foreign Key
  - removal_date (date)
  - exit_date (date)
  - primary_removal_reason (int)

 | removal_id | child_id | removal_date |  exit_date | primary_removal_reason |
 |------------+----------+--------------+------------+------------------------|
 |          / |       <> |           <> |         <> |                     <> |
 |          1 |    12345 |   2012-01-01 | 2012-04-13 |                     13 |
 |          2 |    12346 |   2012-01-03 | 2013-02-14 |                     22 |
 |          3 |    12347 |   2012-04-02 |            |                     12 |
 |          4 |    12348 |   2012-09-05 | 2013-02-28 |                     13 |
 |          5 |    12349 |   2013-01-02 | 2013-04-12 |                     56 |
 |          6 |    12350 |   2013-03-01 |            |                     13 |
 |          7 |    12350 |   2012-01-01 | 2012-04-13 |                     14 |
 |          8 |    12351 |   2012-01-03 | 2013-02-14 |                     10 |
 |          9 |    12352 |   2012-04-02 |            |                     11 |
 |         10 |    12353 |   2012-09-05 | 2013-02-28 |                     11 |
 |         11 |    12345 |   2013-01-02 | 2013-04-12 |                     12 |
 |         12 |    12355 |   2013-03-01 |            |                     29 |
 |            |          |              |            |                        |

#+begin_latex
  \pagebreak
#+end_latex
4

1 回答 1

0

我让它在Org 8.0.3.

出口

\section*{tRemovalEpisodes}
\label{sec-1}
A "removal" is a discrete event blah blah blah. This is all fine. 

\underline{Columns}
\begin{itemize}
\item removal\_id (int) is a Primary Key
\item child\_id (int) is a Foreign Key
\item removal\_date (date)
\item exit\_date (date)
\item primary\_removal\_reason (int)
\end{itemize}

\begin{center}
\begin{tabular}{r|r|r|r|r|}
removal\_id & child\_id & removal\_date & exit\_date & primary\_removal\_reason\\
\hline
1 & 12345 & 2012-01-01 & 2012-04-13 & 13\\
2 & 12346 & 2012-01-03 & 2013-02-14 & 22\\
3 & 12347 & 2012-04-02 &  & 12\\
4 & 12348 & 2012-09-05 & 2013-02-28 & 13\\
5 & 12349 & 2013-01-02 & 2013-04-12 & 56\\
6 & 12350 & 2013-03-01 &  & 13\\
7 & 12350 & 2012-01-01 & 2012-04-13 & 14\\
8 & 12351 & 2012-01-03 & 2013-02-14 & 10\\
9 & 12352 & 2012-04-02 &  & 11\\
10 & 12353 & 2012-09-05 & 2013-02-28 & 11\\
11 & 12345 & 2013-01-02 & 2013-04-12 & 12\\
12 & 12355 & 2013-03-01 &  & 29\\
 &  &  &  & \\
\end{tabular}
\end{center}

更新

要升级到更新版本的 Org-mode,您可以按照Org FAQ中的说明进行操作。

  1. 下载版本ziptarball这里
  2. 使用 git 保持最新状态:git clone git://www.orgmode.org/org-mode.git
  3. 用于ELPA安装更新的版本。
于 2013-06-05T15:45:20.387 回答