From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Slade Subject: Re: exporting emphasised text (bold, italics etc.) in ORGTBL Date: Tue, 21 Jun 2011 10:51:18 -0500 Message-ID: References: <5026.1308670089@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6dd96c7c5645704a63ad351 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ3Et-0002ex-Jr for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 11:51:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ3Er-00037r-JB for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 11:51:43 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:56041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ3Er-00037b-2X for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 11:51:41 -0400 Received: by wwf22 with SMTP id 22so2517920wwf.30 for ; Tue, 21 Jun 2011 08:51:39 -0700 (PDT) In-Reply-To: <5026.1308670089@alphaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org --0016e6dd96c7c5645704a63ad351 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 On 21 June 2011 10:28, Nick Dokos wrote: > Benjamin Slade 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 > --=20 ---------------------------------------------------------------------------= -------------------------- Benjamin Slade Dept. of Linguistics University of Illinois at Urbana-Champaign [ http://www.jnanam.net/slade/ ] St=C3=A6fcr=C3=A6ft & Vy=C4=81kara=E1=B9=87a (lingblog) - http://staefcraef= t.blogspot.com The Babbage Files (techblog) - http://babbagefiles.blogspot.com ---------------------------------------------------------------------------= -------------------------- *=E0=A4=AA*=E0=A4=B0=E0=A5=8B =E0=A4=BD=E0=A4=95=E0=A5=8D=E0=A4=B7=E0=A5= =91=E0=A4=95=E0=A4=BE*=E0=A4=AE=E0=A4=BE* =E0=A4=B9=E0=A4=BF *=E0=A4=A6=E0= =A5=87*=E0=A4=B5=E0=A4=BE=E0=A4=83 'The gods love the obscure.' (=C5=9Aatapathabr=C4=81ma=E1=B9=87a 6.1.1.= 2) --0016e6dd96c7c5645704a63ad351 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks, Nick. Yes, I understand what you're saying.

But what I = was wondering is this: orgmode generally interprets *word* as bolding of &q= uot;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,
=C2=A0 --Ben

On 21 June 20= 11 10:28, Nick Dokos <nicholas.dokos@hp.com> wrote:
Benjamin Slade <sl= ade@jnanam.net> 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:


| =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 foo | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 bar |
|---------------+-----------------|
| =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 | =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 2 |
| =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 3 | =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 4 |
| \textbf{bold} | \textit{italic} |
| =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
--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} \\
=C2=A0& =C2=A0\\
\end{tabular}
% END RECEIVE ORGTBL to-buy


%The Org table is inside a LaTeX comment.

% #+ORGTBL: SEND to-buy orgtbl-to-latex
% | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 foo | =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 bar |
% |---------------+-----------------|
% | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 | =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 2 |
% | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 3 | =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 4 |
% | \textbf{bold} | \textit{italic} |
% | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |


\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
--8<---------------cut here---------------end--------------->8---

Nick



--
----------------= ---------------------------------------------------------------------------= ----------
Benjamin Slade
Dept. of Linguistics
University of Illinois at Urbana-Champaign=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
[ http://www.jna= nam.net/slade/ ]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0
=C2=A0=C2=A0
St=C3=A6fcr=C3=A6ft & Vy=C4=81kara=E1=B9=87a (lingblog) - http://staefcraeft.blogsp= ot.com
The Babbage Files (techblog) - http://babbagefiles.blogspot.com

---------------------------------------------------------------------------= --------------------------
=C2=A0 =E0=A4=AA=E0=A4=B0=E0=A5=8B =E0=A4=BD=E0=A4=95=E0=A5=8D=E0=A4= =B7=E0=A5=91=E0=A4=95=E0=A4=BE=E0=A4=AE=E0=A4=BE =E0=A4=B9=E0=A4=BF = =E0=A4=A6=E0=A5=87=E0=A4=B5=E0=A4=BE=E0=A4=83
=C2=A0 =C2=A0 'The gods love the obscure.' (=C5=9Aatapathabr=C4=81m= a=E1=B9=87a 6.1.1.2)
--0016e6dd96c7c5645704a63ad351--