Changeset View
Changeset View
Standalone View
Standalone View
conf.py
Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Line(s) | |||||
230 | # -- Options for HTMLHelp output --------------------------------------------- | 230 | # -- Options for HTMLHelp output --------------------------------------------- | ||
231 | 231 | | |||
232 | # Output file base name for HTML help builder. | 232 | # Output file base name for HTML help builder. | ||
233 | htmlhelp_basename = 'documentationProjectNamedoc' | 233 | htmlhelp_basename = 'documentationProjectNamedoc' | ||
234 | 234 | | |||
235 | 235 | | |||
236 | # -- Options for LaTeX output ------------------------------------------------ | 236 | # -- Options for LaTeX output ------------------------------------------------ | ||
237 | 237 | | |||
238 | latex_engine = 'xelatex' | ||||
238 | latex_elements = { | 239 | latex_elements = { | ||
239 | # The paper size ('letterpaper' or 'a4paper'). | 240 | # The paper size ('letterpaper' or 'a4paper'). | ||
240 | # | 241 | # | ||
241 | # 'papersize': 'letterpaper', | 242 | # 'papersize': 'letterpaper', | ||
243 | 'maxlistdepth': '8', | ||||
244 | 'figure_align':'ht!', | ||||
242 | 245 | | |||
243 | # The font size ('10pt', '11pt' or '12pt'). | 246 | # The font size ('10pt', '11pt' or '12pt'). | ||
244 | # | 247 | # | ||
245 | # 'pointsize': '10pt', | 248 | # 'pointsize': '10pt', | ||
246 | 249 | | |||
247 | # Additional stuff for the LaTeX preamble. | 250 | # Additional stuff for the LaTeX preamble. | ||
248 | # | 251 | # | ||
249 | # 'preamble': '', | 252 | 'preamble': r''' | ||
253 | \usepackage[export]{adjustbox} | ||||
254 | \let\oincludegraphics\includegraphics | ||||
255 | \renewcommand{\includegraphics}[2][]{ | ||||
256 | \oincludegraphics[#1,max width=\linewidth,max height=\textheight]{#2} | ||||
257 | } | ||||
258 | ''', | ||||
259 | 'tableofcontents':'\sphinxtableofcontents', | ||||
250 | 260 | | |||
251 | # Latex figure (float) alignment | 261 | # Latex figure (float) alignment | ||
252 | # | 262 | # | ||
253 | # 'figure_align': 'htbp', | 263 | # 'figure_align': 'htbp', | ||
254 | } | 264 | } | ||
255 | 265 | | |||
256 | # Grouping the document tree into LaTeX files. List of tuples | 266 | # Grouping the document tree into LaTeX files. List of tuples | ||
257 | # (source start file, target name, title, | 267 | # (source start file, target name, title, | ||
258 | # author, documentclass [howto, manual, or own class]). | 268 | # author, documentclass [howto, manual, or own class]). | ||
259 | latex_documents = [ | 269 | latex_documents = [ | ||
260 | (master_doc, 'kritaManual.tex', project, | 270 | (master_doc, 'kritaManual.tex', project, | ||
261 | author, 'manual'), | 271 | author, 'manual'), | ||
262 | ] | 272 | ] | ||
273 | latex_show_pagerefs=True | ||||
274 | # copy latex scripts to build dir | ||||
275 | latex_additional_files = [ | ||||
276 | "latexImageMakefile", | ||||
277 | ] | ||||
263 | 278 | | |||
264 | # -- Internationalization Options -------------------------------------------- | 279 | # -- Internationalization Options -------------------------------------------- | ||
265 | 280 | | |||
266 | locale_dirs = ['locale/'] # Where the PO files will be stored at | 281 | locale_dirs = ['locale/'] # Where the PO files will be stored at | ||
267 | gettext_compact = False # optional. | 282 | gettext_compact = False # optional. | ||
268 | gettext_additional_targets = ['image'] # allows images to be translatable | 283 | gettext_additional_targets = ['image'] # allows images to be translatable | ||
269 | 284 | | |||
270 | 285 | | |||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |