[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] exporting emphasised text (bold, italics etc.) in ORGTBL
From: |
Nick Dokos |
Subject: |
Re: [O] exporting emphasised text (bold, italics etc.) in ORGTBL |
Date: |
Tue, 21 Jun 2011 11:28:09 -0400 |
Benjamin Slade <address@hidden> wrote:
> When I'm using orgtbl in the midst of a LaTeX document, is there a way to
> tell it to export *bold*
> as \textbf{bold}, /italics/ as \textit{italics} etc.?
Yes, just like that. For example, the following works fine for me:
--8<---------------cut here---------------start------------->8---
* foo
Here's a table:
| foo | bar |
|---------------+-----------------|
| 1 | 2 |
| 3 | 4 |
| \textbf{bold} | \textit{italic} |
| | |
--8<---------------cut here---------------end--------------->8---
Not sure if you are talking about radio tables in a LaTeX file,
but that too seems to work fine (see appendix A.5.1 of the Org manual
for more details on this:
--8<---------------cut here---------------start------------->8---
\documentclass{article}
\begin{document}
Here's a table of stuff:
% BEGIN RECEIVE ORGTBL to-buy
\begin{tabular}{rr}
foo & bar \\
\hline
1 & 2 \\
3 & 4 \\
\textbf{bold} & \textit{italic} \\
& \\
\end{tabular}
% END RECEIVE ORGTBL to-buy
%The Org table is inside a LaTeX comment.
% #+ORGTBL: SEND to-buy orgtbl-to-latex
% | foo | bar |
% |---------------+-----------------|
% | 1 | 2 |
% | 3 | 4 |
% | \textbf{bold} | \textit{italic} |
% | | |
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
--8<---------------cut here---------------end--------------->8---
Nick