Thanks, Nick. Yes, I understand what you're saying.
But what I was wondering is this: orgmode generally interprets *word* as bolding of "word" and /word/ as italicising of "word". So is there a way to make it export *word* as \textbf{word} and /word/ as \textit{word}, when using orgtbl.
cheers,
--Ben
Benjamin Slade <slade@jnanam.net> wrote:Yes, just like that. For example, the following works fine for me:
> 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.?
--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