Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alienbogart opened this issue Jul 26, 2019 · 3 comments

Comments

@alienbogart
Copy link

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!

@ofosos
Copy link
Owner

ofosos commented Jul 26, 2019

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

@alienbogart
Copy link
Author

alienbogart commented Jul 28, 2019

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.

@ofosos
Copy link
Owner

ofosos commented Jul 28, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants