Skip to content

Commit

Permalink
Tweak latexindent config and do some reformattings
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Jan 25, 2018
1 parent 668bc65 commit d65ef01
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 42 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed
- Listings rendered by minted are now also shown in the TOC
- latexindent config: `removeSentenceLineBreaks` set to 0 to avoid collapsing of environments

## [2.2.0] - 2018-01-19

Expand All @@ -26,6 +27,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Added
- Lines in listings (made by `lstlistings`) are numbered
- Initial [latexindent](https://ctan.org/pkg/latexindent) config

### Fixed
- Fixed numbering of minted listings
Expand Down
83 changes: 46 additions & 37 deletions latexhints-german.tex
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ \section{Abbildungen}
\begin{figure}
\centering
\includegraphics[width=.8\textwidth]{choreography.pdf}
\caption[Beispiel-Choreographie]{Die Beispiel-Choreographie. Nun etwas kleiner, damit \texttt{\textbackslash textwidth} demonstriert wird. Und auch die Verwendung von alternativen Bildunterschriften für das Verzeichnis der Abbildungen. Letzteres ist allerdings nur Bedingt zu empfehlen, denn wer liest schon so viel Text unter einem Bild? Oder ist es einfach nur Stilsache?}
\caption[Beispiel-Choreographie]{Die Beispiel-Choreographie.
Nun etwas kleiner, damit \texttt{\textbackslash textwidth} demonstriert wird.
Und auch die Verwendung von alternativen Bildunterschriften für das Verzeichnis der Abbildungen.
Letzteres ist allerdings nur Bedingt zu empfehlen, denn wer liest schon so viel Text unter einem Bild?
Oder ist es einfach nur Stilsache?
}
\label{fig:chor2}
\end{figure}

Expand Down Expand Up @@ -191,7 +196,9 @@ \section{Tabellen}
\bottomrule
\end{tabular}

\caption{Beispieltabelle f\"{u}r 4 Bedingungen (W-Z) mit jeweils 4 Parameters mit (M und SD). Hinweiß: immer die selbe anzahl an Nachkommastellen angeben.}
\caption{Beispieltabelle f\"{u}r 4 Bedingungen (W-Z) mit jeweils 4 Parameters mit (M und SD).
Hinweiß: immer die selbe anzahl an Nachkommastellen angeben.
}
\label{tab:Werte}
\end{table}

Expand Down Expand Up @@ -309,7 +316,9 @@ \section{Definitionen}
\Cref{def:def1} zeigt \ldots

\section{Fußnoten}
Fußnoten können mit dem Befehl \verb+\footnote{...}+ gesetzt werden\footnote{\label{fussnote}Diese Fußnote ist ein Beispiel.}. Mehrfache Verwendung von Fußnoten ist möglich indem man zu erst ein Label in der Fußnote setzt \verb+\footnote{\label{...}...}+ und anschließend mittels \verb+\cref{...}+ die Fußnote erneut verwendet\cref{fussnote}.
Fußnoten können mit dem Befehl \verb+\footnote{...}+ gesetzt werden\footnote{\label{fussnote}Diese Fußnote ist ein Beispiel.
}.
Mehrfache Verwendung von Fußnoten ist möglich indem man zu erst ein Label in der Fußnote setzt \verb+\footnote{\label{...}...}+ und anschließend mittels \verb+\cref{...}+ die Fußnote erneut verwendet\cref{fussnote}.

\section{Verschiedenes}
\label{sec:diff}
Expand All @@ -319,7 +328,7 @@ \section{Verschiedenes}
Letzteres erreicht man durch den Parameter \texttt{osf} bei dem Paket \texttt{libertine} bzw.\ \texttt{mathpazo} in \texttt{fonts.tex}.
\fi

\textsc{Kapitälchen} werden schön gesperrt...
\textsc{Kapitälchen} werden schön gesperrt.

\begin{compactenum}[I.]
\item Man kann auch die Nummerierung dank paralist kompakt halten
Expand Down Expand Up @@ -380,40 +389,40 @@ \section{Weitere Illustrationen}

\fi


\IfFileExists{pgfplots.sty}{
\section{Plots with pgfplots}
Pgfplot ist ein Paket um Graphen zu plotten ohne den Umweg über gnuplot oder matplotlib zu gehen.
\begin{figure}[h]
\begin{center}
\begin{tikzpicture}
\begin{axis}[xlabel=$x$,
ylabel=$\sin(x)$]
\addplot {sin(deg(x))}; % Sinus-Funktion zeichnen
\end{axis}
\end{tikzpicture}
\end{center}
\caption{$\sin(x)$ mit pgfplots.}
\end{figure}
}{}
\section{Plots with pgfplots}
Pgfplot ist ein Paket um Graphen zu plotten ohne den Umweg über gnuplot oder matplotlib zu gehen.
%hint by http://tex.stackexchange.com/a/3265/9075%other option is to use changepage according to http://tex.stackexchange.com/a/2639/9075. This, however, has issues with landscape%If you only have height problems, this is not needed at all%sidewaysfigure%the original layout is restored.%%\restoregeometry cannot be used as we use \addtolength
\begin{figure}[h]
\begin{center}
\begin{tikzpicture}
\begin{axis}[xlabel=$x$,
ylabel=$\sin(x)$]
\addplot {sin(deg(x))}; % Sinus-Funktion zeichnen
\end{axis}
\end{tikzpicture}
\end{center}
\caption{$\sin(x)$ mit pgfplots.}
\end{figure}
}{}

\IfFileExists{tikz.sty}{
\section{Figures with tikz}
TikZ ist ein Paket um Zeichnungen mittels Programmierung zu erstellen.
Dieses Paket eignet sich um Gitter zu erstellen oder andere regelmäßige Strukturen zu erstellen.
\begin{figure}[ht]
\begin{center}
\begin{tikzpicture}
\draw(0,0) rectangle (4,4);
\foreach \x in {0.5,1,1.5,2,2.5,3,3.5}
\foreach \y in {0.5,1,1.5,2,2.5,3,3.5}
\draw(\x,\y) circle (1pt);
\end{tikzpicture}
\end{center}
\caption{Eine tikz-Graphik.}\label{fig:tikz_example}
\end{figure}
}{}
\section{Figures with tikz}
TikZ ist ein Paket um Zeichnungen mittels Programmierung zu erstellen.
Dieses Paket eignet sich um Gitter zu erstellen oder andere regelmäßige Strukturen zu erstellen.
\begin{figure}[ht]
\begin{center}
\begin{tikzpicture}
\draw(0,0) rectangle (4,4);
\foreach \x in {0.5,1,1.5,2,2.5,3,3.5}
\foreach \y in {0.5,1,1.5,2,2.5,3,3.5}
\draw(\x,\y) circle (1pt);
\end{tikzpicture}
\end{center}
\caption{Eine tikz-Graphik.}\label{fig:tikz_example}
\end{figure}
}{}

\section{Schlusswort}
Verbesserungsvorschläge für diese Vorlage sind immer willkommen.
Bitte bei GitHub ein Ticket eintragen (\url{https://github.com/latextemplates/scientific-thesis-template/issues}).
\section{Schlusswort}
Verbesserungsvorschläge für diese Vorlage sind immer willkommen.
Bitte bei GitHub ein Ticket eintragen (\url{https://github.com/latextemplates/scientific-thesis-template/issues}).
4 changes: 2 additions & 2 deletions localSettings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ maxNumberOfBackUps: 9
modifyLineBreaks:
oneSentencePerLine:
manipulateSentences: 1
removeSentenceLineBreaks: 1
removeSentenceLineBreaks: 0
sentencesFollow:
par: 1
blankLine: 1
Expand All @@ -25,4 +25,4 @@ modifyLineBreaks:
betterFullStop: 1
exclamationMark: 1
questionMark: 1
other: "\:|\;|\,"
other: '(?:\.\)(?!\h*[a-z]))|(?:(?<!(?:(?:e\.g)|(?:i\.e)|(?:etc))))\.(?!(?:[a-z]|[A-Z]|\-|\,|\.|[0-9]))'
2 changes: 1 addition & 1 deletion main-english.tex
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
\section*{Abstract}
\fi
... Short summary of the thesis ...
<Short summary of the thesis>
\cleardoublepage
Expand Down
5 changes: 3 additions & 2 deletions main-german.tex
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
\section*{Abstract}
\fi
... Short summary of the thesis ...
<Kurzfassung der Arbeit>
\cleardoublepage
Expand Down Expand Up @@ -222,7 +222,8 @@ \chapter{Einleitung}
\chapter{Kapitel zwei}
\label{chap:k2}
Hier wird der Hauptteil stehen. Falls mehrere Kapitel gewünscht, entweder mehrmals \texttt{\textbackslash{}chapter} benutzen oder pro Kapitel eine eigene Datei anlegen und \texttt{ausarbeitung.tex} anpassen.
Hier wird der Hauptteil stehen.
Falls mehrere Kapitel gewünscht, entweder mehrmals \texttt{\textbackslash{}chapter} benutzen oder pro Kapitel eine eigene Datei anlegen und \texttt{ausarbeitung.tex} anpassen.
LaTeX-Hinweise stehen in \cref{chap:latextipps}.
Expand Down

0 comments on commit d65ef01

Please sign in to comment.