Pull requests

#120 Open
Repository
laiyonghao laiyonghao
Branch
default
Repository
birkenfeld birkenfeld
Branch
default

add contentsname to latex_elements, support to recommand contents name by conf.py.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update default
hg pull -r default https://bitbucket.org/laiyonghao/sphinx
hg merge 51ebc995742d
hg commit -m 'Merged in laiyonghao/sphinx (pull request #120)'
Author
  1. laiyonghao
Reviewers
Description

Many people wanted change the default latex toc title, by example, change to "Table of Contents".

Add '\renewcommand\contentsname{Table of Contents}' to latex_preamble doesn't works, because preamble inserted to .tex file after '\tableofcontents' .

Now, you can set it by edit conf.py file:

latex_elements = {
'contentsname' : u'Table of Contents',
}

This is very useful for non-englist users like me, need change it to chinese word 目录.

Comments (1)