문제

How do I get Emacs org-mode to create proper typographic marks when I export to HTML, including converting straight quotes to smart quotes ("curly quotes") and converting hyphens --- to m-dashes ?

도움이 되었습니까?

해결책 2

This is now built into org-mode 8.x. To activate it, add the following to your Emacs configuration file:

(setq org-export-with-smart-quotes t)

It works for single quotes, double quotes, and apostrophes.

Source: @Ista

다른 팁

#+LANGUAGE: de
#+OPTIONS: ':t

also does the right thing now

This is only available in very recent versions of org-mode. If you are not already running the latest git version see http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development for instructions on upgrading. Then (setq org-export-with-smart-quotes t) will do what you want with quotes, and m-dashes will also be exported correctly.

A way to insure that smart quotes are entered in your org file is to insert the code at the following url into your init.el file. Then type M-x smart-quotes-mode and your all set.

https://github.com/gareth-rees/smart-quotes/blob/master/smart-quotes.el

MNH

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top