Tomas "Jethro" Pokorny
9 years ago
5 changed files with 1758 additions and 0 deletions
File diff suppressed because it is too large
@ -0,0 +1,103 @@ |
|||||
|
{% autoescape off %} |
||||
|
{% load staticfiles %} |
||||
|
{% load tex %} |
||||
|
\input czech.sty |
||||
|
\input epsf |
||||
|
\special{landscape} |
||||
|
\nopagenumbers |
||||
|
\hoffset=-1in |
||||
|
\voffset=-1in |
||||
|
\advance\voffset by 0.9cm |
||||
|
%nove pridano, aby to fungovalo... |
||||
|
\advance\hoffset by 6.5cm |
||||
|
\hsize=22cm |
||||
|
\vsize=16cm |
||||
|
|
||||
|
\font\adrfonta=csssbx10 at 14pt |
||||
|
\font\adrfontb=csssbx10 at 12pt |
||||
|
\font\adrfontc=csss12 |
||||
|
\font\tofont=csr12 at 16pt |
||||
|
|
||||
|
\newdimen\fromskip |
||||
|
\newdimen\toskip |
||||
|
\fromskip=4.35cm |
||||
|
\toskip=13.2cm |
||||
|
|
||||
|
\def\first{\relax} |
||||
|
|
||||
|
\catcode`_=13 |
||||
|
%\catcode`_=12 |
||||
|
|
||||
|
\def_{$\_$} |
||||
|
|
||||
|
\advance\voffset by 2.5cm |
||||
|
|
||||
|
|
||||
|
\def\obalka#1#2#3#4#5#6#7{ |
||||
|
|
||||
|
\def\jmeno{#1} |
||||
|
\def\prijm{#2} |
||||
|
\def\skola{#3} |
||||
|
\def\popis{} |
||||
|
\def\first{} |
||||
|
\def\ulice{#4} |
||||
|
\def\PSC{#5} |
||||
|
\def\mesto{#6} |
||||
|
\def\stat{#7} |
||||
|
\vskip-4mm\vbox to 0pt{\hbox to 0pt{\hskip1.4cm\epsfysize=2.55cm\epsfbox{lisak.eps}\hss}\vss} |
||||
|
|
||||
|
\baselineskip=13pt |
||||
|
\parindent=\fromskip |
||||
|
\line{\indent\adrfonta Časopis M\&M,\hfil} |
||||
|
\vskip3pt |
||||
|
\line{\indent\adrfontb OVVP UK MFF\hfil} |
||||
|
\vskip3pt |
||||
|
\line{\indent\adrfontc Ke Karlovu 3, 121 16 Praha 2\hfil} |
||||
|
\line{\indent\adrfontc Tel.: +420 221 911 235\hss} |
||||
|
\line{\indent\adrfontc mam@atrey.karlin.mff.cuni.cz\hfil} |
||||
|
|
||||
|
\vskip6.15cm |
||||
|
\vbox to 0pt{\parindent=1.4cm\hsize=\toskip\advance\hsize by -1cm |
||||
|
\vbox to 60pt{\vfil} \popis\vss} |
||||
|
\parindent=\toskip |
||||
|
\baselineskip=18pt |
||||
|
\line{\indent\tofont\first\hfil} |
||||
|
\line{\indent\tofont\jmeno\ \prijm\hfil} |
||||
|
\ifx \skola \empty |
||||
|
{} |
||||
|
\else |
||||
|
\line{\indent\tofont\skola\hfil} |
||||
|
\fi |
||||
|
\line{\indent\tofont\ulice\hfil} |
||||
|
\line{\tofont\item{\PSC} \mesto\hfil} |
||||
|
\vskip5pt |
||||
|
\line{\indent\tofont\stat\hfil} |
||||
|
|
||||
|
\vfil\eject |
||||
|
} |
||||
|
|
||||
|
|
||||
|
{% for r in resitele %} |
||||
|
{% spaceless %} |
||||
|
{% if r.zasilat == "do_skoly" %} |
||||
|
{% if r.stat == "CZ" %} |
||||
|
\obalka{{r.jmeno|sloz}}{{r.prijmeni|sloz}}{{r.skola.nazev|sloz}}{{r.skola.ulice|sloz}}{{r.skola.psc|sloz}}{{r.skola.mesto|sloz}}{{''|sloz}} |
||||
|
{% else %} |
||||
|
\obalka{{r.jmeno|sloz}}{{r.prijmeni|sloz}}{{r.skola.nazev|sloz}}{{r.skola.ulice|sloz}}{{r.skola.psc|sloz}}{{r.skola.mesto|sloz}}{{r.stat.name|sloz}} |
||||
|
{% endif %} |
||||
|
|
||||
|
{% elif r.zasilat == "domu" %} |
||||
|
{% if r.stat == "CZ" %} |
||||
|
\obalka{{r.jmeno|sloz}}{{r.prijmeni|sloz}}{{''|sloz}}{{r.ulice|sloz}}{{r.psc|sloz}}{{r.mesto|sloz}}{{''|sloz}} |
||||
|
{% else %} |
||||
|
\obalka{{r.jmeno|sloz}}{{r.prijmeni|sloz}}{{''|sloz}}{{r.ulice|sloz}}{{r.psc|sloz}}{{r.mesto|sloz}}{{r.stat.name|sloz}} |
||||
|
{% endif %} |
||||
|
{% else %} |
||||
|
% zasilat: {{r.zasilat}} |
||||
|
%\obalka{{r.jmeno|sloz}}{{r.prijmeni|sloz}}{{''|sloz}}{{r.ulice|sloz}}{{r.psc|sloz}}{{r.mesto|sloz}}{{r.stat.name|sloz}} |
||||
|
{% endif %} |
||||
|
{% endspaceless %} |
||||
|
{% endfor %} |
||||
|
\bye |
||||
|
|
||||
|
{% endautoescape %} |
@ -0,0 +1,6 @@ |
|||||
|
from django import template |
||||
|
register = template.Library() |
||||
|
|
||||
|
@register.filter(name='sloz') |
||||
|
def sloz(value): |
||||
|
return u"{{{}}}".format(value) |
Loading…
Reference in new issue