emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* exporting emphasised text (bold, italics etc.) in ORGTBL
@ 2011-06-20 15:12 Benjamin Slade
  2011-06-21 15:28 ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Slade @ 2011-06-20 15:12 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 760 bytes --]

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.?
-- 
-----------------------------------------------------------------------------------------------------
Benjamin Slade
Dept. of Linguistics
University of Illinois at Urbana-Champaign
[ http://www.jnanam.net/slade/ ]

Stæfcræft & Vyākaraṇa (lingblog) - http://staefcraeft.blogspot.com
The Babbage Files (techblog) - http://babbagefiles.blogspot.com

-----------------------------------------------------------------------------------------------------
  *प*रो ऽक्ष॑का*मा* हि *दे*वाः
    'The gods love the obscure.' (Śatapathabrāmaṇa 6.1.1.2)

[-- Attachment #2: Type: text/html, Size: 1106 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: exporting emphasised text (bold, italics etc.) in ORGTBL
  2011-06-20 15:12 exporting emphasised text (bold, italics etc.) in ORGTBL Benjamin Slade
@ 2011-06-21 15:28 ` Nick Dokos
  2011-06-21 15:51   ` Benjamin Slade
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2011-06-21 15:28 UTC (permalink / raw)
  To: Benjamin Slade; +Cc: nicholas.dokos, emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: exporting emphasised text (bold, italics etc.) in ORGTBL
  2011-06-21 15:28 ` Nick Dokos
@ 2011-06-21 15:51   ` Benjamin Slade
  2011-06-28 17:15     ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Slade @ 2011-06-21 15:51 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2755 bytes --]

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 <nicholas.dokos@hp.com> wrote:

> 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
>



-- 
-----------------------------------------------------------------------------------------------------
Benjamin Slade
Dept. of Linguistics
University of Illinois at Urbana-Champaign
[ http://www.jnanam.net/slade/ ]

Stæfcræft & Vyākaraṇa (lingblog) - http://staefcraeft.blogspot.com
The Babbage Files (techblog) - http://babbagefiles.blogspot.com

-----------------------------------------------------------------------------------------------------
  *प*रो ऽक्ष॑का*मा* हि *दे*वाः
    'The gods love the obscure.' (Śatapathabrāmaṇa 6.1.1.2)

[-- Attachment #2: Type: text/html, Size: 3781 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: exporting emphasised text (bold, italics etc.) in ORGTBL
  2011-06-21 15:51   ` Benjamin Slade
@ 2011-06-28 17:15     ` Bastien
  0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2011-06-28 17:15 UTC (permalink / raw)
  To: Benjamin Slade; +Cc: nicholas.dokos, emacs-orgmode

Hi Benjamin,

Benjamin Slade <slade@jnanam.net> writes:

> 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.

Not for now, sorry.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-28 17:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-20 15:12 exporting emphasised text (bold, italics etc.) in ORGTBL Benjamin Slade
2011-06-21 15:28 ` Nick Dokos
2011-06-21 15:51   ` Benjamin Slade
2011-06-28 17:15     ` Bastien

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).