ox-epub icon indicating copy to clipboard operation
ox-epub copied to clipboard

Can I change the name of the exported "Table of Contents" to my language?

Open alienbogart opened this issue 6 years ago • 3 comments

Runtime Environment

  • Org mode version 9.2.3
  • GNU Emacs 27.0.50
  • MX Linux 18
  • Installed via Melpa
  • ox-epub 20181101.1854
  • dotfiles
  • ~/.emacs.d

Issue

I use an en-us locale on my system, but I was able to export to PDF in Portuguese using these options:

#+LANGUAGE: pt
#+LATEX_HEADER: \usepackage[AUTO]{babel}

But when I export to EPUB, the resulting TOC is written in English as "Table of Contents". Is it possible to customize this to my language or to some arbitrary string of my choice? Thanks!

alienbogart avatar Jul 26 '19 04:07 alienbogart

That's a valid request. I'll check whether the code can be made to so it.

ofosos avatar Jul 26 '19 18:07 ofosos

That's a valid request. I'll check whether the code can be made to so it.

Thank you very much! I'm editing the epub manually for now.

alienbogart avatar Jul 28 '19 18:07 alienbogart

Hello @mrbig033 , In theory this should work out of the box, when you set the language like you described. Can you have a look at the solutions in the second answer to this question on stackoverflow?

https://emacs.stackexchange.com/questions/21239/change-table-of-contents-title-in-org-mode-according-to-document-language

Regards, Mark

ofosos avatar Jul 28 '19 19:07 ofosos