[FE training-materials-updates] Single labs without title page
Michael Opdenacker
michael.opdenacker at free-electrons.com
Mon Oct 21 13:28:08 CEST 2013
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=d201c5f0cd3fead966e5df0d7ddfb91261b91f0c
>---------------------------------------------------------------
commit d201c5f0cd3fead966e5df0d7ddfb91261b91f0c
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date: Mon Oct 21 13:21:02 2013 +0200
Single labs without title page
- Needed to print a single lab again
Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>
>---------------------------------------------------------------
d201c5f0cd3fead966e5df0d7ddfb91261b91f0c
Makefile | 10 +++++++---
common/single-lab-header.tex | 6 ++++++
.../{single-labs-vars.tex => single-lab-vars.tex} | 0
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index cbde7bf..2d7fbd1 100644
--- a/Makefile
+++ b/Makefile
@@ -380,6 +380,8 @@ endif
#
ifdef LABS
+LABS_HEADER = common/labs-header.tex
+LABS_FOOTER = common/labs-footer.tex
# Compute the set of chapters to build depending on the name of the
# PDF file that was requested.
ifeq ($(LABS),full-kernel)
@@ -392,16 +394,18 @@ else ifeq ($(LABS),full-android)
LABS_VARSFILE = common/android-labs-vars.tex
LABS_CHAPTERS = $(ANDROID_LABS)
else
-LABS_VARSFILE = common/single-labs-vars.tex
+LABS_VARSFILE = common/single-lab-vars.tex
LABS_CHAPTERS = $(LABS)
+LABS_HEADER = common/single-lab-header.tex
+LABS_FOOTER = common/labs-footer.tex
endif
# Compute the set of corresponding .tex files and pictures
LABS_TEX = \
$(LABS_VARSFILE) \
- common/labs-header.tex \
+ $(LABS_HEADER) \
$(foreach s,$(LABS_CHAPTERS),$(wildcard labs/$(s)/$(s).tex)) \
- common/labs-footer.tex
+ $(LABS_FOOTER)
LABS_PICTURES = $(call PICTURES,$(foreach s,$(LABS_CHAPTERS),labs/$(s))) $(COMMON_PICTURES)
%-labs.pdf: common/labs.sty $(VARS) $(LABS_TEX) $(LABS_PICTURES)
diff --git a/common/single-lab-header.tex b/common/single-lab-header.tex
new file mode 100644
index 0000000..af1fefb
--- /dev/null
+++ b/common/single-lab-header.tex
@@ -0,0 +1,6 @@
+\documentclass[a4wide]{book}
+
+\usepackage{labs}
+\usepackage{listings}
+
+\begin{document}
diff --git a/common/single-labs-vars.tex b/common/single-lab-vars.tex
similarity index 100%
rename from common/single-labs-vars.tex
rename to common/single-lab-vars.tex
More information about the training-materials-updates
mailing list