将表导出到LaTeX并尊重^:nil

时间:2013-06-05 03:28:57

标签: emacs latex org-mode

我有一个org文件没有按照我想要的方式导出到LaTeX。我正在写一个测验来测试求职者对关系数据的专业知识。为清楚起见,我决定使用striction的列名作为foo_bar。我的示例(下面)包含一个名为 Columns 的部分和一个显然是表格的部分。下划线在 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

1 个答案:

答案 0 :(得分: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 FAQ中的说明操作。

  1. 下载版本ziptarballhere
  2. 使用git保持最新:git clone git://www.orgmode.org/org-mode.git
  3. 使用ELPA安装更新版本。