qr pdf
This commit is contained in:
1 parent
ccc70e9e4f
commit
bf0216684d
3 files changed
+108
No files matched your search
@@ -0,0 +1,65 @@
|
|||||||
|
\documentclass[12pt,a4paper]{article}
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
|
\usepackage[T1]{fontenc}
|
||||||
|
\usepackage{lmodern}
|
||||||
|
\usepackage{graphicx}
|
||||||
|
\usepackage{xcolor}
|
||||||
|
\usepackage{qrcode}
|
||||||
|
\usepackage{geometry}
|
||||||
|
\usepackage{fancyhdr}
|
||||||
|
\usepackage{hyperref}
|
||||||
|
|
||||||
|
% Farbdefinitionen
|
||||||
|
\definecolor{HeaderColor}{rgb}{0.26, 0.45, 0.76} % Dunkelblau
|
||||||
|
\definecolor{TextColor}{rgb}{0.06, 0.42, 0.13} % Dunkelgrün
|
||||||
|
\definecolor{LinkColor}{rgb}{0.76, 0.13, 0.28} % Dunkelrot
|
||||||
|
|
||||||
|
% Seitenlayout und Ränder
|
||||||
|
\geometry{
|
||||||
|
left=20mm,
|
||||||
|
right=20mm,
|
||||||
|
top=30mm,
|
||||||
|
bottom=30mm,
|
||||||
|
headheight=15mm,
|
||||||
|
footskip=15mm
|
||||||
|
}
|
||||||
|
|
||||||
|
% Kopf- und Fußzeilen
|
||||||
|
\pagestyle{fancy}
|
||||||
|
\fancyhf{}
|
||||||
|
\rhead{\includegraphics[width=3cm]{logo.png}} % Logo einfügen
|
||||||
|
\lhead{\textcolor{HeaderColor}{\Large IQ-O-Mat}}
|
||||||
|
\lfoot{\textcolor{TextColor}{Kinder-College}}
|
||||||
|
\rfoot{\thepage}
|
||||||
|
|
||||||
|
% Schriftart und Farben
|
||||||
|
\renewcommand{\familydefault}{\sfdefault} % Serifenlose Schrift
|
||||||
|
\setlength{\parindent}{0em}
|
||||||
|
\setlength{\parskip}{1em}
|
||||||
|
\color{TextColor}
|
||||||
|
|
||||||
|
\providecommand{\tightlist}{%
|
||||||
|
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
||||||
|
|
||||||
|
\setcounter{secnumdepth}{0} % Deaktiviert die Nummerierung von Überschriften
|
||||||
|
|
||||||
|
% Pandoc spezifische Einstellungen (für Titel, Autoren, Datum, etc.)
|
||||||
|
$if(title)$
|
||||||
|
\title{$title$}
|
||||||
|
$endif$
|
||||||
|
$if(author)$
|
||||||
|
\author{$for(author)$$author$$sep$ \and $endfor$}
|
||||||
|
$endif$
|
||||||
|
$if(date)$
|
||||||
|
\date{$date$}
|
||||||
|
$endif$
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
$if(title)$
|
||||||
|
\maketitle
|
||||||
|
$endif$
|
||||||
|
|
||||||
|
$body$
|
||||||
|
|
||||||
|
\end{document}
|
||||||
Executable
+31
@@ -0,0 +1,31 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
ABLAGEDIR=~/Robotik-Ablage
|
||||||
|
PDFDIR=$ABLAGEDIR/pdfs
|
||||||
|
mkdir -p $PDFDIR
|
||||||
|
for i in {01..39}
|
||||||
|
do
|
||||||
|
cat <<EOF > $PDFDIR/kicopi$i.md
|
||||||
|
---
|
||||||
|
title: "IQ-O-Mat"
|
||||||
|
author: "Ulf Borcherdt <ub@ulf-edv.de>"
|
||||||
|
author: "Kinder-College Björn Runden <br@runden.de>"
|
||||||
|
date: "2024-01-13"
|
||||||
|
---
|
||||||
|
|
||||||
|
## Quiz-Roboter
|
||||||
|
|
||||||
|
*Entstanden am Kinder-College als "Hausaufgaben-Robo"*
|
||||||
|
|
||||||
|
Wenn der Raspi Hochgefahren ist, gelangt man zur App mit dem URL:
|
||||||
|
|
||||||
|
* [KiCoPi$i](http://kicopi$i.local/)
|
||||||
|
|
||||||
|
Oder dem Link im QR Code folgen:
|
||||||
|
|
||||||
|
\\begin{figure}[h]
|
||||||
|
\\centering
|
||||||
|
\\qrcode[height=6cm]{http://kicopi$i.local/}
|
||||||
|
\\end{figure}
|
||||||
|
EOF
|
||||||
|
pandoc $PDFDIR/kicopi$i.md -o $PDFDIR/kicopi$i.pdf --template default.latex
|
||||||
|
done
|
||||||
Reference in new issue
Block a user