forked from Hg/htlle-da-vorlage
Added mechanism to enable dart (and all other language with definitions) to be used in the template
This commit is contained in:
parent
45a8e86bb7
commit
fb2738332d
18
Makefile
18
Makefile
@ -26,9 +26,9 @@ help:
|
||||
@echo 'Änderungswünsche werden ausschließlich via issue und pullrequest '
|
||||
@echo 'Usage: '
|
||||
@echo ' make pdf generate a PDF file '
|
||||
@echo ' make spellcheck checks the output for misspelled words '
|
||||
@echo ' '
|
||||
@echo ' make spellcheck checks the output for misspelled words'
|
||||
@echo ' '
|
||||
@echo '
|
||||
|
||||
|
||||
# Helper Targets
|
||||
@ -47,9 +47,9 @@ build-stage:
|
||||
@echo "Merging style files into the staging directory"
|
||||
@rsync -av $(STYLEDIR)/ $(STAGINGDIR)/style --quiet
|
||||
|
||||
compile-pdf:
|
||||
compile-output:
|
||||
# Bauen der Arbeit aus dem staging verzeichnis heraus
|
||||
@echo "Compiling the thesis into the pdf: $(OUTPUTFILE)"
|
||||
@echo "Compiling the thesis into: $(OUTPUTFILE)"
|
||||
|
||||
# Builden mit pandoc. Als Basisverzeichnis springen wir ins staging.
|
||||
# Damit sollten alle relativen Links stimmen
|
||||
@ -96,14 +96,16 @@ remove-stage:
|
||||
# Targets which are intended to be used directly
|
||||
spellcheck: build-stage do-spellcheck remove-stage
|
||||
|
||||
pdf: build-stage compile-pdf remove-stage
|
||||
# Erzeugen einer PDF Datei
|
||||
pdf: build-stage compile-output remove-stage
|
||||
|
||||
# Ziel für die Erzeugung einer .tex Datei
|
||||
tex: OUTPUTFILE := $(OUTPUTFILE).tex
|
||||
tex: build-stage compile-output remove-stage
|
||||
|
||||
clean:
|
||||
# Remove the staging directory
|
||||
@rm -rf $(STAGINGDIR)
|
||||
|
||||
# And remove the current result
|
||||
@rm -f $(OUTPUTFILE)
|
||||
|
||||
# Special Targets
|
||||
.PHONY: help pdf clean
|
||||
|
@ -156,6 +156,19 @@ End Sub
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
und noch was in Dart (im Markdown direkt als Latex Quellcode eingefügt - damit funktionieren jegliche Sprachen welche als langdef vorliegen)
|
||||
|
||||
\begin{lstlisting}[language=Dart, caption={Ein Beispiel für Dart}]
|
||||
library hallo;
|
||||
|
||||
void main() {
|
||||
String x;
|
||||
print('Hello, World!');
|
||||
x = 'hallo';
|
||||
}
|
||||
\end{lstlisting}
|
||||
|
||||
|
||||
### Auswertung der Ergebnisse
|
||||
|
||||
Anhand von XY kann man folgende Tabelle ableiten:
|
||||
|
@ -72,7 +72,7 @@ da-appendix:
|
||||
seiten: 53-73
|
||||
|
||||
- abschnitt: Betreuungsprotokolle
|
||||
pdf-file: begleitprotokolle.pdf
|
||||
pdf-file: betreuungsprotokolle.pdf
|
||||
|
||||
- abschnitt: Diplomatbeitsvereinbarung
|
||||
pdf-file: HTL-DA-Vereinbarung.pdf
|
||||
|
24
style/langdef-dart.tex
Normal file
24
style/langdef-dart.tex
Normal file
@ -0,0 +1,24 @@
|
||||
|
||||
\lstdefinelanguage{Dart}{
|
||||
morekeywords={
|
||||
% normal keywords (without data types)
|
||||
abstract, as, assert, async, await, break, case, catch, class, const,
|
||||
continue, default, deferred, do, dynamic, else, enum, export, extends,
|
||||
extension, external, factory, false, final, finally, for, get, if, implements,
|
||||
import, in, interface, is, late, library, mixin, new, null, on, operator,
|
||||
part, required, rethrow, return, set, show, static, super, switch, sync,
|
||||
this, throw, true, try, typedef, var, void, while, with, yield
|
||||
},
|
||||
morekeywords={[2] % data types
|
||||
int, double, String, bool, List, Map, Set, Future, Stream
|
||||
},
|
||||
morekeywords={[3] % literals
|
||||
% reserved words for literal values
|
||||
null,true,false,
|
||||
},
|
||||
sensitive,
|
||||
morecomment = [l]//,
|
||||
morecomment = [s]{/*}{*/},
|
||||
morestring = [b]",
|
||||
morestring = [b]',
|
||||
}
|
@ -289,6 +289,7 @@ $endif$
|
||||
\input{style/langdef-xml.tex}
|
||||
\input{style/langdef-kotlin.tex}
|
||||
\input{style/langdef-vba.tex}
|
||||
\input{style/langdef-dart.tex}
|
||||
$endif$
|
||||
|
||||
%
|
||||
|
Loading…
Reference in New Issue
Block a user