5

I use Emacs Org-mode to write some documents, and I describe some files like “/path/to/file_blah.conf”.

After I hit c-c c-e h to export one of those files to HTML, all the filenames in that file containing _ become small subscript words.

How can I make Org-mode ignore the underscores, so that I can see the filenames on the HTML page?

Rory O'Kane
  • 29,210
  • 11
  • 96
  • 131
CSJ
  • 2,709
  • 4
  • 24
  • 30

3 Answers3

5

Duplicated as Disabling underscore-to-subscript in Emacs Org-Mode export

(setq org-export-with-sub-superscripts nil)

in .emacs or

#+OPTIONS: ^:nil

in org file.

Community
  • 1
  • 1
CodyChan
  • 1,776
  • 22
  • 35
3

on top of your file put the following line and save. reopen the file or hit C-c C-c on that line

#+OPTIONS: ^:nil

BTW: what is there in your org-emphasis-alist. C-h v org-emphasis-alist. You might need to edit that to achieve output to your liking

kindahero
  • 5,817
  • 3
  • 25
  • 32
  • it works, thank you. org-emphasis-alist is a variable defined in `org.el'. Its value is (("*" bold "" "") ("/" italic "" "") ("_" underline "" "") ("=" org-code "" "" verbatim) ("~" org-verbatim "" "" verbatim) ("+" (:strike-through t) "" "")) – CSJ Dec 06 '11 at 07:13
  • 1
    The documentation for this feature is in [“Export options” in the Org-mode manual](http://orgmode.org/manual/Export-options.html). As that page explains, `#+OPTIONS:` lets you set various export options. The `^:` option lets you “turn on/off TeX-like syntax for sub- and superscripts” when given the values `t` or `nil`. – Rory O'Kane Aug 14 '13 at 19:44
2

Another solution should be to correctly markup the paths, so:

Open the file =/path/to/fileA= or ~c:/path/to/fileB~.
fniessen
  • 4,408
  • 19
  • 18