* src/docgen/LaTeXDoc.py: Regress UNICODE support to be only a
commented line in the output rather than implemented by default since not all LaTeX installations include ucs.sty by default. svn: r1877
This commit is contained in:
@@ -111,7 +111,19 @@ class LaTeXDoc(TextDoc.TextDoc):
|
||||
# that we should use Latin1 and unicode character encodings.
|
||||
self.f.write('\\documentclass[%s]{article}\n' % options)
|
||||
self.f.write('\\usepackage[T1]{fontenc}\n')
|
||||
self.f.write('\\usepackage[latin1,utf8]{inputenc}\n')
|
||||
self.f.write('%\n% We use latin1 encoding at a minimum by default\n.')
|
||||
self.f.write('% GRAMPS uses unicode UTF-8 encoding for its\n')
|
||||
self.f.write('% international support. LaTeX can deal gracefully\n')
|
||||
self.f.write('% with unicode encoding by using the ucs style invoked\n')
|
||||
self.f.write('% when utf8 is specified as an option to the inputenc\n')
|
||||
self.f.write('% package. This package is included by default in some\n')
|
||||
self.f.write('% installations, but not in others, so we do not make it\n')
|
||||
self.f.write('% the default. Uncomment the second line if you wish to use it\n')
|
||||
self.f.write('% (If you do not have ucs.sty, you may obtain it from\n')
|
||||
self.f.write('% http://www.tug.org/tex-archive/macros/latex/contrib/supported/unicode/)\n')
|
||||
self.f.write('%\n')
|
||||
self.f.write('\\usepackage[latin1]{inputenc}\n')
|
||||
self.f.write('%\\usepackage[latin1,utf8]{inputenc}\n')
|
||||
# add packages (should be standard on a default installation)
|
||||
# for finer output control. Put comments in file for user to read
|
||||
self.f.write('\\usepackage{graphicx} % Extended graphics support\n')
|
||||
|
||||
Reference in New Issue
Block a user