texlive[49838] Master/texmf-dist: iodhbwm (27jan19)
commits+karl at tug.org
commits+karl at tug.org
Sun Jan 27 23:48:33 CET 2019
Revision: 49838
http://tug.org/svn/texlive?view=revision&revision=49838
Author: karl
Date: 2019-01-27 23:48:33 +0100 (Sun, 27 Jan 2019)
Log Message:
-----------
iodhbwm (27jan19)
Modified Paths:
--------------
trunk/Master/texmf-dist/tex/latex/iodhbwm/iodhbwm.cls
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.pdf
trunk/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.tex
trunk/Master/texmf-dist/doc/latex/iodhbwm/test-doc.pdf
trunk/Master/texmf-dist/doc/latex/iodhbwm/test-doc.tex
Added: trunk/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.pdf 2019-01-27 22:48:18 UTC (rev 49837)
+++ trunk/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.pdf 2019-01-27 22:48:33 UTC (rev 49838)
Property changes on: trunk/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.tex 2019-01-27 22:48:33 UTC (rev 49838)
@@ -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 at cls@if at 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}
Property changes on: trunk/Master/texmf-dist/doc/latex/iodhbwm/examples/listings/iodhbwm-listings-color.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/iodhbwm/test-doc.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/iodhbwm/test-doc.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/iodhbwm/test-doc.pdf 2019-01-27 22:48:18 UTC (rev 49837)
+++ trunk/Master/texmf-dist/doc/latex/iodhbwm/test-doc.pdf 2019-01-27 22:48:33 UTC (rev 49838)
Property changes on: trunk/Master/texmf-dist/doc/latex/iodhbwm/test-doc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/iodhbwm/test-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/iodhbwm/test-doc.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/iodhbwm/test-doc.tex 2019-01-27 22:48:33 UTC (rev 49838)
@@ -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
Property changes on: trunk/Master/texmf-dist/doc/latex/iodhbwm/test-doc.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/iodhbwm/iodhbwm.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/iodhbwm/iodhbwm.cls 2019-01-27 22:48:18 UTC (rev 49837)
+++ trunk/Master/texmf-dist/tex/latex/iodhbwm/iodhbwm.cls 2019-01-27 22:48:33 UTC (rev 49838)
@@ -7,7 +7,7 @@
% Felix Faltin
% E-Mail: ffaltin91 at gmail.com
% ----------------------------------------------------------
-% Copyright 2017-2018 Felix Faltin
+% Copyright 2017-2019 Felix Faltin
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -23,8 +23,8 @@
%
% ----------------------------------------------------------
-\newcommand*{\iodhbwm at cls@version}{v1.0}
-\newcommand*{\iodhbwm at cls@date}{2018-12-20}
+\newcommand*{\iodhbwm at cls@version}{v1.0.1}
+\newcommand*{\iodhbwm at cls@date}{2019-01-27}
\newcommand*{\iodhbwm at cls@info}{Inoffical DHBW Mannheim thesis class}
\ProvidesClass{iodhbwm}[%
@@ -297,6 +297,9 @@
}%
}%
}
+% hyperref loads auxhook, which does not work correctly if it is loaded
+% via \AtEndPreamble. So we load it immediately to avoid problems:
+\RequirePackage{auxhook}
% ----------------------------------------------------------
% Format captions and listings
@@ -323,7 +326,7 @@
framexleftmargin=17pt,
}
- \DeclareCaptionFont{DHBWwhite}{\color{DHBW-light}}
+ \DeclareCaptionFont{DHBWlisting}{\color{DHBW-light}}
\DeclareCaptionFont{print}{\color{black}}
\DeclareCaptionFormat{listing}{%
\colorbox{DHBW-red}{%
@@ -368,7 +371,7 @@
format=listing,
singlelinecheck=false,
margin=0pt,
- font={DHBWwhite,sf},
+ font={DHBWlisting,sf},
}%
\lstset{
@@ -474,4 +477,4 @@
}{}
-\endinput
\ No newline at end of file
+\endinput
More information about the tex-live-commits
mailing list