README.asciidoc 1.59 KB
Newer Older
Alija Sabic's avatar
Alija Sabic committed
1
= image:https://es.technikum-wien.at/sabic/fhtw-latex-document/raw/logo/.img/fhtw-latex-document.svg[] FHTW LaTeX Document Template
Alija Sabic's avatar
Alija Sabic committed
2

Alija Sabic's avatar
Alija Sabic committed
3
// image::https://es.technikum-wien.at/sabic/fhtw-latex-document/raw/logo/.img/fhtw-latex-document.svg[align=center,width=300]
Alija Sabic's avatar
Alija Sabic committed
4

Alija Sabic's avatar
Alija Sabic committed
5
6
7
8
9
10
11
12
13
14
15
16
Template for LaTeX document (FHTW).

== Make

You can build the main file specified in the Makefile (cf. `$BASENAME`) by issuing following command

----
$ make
----

Individual files or targets may be specified using `$TARGET`

Alija Sabic's avatar
Alija Sabic committed
17
[subs=+macros]
Alija Sabic's avatar
Alija Sabic committed
18
----
Alija Sabic's avatar
Alija Sabic committed
19
20
21
22
$ make *TARGET*=demo.tex
$ make *TARGET*=resources/tex/chapter.tex
$ make *TARGET*=resources/figures/figure.tex
$ make *TARGET*=resources/tables/table.tex
Alija Sabic's avatar
Alija Sabic committed
23
24
25
26
----

Additionally, `$TARGET` may be exported to allow for shorter commands

Alija Sabic's avatar
Alija Sabic committed
27
[subs=+macros]
Alija Sabic's avatar
Alija Sabic committed
28
----
Alija Sabic's avatar
Alija Sabic committed
29
$ export *TARGET*=resources/tex/chapter02.tex
Alija Sabic's avatar
Alija Sabic committed
30
31
32
33
34
35
36
37
$ make
$ ...
$ make
----

To provide additional configuration to `latexmk` use `$OPTS`.
For instance, to force build process each time issue

Alija Sabic's avatar
Alija Sabic committed
38
[subs+=macros]
Alija Sabic's avatar
Alija Sabic committed
39
----
Alija Sabic's avatar
Alija Sabic committed
40
41
$ make *OPTS*=-gg
$ make *TARGET*=resouces/figures/figure.tex *OPTS*=-gg
Alija Sabic's avatar
Alija Sabic committed
42
43
44
45
46
47
48
49
50
51
52
53
----

The Makefile provides different targets, i.e.,

[horizontal]
build:: Either build using file specified with `$BASENAME`, or use `$TARGET` if set.
log:: `grep` error entries of log file of `$BASENAME` or `$TARGET`.
view:: Same as build, additionally open output with a viewer (cf. Makefile, `$VIEWER`).
preview:: Same as build, additionally open output with a viewer and rebuild on demand (cf. Makefile, `$VIEWER`).
clean:: Delete auxiliary files of build of `$BASENAME` or `$TARGET`.
distclean:: Delete all files of build of `$BASENAME` or `$TARGET`.
help:: Print help instructions.