From 146334b126bf351811715859f3bcf2725ae0c0ec Mon Sep 17 00:00:00 2001 From: "Marcus J. Ertl" Date: Tue, 9 Oct 2018 21:04:38 +0200 Subject: [PATCH] build script added --- PDF/build.sh | 38 +++++++++++++++++++++++++++ PDF/leer.pdf | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++ PDF/meta.txt | 18 +++++++++++++ backside.tex | 61 +++++++++++++++++++++++++++++++++++++++++++ empty.tex | 49 ++++++++++++++++++++++++++++++++++ main.tex | 2 +- 6 files changed, 241 insertions(+), 1 deletion(-) create mode 100755 PDF/build.sh create mode 100644 PDF/leer.pdf create mode 100644 PDF/meta.txt create mode 100644 backside.tex create mode 100644 empty.tex diff --git a/PDF/build.sh b/PDF/build.sh new file mode 100755 index 0000000..355eec5 --- /dev/null +++ b/PDF/build.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +out="handout.pdf" + +while [ "$1" != '' ] + do + [ $1 == "-nolist" ] && nolist=true && shift + [ $1 == "-o" ] && shift && out=$1 && shift +done + +if [ "$nolist" == true ] + then + list="T" + listpdf="leer.pdf" + listpdftk="${list}=${listpdf}" + else + list="T" + listpdf="../../Teilnehmer/Teilnehmer.pdf" + listpdftk="${list}=${listpdf}" +fi + +echo cleaning before build ... +rm handout.pdf 2> /dev/null +rm temp* 2> /dev/null + +# rearranging pages +#pdftk ../Florian/Faltanleitungen.pdf cat 5 2 1 4 3 output tempfalten.pdf + +echo building handout ... +pdftk C=../main.pdf E=leer.pdf O=../backside.pdf $listpdftk cat C $list E E O output temp.pdf verbose + +echo updating metadata and compress +pdftk temp.pdf update_info meta.txt output $out compress + +echo cleaning after build ... +rm temp*.* 2> /dev/null + +echo Done! diff --git a/PDF/leer.pdf b/PDF/leer.pdf new file mode 100644 index 0000000..d15d9e4 --- /dev/null +++ b/PDF/leer.pdf @@ -0,0 +1,74 @@ +%PDF-1.2 +%ÀÈÌÒ +1 0 obj +<< +/Title (Philippstein 2) +/Subject (Das Abenteuer geht weiter...) +/Author (Soeren Schmidt) +/Creator (pdfFactory Pro www.pdffactory.com) +/Producer (pdfFactory Pro 2.41 \(Windows XP Professional German\)) +/CreationDate (D:20060324181847+01'00') +>> +endobj +4 0 obj +<< +/Filter /FlateDecode +/Length 5 0 R +>> +stream +endstream +endobj +5 0 obj +0 +endobj +6 0 obj +<< +/Type /Page +/Parent 3 0 R +/MediaBox [0 0 595 842] +/Resources +<< +/ProcSet [/PDF] +>> +/Contents 4 0 R +>> +endobj +3 0 obj +<< +/Type /Pages +/Count 1 +/Kids [6 0 R] +>> +endobj +2 0 obj +<< +/Type /Catalog +/Pages 3 0 R +/ViewerPreferences 7 0 R +>> +endobj +7 0 obj +<< +/Type /ViewerPreferences +>> +endobj +xref +0 8 +0000000000 65535 f +0000000016 00000 n +0000000546 00000 n +0000000489 00000 n +0000000278 00000 n +0000000352 00000 n +0000000369 00000 n +0000000620 00000 n +trailer +<< +/Size 8 +/Info 1 0 R +/Root 2 0 R +/ID [] +>> +startxref +666 +%%EOF diff --git a/PDF/meta.txt b/PDF/meta.txt new file mode 100644 index 0000000..9b95376 --- /dev/null +++ b/PDF/meta.txt @@ -0,0 +1,18 @@ +InfoBegin +InfoKey: Subject +InfoValue: Handout des Rodgauer Workshops zum A318 im Jahr 2019 +InfoBegin +InfoKey: Author +InfoValue: Rodgauer Workshop +InfoBegin +InfoKey: Keywords +InfoValue: A318, Drachen, Kite, Workshop, Rodgau +InfoBegin +InfoKey: Title +InfoValue: Rodgauer Workshop: A318 +InfoBegin +InfoKey: Creator +InfoValue: luaLaTeX and pdftk +InfoBegin +InfoKey: Producer +InfoValue: LaTeX with hyperref diff --git a/backside.tex b/backside.tex new file mode 100644 index 0000000..490429b --- /dev/null +++ b/backside.tex @@ -0,0 +1,61 @@ +\input{styles.tex} + +\newgeometry{left=60mm, right=15mm, top=20cm, bottom=2.5cm} + +\DeclareNewLayer[% + align=tl, + hoffset=15mm, + voffset=22.2cm, + width=35mm, + height=60mm, + contents={% + \includegraphics[width=35mm]{Bilder/opensource.pdf} + }]{OSILogo} +\DeclareNewPageStyleByLayers{RWBackside}{OSILogo} + + +\begin{document} + +\newpage +\pagestyle{RWBackside} + +\mbox{ }\vfill % pushing following text to bottom ;-) + +Dieses Dokument wurde nur unter der Verwendung von Open Source Software erstellt:\\ + +\begin{tabularx}{\textwidth}{lX} +{\fontspec{Latin Modern Roman}\hologo{LuaLaTeX}} & \url{http://www.luatex.org/} \\ +%Scribus & \url{https://www.scribus.net/} \\ +Inkscape & \url{https://www.inkscape.org/} \\ +The Gimp & \url{https://www.gimp.org/} \\ +Atom Editor & \url{https://atom.io/} \\ +LibreOffice & \url{https://www.libreoffice.org/} \\ +pdftk & \url{https://www.pdflabs.com/} \\ +Linux & \url{https://www.linux.org/} +\end{tabularx} + +% \begin{figure}[b] +% \begin{subfigure}[b]{0.22\textwidth} +% \begin{center} +% \vspace{-14pt} +% \includegraphics[width=\textwidth]{Bilder/opensource.pdf} +% \end{center} +% \end{subfigure}% +% \hfill% +% \begin{subfigure}[b]{0.72\textwidth} +% Dieses Dokument wurde nur unter der Verwendung von Open Source Software erstellt:\\ +% +% \begin{tabularx}{\textwidth}{lX} +% {\fontspec{Latin Modern Roman} \LaTeX} & \url{https://www.latex-project.org/} \\ +% Scribus & \url{http://www.scribus.net/} \\ +% Inkscape & \url{http://www.inkscape.org/} \\ +% The Gimp & \url{http://www.gimp.org/} \\ +% LibreOffice & \url{http://de.openoffice.org/} \\ +% pdftk & \url{http://www.pdfhacks.com/pdftk/} \\ +% Linux & \url{http://www.linux.org/} +% \end{tabularx} +% \end{subfigure} +% \end{figure} + + +\end{document} diff --git a/empty.tex b/empty.tex new file mode 100644 index 0000000..8eea121 --- /dev/null +++ b/empty.tex @@ -0,0 +1,49 @@ +\documentclass[a4paper,twoside,12pt,ngerman]{article} + +\usepackage{tabularx} +\usepackage[table]{xcolor} +\usepackage[left=15mm, right=25mm, top=2.7cm, bottom=2.5cm]{geometry} +\usepackage{babel} +\usepackage{fontspec} +\usepackage{scrlayer} +\usepackage{parskip} +\usepackage{graphicx} +\usepackage{wrapfig} +\usepackage{units} +\usepackage{caption} +\usepackage{amsmath} +\usepackage{sectsty} +\usepackage{emptypage} +\usepackage[colorlinks=true,linkcolor=black,citecolor=blackm,urlcolor=black]{hyperref} +\usepackage{subcaption} +\usepackage[titles]{tocloft} +\usepackage[textsize=small,colorinlistoftodos]{todonotes} + +% input all style definitions :-) +\input{styles} + +\begin{document} + + \setmainfont[Ligatures=TeX]{Delicious-Roman} + + \pagestyle{RodgauerWorkshop} + + \section{Teilnehmerliste} + \vfill{} + + \newpage + \mbox{} + + \newpage + \mbox{} + + \newpage + \mbox{} + + \newpage + \mbox{} + + \newpage + \mbox{} + +\end{document} diff --git a/main.tex b/main.tex index f7caffb..919cb71 100644 --- a/main.tex +++ b/main.tex @@ -8,7 +8,7 @@ \title{A318-Workshop} \date{69. März 2019, Neu-Isenburg} -\author{https://www.rodgauer-workshop.de/\\https://www.drachenforum.net/\\http://www.bannerinnung.de/} +\author{https://www.rodgauer-workshop.de/\\https://www.beauduciel.fr/\\https://www.drachenforum.net/} \begin{document}