% ===> this file was generated automatically by noweave --- better not edit it

\documentclass[fontsize=10pt, paper=a4, twoside=true, open=right, hidelinks]{scrbook}
% For the used packages there is first a description what this package does
% Source: https://en.wikibooks.org/wiki/LaTeX/Package_Reference
% To choose the encoding of the input text. You might need it if you are
% writing documents in a language other than English. Check in the 
% Special Characters section. The source is UTF-8 encoded.
% This is the information for the input codepage
\usepackage[utf8]{inputenc}
% To choose the font encoding of the output text. You might need it if 
% you are writing documents in a language other than English. Check in 
% the Fonts section. It is also for the date format.
\usepackage[T1]{fontenc}
% It provides the internationalization of LaTeX. It has to be loaded in 
% any document, and you have to give as an option the main language you 
% are going to use in the document. For more information see the 
% Internationalization section.
\usepackage[ngerman]{babel}
% Allows you to insert graphic files within a document. 
\usepackage{graphicx}
% For a better view at display
% To support T1 you need lmodern (Latin Modern) too
\usepackage{lmodern}
%So you can use toc for more than 100 pages
\DeclareTOCStyleEntries[pagenumberwidth=2em]{tocline}{part,chapter,section,subsection,subsubsection}
\RedeclareSectionCommands[tocdynnumwidth]{part,chapter,section,subsection,subsubsection}
% You need the following package to convert LaTex to HTML and as a result 
% for Epub 
\usepackage{lwarp}
% To format colored text
\usepackage{color}
% To create QR-Codes within LaTeX
\usepackage{qrcode}
% Microtype changes the spaces between the words and letters
% It must be behind <lwarp>
\usepackage{microtype}
% Lets you change line spacing, e.g. provides the \doublespacing command 
% for making double spaced documents. For more information, see the 
% relevant section.
\usepackage[singlespacing=true]{scrlayer-scrpage}
% To use quotation in different langauges
\usepackage{csquotes}
%  To use the specifica of NoWeb
\usepackage{noweb}
\noweboptions{smallcode,longchunks,shift}
% Hyperref gives LaTeX the possibility to manage links within the document or 
% to any URL when you compile in PDF. For more information, see the 
% relevant section.
% Cleverref enhances LaTeX's cross-referencing features, allowing the
% format of references to be determined automatically according to
% the type of reference.
%It must be before the bibliography
\usepackage[lowtilde,hyphens]{url}
% hyperref transforms citations into hyperlink. It have to load after biblatex
\usepackage[breaklinks=true]{hyperref}
% For the bibliography with URL and UTF-8
% To use it you have to run 'biber'
\usepackage[sorting=none,backend=biber,backref=true]{biblatex}
\addbibresource{Literatur.bib}
% Literaturverzeichnis mit Nummerierung der Einträge
%\bibliographystyle{unsrt}
\bibliography{Literatur}


% Packages to use math symbols
%\usepackage{amsmath}

%\usepackage[olines,singlespacing=true]{scrlayer-scrpage}
%\automark[part]{part}
%\pagestyle{myheadings}

% Only the import is defined here. All other things are defined in the
% Title page.
\usepackage{scrhack}
% To avoid messages about deprecated values for KOMA scripts
\usepackage[doublespacing]{setspace}
\let\tempone\itemize
\let\temptwo\enditemize
\renewenvironment{itemize}{\tempone\addtolength{\itemsep}{-0.9\baselineskip}}{\temptwo}

% To insert programming code within the document. Many languages are 
% supported and the output can be customized. For more information, see 
% the Source Code Listings. 
\usepackage{listings}
%\booltrue{FormatEPUB} % !

% The 'figure' command has been redefined so that an image is displayed 
% at the position where it is inserted even without float.
\makeatletter
\renewenvironment{figure}[1][]{
\par
\medskip
\noindent\begin{minipage}{\linewidth}
\def\@captype{figure}
}{
\end{minipage}\hss\par
\medskip
\par
}
\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{3em}}
\makeatother

%\usepackage{caption}


