Skip to content
Snippets Groups Projects
Commit e246aa17 authored by Holger Dinkel's avatar Holger Dinkel
Browse files

Use pure LaTeX to batch create Certificates. Just add names into file...

Use pure LaTeX to batch create Certificates. Just add names into file CertificateOfParticipation_names.csv
parent 270d1c01
No related branches found
No related tags found
No related merge requests found
......@@ -23,3 +23,4 @@ git_beginner/_build/latex/
git_beginner/_build/singlehtml/
git_beginner/_build/linkcheck/
_old_/
linux_intermediate/_build/certificates/
\documentclass[16pt]{scrartcl}
\usepackage[margin=1cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mdframed}
\usepackage{tgschola}
\usepackage{datetime}
\usepackage{currfile}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
\usepackage{datatool}
\DTLloaddb{names}{names.csv}
\newdateformat{mydate}{\monthname, \THEYEAR}
\begin{document}
\pagestyle{empty}
\DTLforeach{names}{\Firstname=Firstname,\Lastname=Lastname}{
\centering
{
\Large
\vspace*{20px}
{\color{RoyalBlue}\huge\bfseries Certificate of Participation}\par
%{\LARGE\color{Dandelion}\decofourleft\quad{\color{BrickRed}\decoone}\quad\decofourright}\par
\vskip2em
\linespread{2}\selectfont
Awarded to\\\par
{\Huge\bfseries{\underline{\Firstname{ }\Lastname}}}\par
\vskip2em
For the successful completion of the\par
\vskip2em
}
\begin{mdframed}[userdefinedwidth=.9\textwidth, align=center, linecolor=RoyalBlue,linewidth=4pt,frametitlealignment=\center]
\linespread{2}\selectfont
\centering{\color{RoyalBlue}\LARGE\bfseries \coursetitle }
\end{mdframed}\par
\vskip2em
\includegraphics[width=.9\textwidth]{_static/bio-it_logo.pdf}
\vfill
{\small \mydate\today \hfill { } \\
Advanced Training Centre \hfill Holger Dinkel \& Frank Thommen\\
EMBL Heidelberg \hfill Structural \& Computational Biology Unit}
\pagebreak
}
\end{document}
File deleted
#!/bin/bash
cd attendees
cat attendees.csv |while read name; do sed -e "0,/FIRSTNAME LASTNAME/s/FIRSTNAME LASTNAME/$name/" ../CertificateOfParticipation_ALC.svg >| ${name}.svg; convert ${name}.svg ${name}.pdf;done ; pdfjoin *.pdf
cd -
This diff is collapsed.
Firstname,Lastname
......@@ -14,7 +14,7 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext certificates
help:
@echo "Please use \`make <target>' where <target> is one of"
......@@ -95,6 +95,12 @@ epub:
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
certificates:
mkdir -p $(BUILDDIR)/certificates
pdflatex -interaction=nonstopmode -output-directory=$(BUILDDIR)/certificates "\def\coursetitle{Intermediate Linux Course:\\\\Commandline and Basic Scripting} \input{CertificateOfParticipation.tex}"
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/certificates."
latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
......
attendees_LSI-4.csv
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment