1
0
mirror of https://gitlab.com/tiggr/a318.git synced 2024-12-24 22:31:01 +01:00

build script added

This commit is contained in:
Marcus J. Ertl 2018-10-09 21:04:38 +02:00
parent b29caf91f5
commit 146334b126
6 changed files with 241 additions and 1 deletions

38
PDF/build.sh Executable file
View File

@ -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!

74
PDF/leer.pdf Normal file
View File

@ -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 [<B7E06704DA33D245A3048FC73D2D330B><B7E06704DA33D245A3048FC73D2D330B>]
>>
startxref
666
%%EOF

18
PDF/meta.txt Normal file
View File

@ -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

61
backside.tex Normal file
View File

@ -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}

49
empty.tex Normal file
View File

@ -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}

View File

@ -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}