emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Benjamin Slade <slade@jnanam.net>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: exporting emphasised text (bold, italics etc.) in ORGTBL
Date: Tue, 21 Jun 2011 11:28:09 -0400	[thread overview]
Message-ID: <5026.1308670089@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Benjamin Slade <slade@jnanam.net> of "Mon, 20 Jun 2011 10:12:58 CDT." <BANLkTinSYPJN8s7Oww=enVN7wHnheny7RA@mail.gmail.com>

Benjamin Slade <slade@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:


|           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

  reply	other threads:[~2011-06-21 15:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-20 15:12 exporting emphasised text (bold, italics etc.) in ORGTBL Benjamin Slade
2011-06-21 15:28 ` Nick Dokos [this message]
2011-06-21 15:51   ` Benjamin Slade
2011-06-28 17:15     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5026.1308670089@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=slade@jnanam.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).