conf.py 3 KB
Newer Older
1 2
import os
import sys
Bernhard Grotz's avatar
Bernhard Grotz committed
3 4 5 6

sys.path.append(os.path.abspath('_exts'))

extensions = [
7 8 9
    # 'matplotlib.sphinxext.mathmpl',
    # 'matplotlib.sphinxext.only_directives',
    # 'matplotlib.sphinxext.plot_directive',
10 11
    # "sphinxcontrib.blockdiag",
    # "sphinxcontrib.seqdiag",
Bernhard Grotz's avatar
Bernhard Grotz committed
12 13
    'sphinx.ext.autodoc',
    'sphinx.ext.intersphinx',
14
    'sphinx.ext.imgmath',
Bernhard Grotz's avatar
Bernhard Grotz committed
15 16 17 18 19 20 21 22 23 24 25 26 27
    'sphinx.ext.ifconfig',
    'sphinx.ext.viewcode',
]

# 'ipython_console_highlighting',
# 'inheritance_diagram',
# 'numpydoc', 'lily',

templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = 'Grundkurs LaTeX'
htmlhelp_basename = 'Grundkurs LaTeX'
28
html_short_title = 'Grundkurs LaTeX'
Bernhard Grotz's avatar
Bernhard Grotz committed
29

30 31 32
version = '0.1.0c'
release = '0.1.0c'
copyright = '2015-2018, Bernhard Grotz'
Bernhard Grotz's avatar
Bernhard Grotz committed
33 34 35 36
language = 'de'
spelling_lang = 'de_DE'
pygments_style = 'sphinx'
html_theme = 'sphinxdoc'
37

Bernhard Grotz's avatar
Bernhard Grotz committed
38
html_favicon = "favicon.ico"
39 40 41
html_logo = 'logo.png'
latex_logo = 'logo_print.png'

Bernhard Grotz's avatar
Bernhard Grotz committed
42
html_static_path = ['_static']
43
html_last_updated_fmt = '%d.%m.%Y'
Bernhard Grotz's avatar
Bernhard Grotz committed
44 45 46 47 48 49 50 51 52 53
html_additional_pages = {'home': 'home.html'}
html_domain_indices = False
html_use_index = True

html_show_sourcelink = True
html_show_sphinx = False
html_show_copyright = False
html_search_language = 'en'
html_search_options = {'type': 'default'}

54
today_fmt = '%d.%m.%Y'
55 56 57 58 59 60 61
exclude_patterns = [
    "notes.rst",
    "*/notes.rst",
    "**/notes.rst",
    "todos.rst",
    "README.rst"
]
62

Bernhard Grotz's avatar
Bernhard Grotz committed
63 64 65 66 67 68 69

# latex_logo = "logo.png"

latex_preamble = r'''
\usepackage[T1]{fontenc}
\usepackage[version=3]{mhchem}
\usepackage{amsmath, units, cancel,soul}
70
\usepackage{amsfonts, mathrsfs, amssymb, xcolor}
Bernhard Grotz's avatar
Bernhard Grotz committed
71
\usepackage{nicefrac,marvosym,mathtools,wasysym,textcomp,gensymb}
72 73
\usepackage{fancybox,shadow}
\usepackage{multicol}
Bernhard Grotz's avatar
Bernhard Grotz committed
74 75 76 77
\setcounter{secnumdepth}{-1}
\setlength{\headheight}{15pt}
\setcounter{tocdepth}{2}
\sloppy
78 79 80 81 82 83 84 85 86 87
\clubpenalty  = 10000 % Disable single lines at the start of a page (Schusterjungen)
\widowpenalty = 10000 % Disable single lines at the end   of a page (Hurenkinder)
\displaywidowpenalty = 10000
\usepackage{hyperref,url}
\hypersetup{
pdftitle={Grundkurs LaTeX},
pdfsubject={Eine Einführung in das Textsatzungssystem LaTeX},
pdfauthor={Bernhard Grotz},
pdfkeywords={LaTeX} {Textsatzung} {Tutorial} {Einführung} {Howto},
}
Bernhard Grotz's avatar
Bernhard Grotz committed
88 89
'''

90
imgmath_latex_preamble = latex_preamble
Bernhard Grotz's avatar
Bernhard Grotz committed
91 92 93 94

latex_elements = {
    "preamble": latex_preamble,
    "babel": "\\usepackage[ngerman]{babel}",
95 96
    "classoptions": 'oneside,openany,',
    "papersize": 'a4paper,',
Bernhard Grotz's avatar
Bernhard Grotz committed
97 98
    "pointsize": '12pt',
    "fontpkg": '',
99
    "fncychap": ''
Bernhard Grotz's avatar
Bernhard Grotz committed
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
}

latex_domain_indices = False


# latex_show_pagerefs    = True


latex_documents = [
   ('index', 'grundkurs-latex.tex', 'Grundkurs LaTeX',
   'Bernhard Grotz', 'manual'),
]

intersphinx_mapping = {
    'gw':('http://grund-wissen.de/', None),
    'gwm':('http://grund-wissen.de/mathematik/', None),
    'gwp':('http://grund-wissen.de/physik/', None),
    'gwe':('http://grund-wissen.de/elektronik/', None),
    'gwl': ('http://grund-wissen.de/linux/', None),
    'gwic':('http://grund-wissen.de/informatik/c/', None),
    'gwip':('http://grund-wissen.de/informatik/python/', None),
}