Template ist jetzt auch auf englisch verfügbar
This commit is contained in:
parent
10caa2962a
commit
780bc3dc13
@ -212,6 +212,11 @@ da-jahr: 2020/21
|
||||
# Schlüsselwörter werden im PDF als Schlüsselwörter hinterlegt
|
||||
da-keywords: HTLLE, Keyword1, Keyword2, Keyword3
|
||||
|
||||
# Sprache in der die Diplomarbeit verfasst wird.
|
||||
# Je nach dem wird dann das Template übersetzt. Die Übersetzung des Inhaltes
|
||||
# ist Aufgabe der Schüler. Mögliche Werte: default, english
|
||||
lang: default
|
||||
|
||||
# Autoren der Diplomarbeit (=Schüler)
|
||||
# Je Autor sind alle felder asuzufüllen
|
||||
# Information wird am Titelblatt und bei der Eidesstattlichen Erklärung verwendet
|
||||
|
@ -68,7 +68,61 @@ public class ArrayExamples
|
||||
}
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Obwohl hier nur java gezeigt ist, unterstützt das Template auch scala, java, javascript, css, html5 und xml
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{caption="Ein einfaches XML" .xml}
|
||||
<?xml version="1.0" standalone="yes"?>
|
||||
<!DOCTYPE module [
|
||||
<!ELEMENT module (module|property|metadata|message)*>
|
||||
<!ATTLIST module name NMTOKEN #REQUIRED>
|
||||
<!ELEMENT property EMPTY>
|
||||
<!ATTLIST property
|
||||
name NMTOKEN #REQUIRED
|
||||
value CDATA #REQUIRED
|
||||
default CDATA #IMPLIED
|
||||
>
|
||||
<!ELEMENT metadata EMPTY>
|
||||
<!ATTLIST metadata
|
||||
name NMTOKEN #REQUIRED
|
||||
value CDATA #REQUIRED
|
||||
>
|
||||
<!ELEMENT message EMPTY>
|
||||
<!ATTLIST message
|
||||
key NMTOKEN #REQUIRED
|
||||
value CDATA #REQUIRED
|
||||
>
|
||||
]>
|
||||
|
||||
<!--
|
||||
Checkstyle configuration that checks if the braces are set correctly
|
||||
-->
|
||||
|
||||
<module name = "Checker">
|
||||
<property name="charset" value="UTF-8"/>
|
||||
<property name="severity" value="warning"/>
|
||||
|
||||
<property name="fileExtensions" value="java"/>
|
||||
<!-- Checks for whitespace -->
|
||||
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
|
||||
|
||||
<module name="TreeWalker">
|
||||
|
||||
<module name="NeedBraces"/>
|
||||
<module name="LeftCurly">
|
||||
<property name="option" value="nl"/>
|
||||
</module>
|
||||
|
||||
<module name="RightCurly">
|
||||
<property name="id" value="RightCurlyAlone"/>
|
||||
<property name="option" value="alone"/>
|
||||
<property name="tokens"
|
||||
value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
|
||||
INSTANCE_INIT,LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE,
|
||||
LITERAL_DO"/>
|
||||
</module>
|
||||
</module>
|
||||
</module>
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
### Auswertung der Ergebnisse
|
||||
|
||||
@ -82,5 +136,26 @@ Anhand von XY kann man folgende Tabelle ableiten:
|
||||
|
||||
: Eine Tolle tabelle
|
||||
|
||||
#### Eine Überschrift 4ter Ordnung
|
||||
|
||||
Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext.
|
||||
|
||||
|
||||
#### Noch ein Überschrift 4ter Ordnung
|
||||
|
||||
Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext.
|
||||
|
||||
Und mit einer Aufzählung:
|
||||
|
||||
* Alpha
|
||||
* Bravo
|
||||
* Charlie
|
||||
* Charlie 1
|
||||
* Charlie 2
|
||||
* Charlie 3
|
||||
* Charlie 4
|
||||
* Delta
|
||||
* Epsilon
|
||||
|
||||
Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext. Mit etwas Fließtext.
|
||||
|
||||
|
58
style/langdef-css.tex
Normal file
58
style/langdef-css.tex
Normal file
@ -0,0 +1,58 @@
|
||||
%CSS
|
||||
\lstdefinelanguage{CSS}{
|
||||
keywords={accelerator,azimuth,background,background-attachment,
|
||||
background-color,background-image,background-position,
|
||||
background-position-x,background-position-y,background-repeat,
|
||||
behavior,border,border-bottom,border-bottom-color,
|
||||
border-bottom-style,border-bottom-width,border-collapse,
|
||||
border-color,border-left,border-left-color,border-left-style,
|
||||
border-left-width,border-right,border-right-color,
|
||||
border-right-style,border-right-width,border-spacing,
|
||||
border-style,border-top,border-top-color,border-top-style,
|
||||
border-top-width,border-width,bottom,caption-side,clear,
|
||||
clip,color,content,counter-increment,counter-reset,cue,
|
||||
cue-after,cue-before,cursor,direction,display,elevation,
|
||||
empty-cells,filter,float,font,font-family,font-size,
|
||||
font-size-adjust,font-stretch,font-style,font-variant,
|
||||
font-weight,height,ime-mode,include-source,
|
||||
layer-background-color,layer-background-image,layout-flow,
|
||||
layout-grid,layout-grid-char,layout-grid-char-spacing,
|
||||
layout-grid-line,layout-grid-mode,layout-grid-type,left,
|
||||
letter-spacing,line-break,line-height,list-style,
|
||||
list-style-image,list-style-position,list-style-type,margin,
|
||||
margin-bottom,margin-left,margin-right,margin-top,
|
||||
marker-offset,marks,max-height,max-width,min-height,
|
||||
min-width,-moz-binding,-moz-border-radius,
|
||||
-moz-border-radius-topleft,-moz-border-radius-topright,
|
||||
-moz-border-radius-bottomright,-moz-border-radius-bottomleft,
|
||||
-moz-border-top-colors,-moz-border-right-colors,
|
||||
-moz-border-bottom-colors,-moz-border-left-colors,-moz-opacity,
|
||||
-moz-outline,-moz-outline-color,-moz-outline-style,
|
||||
-moz-outline-width,-moz-user-focus,-moz-user-input,
|
||||
-moz-user-modify,-moz-user-select,orphans,outline,
|
||||
outline-color,outline-style,outline-width,overflow,
|
||||
overflow-X,overflow-Y,padding,padding-bottom,padding-left,
|
||||
padding-right,padding-top,page,page-break-after,
|
||||
page-break-before,page-break-inside,pause,pause-after,
|
||||
pause-before,pitch,pitch-range,play-during,position,quotes,
|
||||
-replace,richness,right,ruby-align,ruby-overhang,
|
||||
ruby-position,-set-link-source,size,speak,speak-header,
|
||||
speak-numeral,speak-punctuation,speech-rate,stress,
|
||||
scrollbar-arrow-color,scrollbar-base-color,
|
||||
scrollbar-dark-shadow-color,scrollbar-face-color,
|
||||
scrollbar-highlight-color,scrollbar-shadow-color,
|
||||
scrollbar-3d-light-color,scrollbar-track-color,table-layout,
|
||||
text-align,text-align-last,text-decoration,text-indent,
|
||||
text-justify,text-overflow,text-shadow,text-transform,
|
||||
text-autospace,text-kashida-space,text-underline-position,top,
|
||||
unicode-bidi,-use-link-source,vertical-align,visibility,
|
||||
voice-family,volume,white-space,widows,width,word-break,
|
||||
word-spacing,word-wrap,writing-mode,z-index,zoom},
|
||||
sensitive=true,
|
||||
morecomment=[l]{//},
|
||||
morecomment=[s]{/*}{*/},
|
||||
morestring=[b]',
|
||||
morestring=[b]",
|
||||
alsoletter={:},
|
||||
alsodigit={-}
|
||||
}
|
184
style/langdef-html.tex
Normal file
184
style/langdef-html.tex
Normal file
@ -0,0 +1,184 @@
|
||||
%HTML
|
||||
\lstdefinelanguage{HTML5}{
|
||||
language=html,
|
||||
sensitive=true,
|
||||
alsoletter={<>=-},
|
||||
otherkeywords={
|
||||
% HTML tags
|
||||
<, </, >,
|
||||
</a, <a, </a>,
|
||||
</abbr, <abbr, </abbr>,
|
||||
</address, <address, </address>,
|
||||
</area, <area, </area>,
|
||||
</area, <area, </area>,
|
||||
</article, <article, </article>,
|
||||
</aside, <aside, </aside>,
|
||||
</audio, <audio, </audio>,
|
||||
</audio, <audio, </audio>,
|
||||
</b, <b, </b>,
|
||||
</base, <base, </base>,
|
||||
</bdi, <bdi, </bdi>,
|
||||
</bdo, <bdo, </bdo>,
|
||||
</blockquote, <blockquote, </blockquote>,
|
||||
</body, <body, </body>,
|
||||
</br, <br, </br>,
|
||||
</button, <button, </button>,
|
||||
</canvas, <canvas, </canvas>,
|
||||
</caption, <caption, </caption>,
|
||||
</cite, <cite, </cite>,
|
||||
</code, <code, </code>,
|
||||
</col, <col, </col>,
|
||||
</colgroup, <colgroup, </colgroup>,
|
||||
</data, <data, </data>,
|
||||
</datalist, <datalist, </datalist>,
|
||||
</dd, <dd, </dd>,
|
||||
</del, <del, </del>,
|
||||
</details, <details, </details>,
|
||||
</dfn, <dfn, </dfn>,
|
||||
</div, <div, </div>,
|
||||
</dl, <dl, </dl>,
|
||||
</dt, <dt, </dt>,
|
||||
</em, <em, </em>,
|
||||
</embed, <embed, </embed>,
|
||||
</fieldset, <fieldset, </fieldset>,
|
||||
</figcaption, <figcaption, </figcaption>,
|
||||
</figure, <figure, </figure>,
|
||||
</footer, <footer, </footer>,
|
||||
</form, <form, </form>,
|
||||
</h1, <h1, </h1>,
|
||||
</h2, <h2, </h2>,
|
||||
</h3, <h3, </h3>,
|
||||
</h4, <h4, </h4>,
|
||||
</h5, <h5, </h5>,
|
||||
</h6, <h6, </h6>,
|
||||
</head, <head, </head>,
|
||||
</header, <header, </header>,
|
||||
</hr, <hr, </hr>,
|
||||
</html, <html, </html>,
|
||||
</i, <i, </i>,
|
||||
</iframe, <iframe, </iframe>,
|
||||
</img, <img, </img>,
|
||||
</input, <input, </input>,
|
||||
</ins, <ins, </ins>,
|
||||
</kbd, <kbd, </kbd>,
|
||||
</keygen, <keygen, </keygen>,
|
||||
</label, <label, </label>,
|
||||
</legend, <legend, </legend>,
|
||||
</li, <li, </li>,
|
||||
</link, <link, </link>,
|
||||
</main, <main, </main>,
|
||||
</map, <map, </map>,
|
||||
</mark, <mark, </mark>,
|
||||
</math, <math, </math>,
|
||||
</menu, <menu, </menu>,
|
||||
</menuitem, <menuitem, </menuitem>,
|
||||
</meta, <meta, </meta>,
|
||||
</meter, <meter, </meter>,
|
||||
</nav, <nav, </nav>,
|
||||
</noscript, <noscript, </noscript>,
|
||||
</object, <object, </object>,
|
||||
</ol, <ol, </ol>,
|
||||
</optgroup, <optgroup, </optgroup>,
|
||||
</option, <option, </option>,
|
||||
</output, <output, </output>,
|
||||
</p, <p, </p>,
|
||||
</param, <param, </param>,
|
||||
</pre, <pre, </pre>,
|
||||
</progress, <progress, </progress>,
|
||||
</q, <q, </q>,
|
||||
</rp, <rp, </rp>,
|
||||
</rt, <rt, </rt>,
|
||||
</ruby, <ruby, </ruby>,
|
||||
</s, <s, </s>,
|
||||
</samp, <samp, </samp>,
|
||||
</script, <script, </script>,
|
||||
</section, <section, </section>,
|
||||
</select, <select, </select>,
|
||||
</small, <small, </small>,
|
||||
</source, <source, </source>,
|
||||
</span, <span, </span>,
|
||||
</strong, <strong, </strong>,
|
||||
</style, <style, </style>,
|
||||
</summary, <summary, </summary>,
|
||||
</sup, <sup, </sup>,
|
||||
</svg, <svg, </svg>,
|
||||
</table, <table, </table>,
|
||||
</tbody, <tbody, </tbody>,
|
||||
</td, <td, </td>,
|
||||
</template, <template, </template>,
|
||||
</textarea, <textarea, </textarea>,
|
||||
</tfoot, <tfoot, </tfoot>,
|
||||
</th, <th, </th>,
|
||||
</thead, <thead, </thead>,
|
||||
</time, <time, </time>,
|
||||
</title, <title, </title>,
|
||||
</tr, <tr, </tr>,
|
||||
</track, <track, </track>,
|
||||
</u, <u, </u>,
|
||||
</ul, <ul, </ul>,
|
||||
</var, <var, </var>,
|
||||
</video, <video, </video>,
|
||||
</wbr, <wbr, </wbr>,
|
||||
/>, <!
|
||||
},
|
||||
ndkeywords={
|
||||
% General
|
||||
=,
|
||||
% HTML attributes
|
||||
accept=, accept-charset=, accesskey=, action=, align=, alt=, async=, autocomplete=, autofocus=, autoplay=, autosave=, bgcolor=, border=, buffered=, challenge=, charset=, checked=, cite=, class=, code=, codebase=, color=, cols=, colspan=, content=, contenteditable=, contextmenu=, controls=, coords=, data=, datetime=, default=, defer=, dir=, dirname=, disabled=, download=, draggable=, dropzone=, enctype=, for=, form=, formaction=, headers=, height=, hidden=, high=, href=, hreflang=, http-equiv=, icon=, id=, ismap=, itemprop=, keytype=, kind=, label=, lang=, language=, list=, loop=, low=, manifest=, max=, maxlength=, media=, method=, min=, multiple=, name=, novalidate=, open=, optimum=, pattern=, ping=, placeholder=, poster=, preload=, pubdate=, radiogroup=, readonly=, rel=, required=, reversed=, rows=, rowspan=, sandbox=, scope=, scoped=, seamless=, selected=, shape=, size=, sizes=, span=, spellcheck=, src=, srcdoc=, srclang=, start=, step=, style=, summary=, tabindex=, target=, title=, type=, usemap=, value=, width=, wrap=,
|
||||
% CSS properties
|
||||
accelerator:,azimuth:,background:,background-attachment:,
|
||||
background-color:,background-image:,background-position:,
|
||||
background-position-x:,background-position-y:,background-repeat:,
|
||||
behavior:,border:,border-bottom:,border-bottom-color:,
|
||||
border-bottom-style:,border-bottom-width:,border-collapse:,
|
||||
border-color:,border-left:,border-left-color:,border-left-style:,
|
||||
border-left-width:,border-right:,border-right-color:,
|
||||
border-right-style:,border-right-width:,border-spacing:,
|
||||
border-style:,border-top:,border-top-color:,border-top-style:,
|
||||
border-top-width:,border-width:,bottom:,caption-side:,clear:,
|
||||
clip:,color:,content:,counter-increment:,counter-reset:,cue:,
|
||||
cue-after:,cue-before:,cursor:,direction:,display:,elevation:,
|
||||
empty-cells:,filter:,float:,font:,font-family:,font-size:,
|
||||
font-size-adjust:,font-stretch:,font-style:,font-variant:,
|
||||
font-weight:,height:,ime-mode:,include-source:,
|
||||
layer-background-color:,layer-background-image:,layout-flow:,
|
||||
layout-grid:,layout-grid-char:,layout-grid-char-spacing:,
|
||||
layout-grid-line:,layout-grid-mode:,layout-grid-type:,left:,
|
||||
letter-spacing:,line-break:,line-height:,list-style:,
|
||||
list-style-image:,list-style-position:,list-style-type:,margin:,
|
||||
margin-bottom:,margin-left:,margin-right:,margin-top:,
|
||||
marker-offset:,marks:,max-height:,max-width:,min-height:,
|
||||
min-width:,transition-duration:,transition-property:,
|
||||
transition-timing-function:,transform:,
|
||||
-moz-transform:,-moz-binding:,-moz-border-radius:,
|
||||
-moz-border-radius-topleft:,-moz-border-radius-topright:,
|
||||
-moz-border-radius-bottomright:,-moz-border-radius-bottomleft:,
|
||||
-moz-border-top-colors:,-moz-border-right-colors:,
|
||||
-moz-border-bottom-colors:,-moz-border-left-colors:,-moz-opacity:,
|
||||
-moz-outline:,-moz-outline-color:,-moz-outline-style:,
|
||||
-moz-outline-width:,-moz-user-focus:,-moz-user-input:,
|
||||
-moz-user-modify:,-moz-user-select:,orphans:,outline:,
|
||||
outline-color:,outline-style:,outline-width:,overflow:,
|
||||
overflow-X:,overflow-Y:,padding:,padding-bottom:,padding-left:,
|
||||
padding-right:,padding-top:,page:,page-break-after:,
|
||||
page-break-before:,page-break-inside:,pause:,pause-after:,
|
||||
pause-before:,pitch:,pitch-range:,play-during:,position:,quotes:,
|
||||
-replace:,richness:,right:,ruby-align:,ruby-overhang:,
|
||||
ruby-position:,-set-link-source:,size:,speak:,speak-header:,
|
||||
speak-numeral:,speak-punctuation:,speech-rate:,stress:,
|
||||
scrollbar-arrow-color:,scrollbar-base-color:,
|
||||
scrollbar-dark-shadow-color:,scrollbar-face-color:,
|
||||
scrollbar-highlight-color:,scrollbar-shadow-color:,
|
||||
scrollbar-3d-light-color:,scrollbar-track-color:,table-layout:,
|
||||
text-align:,text-align-last:,text-decoration:,text-indent:,
|
||||
text-justify:,text-overflow:,text-shadow:,text-transform:,
|
||||
text-autospace:,text-kashida-space:,text-underline-position:,top:,
|
||||
unicode-bidi:,-use-link-source:,vertical-align:,visibility:,
|
||||
voice-family:,volume:,white-space:,widows:,width:,word-break:,
|
||||
word-spacing:,word-wrap:,writing-mode:,z-index:,zoom:
|
||||
},
|
||||
morecomment=[s]{<!--}{-->},
|
||||
tag=[s]
|
||||
}
|
||||
|
37
style/langdef-java.tex
Normal file
37
style/langdef-java.tex
Normal file
@ -0,0 +1,37 @@
|
||||
%
|
||||
% Java (Java SE 12, 2019-06-22)
|
||||
%
|
||||
\lstdefinelanguage{Java}{
|
||||
morekeywords={
|
||||
% normal keywords (without data types)
|
||||
abstract,assert,break,case,catch,class,continue,default,
|
||||
do,else,enum,exports,extends,final,finally,for,if,implements,
|
||||
import,instanceof,interface,module,native,new,package,private,
|
||||
protected,public,requires,return,static,strictfp,super,switch,
|
||||
synchronized,this,throw,throws,transient,try,volatile,while,
|
||||
% var is an identifier
|
||||
var
|
||||
},
|
||||
morekeywords={[2] % data types
|
||||
% primitive data types
|
||||
boolean,byte,char,double,float,int,long,short,
|
||||
% String
|
||||
String,
|
||||
% primitive wrapper types
|
||||
Boolean,Byte,Character,Double,Float,Integer,Long,Short
|
||||
% number types
|
||||
Number,AtomicInteger,AtomicLong,BigDecimal,BigInteger,DoubleAccumulator,DoubleAdder,LongAccumulator,LongAdder,Short,
|
||||
% other
|
||||
Object,Void,void
|
||||
},
|
||||
morekeywords={[3] % literals
|
||||
% reserved words for literal values
|
||||
null,true,false,
|
||||
},
|
||||
sensitive,
|
||||
morecomment = [l]//,
|
||||
morecomment = [s]{/*}{*/},
|
||||
morecomment = [s]{/**}{*/},
|
||||
morestring = [b]",
|
||||
morestring = [b]',
|
||||
}
|
11
style/langdef-javascript.tex
Normal file
11
style/langdef-javascript.tex
Normal file
@ -0,0 +1,11 @@
|
||||
%JavaScript
|
||||
\lstdefinelanguage{JavaScript}{
|
||||
morekeywords={break, case, catch, continue, debugger, default, delete,
|
||||
do, else, false, finally, for, function, if, in, instanceof,
|
||||
new, null, return, switch, this, throw, true, try, typeof,
|
||||
var, void, while, with},
|
||||
morecomment=[s]{/*}{*/},
|
||||
morecomment=[l]//,
|
||||
morestring=[b]",
|
||||
morestring=[b]'
|
||||
}
|
16
style/langdef-scala.tex
Normal file
16
style/langdef-scala.tex
Normal file
@ -0,0 +1,16 @@
|
||||
% Scala
|
||||
\lstdefinelanguage{Scala}{
|
||||
morekeywords = {abstract,case,catch,class,def,%
|
||||
do,else,extends,false,final,finally,%
|
||||
for,if,implicit,import,match,mixin,%
|
||||
new,null,object,override,package,%
|
||||
private,protected,requires,return,sealed,%
|
||||
super,this,throw,trait,true,try,%
|
||||
type,val,var,while,with,yield},
|
||||
sensitive = true,
|
||||
morecomment = [l]{//},
|
||||
morecomment = [n]{/*}{*/},
|
||||
morestring = [b]",
|
||||
morestring = [b]',
|
||||
morestring = [b]"""
|
||||
}
|
14
style/langdef-xml.tex
Normal file
14
style/langdef-xml.tex
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
% XML
|
||||
\lstdefinelanguage{XML}{
|
||||
morestring = [b]",
|
||||
moredelim = [s][\bfseries\color{listing-keyword}]{<}{\ },
|
||||
moredelim = [s][\bfseries\color{listing-keyword}]{</}{>},
|
||||
moredelim = [l][\bfseries\color{listing-keyword}]{/>},
|
||||
moredelim = [l][\bfseries\color{listing-keyword}]{>},
|
||||
morecomment = [s]{<?}{?>},
|
||||
morecomment = [s]{<!--}{-->},
|
||||
commentstyle = \color{listing-comment},
|
||||
stringstyle = \color{listing-string},
|
||||
identifierstyle = \color{listing-identifier}
|
||||
}
|
@ -15,10 +15,11 @@
|
||||
% Diese werden von pandoc kompiliert und enthalten bereits alle
|
||||
% für die Diplomarbeit notwendigen Abschnittte
|
||||
% - Literaturequellen in die Datei literatur.bib
|
||||
% - Begleitprotokolle im Verzeichnis ../src/pdfs/begleitprotokolle/*.pdf
|
||||
% - Projekthandbuch im Verzeichnis ../src/pdfs/projekthandbuch/*.pdf
|
||||
% - Dokumentationen ins Verzeichns ../src/pdfs/dokumente/*.pdf
|
||||
%
|
||||
% - Einzubindende PDFs in das Verzeichnis ./src/pdfs/ einkopieren und
|
||||
% dann im yaml File referenzieren
|
||||
% - Wenn das Template auf Englisch (oder einer anderen Sprache)
|
||||
% verwendet werden soll, dann eiinfach die translations-default.tex auf
|
||||
% translations-SPRACHE.tex umkopieren und die Teilstrings ersetzen
|
||||
%
|
||||
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@ -83,6 +84,7 @@
|
||||
\captionsetup[figure]{labelfont=myColor, textfont=myColor}
|
||||
\captionsetup[lstlisting]{labelfont=myColor, textfont=myColor}
|
||||
|
||||
|
||||
%
|
||||
% this needs to be in the preamble:
|
||||
\usepackage{chngcntr}
|
||||
@ -103,7 +105,25 @@
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[utf8]{inputenc}
|
||||
|
||||
\usepackage[english, ngerman]{babel} % your native language must be the last one!!
|
||||
|
||||
% Uebersetzungen von Wörtern und Phrasen im Unterordner des Templates
|
||||
% für neue Sprachen einfach den translations-default.tex Ordner weiterkopieren
|
||||
% und die Strings neu übersetzen
|
||||
% Achtung: Der Name sollte so gewählt sein das dazu ein babel Paket existiert
|
||||
% https://tex.stackexchange.com/questions/330085/how-to-obtain-the-numbered-list-of-languages-loaded-by-babel
|
||||
|
||||
\usepackage[english, ngerman $if(lang)$, $lang$ $endif$]{babel} % your native language must be the last one!!
|
||||
\usepackage{translator}
|
||||
$if(lang)$
|
||||
\ProvidesDictionary{translations-$lang$}{$lang$}
|
||||
\input{style/translations-$lang$.tex}
|
||||
\usedictionary{translations-$lang$}
|
||||
$else$
|
||||
\ProvidesDictionary{translations-default}{default}
|
||||
\input{style/translations-default.tex}
|
||||
\usedictionary{translations-default}
|
||||
$endif$
|
||||
|
||||
|
||||
\usepackage{lastpage}
|
||||
\usepackage{listings}
|
||||
@ -116,7 +136,6 @@
|
||||
\setitemize{leftmargin=*}
|
||||
|
||||
\usepackage{xspace}
|
||||
|
||||
\usepackage{graphicx}
|
||||
|
||||
%%? \usepackage{textcomp}
|
||||
@ -160,6 +179,7 @@
|
||||
% using explicit options in \includegraphics[width, height, ...]{}
|
||||
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
|
||||
|
||||
|
||||
%% bessere Suche im PDF
|
||||
\input{glyphtounicode}
|
||||
\pdfgentounicode=1
|
||||
@ -246,59 +266,17 @@ $endif$
|
||||
}
|
||||
\lstset{style=eisvogel_listing_style}
|
||||
|
||||
%
|
||||
% Java (Java SE 12, 2019-06-22)
|
||||
%
|
||||
\lstdefinelanguage{Java}{
|
||||
morekeywords={
|
||||
% normal keywords (without data types)
|
||||
abstract,assert,break,case,catch,class,continue,default,
|
||||
do,else,enum,exports,extends,final,finally,for,if,implements,
|
||||
import,instanceof,interface,module,native,new,package,private,
|
||||
protected,public,requires,return,static,strictfp,super,switch,
|
||||
synchronized,this,throw,throws,transient,try,volatile,while,
|
||||
% var is an identifier
|
||||
var
|
||||
},
|
||||
morekeywords={[2] % data types
|
||||
% primitive data types
|
||||
boolean,byte,char,double,float,int,long,short,
|
||||
% String
|
||||
String,
|
||||
% primitive wrapper types
|
||||
Boolean,Byte,Character,Double,Float,Integer,Long,Short
|
||||
% number types
|
||||
Number,AtomicInteger,AtomicLong,BigDecimal,BigInteger,DoubleAccumulator,DoubleAdder,LongAccumulator,LongAdder,Short,
|
||||
% other
|
||||
Object,Void,void
|
||||
},
|
||||
morekeywords={[3] % literals
|
||||
% reserved words for literal values
|
||||
null,true,false,
|
||||
},
|
||||
sensitive,
|
||||
morecomment = [l]//,
|
||||
morecomment = [s]{/*}{*/},
|
||||
morecomment = [s]{/**}{*/},
|
||||
morestring = [b]",
|
||||
morestring = [b]',
|
||||
}
|
||||
% Language definitions are in separate files
|
||||
% in order to keep this template somehow readable
|
||||
\input{style/langdef-scala.tex}
|
||||
\input{style/langdef-java.tex}
|
||||
\input{style/langdef-javascript.tex}
|
||||
\input{style/langdef-css.tex}
|
||||
\input{style/langdef-html.tex}
|
||||
\input{style/langdef-xml.tex}
|
||||
|
||||
\lstdefinelanguage{XML}{
|
||||
morestring = [b]",
|
||||
moredelim = [s][\bfseries\color{listing-keyword}]{<}{\ },
|
||||
moredelim = [s][\bfseries\color{listing-keyword}]{</}{>},
|
||||
moredelim = [l][\bfseries\color{listing-keyword}]{/>},
|
||||
moredelim = [l][\bfseries\color{listing-keyword}]{>},
|
||||
morecomment = [s]{<?}{?>},
|
||||
morecomment = [s]{<!--}{-->},
|
||||
commentstyle = \color{listing-comment},
|
||||
stringstyle = \color{listing-string},
|
||||
identifierstyle = \color{listing-identifier}
|
||||
}
|
||||
$endif$
|
||||
|
||||
|
||||
%
|
||||
% Tabellen
|
||||
%
|
||||
@ -326,7 +304,6 @@ $endif$
|
||||
\endorigfigure
|
||||
}
|
||||
|
||||
|
||||
%
|
||||
% Abbildungsverzeichnis, Tabellenverzeichnis und Quellcodeverzeichnis
|
||||
% haben eine eigene Überschrift (Section, nicht die selbst mitgbrachte)
|
||||
@ -348,13 +325,7 @@ $endif$
|
||||
\renewenvironment{quote}{\begin{customblockquote}\list{}{\rightmargin=0em\leftmargin=0em}%
|
||||
\item\relax\color{blockquote-text}\ignorespaces}{\unskip\unskip\endlist\end{customblockquote}}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
|
||||
%Als erstes „reservieren“ wir den Befehl \authormark mit einer leeren Definition.
|
||||
\newcommand*{\authormark}{}
|
||||
|
||||
@ -369,7 +340,7 @@ $endif$
|
||||
\setkomafont{pageheadfoot}{\normalcolor\footnotesize\scshape}
|
||||
\setkomafont{pagenumber}{\normalfont\normalsize}
|
||||
\clearpairofpagestyles
|
||||
\ihead{Diplomarbeit $da-jahr$: Team $for(da-author)$$da-author.nachname$$sep$, $endfor$}
|
||||
\ihead{\translate{thesis} $da-jahr$: \translate{team} $for(da-author)$$da-author.nachname$$sep$, $endfor$}
|
||||
\ohead{\voffset7mm\includegraphics[width=25mm]{style/HTLLE-Logo.png}}
|
||||
\ifoot{\authormark}
|
||||
\ofoot{\pagemark}
|
||||
@ -396,9 +367,6 @@ $endif$
|
||||
\makeatother%<-- nur, falls der Code in der Präambel steht
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
%% sollte das letzte Package sein
|
||||
\usepackage[unicode=true,
|
||||
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
|
||||
@ -410,7 +378,7 @@ $endif$
|
||||
%
|
||||
\hypersetup{pdftitle={$da-titel$},
|
||||
pdfauthor={$for(da-author)$$da-author.vorname$ $da-author.nachname$$sep$, $endfor$},
|
||||
pdfsubject={Diplomarbeit HTL Leoben im Jahr $da-jahr$. (Betreuer: $for(da-betreuer)$$da-betreuer.paraffe$$sep$, $endfor$)},
|
||||
pdfsubject={\translate{Diplomarbeit} HTL Leoben, \translate{year} $da-jahr$. (\translate{superisor}: $for(da-betreuer)$$da-betreuer.paraffe$$sep$, $endfor$)},
|
||||
pdfkeywords={$da-keywords$}}
|
||||
|
||||
\urlstyle{same} % don't use monospace font for urls
|
||||
@ -467,38 +435,37 @@ $endif$
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%\pagenumbering{roman}
|
||||
\frontmatter % Switches to roman numbering
|
||||
\title{Diplomarbeit}
|
||||
\title{\translate{thesis}}
|
||||
\begin{titlepage}
|
||||
|
||||
\begin{center}
|
||||
|
||||
\includegraphics[width=45mm]{style/HTLLE-Logo.png}
|
||||
|
||||
$lang$
|
||||
\vspace{2cm}
|
||||
|
||||
\textbf{\LARGE{}Diplomarbeit}{\large{}}\\
|
||||
\textbf{\LARGE{}\translate{thesis}}{\large{}}\\
|
||||
{\large{}\vspace{15mm}
|
||||
\textbf{\large{}
|
||||
$if(da-titel)$
|
||||
$da-titel$
|
||||
$else$
|
||||
Dimplomarbeitstitel aus metadata.yaml
|
||||
\translate{missingtitle}
|
||||
$endif$
|
||||
}\\
|
||||
|
||||
\vspace{15mm}
|
||||
ausgeführt an der\\
|
||||
der Höheren Technischen Lehranstalt Leoben\\
|
||||
\translate{executedat} \\
|
||||
\translate{school} \\
|
||||
\vspace{1cm}
|
||||
im Schuljahr
|
||||
\translate{inyear}
|
||||
$if(da-jahr)$
|
||||
$da-jahr$
|
||||
$else$
|
||||
Jahr aus metadata.yaml
|
||||
\translate{missingyear}
|
||||
$endif$
|
||||
\\
|
||||
\vspace{1cm}
|
||||
durch\\
|
||||
\translate{by}\\
|
||||
\vspace{0.5cm}
|
||||
}
|
||||
|
||||
@ -510,7 +477,7 @@ $sep$\\ $endfor$
|
||||
\par\end{center}{\large \par}
|
||||
|
||||
\begin{center}
|
||||
\normalsize unter der Anleitung von\\
|
||||
\normalsize \translate{underSupervisionOf} \\
|
||||
\vspace{0.5cm}
|
||||
$for(da-betreuer)$$da-betreuer.name$$sep$\\ $endfor$
|
||||
|
||||
@ -518,7 +485,7 @@ $for(da-betreuer)$$da-betreuer.name$$sep$\\ $endfor$
|
||||
|
||||
\begin{center}
|
||||
\vspace{5mm}
|
||||
Leoben, \today
|
||||
\translate{signinglocation}, \today
|
||||
\par\end{center}
|
||||
\end{titlepage}
|
||||
|
||||
@ -526,27 +493,21 @@ Leoben, \today
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% EIDESSTATTLICHE ERKLAERUNG
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\section*{Erklärung der Urheberschaft}
|
||||
|
||||
Ich erkläre hiermit an Eides statt, dass ich die vorliegende Arbeit
|
||||
ohne Hilfe Dritter und ohne Benutzung anderer als der angegebenen
|
||||
Hilfsmittel angefertigt habe; die aus fremden Quellen direkt oder
|
||||
indirekt übernommenen Gedanken sind als solche kenntlich gemacht. Die
|
||||
Arbeit wurde bisher in gleicher oder ähnlicher Form in keiner anderen
|
||||
Prüfungsbehörde vorgelegt und auch noch nicht veröffentlicht.
|
||||
\section*{\translate{authorship}}
|
||||
\translate{oath}
|
||||
|
||||
\noindent
|
||||
|
||||
$for(da-author)$
|
||||
\begin{minipage}[h]{0.4\linewidth} \vspace*{3cm}
|
||||
Leoben, am\dotfill\\
|
||||
\translate{signinglocation}, \translate{at} \dotfill\\
|
||||
\vspace*{2.5mm}
|
||||
\end{minipage}
|
||||
\hspace*{0.1\linewidth}
|
||||
\begin{minipage}[h]{0.5\linewidth} \vspace*{3cm}
|
||||
\begin{center}
|
||||
\dotfill\\
|
||||
(Unterschrift: $da-author.vorname$ $da-author.nachname$)
|
||||
(\translate{signature}: $da-author.vorname$ $da-author.nachname$)
|
||||
\end{center}
|
||||
\end{minipage}
|
||||
$endfor$
|
||||
@ -571,7 +532,7 @@ $endif$
|
||||
% DANKSAGUNG
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
$if(da-danksagung)$
|
||||
\section*{Danksagung}
|
||||
\section*{\translate{noteofhanks}}
|
||||
$da-danksagung$
|
||||
$endif$
|
||||
|
||||
@ -616,14 +577,15 @@ $if(da-appendix)$
|
||||
% TECHNISCHE DOKUMENTATION
|
||||
% ERKLAERUNG ZUR DA
|
||||
|
||||
\section{Anhang}
|
||||
<!-- Literaturverzeichnis -->
|
||||
\translatelet\app{appendix}
|
||||
\section{\app}
|
||||
|
||||
Folgende Dokumente bilden einen Bestandteil dieser Diplomarbeit und liegen der
|
||||
digitalen Version bei.
|
||||
\translate{attachments}
|
||||
\begin{itemize}
|
||||
|
||||
$for(da-appendix)$
|
||||
\item \textbf{$da-appendix.abschnitt$}\\ $if(da-appendix.seiten)$Seite(n) $da-appendix.seiten$ der $else$$endif$ Datei: \texttt{$da-appendix.pdf-file$}
|
||||
\item \textbf{$da-appendix.abschnitt$}\\ $if(da-appendix.seiten)$\translate{pages} $da-appendix.seiten$ \translate{of} $endif$ Datei: \texttt{$da-appendix.pdf-file$}
|
||||
$endfor$
|
||||
\end{itemize}
|
||||
|
||||
@ -638,7 +600,7 @@ $for(da-appendix)$
|
||||
pages=$if(da-appendix.seiten)$$da-appendix.seiten$$else$-$endif$,
|
||||
frame,
|
||||
scale=.73,
|
||||
pagecommand={\begin{center}Anhang: $da-appendix.abschnitt$\\\begin{tiny}$da-appendix.pdf-file$\end{tiny}\end{center}}
|
||||
pagecommand={\begin{center}\translate{attachment}: $da-appendix.abschnitt$\\\begin{tiny}$da-appendix.pdf-file$\end{tiny}\end{center}}
|
||||
]{pdfs/$da-appendix.pdf-file$}
|
||||
%\includepdf[pages=$if(da-appendix.seiten)$$da-appendix.seiten$$else$-$endif$]{source/pdfs/$da-appendix.pdf-file$}
|
||||
$endfor$
|
||||
|
28
style/translations-default.tex
Normal file
28
style/translations-default.tex
Normal file
@ -0,0 +1,28 @@
|
||||
\providetranslation{thesis}{Diplomarbeit}
|
||||
\providetranslation{team}{Team}
|
||||
\providetranslation{year}{Jahr}
|
||||
\providetranslation{superisor}{Betreuer}
|
||||
\providetranslation{missingtitle}{da-titel aus metadata.yaml}
|
||||
\providetranslation{missingyear}{da-jahr aus metadata.yaml}
|
||||
\providetranslation{by}{durch}
|
||||
\providetranslation{executedat}{ausgeführt an der}
|
||||
\providetranslation{school}{Höheren Technischen Lehranstalt Leoben}
|
||||
\providetranslation{at}{am}
|
||||
\providetranslation{signinglocation}{Leoben}
|
||||
\providetranslation{inyear}{im Schuljahr}
|
||||
\providetranslation{underSupervisionOf}{unter der Anleitung von}
|
||||
\providetranslation{signature}{Unterschrift}
|
||||
\providetranslation{noteofhanks}{Danksagung}
|
||||
\providetranslation{appendix}{Anhang}
|
||||
\providetranslation{attachments}{Folgende Dokumente bilden einen Bestandteil dieser Diplomarbeit und liegen der digitalen Version bei.}
|
||||
\providetranslation{oath}{Ich erkläre hiermit an Eides statt, dass ich die vorliegende Arbeit ohne Hilfe Dritter und ohne Benutzung anderer als der angegebenen Hilfsmittel angefertigt habe; die aus fremden Quellen direkt oder indirekt übernommenen Gedanken sind als solche kenntlich gemacht. Die Arbeit wurde bisher in gleicher oder ähnlicher Form in keiner anderen Prüfungsbehörde vorgelegt und auch noch nicht veröffentlicht.}
|
||||
\providetranslation{of}{der}
|
||||
\providetranslation{file}{Datei}
|
||||
\providetranslation{pages}{Seite(n)}
|
||||
\providetranslation{authorship}{Erklärung der Urheberschaft}
|
||||
\providetranslation{attachment}{Datei}
|
||||
\providetranslation{lstoffigures}{Abbildungsverzeichnis}
|
||||
\providetranslation{lstoftables}{Tabellenverzeichnis}
|
||||
\providetranslation{lstoflistings}{Quellcodeverzeichnis}
|
||||
\providetranslation{lstofreferences}{Literaturverzeichnis}
|
||||
|
27
style/translations-english.tex
Normal file
27
style/translations-english.tex
Normal file
@ -0,0 +1,27 @@
|
||||
\providetranslation{thesis}{Diplomathesis}
|
||||
\providetranslation{team}{Team}
|
||||
\providetranslation{year}{Year}
|
||||
\providetranslation{superisor}{Supervisor}
|
||||
\providetranslation{missingtitle}{da-titel from metadata.yaml}
|
||||
\providetranslation{missingyear}{da-jahr from metadata.yaml}
|
||||
\providetranslation{by}{by}
|
||||
\providetranslation{executedat}{executed at the}
|
||||
\providetranslation{school}{Höhere Technische Lehranstalt Leoben}
|
||||
\providetranslation{at}{at}
|
||||
\providetranslation{signinglocation}{Leoben}
|
||||
\providetranslation{inyear}{in the schoolyear}
|
||||
\providetranslation{underSupervisionOf}{under supervision of}
|
||||
\providetranslation{signature}{Signature}
|
||||
\providetranslation{noteofhanks}{Note of Thanks}
|
||||
\providetranslation{appendix}{Appendix}
|
||||
\providetranslation{attachments}{The following documents are part of this thesis and are included in the digital version.}
|
||||
\providetranslation {oath}{I hereby declare in lieu of oath that I have prepared this work without the help of third parties and without the use of any aids other than those specified; Thoughts taken directly or indirectly from external sources are marked as such. The thesis has not been submitted in the same or a similar form to any other examination authority and has not yet been published.}
|
||||
\providetranslation{of}{of}
|
||||
\providetranslation{file}{File}
|
||||
\providetranslation{pages}{Page(s)}
|
||||
\providetranslation{authorship}{Declaration of authorship}
|
||||
\providetranslation{attachment}{File}
|
||||
\providetranslation{lstoffigures}{List of Figures}
|
||||
\providetranslation{lstoftables}{List of Tables}
|
||||
\providetranslation{lstoflistings}{List of Listings}
|
||||
\providetranslation{lstofreferences}{List of References}
|
@ -1,16 +1,21 @@
|
||||
# Abbildungsverzeichnis
|
||||
|
||||
<!-- Abbildungsverzeichnis -->
|
||||
\translatelet\lof{lstoffigures}
|
||||
\section{ \lof }
|
||||
\listoffigures
|
||||
|
||||
# Tabellenverzeichnis
|
||||
|
||||
<!-- Tabellenverzeichnis -->
|
||||
\translatelet\lot{lstoftables}
|
||||
\section{ \lot }
|
||||
\listoftables
|
||||
|
||||
# Quellcodeverzeichnis
|
||||
|
||||
<!-- Quellcodeverzeichnis -->
|
||||
\translatelet\lol{lstoflistings}
|
||||
\section{ \lol }
|
||||
\lstlistoflistings
|
||||
|
||||
# Literaturverzeichnis
|
||||
<!-- Literaturverzeichnis -->
|
||||
\translatelet\lor{lstofreferences}
|
||||
\section{ \lor }
|
||||
|
||||
<div id="refs"></div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user