Skip to content

Commit 4ce5ac0

Browse files
authored
Ref (#62)
* Funktionenabschnitt voellig neu * Erklärung der Signatur ausgebaut, Text etwas umstrukturiert * \cppinline ergänzt * Funktions Signatur Beispiel in \cppinline getan das es Highlighting bekommt * formatierung leicht angepasst das es dem Restlichen codingstyle entspricht * Revert "formatierung leicht angepasst das es dem Restlichen codingstyle" This reverts commit d356b42. * Fixed mixed spaces/tabs * Versentliches rückgängig machen rückgängig gemacht * Funktionsrumpf weiter ausgeführt * variable umbenannt in main * inline cpp nicht mehr auskommentiert * Neues Beispiel, alter Text * Neues Beispiel * Altes Beispiel gelöscht * \bf -> \textbf * auch *.out und _minted-vorkurs/ ignoriert * \chapter{...} -> \chapter*{...} * oft \texttt{...} -> \cppinline{...} * referenzen zumindes ein bisschen besser gemacht
1 parent a9e03ce commit 4ce5ac0

3 files changed

Lines changed: 35 additions & 28 deletions

File tree

basics/intro.tex

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,26 @@ \chapter*{Die Basics}
99
lernen, was der Kontrollfluß ist - und wie man ihn beeinflusst. Zuletzt werden
1010
wir Arrays kennenlernen und unser erstes nützliches Progamm schreiben.
1111

12-
\include{basics/hello_world}
13-
\include{basics/konsole}
14-
\include{basics/input}
15-
\include{basics/fehler}
16-
\include{basics/variablen}
17-
\include{basics/manpages}
18-
\include{basics/arith}
19-
\include{basics/gdb}
20-
\include{basics/kontrollfluss}
21-
\include{basics/rechte}
22-
\include{basics/schleifen}
23-
\include{basics/style}
24-
\include{basics/funktionen}
25-
\include{basics/stdbib}
26-
\include{basics/arrays}
27-
\include{basics/warning}
28-
\include{basics/tictactoe1}
29-
\include{basics/linker}
30-
\include{basics/tictactoe2}
12+
\pagestyle{fancy}
13+
\input{basics/hello_world}
14+
\input{basics/konsole}
15+
\input{basics/input}
16+
\input{basics/fehler}
17+
\input{basics/variablen}
18+
\input{basics/manpages}
19+
\input{basics/arith}
20+
\input{basics/gdb}
21+
\input{basics/kontrollfluss}
22+
\input{basics/rechte}
23+
\input{basics/schleifen}
24+
\input{basics/style}
25+
\input{basics/funktionen}
26+
\input{basics/stdbib}
27+
\input{basics/arrays}
28+
\input{basics/warning}
29+
\input{basics/tictactoe1}
30+
\input{basics/linker}
31+
\input{basics/tictactoe2}
3132

3233
\pagestyle{empty}
3334

vorkurs.cls

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,31 @@
1313
\RequirePackage{microtype}
1414
\RequirePackage{minted}
1515

16+
%\setcounter{secnumdepth}{-1}
17+
1618
\setlength{\parskip}{0.5em}
1719
\setlength{\parindent}{0pt}
1820
\addtolength{\headheight}{\baselineskip}
19-
\renewcommand{\sectionmark}[1]{\markright{#1}}
21+
%\renewcommand{\sectionmark}[1]{\markright{#1}}
22+
\newcommand{\myrightmark}{bar}
23+
\renewcommand{\sectionmark}[1]{\renewcommand{\myrightmark}{batz}}
2024
\renewcommand{\chaptermark}[1]{\renewcommand{\leftmark}{#1}}
21-
\lhead{\textsc{Kapitel \thechapter \\ \leftmark}}
22-
\chead{\small{Programmiervorkurs der Fachschaft MathPhys} \\ \vspace{0.5em}\textbf{\large Lektion \theFakeSection: \rightmark}}
25+
\lhead{\textsc{\leftmark}}
26+
%\chead{\small{Programmiervorkurs der Fachschaft MathPhys} \\ \vspace{0.5em}\textbf{\large Lektion \thesection: \rightmark}}
27+
\chead{\small{Programmiervorkurs der Fachschaft MathPhys} \\ \vspace{0.5em}\textbf{\large Lektion \thesection: \myrightmark}}
2328
\rhead{\small Seite \thepage}
2429
\lfoot{}
2530
\cfoot{}
2631
\rfoot{}
2732

28-
\titleformat{\section}[display]{\markright{#1}}{}{0pt}{}
29-
\newcounter{FakeSection}
30-
\newcommand{\sectionbreak}{\clearpage\stepcounter{FakeSection}\setcounter{section}{\value{FakeSection}}}
31-
\newcommand{\lesson}[1]{\section*{#1}\pagestyle{fancy}\addcontentsline{toc}{section}{#1}}
33+
\titleformat{\section}[leftmargin]{}{}{0pt}{}%[\vspace{-5em}]
34+
%\newcommand{\sectionbreak}{\clearpage}
35+
\newcommand{\lesson}[1]{\clearpage\section{#1}\renewcommand{\myrightmark}{#1}}
36+
%\newcommand{\lesson}[1]{\section{#1}\vspace{5em}\markright{#1}}
3237
\renewcommand*\thesection{\arabic{section}}
3338

34-
\titlecontents{chapter}[0pt]{\vspace{1em}\large\textbf}{\makebox[60pt][l]{Kapitel \thecontentslabel:}\hspace*{10pt}}{}{\titlerule*[1pc]{ }\contentspage}
39+
\titlecontents{chapter}[0pt]{\vspace{1em}\large}{\makebox[60pt][l]{\textbf{Kapitel \thecontentslabel:}}\hspace*{10pt}}{}{\titlerule*[1pc]{ }\contentspage}
40+
%\titlecontents{chapter}[0pt]{\vspace{1em}\large\textbf}{}{}{}
3541
\titlecontents{section}[10pt]{}{\makebox[50pt][l]{Lektion \thecontentslabel:}\hspace*{10pt}}{}{\titlerule*[1pc]{ }\contentspage}
3642

3743
\newcommand{\inputcpp}[1]{\usemintedstyle{vs}\inputminted[label=#1,linenos=true,frame=single]{c++}{files/#1}}

vorkurs.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
\clearpage
3030

31-
\chapter*{Vorwort}
31+
\chapter{Vorwort}
3232
\pagestyle{empty}
3333

3434
Vorliegend ist der Programmier-Einführungskurs der Fachschaft MathPhys.

0 commit comments

Comments
 (0)