emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* subscript on a table caption
@ 2015-08-24 13:54 Johannes Rainer
  2015-08-27  3:54 ` Peter Salazar
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Rainer @ 2015-08-24 13:54 UTC (permalink / raw)
  To: emacs-orgmode

dear all!

I have a strange problem now with org-mode (I don't know whether I had that with previous org-versions because I never paid attention): 
any _ I have in a caption is automatically formatted as a subscript, independently of using #+OPTIONS: ^:nil or #+OPTIONS: ^:{}.
Is there any other way I can force org-mode to export captions "as-is"? For plain text it works nicely, but not for caption (and export to latex or html).

The test org-file I used contains the following:
--------


#+TITLE:TestTest
#+OPTIONS: ^:nil
-----


* Test tables

just in plain text: bla_blu, bla\_blu; both works nicely.

#+CAPTION: Some bla bla and an underscore: bla_blu. The same escaped: bla\_blu. Doesn't work for either of them; blu is always used as subscript.
 |    | agegp |     alcgp |    tobgp | ncases | ncontrols |
 |----+-------+-----------+----------+--------+-----------|
 |  1 | 25-34 | 0-39g/day | 0-9g/day |   0.00 |     40.00 |
 |  2 | 25-34 | 0-39g/day |    10-19 |   0.00 |     10.00 |
 |  3 | 25-34 | 0-39g/day |    20-29 |   0.00 |      6.00 |


-------

The _ in the plain text are exported as expected, but not the caption.

I'm using org-mode 8.3.1 (release_8.3.1-166-g5bfdfc)

any suggestions?

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

* Re: subscript on a table caption
  2015-08-24 13:54 subscript on a table caption Johannes Rainer
@ 2015-08-27  3:54 ` Peter Salazar
  2015-08-27  7:53   ` Suvayu Ali
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Salazar @ 2015-08-27  3:54 UTC (permalink / raw)
  To: Johannes Rainer; +Cc: org-mode

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

What do you see if you do C-h v org-export-latex-emphasis-alist
and org-html-text-markup-alist? Anything about subscript?

On Mon, Aug 24, 2015 at 9:54 AM, Johannes Rainer <johannes.rainer@gmail.com>
wrote:

> dear all!
>
> I have a strange problem now with org-mode (I don't know whether I had
> that with previous org-versions because I never paid attention):
> any _ I have in a caption is automatically formatted as a subscript,
> independently of using #+OPTIONS: ^:nil or #+OPTIONS: ^:{}.
> Is there any other way I can force org-mode to export captions "as-is"?
> For plain text it works nicely, but not for caption (and export to latex or
> html).
>
> The test org-file I used contains the following:
> --------
>
>
> #+TITLE:TestTest
> #+OPTIONS: ^:nil
> -----
>
>
> * Test tables
>
> just in plain text: bla_blu, bla\_blu; both works nicely.
>
> #+CAPTION: Some bla bla and an underscore: bla_blu. The same escaped:
> bla\_blu. Doesn't work for either of them; blu is always used as subscript.
>  |    | agegp |     alcgp |    tobgp | ncases | ncontrols |
>  |----+-------+-----------+----------+--------+-----------|
>  |  1 | 25-34 | 0-39g/day | 0-9g/day |   0.00 |     40.00 |
>  |  2 | 25-34 | 0-39g/day |    10-19 |   0.00 |     10.00 |
>  |  3 | 25-34 | 0-39g/day |    20-29 |   0.00 |      6.00 |
>
>
> -------
>
> The _ in the plain text are exported as expected, but not the caption.
>
> I'm using org-mode 8.3.1 (release_8.3.1-166-g5bfdfc)
>
> any suggestions?
>
>
>
>

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

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

* Re: subscript on a table caption
  2015-08-27  3:54 ` Peter Salazar
@ 2015-08-27  7:53   ` Suvayu Ali
  0 siblings, 0 replies; 3+ messages in thread
From: Suvayu Ali @ 2015-08-27  7:53 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

May I suggest not to top post, makes it much harder to follow the
discussion.

On Wed, Aug 26, 2015 at 11:54:57PM -0400, Peter Salazar wrote:
> What do you see if you do C-h v org-export-latex-emphasis-alist
> and org-html-text-markup-alist? Anything about subscript?

sub/super-scripts are different from emphasis/markup.  Also the emphasis
variable you mention does not exist, maybe you meant org-emphasis-alist?

In any case, all of this is moot.  The bug has been fixed.

  <http://mid.gmane.org/87pp2bcz42.fsf@nicolasgoaziou.fr>

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

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

end of thread, other threads:[~2015-08-27  7:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-24 13:54 subscript on a table caption Johannes Rainer
2015-08-27  3:54 ` Peter Salazar
2015-08-27  7:53   ` Suvayu Ali

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