% The showkeys package prints the internal keys of, among other things, 
% citations in the text and items in the bibliography. The package loading 
% order does not matter. It is displayed at the Start of a paragraph.
% This is not wanted
%\usepackage{showkeys}
%\newcommand{\comment}[1]{}
\newcommand{\urlWkp}[1]{$\rightarrow$ \url{http://de.wikipedia.org/wiki/#1}}
\newcommand{\hrefWkp}[1]{\href{http://de.wikipedia.org/wiki/#1}{\tt\ \ldots /#1}}
%Gibt einen kleine Zeilenabstand in Listen - itemize durch fouritemize ersetzen
\newenvironment{fouritemize}{\begin{itemize}\itemsep 2pt}{\end{itemize}}
%Gibt -wenn nötig - einen kleineren Zeilenabstand in Beschreibungen
\newenvironment{nulldescription}{\begin{description}\itemsep 0pt}{\end{description}}
% Verkleinert Zeilenabstand bei nummerierten Listen
\usepackage{enumitem}
%\setlist[enumerate]{itemsep=-0mm}
\setlist{nosep}
%zur Erstellung eines Stichwortverzeichnisses
\usepackage{makeidx}
\makeindex
\textheight220mm{}
%Setzt die Ebene der Gliederung für die Nummerierung
\setcounter{secnumdepth}{5}
%Setzt die Ebenen für das Inhaltsverzeichnis
\setcounter{tocdepth}{4}
\setcounter{FileDepth}{1}
%\booltrue{combineHigherDepths}
%\setcounter{sideTOCDepth}{1}

% Now we define title, author and date
\title{\texttt{Debian}-Pakete bauen mit gbp}
\author{Dipl.-Ing. Mechtilde Stehmann \and Dr. Michael Stehmann}
\vspace{2cm}
\date{\normalsize \today}

% To deactivate ligatures of (-) and (>).
% and work for pdflatex'
% Thanks Marei for her nice ideas and her support

\makeatletter
\ExplSyntaxOn

\def\disableLig{
\do@noligs\-%
\do@noligs\>%
\do@noligs\<%
\do@noligs\'%
%\char_set_catcode_other:N \ 
}

\AddToHook{cmd/endmoddef/after}{\disableLig}

\let\orig@subpageref\subpageref
\renewcommand{\subpageref}[1]{%
    \tl_set_rescan:Nnn \l_tmpa_tl {\char_set_catcode_other:N -} {#1}
        \exp_args:NV \orig@subpageref \l_tmpa_tl
}

\let\orig@pagenumsl\@pagenumsl
\def\@pagenumsl#1{
        \tl_set_rescan:Nnn \l_tmpa_tl {\char_set_catcode_other:N -} {#1}
        \exp_args:NV \orig@pagenumsl \l_tmpa_tl
}
\ExplSyntaxOff

\makeatother{}

\makeatletter
        \declare@shorthand{ngerman}{"=}{
        \babelhyphen{nobreak}}
\makeatother

\begin{document}

\renewcommand{\figurename}{Abbildung}

\input{GBP-Title} % bindet die Datei Titel.tex ein
\include{GBP-Part1} % bindet Part1 = 'Überblick' ein
\include{GBP-Part2} % bindet Part2 = 'Vorbereitung' ein
\include{GBP-Part3} % bindet Part3 = 'Debian-Paket bauen' ein
\include{GBP-Part4} % bindet Part4 = 'Veröffentlichen' ein
\include{GBP-Part5} % bindet Part5 = 'Weitere Bestandteile' ein
\include{GBP-Part6} % bindet Part6 = 'Plugins und Skripte' ein

\pagenumbering{Roman}
\renewcommand\thepage{A--\roman{page}}
\part{Anhang}
\appendix

%\chapter*{Todos}

%\begin{itemize}
     %\item{Funktionen debmake analysieren}
     %\item{Beschreibung der regulären Ausdrücke im watch file}
     %\item{Dokumente nach \textit{/usr/share/doc/} verschieben}
     %\item{textsuite-autopkgtext-missing}
     %\item{watch-does-not-check-gpg-signature}
     
     %\item{auf \textit{Package is up to date for from} in der Uscan-Ausgabe}
%\end{itemize}

%\begin{verbatim}
%Typical git workflow

%git workflow is quite straightforward:

    %fetch tarball

    %git-import-orig <tarball> (updates upstream and pristine-tar branches)
    %update changelog and other files
    %do package improvements, remove patches applied upstream, etc.
    %debcommit -a (does a local commit in the master branch)
    %git-buildpackage (which uses cowbuilder in my setup)
    %local testing
    %dch -r
    %git commit -a -m "Release ...."
    %git-buildpackage --git-tag \
    %--git-sign-tags (produces and tags the release for upload)

    %dput <...>.changes
    %git push --all (pushes all local changes to the repo at salsa.d.o)
    %git push --tags (pushes the tags)
%\end{verbatim}

%Found this solution for the appendix in
% https://en.wikibooks.org/wiki/LaTeX/Document_Structure#The_document_environment

% Pinting 'List of figures'
\phantomsection
\addcontentsline{toc}{chapter}{Abbildungsverzeichnis}
\listoffigures

\newpage
% Printing complete bibliography
% Filename = Literatur.bib
\renewcommand{\bibname}{Literaturverzeichnis}
\phantomsection
\addcontentsline{toc}{chapter}{Literaturverzeichnis}
\printbibliography

\newpage
\renewcommand{\indexname}{Stichwortverzeichnis}

\phantomsection
\addcontentsline{toc}{chapter}{Stichwortverzeichnis}

\printindex
% That is the end of the document
\end{document}
\nwfilename{BuildWithGBP.nw}
