Skip to content

Instantly share code, notes, and snippets.

@Phill93

Phill93/.gitignore

Last active Jan 26, 2020
Embed
What would you like to do?
Wifi Poster
# Created by https://www.gitignore.io/api/latex
# Edit at https://www.gitignore.io/?templates=latex
### LaTeX ###
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
.*.lb
## Intermediate documents:
*.dvi
*.xdv
*-converted-to.*
# these rules might exclude image files for figures etc.
# *.ps
# *.eps
# *.pdf
## Generated if empty string is given at "Please type another file name for output:"
.pdf
## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.run.xml
## Build tool auxiliary files:
*.fdb_latexmk
*.synctex
*.synctex(busy)
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync
## Build tool directories for auxiliary files
# latexrun
latex.out/
## Auxiliary and intermediate files from other packages:
# algorithms
*.alg
*.loa
# achemso
acs-*.bib
# amsthm
*.thm
# beamer
*.nav
*.pre
*.snm
*.vrb
# changes
*.soc
# comment
*.cut
# cprotect
*.cpt
# elsarticle (documentclass of Elsevier journals)
*.spl
# endnotes
*.ent
# fixme
*.lox
# feynmf/feynmp
*.mf
*.mp
*.t[1-9]
*.t[1-9][0-9]
*.tfm
#(r)(e)ledmac/(r)(e)ledpar
*.end
*.?end
*.[1-9]
*.[1-9][0-9]
*.[1-9][0-9][0-9]
*.[1-9]R
*.[1-9][0-9]R
*.[1-9][0-9][0-9]R
*.eledsec[1-9]
*.eledsec[1-9]R
*.eledsec[1-9][0-9]
*.eledsec[1-9][0-9]R
*.eledsec[1-9][0-9][0-9]
*.eledsec[1-9][0-9][0-9]R
# glossaries
*.acn
*.acr
*.glg
*.glo
*.gls
*.glsdefs
# uncomment this for glossaries-extra (will ignore makeindex's style files!)
# *.ist
# gnuplottex
*-gnuplottex-*
# gregoriotex
*.gaux
*.gtex
# htlatex
*.4ct
*.4tc
*.idv
*.lg
*.trc
*.xref
# hyperref
*.brf
# knitr
*-concordance.tex
# TODO Comment the next line if you want to keep your tikz graphics files
*.tikz
*-tikzDictionary
# listings
*.lol
# luatexja-ruby
*.ltjruby
# makeidx
*.idx
*.ilg
*.ind
# minitoc
*.maf
*.mlf
*.mlt
*.mtc[0-9]*
*.slf[0-9]*
*.slt[0-9]*
*.stc[0-9]*
# minted
_minted*
*.pyg
# morewrites
*.mw
# nomencl
*.nlg
*.nlo
*.nls
# pax
*.pax
# pdfpcnotes
*.pdfpc
# sagetex
*.sagetex.sage
*.sagetex.py
*.sagetex.scmd
# scrwfile
*.wrt
# sympy
*.sout
*.sympy
sympy-plots-for-*.tex/
# pdfcomment
*.upa
*.upb
# pythontex
*.pytxcode
pythontex-files-*/
# tcolorbox
*.listing
# thmtools
*.loe
# TikZ & PGF
*.dpth
*.md5
*.auxlock
# todonotes
*.tdo
# vhistory
*.hst
*.ver
# easy-todo
*.lod
# xcolor
*.xcp
# xmpincl
*.xmpi
# xindy
*.xdy
# xypic precompiled matrices
*.xyc
# endfloat
*.ttt
*.fff
# Latexian
TSWLatexianTemp*
## Editors:
# WinEdt
*.bak
*.sav
# Texpad
.texpadtmp
# LyX
*.lyx~
# Kile
*.backup
# KBibTeX
*~[0-9]*
# auto folder when using emacs and auctex
./auto/*
*.el
# expex forward references with \gathertags
*-tags.tex
# standalone packages
*.sta
### LaTeX Patch ###
# glossaries
*.glstex
# End of https://www.gitignore.io/api/latex
*.pdf
#!/bin/bash
echo "Wifi poster generator"
echo "Please give me the SSID"
read ssid
echo "Please give me the Passphrase"
read key
echo "Please give me the technical Contact"
read contact
cp main.tex main.render.tex
sed -i -e "s/%ssid%/$ssid/g" main.render.tex
sed -i -e "s/%key%/$key/g" main.render.tex
sed -i -e "s/%contact%/$contact/g" main.render.tex
echo "Builing pdf"
pdflatex -interaction=nonstopmode main.render.tex
mv main.render.pdf $ssid.pdf
rm main.render.tex
\documentclass[12pt,oneside,a4paper]{article}
\usepackage[]{qrcode}
\usepackage[margin=3cm]{geometry}
\newcommand{\ssid}{%ssid%}
\newcommand{\key}{%key%}
\newcommand{\contact}{%contact%}
\renewcommand{\familydefault}{\sfdefault}
\newcommand{\QRWifi}[2]{WIFI:T:WPA;S:#1;P:#2;;}
\title{WLAN Zugangsdaten}
\date{}
\begin{document}
\fboxsep1em
\fboxrule2pt
\noindent\fbox{\begin{minipage}[c][\dimexpr\textheight-2\fboxsep-2\fboxrule][c]{\dimexpr\linewidth-2\fboxsep-2\fboxrule}
\maketitle
\vfill
\begin{center}
\begin{tabular}{lr}
\textbf{WLAN Name / SSID:} & \ssid \\
\textbf{WLAN Passwort:} & \key
\end{tabular}
\end{center}
\vfill
\centering \qrcode[height=5cm]{\QRWifi{\ssid}{\key}}\\
\vfill
\textbf{Bei Problemen bitte an \contact wenden!}
\vfill
\thispagestyle{empty}
\end{minipage}}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.