summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-27 22:48:33 +0000
committerKarl Berry <karl@freefriends.org>2019-01-27 22:48:33 +0000
commit28cba6f445ffb947f79b93b3329f919c95ed39cc (patch)
treed4e974504df254be9f6874bc1c2a3c6a4c036f4c /Master/texmf-dist/doc
parentfdfffcf5369f8f6bef5a4c44a46fea5b348ee246 (diff)
iodhbwm (27jan19)
git-svn-id: svn://tug.org/texlive/trunk@49838 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r--Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.pdfbin0 -> 173543 bytes
-rw-r--r--Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.tex89
-rw-r--r--Master/texmf-dist/doc/latex/iodhbwm/test-doc.pdfbin0 -> 107624 bytes
-rw-r--r--Master/texmf-dist/doc/latex/iodhbwm/test-doc.tex40
4 files changed, 129 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.pdf b/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.pdf
new file mode 100644
index 00000000000..d72891bb3c3
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.tex b/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.tex
new file mode 100644
index 00000000000..b057ef60bf7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.tex
@@ -0,0 +1,89 @@
+% ---------------------------------------------------
+% Date: 23.01.2019
+% Version: v0.1
+% Autor: Felix Faltin <ffaltin91[at]gmail.com>
+% Repository: https://github.com/faltfe/iodhbwm
+% Provided by: https://github.com/NelDav
+% ---------------------------------------------------
+% --- --- --- --- -- Class options -- --- --- --- ---
+% ---------------------------------------------------
+\documentclass[
+ load-dhbw-templates, % Necessary for correct listing style
+ language = ngerman,
+ debug
+]{iodhbwm}
+\usepackage[T1]{fontenc}
+
+% Change the color of the caption box of the listing
+\ifbool{iodhbwm@cls@if@templates}{%
+ % Change the color of the caption font
+ \DeclareCaptionFont{DHBWlisting}{\color{Blue}}
+ %
+ % Change the color of the caption box
+ \DeclareCaptionFormat{listing}{%
+ \colorbox{Orange}{%
+ \parbox{\dimexpr\textwidth-2\fboxsep\relax}{#1#2#3}%
+ }%
+ }
+}
+
+% Do global changes to all used listings of your document
+\lstset{
+ %Change the color of the line on the other side of the listing
+ rulecolor=\color{Orange},
+ %
+ %change the color of special words
+ commentstyle=\color{green},
+ keywordstyle=\color{blue},
+ numberstyle=\scriptsize\color{DHBW-font},
+ stringstyle=\color{purple}
+}
+
+% ---------------------------------------------------
+% --- --- --- --- - Necessary setup - --- --- --- ---
+% ---------------------------------------------------
+\begin{document}
+
+ \lstlistoflistings
+
+ \chapter{Einfache Beispiele}
+ \section{Simple example}
+ \blindtext
+ \begin{lstlisting}[caption={Simple Java method},label=lst:whatever,language=Java]
+/*
+ * This is a test class doing nothing
+ */
+public class TestClass() {
+ public static void main(String args[]) {
+ // A simple line comment
+ system.out.println("Hello world");
+ }
+}
+ \end{lstlisting}
+
+ \section{Advanced floating}
+ \begin{lstlisting}[language={[Sharp]C},float,caption={Simple C\# method},label=lst:whatever-2]
+// If have no idea what I'm doing here
+public void Testfunc(string msg) {
+ for (var i = 0; i <= 10; i++) {
+ Console.WriteLine($"String: {msg}{i}");
+ }
+}
+ \end{lstlisting}
+ \blindtext
+
+ \section{Advanced styling}
+ \lstset{
+ captionpos=b,
+ frame=t
+ }
+ \begin{lstlisting}[language={[Sharp]C},float=htb,caption={Caption below code},label=lst:whatever-3]
+// If have no idea what I'm doing here
+ public void Testfunc(string msg) {
+ for (var i = 0; i <= 10; i++) {
+ Console.WriteLine($"String: {msg}{i}");
+ }
+}
+ \end{lstlisting}
+ \blindtext
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/iodhbwm/test-doc.pdf b/Master/texmf-dist/doc/latex/iodhbwm/test-doc.pdf
new file mode 100644
index 00000000000..01e240a0db4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/iodhbwm/test-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/iodhbwm/test-doc.tex b/Master/texmf-dist/doc/latex/iodhbwm/test-doc.tex
new file mode 100644
index 00000000000..0692f0dfdb6
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/iodhbwm/test-doc.tex
@@ -0,0 +1,40 @@
+% ---------------------------------------------------
+% Date: 12.11.2018
+% Version: v0.1
+% Autor: Felix Faltin <ffaltin91[at]gmail.com>
+% Repository: https://github.com/faltfe/iodhbwm
+% ---------------------------------------------------
+% --- --- --- --- -- Class options -- --- --- --- ---
+% ---------------------------------------------------
+\documentclass[
+add-bibliography-, % Include bibliography (needs biber run)
+bib-file = biblatex-examples.bib, % Set bibliography file
+language = ngerman, % Set main document language
+debug % Provide \lipsum, \blindtext
+]{iodhbwm}
+\usepackage[T1]{fontenc}
+%\usepackage[utf8]{inputenc} % UTF-8 is default at the latest release
+
+% ---------------------------------------------------
+% --- --- - Change default biblatex options - --- ---
+% ---------------------------------------------------
+% You can almost change every option with this command. There are
+% only some exception like the backend and the style.
+% If you want to change the citeystyle have a look at the custom
+% cite style example or see the documentation for biblatex/citestyle
+% option.
+% ---------------------------------------------------
+% Change the sorting and supress the DOI output
+\ExecuteBibliographyOptions{hyperref=true}
+
+% ---------------------------------------------------
+% --- --- --- --- Begin actual content -- --- --- ---
+% ---------------------------------------------------
+\begin{document}
+ \blindtext \cite{doody}
+
+% \nocite{*} % Cite every entry from the passed file
+ \printbibliography
+
+ % ---------------------------------------------------
+\end{document} \ No newline at end of file