djpeebles
djpeebles

Reputation: 71

How to underline a word in parentheses in org-mode to export to LaTeX

I want to underline a word in parentheses to export to LaTeX. I used (_word_) in the org-mode file but the LaTeX output produced is (\_word\_) and in the resulting pdf file I just get (_word_). Can anyone advise me how to get what I want?

Upvotes: 3

Views: 1789

Answers (2)

Lei Zhao
Lei Zhao

Reputation: 1156

This is definitely a bug of org-mode introduced in version 8.

The latest version (based on version number) of org-mode without this bug is 8.0-alpha.

The latest version (based on commit date) of org-mode wihtout this bug is 7.9.4.

Minimal working examples follow.

#+TITLE: Test
#+OPTIONS: ^:nil

a_5

( _test_)
(_test_)

Under both version 7.9.4 and 8.0-alpha, the output is correct as shown belew.

Version 7.9.4 with correct underline

Version 8.0-alpha with correct underline

But under version 8.0-beta and onward, the output is incorrect.

Version 8.0-beta with incorrect result

Upvotes: 0

Alex Ott
Alex Ott

Reputation: 87249

For me it looks like a bug in OrgMode. For me,

this is (_underline_) text. another _underline_ text

produce following result:

screenshot

I recommend to file a bug against OrgMode

Upvotes: 3

Related Questions