User manual: translate page number references in the PDF output

This commit is contained in:
Kovid Goyal 2014-11-02 09:18:48 +05:30
parent 0673a3f9cd
commit d34a7b63c7

View File

@ -18,6 +18,8 @@ sys.path.append(os.path.abspath('.'))
import init_calibre import init_calibre
init_calibre init_calibre
from calibre.constants import __appname__, __version__ from calibre.constants import __appname__, __version__
import calibre.utils.localization as l # Ensure calibre translations are installed
del l
import custom import custom
custom custom
# General configuration # General configuration
@ -179,5 +181,6 @@ latex_show_pagerefs = True
latex_show_urls = 'footnote' latex_show_urls = 'footnote'
latex_elements = { latex_elements = {
'papersize':'letterpaper', 'papersize':'letterpaper',
'fontenc':r'\usepackage[T2A,T1]{fontenc}' 'fontenc':r'\usepackage[T2A,T1]{fontenc}',
'preamble': r'\renewcommand{\pageautorefname}{%s}' % _('page'),
} }