summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docstory-1.aux3
-rw-r--r--docstory-1.log407
-rw-r--r--docstory-1.pdfbin0 -> 46609 bytes
-rw-r--r--docstory-1.tex466
-rw-r--r--docstory-1.yaml82
-rw-r--r--docstory-1a.aux3
-rw-r--r--docstory-1a.log406
-rw-r--r--docstory-1a.pdfbin0 -> 46590 bytes
-rw-r--r--docstory-1a.tex466
-rw-r--r--docstory-1a.yaml82
-rw-r--r--lasku.aux3
-rw-r--r--lasku.log401
-rw-r--r--lasku.pdfbin0 -> 47506 bytes
-rwxr-xr-xlasku.py129
-rw-r--r--lasku.tex465
15 files changed, 2871 insertions, 42 deletions
diff --git a/docstory-1.aux b/docstory-1.aux
new file mode 100644
index 0000000..a6ec9e8
--- /dev/null
+++ b/docstory-1.aux
@@ -0,0 +1,3 @@
+\relax
+\catcode `"\active
+\babel@aux{finnish}{}
diff --git a/docstory-1.log b/docstory-1.log
new file mode 100644
index 0000000..e8e3711
--- /dev/null
+++ b/docstory-1.log
@@ -0,0 +1,407 @@
+This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=pdflatex 2018.7.11) 17 JUL 2018 21:15
+entering extended mode
+ restricted \write18 enabled.
+ %&-line parsing enabled.
+**docstory-1.tex
+(./docstory-1.tex
+LaTeX2e <2018-04-01> patch level 4
+Babel <3.20> and hyphenation patterns for 84 language(s) loaded.
+(/usr/share/texlive/texmf-dist/tex/latex/base/letter.cls
+Document Class: letter 2014/09/29 v1.2z Standard LaTeX document class
+(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
+File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
+)
+\longindentation=\dimen102
+\indentedwidth=\dimen103
+\labelcount=\count80
+)
+(/usr/share/texlive/texmf-dist/tex/latex/pslatex/pslatex.sty
+Package: pslatex 1996/07/24 v1.2 pslatex emulation (DPC)
+LaTeX Font Info: Redeclaring symbol font `operators' on input line 65.
+LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
+(Font) OT1/cmr/m/n --> OT1/ptmcm/m/n on input line 65.
+LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
+(Font) OT1/cmr/bx/n --> OT1/ptmcm/m/n on input line 65.
+LaTeX Font Info: Redeclaring symbol font `letters' on input line 66.
+LaTeX Font Info: Overwriting symbol font `letters' in version `normal'
+(Font) OML/cmm/m/it --> OML/ptmcm/m/it on input line 66.
+LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
+(Font) OML/cmm/b/it --> OML/ptmcm/m/it on input line 66.
+LaTeX Font Info: Redeclaring symbol font `symbols' on input line 67.
+LaTeX Font Info: Overwriting symbol font `symbols' in version `normal'
+(Font) OMS/cmsy/m/n --> OMS/pzccm/m/n on input line 67.
+LaTeX Font Info: Overwriting symbol font `symbols' in version `bold'
+(Font) OMS/cmsy/b/n --> OMS/pzccm/m/n on input line 67.
+LaTeX Font Info: Redeclaring symbol font `largesymbols' on input line 68.
+LaTeX Font Info: Overwriting symbol font `largesymbols' in version `normal'
+(Font) OMX/cmex/m/n --> OMX/psycm/m/n on input line 68.
+LaTeX Font Info: Overwriting symbol font `largesymbols' in version `bold'
+(Font) OMX/cmex/m/n --> OMX/psycm/m/n on input line 68.
+\symbold=\mathgroup4
+\symitalic=\mathgroup5
+LaTeX Font Info: Redeclaring math alphabet \mathbf on input line 74.
+LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal'
+(Font) OT1/cmr/bx/n --> OT1/ptm/bx/n on input line 74.
+LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `bold'
+(Font) OT1/cmr/bx/n --> OT1/ptm/bx/n on input line 74.
+LaTeX Font Info: Redeclaring math alphabet \mathit on input line 75.
+LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal'
+(Font) OT1/cmr/m/it --> OT1/ptm/m/it on input line 75.
+LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
+(Font) OT1/cmr/bx/it --> OT1/ptm/m/it on input line 75.
+)
+(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
+Package: inputenc 2018/04/06 v1.3b Input encoding file
+\inpenc@prehook=\toks14
+\inpenc@posthook=\toks15
+)
+(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
+Package: babel 2018/05/02 3.20 The Babel package
+
+(/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def
+File: switch.def 2018/05/02 3.20 Babel switching mechanism
+)
+(/usr/share/texlive/texmf-dist/tex/generic/babel-finnish/finnish.ldf
+Language: finnish 2007/10/20 v1.3q Finnish support from the babel system
+
+(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def
+File: babel.def 2018/05/02 3.20 Babel common definitions
+\babel@savecnt=\count81
+\U@D=\dimen104
+
+(/usr/share/texlive/texmf-dist/tex/generic/babel/txtbabel.def)
+\bbl@dirlevel=\count82
+)
+Package babel Info: Making " an active character on input line 89.
+))
+(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
+Package: geometry 2018/03/24 v5.7 Page Geometry
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
+Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
+\KV@toks@=\toks16
+)
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty
+Package: ifpdf 2017/03/15 v3.2 Provides the ifpdf switch
+)
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty
+Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
+Package ifvtex Info: VTeX not detected.
+)
+(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
+Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
+)
+\Gm@cnth=\count83
+\Gm@cntv=\count84
+\c@Gm@tempcnt=\count85
+\Gm@bindingoffset=\dimen105
+\Gm@wd@mp=\dimen106
+\Gm@odd@mp=\dimen107
+\Gm@even@mp=\dimen108
+\Gm@layoutwidth=\dimen109
+\Gm@layoutheight=\dimen110
+\Gm@layouthoffset=\dimen111
+\Gm@layoutvoffset=\dimen112
+\Gm@dimlist=\toks17
+)
+(/usr/share/texlive/texmf-dist/tex/latex/eurosym/eurosym.sty
+Package: eurosym 1998/08/06 v1.1 European currency symbol ``Euro''
+\@eurobox=\box26
+)
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty
+Package: color 2016/07/10 v1.1e Standard LaTeX Color (DPC)
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg
+File: color.cfg 2016/01/02 v1.6 sample color configuration
+)
+Package color Info: Driver file: pdftex.def on input line 147.
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
+File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
+))
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/rotating.sty
+Package: rotating 2016/08/11 v2.16d rotated objects in LaTeX
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
+Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
+Package: graphics 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
+Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
+)
+(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
+File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
+)
+Package graphics Info: Driver file: pdftex.def on input line 99.
+)
+\Gin@req@height=\dimen113
+\Gin@req@width=\dimen114
+)
+(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty
+Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
+)
+\c@r@tfl@t=\count86
+\rotFPtop=\skip41
+\rotFPbot=\skip42
+\rot@float@box=\box27
+\rot@mess@toks=\toks18
+)
+(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
+Package: fontenc 2017/04/05 v2.0i Standard LaTeX package
+
+(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def
+File: t1enc.def 2017/04/05 v2.0i Standard LaTeX file
+LaTeX Font Info: Redeclaring font encoding T1 on input line 48.
+)) (./docstory-1.aux)
+\openout1 = `docstory-1.aux'.
+
+LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for OMS/pzccm/m/n on input line 42.
+LaTeX Font Info: Try loading font information for OMS+pzccm on input line 42
+.
+
+(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omspzccm.fd
+File: omspzccm.fd 2000/01/03 Fontinst v1.801 font definitions for OMS/pzccm.
+)
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+
+*geometry* driver: auto-detecting
+*geometry* detected driver: pdftex
+*geometry* verbose mode - [ preamble ] result:
+* driver: pdftex
+* paper: a4paper
+* layout: <same size as paper>
+* layoutoffset:(h,v)=(0.0pt,0.0pt)
+* modes:
+* h-part:(L,W,R)=(0.0pt, 597.50787pt, 0.0pt)
+* v-part:(T,H,B)=(0.0pt, 845.04684pt, 0.0pt)
+* \paperwidth=597.50787pt
+* \paperheight=845.04684pt
+* \textwidth=597.50787pt
+* \textheight=845.04684pt
+* \oddsidemargin=-72.26999pt
+* \evensidemargin=-72.26999pt
+* \topmargin=-72.26999pt
+* \headheight=0.0pt
+* \headsep=0.0pt
+* \topskip=10.0pt
+* \footskip=0.0pt
+* \marginparwidth=90.0pt
+* \marginparsep=11.0pt
+* \columnsep=10.0pt
+* \skip\footins=10.0pt plus 2.0pt minus 4.0pt
+* \hoffset=0.0pt
+* \voffset=0.0pt
+* \mag=1000
+* \@twocolumnfalse
+* \@twosidefalse
+* \@mparswitchfalse
+* \@reversemarginfalse
+* (1in=72.27pt=25.4mm, 1cm=28.453pt)
+
+(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
+[Loading MPS to PDF converter (version 2006.09.02).]
+\scratchcounter=\count87
+\scratchdimen=\dimen115
+\scratchbox=\box28
+\nofMPsegments=\count88
+\nofMParguments=\count89
+\everyMPshowfont=\toks19
+\MPscratchCnt=\count90
+\MPscratchDim=\dimen116
+\MPnumerator=\count91
+\makeMPintoPDFobject=\count92
+\everyMPtoPDFconversion=\toks20
+) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
+Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
+Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
+)
+(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
+Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty
+Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
+Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
+)))
+(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
+Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
+Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty
+Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty
+Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
+Package ifluatex Info: LuaTeX not detected.
+))))
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
+Package: pdftexcmds 2018/01/30 v0.27 Utility functions of pdfTeX for LuaTeX (HO
+)
+Package pdftexcmds Info: LuaTeX not detected.
+Package pdftexcmds Info: \pdf@primitive is available.
+Package pdftexcmds Info: \pdf@ifprimitive is available.
+Package pdftexcmds Info: \pdfdraftmode found.
+)
+Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
+38.
+Package grfext Info: Graphics extension search list:
+(grfext) [.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPE
+G,.JBIG2,.JB2,.eps]
+(grfext) \AppendGraphicsExtensions on input line 456.
+
+(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
+File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
+e
+))
+LaTeX Font Info: Try loading font information for OT1+ptmcm on input line 98
+.
+
+(/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1ptmcm.fd
+File: ot1ptmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OT1/ptmcm.
+)
+LaTeX Font Info: Try loading font information for OML+ptmcm on input line 98
+.
+
+(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omlptmcm.fd
+File: omlptmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OML/ptmcm.
+)
+LaTeX Font Info: Try loading font information for OMX+psycm on input line 98
+.
+
+(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omxpsycm.fd
+File: omxpsycm.fd 2000/01/03 Fontinst v1.801 font definitions for OMX/psycm.
+)
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <12> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 98.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <9> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 98.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <7> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 98.
+
+Underfull \hbox (badness 10000) in paragraph at lines 98--98
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 98--98
+
+ []
+
+
+Overfull \hbox (28.45276pt too wide) in paragraph at lines 98--98
+[][]|
+ []
+
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <10> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 98.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <7.4> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 98.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <6> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 98.
+
+Underfull \hbox (badness 10000) in paragraph at lines 98--98
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 98--98
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 98--98
+
+ []
+
+
+Overfull \hbox (36.66965pt too wide) in paragraph at lines 98--98
+[]
+ []
+
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <8> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 120.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <5> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 120.
+
+Overfull \hbox (0.88554pt too wide) in paragraph at lines 120--120
+ []\T1/ptm/m/n/8 KPL
+ []
+
+LaTeX Font Info: Font shape `T1/ptm/bx/n' in size <8> not available
+(Font) Font shape `T1/ptm/b/n' tried instead on input line 158.
+
+Overfull \hbox (4.40144pt too wide) in paragraph at lines 158--158
+[]
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 158--158
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 444--444
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 444--444
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 444--444
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 444--444
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 444--444
+
+ []
+
+[1
+
+{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./docstory-1.aux) )
+Here is how much of TeX's memory you used:
+ 3111 strings out of 492648
+ 42990 string characters out of 6132015
+ 127525 words of memory out of 5000000
+ 6924 multiletter control sequences out of 15000+600000
+ 56062 words of font info for 86 fonts, out of 8000000 for 9000
+ 1141 hyphenation exceptions out of 8191
+ 41i,26n,25p,2156b,427s stack positions out of 5000i,500n,10000p,200000b,80000s
+{/usr/
+share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc}</usr/share/texlive/texmf-
+dist/fonts/type1/public/eurosym/feymr10.pfb></usr/share/texlive/texmf-dist/font
+s/type1/urw/courier/ucrr8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/urw/t
+imes/utmb8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/urw/times/utmr8a.pfb
+>
+Output written on docstory-1.pdf (1 page, 46609 bytes).
+PDF statistics:
+ 25 PDF objects out of 1000 (max. 8388607)
+ 17 compressed objects within 1 object stream
+ 0 named destinations out of 1000 (max. 500000)
+ 1 words of extra memory for PDF output out of 10000 (max. 10000000)
+
diff --git a/docstory-1.pdf b/docstory-1.pdf
new file mode 100644
index 0000000..17ad8d3
--- /dev/null
+++ b/docstory-1.pdf
Binary files differ
diff --git a/docstory-1.tex b/docstory-1.tex
new file mode 100644
index 0000000..7ebe51a
--- /dev/null
+++ b/docstory-1.tex
@@ -0,0 +1,466 @@
+% Standard Finnish Invoice Template v0.4
+% Copyright 2008 Jaakko Heusala <jheusala@iki.fi>
+%
+% See README in finnish for instructions.
+%
+% $Id: invoice.tex 4581 2008-02-24 18:59:30Z jheusala $
+% [The zlib/libpng License]
+%
+% This software is provided 'as-is', without any express or implied
+% warranty. In no event will the authors be held liable for any damages
+% arising from the use of this software.
+%
+% Permission is granted to anyone to use this software for any purpose,
+% including commercial applications, and to alter it and redistribute it
+% freely, subject to the following restrictions:
+%
+% 1. The origin of this software must not be misrepresented; you must not
+% claim that you wrote the original software. If you use this software
+% in a product, an acknowledgment in the product documentation would be
+% appreciated but is not required.
+%
+% 2. Altered source versions must be plainly marked as such, and must not be
+% misrepresented as being the original software.
+%
+% 3. This notice may not be removed or altered from any source
+% distribution.
+%
+
+\documentclass[a4paper,10pt]{letter}
+\title{Lasku 1/2018}
+\date{17.7.2018}
+\usepackage{pslatex}
+\usepackage[utf8]{inputenc}
+\usepackage[finnish]{babel}
+\pagestyle{empty}
+\usepackage[left=0cm,top=0cm,right=0cm,bottom=0cm,nohead,nofoot]{geometry}
+\usepackage[gen]{eurosym}
+\usepackage{color}
+%\usepackage{pstricks}
+\usepackage{rotating}
+\usepackage[T1]{fontenc} % Fixes scandinavian character problem
+\begin{document}
+
+\setlength{\unitlength}{1mm}
+\begin{picture}(210,297)(0,0)
+
+%% Document Header
+\fontsize{12pt}{14pt}
+\selectfont
+\put(20,277){
+ \begin{tabular}[t]{@{}p{8.5cm}@{}p{8.5cm}@{}r}
+ \parbox[t]{9.5cm}{
+ \fontsize{16pt}{18pt}
+ \selectfont
+ \textsc{Docstory} \\
+ \fontsize{12pt}{14pt}
+ \selectfont
+ Elokuvaohjaaja Soile Mottisenkangas \\
+ Pohjavedenkatu 12 F 39 \\
+ 00980 Helsinki \\
+ \\
+ \\
+ Artlab Oy / Kimmo Koskinen \\
+ Nilsiänkatu 8 \\
+ 00510 Helsinki
+ }
+ &
+ \parbox[t]{8.5cm}{
+ LASKU \\
+ \\
+ 17.7.2018
+ \\
+ \\
+ \\
+ \framebox{
+ \fontsize{10pt}{11pt}
+ \selectfont
+ \begin{tabular}[t]{@{}l@{}l@{}}
+ \begin{tabular}[t]{@{}ll}
+ Laskun numero: & 1/2018 \\
+ Asiakasnumero: & 1 \\
+ Päivämäärä: & 17.7.2018 \\
+ Maksuehdot: & 14 pv netto \\
+ Eräpäivä: & 31.7.2018 \\
+ \end{tabular}
+ &
+ \begin{tabular}[t]{@{}ll}
+ Maksettava: & 3964.70 \euro \\
+ Huomautusaika: & 7 vrk \\
+ Viivästyskorko: & 10,0\% \\
+ Muistutusmaksu: & 5,00 \euro \\
+ Viitteenne: & Yötyön Zen \\
+ \end{tabular}
+ \end{tabular}
+ }
+ } & 1 (1) \\
+ \end{tabular}
+}
+
+
+\fontsize{8pt}{9pt}
+\selectfont
+\put(10,222){
+
+\begin{tabular}[t]{@{}rlrrrrrrr@{}}
+ \parbox[t]{0.50cm}{\raggedleft Rivi\\nro} &
+ \parbox[t]{5.5cm}{Tuote/palvelu} &
+ \parbox[t]{0.50cm}{\raggedleft KPL} &
+ \parbox[t]{1.5cm}{\raggedleft A-hinta\\veroton} &
+ \parbox[t]{1.5cm}{\raggedleft A-hinta\\verollinen} &
+ \parbox[t]{1.5cm}{\raggedleft ALV-\%} &
+ \parbox[t]{1.5cm}{\raggedleft Veroton\\yhteensä} &
+ \parbox[t]{1.5cm}{\raggedleft ALV\\yhteensä} &
+ \parbox[t]{1.5cm}{\raggedleft Verollinen\\yhteensä} \\[2.5ex]
+\hline
+\raggedbottom 1 & \parbox[t]{5.5cm}{Käsikirjoitus ja ennakkosuunnittelu\\2018} & \raggedbottom 1 & \raggedbottom 760.00 & \raggedbottom 1000.00 & \raggedbottom 24\% & \raggedbottom 760.00 & \raggedbottom 240.00 & \raggedbottom 1000.00 \\[2.2ex]\raggedbottom 2 & \parbox[t]{5.5cm}{matkustuspäivä HKI-RAAHE\\3.6.2018} & \raggedbottom 1 & \raggedbottom 117.80 & \raggedbottom 155.00 & \raggedbottom 24\% & \raggedbottom 117.80 & \raggedbottom 37.20 & \raggedbottom 155.00 \\[2.2ex]\raggedbottom 3 & \parbox[t]{5.5cm}{kuvauspäivä RAAHE\\4-6.6.2018} & \raggedbottom 3 & \raggedbottom 235.60 & \raggedbottom 458.80 & \raggedbottom 24\% & \raggedbottom 706.80 & \raggedbottom 669.60 & \raggedbottom 1376.40 \\[2.2ex]\raggedbottom 4 & \parbox[t]{5.5cm}{matkustuspäivä HKI-ÄHTÄRI\\3.6.2018} & \raggedbottom 1 & \raggedbottom 117.80 & \raggedbottom 155.00 & \raggedbottom 24\% & \raggedbottom 117.80 & \raggedbottom 37.20 & \raggedbottom 155.00 \\[2.2ex]\raggedbottom 5 & \parbox[t]{5.5cm}{kuvauspäivä ÄHTÄRI\\19-20.6.2018} & \raggedbottom 2 & \raggedbottom 235.60 & \raggedbottom 384.40 & \raggedbottom 24\% & \raggedbottom 471.20 & \raggedbottom 297.60 & \raggedbottom 768.80 \\[2.2ex]\raggedbottom 6 & \parbox[t]{5.5cm}{kuvauspäivä RIIHIMÄKI-HYVINKÄÄ\\10.7.2018} & \raggedbottom 1 & \raggedbottom 235.60 & \raggedbottom 310.00 & \raggedbottom 24\% & \raggedbottom 235.60 & \raggedbottom 74.40 & \raggedbottom 310.00 \\[2.2ex]\raggedbottom 7 & \parbox[t]{5.5cm}{kuvauspäivä HELSINKI\\11.7.2018} & \raggedbottom 1 & \raggedbottom 235.60 & \raggedbottom 310.00 & \raggedbottom 24\% & \raggedbottom 235.60 & \raggedbottom 74.40 & \raggedbottom 310.00 \\[2.2ex]\raggedbottom 8 & \parbox[t]{5.5cm}{päiväraha\\3.6. - 11.7.2018} & \raggedbottom 9 & \raggedbottom 31.92 & \raggedbottom 122.64 & \raggedbottom 24\% & \raggedbottom 287.28 & \raggedbottom 816.48 & \raggedbottom 1103.76 \\[2.2ex]\raggedbottom 9 & \parbox[t]{5.5cm}{kulukorvaukset yhteensä\\3.6. - 11.7.2018} & \raggedbottom 1 & \raggedbottom 106.70 & \raggedbottom 106.70 & \raggedbottom 0\% & \raggedbottom 106.70 & \raggedbottom 0.00 & \raggedbottom 106.70 \\[2.2ex]
+\hline
+& Yhteensä & & & & & 3038.78 & 925.92 & 3964.70 \\
+\end{tabular}
+}
+
+
+
+%% Additional info
+\put(10,120){ \parbox[t]{200cm}{Muistutuksesta perimme 5,00 euron muistutusmaksun.} }
+
+
+%% Company Contact Info
+\fontsize{8pt}{8.5pt}
+\selectfont
+\put(10,110){
+ \begin{tabular}{p{3cm}p{3cm}p{4cm}p{4cm}p{3.25cm}@{}}
+ \hline
+ \\
+ \parbox[t]{3cm}{
+ \textbf{Docstory}\\
+ \mbox{Pohjavedenkatu 12 F 39}\\
+ \mbox{00980 Helsinki}
+ } &
+ \parbox[t]{3cm}{
+ Y-tunnus: \mbox{2924646-9} \\
+ Kotipaikka: Helsinki \\
+ {\tt \mbox{http://www.docstory.fi}}
+ } &
+ \parbox[t]{4cm}{
+ Sähköposti: {\tt \mbox{soile@docstory.fi}}\\
+ Puhelin: \mbox{+358 40 370 5224}
+ } &
+ \parbox[t]{4cm}{
+ Tilinumero:\\
+ IBAN: {\tt \mbox{FI45 5780 0720 5070 73}}
+ } &
+ \parbox[t]{3.25cm}{
+ Viitenumero: {\tt \mbox{1012}} \\
+% VAT: {\tt \mbox{(ei vielä)}}
+ } \\
+ \end{tabular}
+}
+
+%% Standard Finnish Bank Transfer Form
+\linethickness{0.5mm}
+
+%% For debug
+%\color{red}
+%\put(0,0){\circle{10}}
+%\put(210,0){\circle{10}}
+%\put(0,101.6){\circle{10}}
+%\put(210,101.6){\circle{10}}
+%
+%% For debug
+%\put(5,5){\makebox(0,0){0,0}}
+%\put(200,5){\makebox(0,0){210,0}}
+%\put(7,99){\makebox(0,0){0,101.6}}
+%\put(200,99){\makebox(0,0){210,101.6}}
+
+% Bold Vertical lines
+\color{blue}
+%\put(20.32,69.85){\circle{10}}
+\put(20.32,69.85){\line(0,1){31.75}}
+%\put(111.76,27.5166667){\circle{10}}
+\put(111.76,27.5166667){\line(0,1){74.0833333}}
+%\put(124.46,27.5166667){\circle{10}}
+\put(124.46,27.5166667){\line(0,1){16.9333333}}
+%\put(157.48,27.5166667){\circle{10}}
+\put(157.48,27.5166667){\line(0,1){8.46666667}}
+
+% Bold Horizontal lines
+%\put(111.76,84.6666667){\circle{10}}
+\put(111.76,84.6666667){\line(-1,0){106.68}}
+\put(111.76,84.6666667){\line(1,0){91.44}}
+
+%\put(111.76,69.85){\circle{10}}
+\put(111.76,69.85){\line(-1,0){106.68}}
+
+%\put(111.76,44.45){\circle{10}}
+\put(111.76,44.45){\line(1,0){91.44}}
+
+%\put(111.76,35.9833333){\circle{10}}
+\put(111.76,35.9833333){\line(-1,0){106.68}}
+\put(111.76,35.9833333){\line(1,0){91.44}}
+
+%\put(111.76,27.5166667){\circle{10}}
+\put(111.76,27.5166667){\line(-1,0){106.68}}
+\put(111.76,27.5166667){\line(1,0){91.44}}
+
+%\put(52.49333333,29.6333333){\line(1,0){1.69333333}} % Tilinumeron viiva
+
+%\put(20.32,27.5166667){\circle{10}}
+\put(20.32,27.5166667){\line(0,1){8.46666667}}
+
+% Normal lines
+\linethickness{0.13mm}
+
+%% Debug line
+%\color{red}
+%\put(0,101.6){\line(1,0){210}}
+%\color{blue}
+
+% Normal Vertical Lines
+%\put(20.32,27.5166667){\circle{10}}
+%\put(20.32,27.5166667){\line(0,1){8.46666667}}
+%\put(25.40,27.5166667){\line(0,1){2.11666667}} % 01
+%\put(30.48,27.5166667){\line(0,1){2.11666667}} % 02
+%\put(35.56,27.5166667){\line(0,1){2.11666667}} % 03
+%\put(40.64,27.5166667){\line(0,1){2.11666667}} % 04
+%\put(45.72,27.5166667){\line(0,1){2.11666667}} % 05
+%\put(50.80,27.5166667){\line(0,1){2.11666667}} % 06
+%\put(55.88,27.5166667){\line(0,1){2.11666667}} % 07
+%\put(60.96,27.5166667){\line(0,1){2.11666667}} % 08
+%\put(66.04,27.5166667){\line(0,1){2.11666667}} % 09
+%\put(71.12,27.5166667){\line(0,1){2.11666667}} % 10
+%\put(76.20,27.5166667){\line(0,1){2.11666667}} % 11
+%\put(81.28,27.5166667){\line(0,1){2.11666667}} % 12
+%\put(86.36,27.5166667){\line(0,1){2.11666667}} % 13
+%\put(91.44,27.5166667){\line(0,1){2.11666667}} % 14
+%\put(96.52,27.5166667){\line(0,1){2.11666667}} % 15
+
+%\put(161.29,84.6666667){\circle{10}}
+\put(161.29,84.6666667){\line(0,1){16.9333333}}
+
+% Normal Horizontal lines
+%\put(20.02,40.2166667){\circle{10}}
+\put(20.02,40.2166667){\line(1,0){91.44}} % 20.02 should be 20.32 (8/10 inches)
+
+% Texts
+
+% Tilinumero
+\put(0,84.6666667){
+ \makebox(19,16.9333333)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Saajan\\
+ tilinumero\\
+ Mottagarens\\
+ kontonummer
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Saaja
+\put(0,69.85){
+ \makebox(19,14.8166667)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Saaja\\
+ Mottagare
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Maksaja
+\put(0,52){
+ \makebox(19,14.8166667)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Maksajan\\
+ nimi ja\\
+ osoite \\
+ Betalarens \\
+ namn och \\
+ adress
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Allekirjoitus
+\put(0,35.9833333){
+ \makebox(19,14.8166667)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Alle-\\
+ kirjoitus\\
+ Underskrift
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Tililtä nro
+\put(0,27.5166667){
+ \makebox(19,8.46666667)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Tililtä nro\\
+ Från konto nr
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Viitenumero
+\put(111.5,35.9833333){
+ \makebox(12.7,8.46666667)[l]{
+ \begin{minipage}[l]{12.7mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ Viitenro\\
+ Ref.nr
+ \end{minipage}
+ }
+}
+
+% Eräpäivä
+\put(111.5,27.5166667){
+ \makebox(12.7,8.46666667)[l]{
+ \begin{minipage}[l]{12.7mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ Eräpäivä\\
+ Förf.dag
+ \end{minipage}
+ }
+}
+
+% Euro
+\put(157,26.5){
+ \makebox(12.7,8.46666667)[tl]{
+ \begin{minipage}[tl]{12.7mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ Euro
+ \end{minipage}
+ }
+}
+
+
+% Tilisiirtoteksti
+\put(4.5,37){
+ \begin{sideways}
+ \fontsize{8pt}{8.5pt}
+ \selectfont
+ \textbf{TILISIIRTO GIRERING}
+ \end{sideways}
+}
+
+% Maksu välitetään -teksti
+%\put(150,5){\circle{10}}
+\put(150,5){
+ \makebox(52,12)[t]{
+ \begin{minipage}[t]{52mm}
+ \fontsize{5pt}{5.5pt}
+ \selectfont
+ Maksu välitetään saajalle vain Suomessa Kotimaan maksujenvälityksen yleisten
+ ehtojen mukaisesti ja vain maksajan ilmoittaman tilinumeron perusteella. \\
+ Betalningen förmedlas till mottagare endast i Finland enligt Allmänna villkor för
+ inrikes betalningsförmedling och endast till det kontonummer betalaren angivit.
+ \end{minipage}
+ }
+}
+
+
+\color{black}
+\fontsize{9pt}{10pt}
+\selectfont
+
+% Saajan tilinumero
+%\put(20.32,86.5){\circle{10}}
+\put(20.32,86.5){
+ \makebox(91.44,16.9333333)[bl]{
+ \begin{minipage}[bl]{91.44mm}
+ \fontsize{9pt}{10pt}
+ \selectfont
+ FI45 5780 0720 5070 73
+ \end{minipage}
+ }
+}
+
+% Saaja
+
+\put(20.32,68.25){
+ \makebox(91.44,13.7)[tl]{
+ \begin{minipage}[tl]{91.44mm}
+ \fontsize{9pt}{10pt}
+ \selectfont
+ Docstory \\
+ Pohjavedenkatu 12 F 39 \\
+ 00980 Helsinki
+ \end{minipage}
+ }
+}
+
+% Maksaja
+\put(20.32,35.9833333){
+ \makebox(91.44,29.6333333)[tl]{
+ \begin{minipage}[tl]{91.44mm}
+ \fontsize{9pt}{10pt}
+ \selectfont
+ Artlab Oy / Kimmo Koskinen \\
+ Nilsiänkatu 8 \\
+ 00510 Helsinki
+ \end{minipage}
+ }
+}
+
+% Viestiosa
+\put(114.3,44.45){
+ \makebox(81.28,38)[tl]{
+ \begin{minipage}[tl]{81.28mm}
+ \fontsize{9pt}{10pt}
+ \selectfont
+ Laskunumero: 1/2018 \\
+ Asiakasnumero: 1 \\
+ \\
+ \\
+ \\
+ \\
+ \\
+ Viitenumero mainittava maksaessa!
+ \end{minipage}
+ }
+}
+
+% Viitenumero
+\put(132.08,39){ 1012 } % Viitenumero
+\put(132.08,30){ 31.7.2018 } % Eräpäivä
+\put(168,30){ 3964.70 } % Summa
+
+
+%% Viivakoodi
+%\put(20.32,3){
+% \X=.25mm
+% \barheight=12mm
+% \code{2574136020371846000964220000000000512301010508081000001}
+%}
+
+% Pankki-teksti
+\color{blue}
+\fontsize{6pt}{10pt}
+\selectfont
+\put(185,2){ PANKKI BANKEN }
+
+\end{picture}
+\end{document}
diff --git a/docstory-1.yaml b/docstory-1.yaml
new file mode 100644
index 0000000..b75ca32
--- /dev/null
+++ b/docstory-1.yaml
@@ -0,0 +1,82 @@
+title: Lasku 1/2018
+date: 17.7.2018
+
+payee: Artlab Oy / Kimmo Koskinen
+payeeaddr: Nilsiänkatu 8
+payeepostcode: "00510"
+payeepostoffice: Helsinki
+payeereference: Yötyön Zen
+
+invoicenumber: 1/2018
+payeenumber: 1
+duedate: 31.7.2018
+terms: 14 pv netto
+
+noticeperiod: 7 vrk
+latepercent: 10,0
+remindfee: 5,00
+invoicerefcode: 1012
+
+invoiceitems:
+- number: 1
+ desc: Käsikirjoitus ja ennakkosuunnittelu
+ date: 2018
+ count: 1
+ unit: 760.00
+ vatpc: 24
+
+- number: 2
+ desc: matkustuspäivä HKI-RAAHE
+ date: 3.6.2018
+ count: 1
+ unit: 117.80
+ vatpc: 24
+
+- number: 3
+ desc: kuvauspäivä RAAHE
+ date: 4-6.6.2018
+ count: 3
+ unit: 235.60
+ vatpc: 24
+
+- number: 4
+ desc: matkustuspäivä HKI-ÄHTÄRI
+ date: 3.6.2018
+ count: 1
+ unit: 117.80
+ vatpc: 24
+
+- number: 5
+ desc: kuvauspäivä ÄHTÄRI
+ date: 19-20.6.2018
+ count: 2
+ unit: 235.60
+ vatpc: 24
+
+- number: 6
+ desc: kuvauspäivä RIIHIMÄKI-HYVINKÄÄ
+ date: 10.7.2018
+ count: 1
+ unit: 235.60
+ vatpc: 24
+
+- number: 7
+ desc: kuvauspäivä HELSINKI
+ date: 11.7.2018
+ count: 1
+ unit: 235.60
+ vatpc: 24
+
+- number: 8
+ desc: päiväraha
+ date: 3.6. - 11.7.2018
+ count: 9
+ unit: 31.92
+ vatpc: 24
+
+- number: 9
+ desc: kulukorvaukset yhteensä
+ date: 3.6. - 11.7.2018
+ count: 1
+ unit: 106.70
+ vatpc: 0
diff --git a/docstory-1a.aux b/docstory-1a.aux
new file mode 100644
index 0000000..a6ec9e8
--- /dev/null
+++ b/docstory-1a.aux
@@ -0,0 +1,3 @@
+\relax
+\catcode `"\active
+\babel@aux{finnish}{}
diff --git a/docstory-1a.log b/docstory-1a.log
new file mode 100644
index 0000000..83cd18c
--- /dev/null
+++ b/docstory-1a.log
@@ -0,0 +1,406 @@
+This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=pdflatex 2018.7.25) 2 AUG 2018 15:32
+entering extended mode
+ restricted \write18 enabled.
+ %&-line parsing enabled.
+**docstory-1a.tex
+(./docstory-1a.tex
+LaTeX2e <2018-04-01> patch level 5
+(/usr/share/texlive/texmf-dist/tex/latex/base/letter.cls
+Document Class: letter 2014/09/29 v1.2z Standard LaTeX document class
+(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
+File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
+)
+\longindentation=\dimen102
+\indentedwidth=\dimen103
+\labelcount=\count80
+)
+(/usr/share/texlive/texmf-dist/tex/latex/pslatex/pslatex.sty
+Package: pslatex 1996/07/24 v1.2 pslatex emulation (DPC)
+LaTeX Font Info: Redeclaring symbol font `operators' on input line 65.
+LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
+(Font) OT1/cmr/m/n --> OT1/ptmcm/m/n on input line 65.
+LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
+(Font) OT1/cmr/bx/n --> OT1/ptmcm/m/n on input line 65.
+LaTeX Font Info: Redeclaring symbol font `letters' on input line 66.
+LaTeX Font Info: Overwriting symbol font `letters' in version `normal'
+(Font) OML/cmm/m/it --> OML/ptmcm/m/it on input line 66.
+LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
+(Font) OML/cmm/b/it --> OML/ptmcm/m/it on input line 66.
+LaTeX Font Info: Redeclaring symbol font `symbols' on input line 67.
+LaTeX Font Info: Overwriting symbol font `symbols' in version `normal'
+(Font) OMS/cmsy/m/n --> OMS/pzccm/m/n on input line 67.
+LaTeX Font Info: Overwriting symbol font `symbols' in version `bold'
+(Font) OMS/cmsy/b/n --> OMS/pzccm/m/n on input line 67.
+LaTeX Font Info: Redeclaring symbol font `largesymbols' on input line 68.
+LaTeX Font Info: Overwriting symbol font `largesymbols' in version `normal'
+(Font) OMX/cmex/m/n --> OMX/psycm/m/n on input line 68.
+LaTeX Font Info: Overwriting symbol font `largesymbols' in version `bold'
+(Font) OMX/cmex/m/n --> OMX/psycm/m/n on input line 68.
+\symbold=\mathgroup4
+\symitalic=\mathgroup5
+LaTeX Font Info: Redeclaring math alphabet \mathbf on input line 74.
+LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal'
+(Font) OT1/cmr/bx/n --> OT1/ptm/bx/n on input line 74.
+LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `bold'
+(Font) OT1/cmr/bx/n --> OT1/ptm/bx/n on input line 74.
+LaTeX Font Info: Redeclaring math alphabet \mathit on input line 75.
+LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal'
+(Font) OT1/cmr/m/it --> OT1/ptm/m/it on input line 75.
+LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
+(Font) OT1/cmr/bx/it --> OT1/ptm/m/it on input line 75.
+)
+(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
+Package: inputenc 2018/04/06 v1.3b Input encoding file
+\inpenc@prehook=\toks14
+\inpenc@posthook=\toks15
+)
+(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
+Package: babel 2018/06/05 3.22 The Babel package
+
+(/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def
+File: switch.def 2018/06/05 3.22 Babel switching mechanism
+)
+(/usr/share/texlive/texmf-dist/tex/generic/babel-finnish/finnish.ldf
+Language: finnish 2007/10/20 v1.3q Finnish support from the babel system
+
+(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def
+File: babel.def 2018/06/05 3.22 Babel common definitions
+\babel@savecnt=\count81
+\U@D=\dimen104
+
+(/usr/share/texlive/texmf-dist/tex/generic/babel/txtbabel.def)
+\bbl@dirlevel=\count82
+)
+Package babel Info: Making " an active character on input line 89.
+))
+(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
+Package: geometry 2018/04/16 v5.8 Page Geometry
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
+Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
+\KV@toks@=\toks16
+)
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty
+Package: ifpdf 2017/03/15 v3.2 Provides the ifpdf switch
+)
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty
+Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
+Package ifvtex Info: VTeX not detected.
+)
+(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
+Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
+)
+\Gm@cnth=\count83
+\Gm@cntv=\count84
+\c@Gm@tempcnt=\count85
+\Gm@bindingoffset=\dimen105
+\Gm@wd@mp=\dimen106
+\Gm@odd@mp=\dimen107
+\Gm@even@mp=\dimen108
+\Gm@layoutwidth=\dimen109
+\Gm@layoutheight=\dimen110
+\Gm@layouthoffset=\dimen111
+\Gm@layoutvoffset=\dimen112
+\Gm@dimlist=\toks17
+)
+(/usr/share/texlive/texmf-dist/tex/latex/eurosym/eurosym.sty
+Package: eurosym 1998/08/06 v1.1 European currency symbol ``Euro''
+\@eurobox=\box26
+)
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty
+Package: color 2016/07/10 v1.1e Standard LaTeX Color (DPC)
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg
+File: color.cfg 2016/01/02 v1.6 sample color configuration
+)
+Package color Info: Driver file: pdftex.def on input line 147.
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
+File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
+))
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/rotating.sty
+Package: rotating 2016/08/11 v2.16d rotated objects in LaTeX
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
+Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
+Package: graphics 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
+Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
+)
+(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
+File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
+)
+Package graphics Info: Driver file: pdftex.def on input line 99.
+)
+\Gin@req@height=\dimen113
+\Gin@req@width=\dimen114
+)
+(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty
+Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
+)
+\c@r@tfl@t=\count86
+\rotFPtop=\skip41
+\rotFPbot=\skip42
+\rot@float@box=\box27
+\rot@mess@toks=\toks18
+)
+(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
+Package: fontenc 2017/04/05 v2.0i Standard LaTeX package
+
+(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def
+File: t1enc.def 2017/04/05 v2.0i Standard LaTeX file
+LaTeX Font Info: Redeclaring font encoding T1 on input line 48.
+)) (./docstory-1a.aux)
+\openout1 = `docstory-1a.aux'.
+
+LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for OMS/pzccm/m/n on input line 42.
+LaTeX Font Info: Try loading font information for OMS+pzccm on input line 42
+.
+
+(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omspzccm.fd
+File: omspzccm.fd 2000/01/03 Fontinst v1.801 font definitions for OMS/pzccm.
+)
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+
+*geometry* driver: auto-detecting
+*geometry* detected driver: pdftex
+*geometry* verbose mode - [ preamble ] result:
+* driver: pdftex
+* paper: a4paper
+* layout: <same size as paper>
+* layoutoffset:(h,v)=(0.0pt,0.0pt)
+* modes:
+* h-part:(L,W,R)=(0.0pt, 597.50787pt, 0.0pt)
+* v-part:(T,H,B)=(0.0pt, 845.04684pt, 0.0pt)
+* \paperwidth=597.50787pt
+* \paperheight=845.04684pt
+* \textwidth=597.50787pt
+* \textheight=845.04684pt
+* \oddsidemargin=-72.26999pt
+* \evensidemargin=-72.26999pt
+* \topmargin=-72.26999pt
+* \headheight=0.0pt
+* \headsep=0.0pt
+* \topskip=10.0pt
+* \footskip=0.0pt
+* \marginparwidth=90.0pt
+* \marginparsep=11.0pt
+* \columnsep=10.0pt
+* \skip\footins=10.0pt plus 2.0pt minus 4.0pt
+* \hoffset=0.0pt
+* \voffset=0.0pt
+* \mag=1000
+* \@twocolumnfalse
+* \@twosidefalse
+* \@mparswitchfalse
+* \@reversemarginfalse
+* (1in=72.27pt=25.4mm, 1cm=28.453pt)
+
+(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
+[Loading MPS to PDF converter (version 2006.09.02).]
+\scratchcounter=\count87
+\scratchdimen=\dimen115
+\scratchbox=\box28
+\nofMPsegments=\count88
+\nofMParguments=\count89
+\everyMPshowfont=\toks19
+\MPscratchCnt=\count90
+\MPscratchDim=\dimen116
+\MPnumerator=\count91
+\makeMPintoPDFobject=\count92
+\everyMPtoPDFconversion=\toks20
+) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
+Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
+Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
+)
+(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
+Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty
+Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
+Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
+)))
+(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
+Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
+Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty
+Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty
+Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
+Package ifluatex Info: LuaTeX not detected.
+))))
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
+Package: pdftexcmds 2018/01/30 v0.27 Utility functions of pdfTeX for LuaTeX (HO
+)
+Package pdftexcmds Info: LuaTeX not detected.
+Package pdftexcmds Info: \pdf@primitive is available.
+Package pdftexcmds Info: \pdf@ifprimitive is available.
+Package pdftexcmds Info: \pdfdraftmode found.
+)
+Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
+38.
+Package grfext Info: Graphics extension search list:
+(grfext) [.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPE
+G,.JBIG2,.JB2,.eps]
+(grfext) \AppendGraphicsExtensions on input line 456.
+
+(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
+File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
+e
+))
+LaTeX Font Info: Try loading font information for OT1+ptmcm on input line 98
+.
+
+(/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1ptmcm.fd
+File: ot1ptmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OT1/ptmcm.
+)
+LaTeX Font Info: Try loading font information for OML+ptmcm on input line 98
+.
+
+(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omlptmcm.fd
+File: omlptmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OML/ptmcm.
+)
+LaTeX Font Info: Try loading font information for OMX+psycm on input line 98
+.
+
+(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omxpsycm.fd
+File: omxpsycm.fd 2000/01/03 Fontinst v1.801 font definitions for OMX/psycm.
+)
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <12> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 98.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <9> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 98.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <7> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 98.
+
+Underfull \hbox (badness 10000) in paragraph at lines 98--98
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 98--98
+
+ []
+
+
+Overfull \hbox (28.45276pt too wide) in paragraph at lines 98--98
+[][]|
+ []
+
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <10> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 98.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <7.4> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 98.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <6> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 98.
+
+Underfull \hbox (badness 10000) in paragraph at lines 98--98
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 98--98
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 98--98
+
+ []
+
+
+Overfull \hbox (36.66965pt too wide) in paragraph at lines 98--98
+[]
+ []
+
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <8> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 120.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <5> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 120.
+
+Overfull \hbox (0.88554pt too wide) in paragraph at lines 120--120
+ []\T1/ptm/m/n/8 KPL
+ []
+
+LaTeX Font Info: Font shape `T1/ptm/bx/n' in size <8> not available
+(Font) Font shape `T1/ptm/b/n' tried instead on input line 158.
+
+Overfull \hbox (4.40144pt too wide) in paragraph at lines 158--158
+[]
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 158--158
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 444--444
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 444--444
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 444--444
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 444--444
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 444--444
+
+ []
+
+[1
+
+{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./docstory-1a.aux) )
+Here is how much of TeX's memory you used:
+ 3115 strings out of 492645
+ 43073 string characters out of 6131956
+ 127959 words of memory out of 5000000
+ 6931 multiletter control sequences out of 15000+600000
+ 56062 words of font info for 86 fonts, out of 8000000 for 9000
+ 1141 hyphenation exceptions out of 8191
+ 41i,26n,25p,2154b,427s stack positions out of 5000i,500n,10000p,200000b,80000s
+{/usr
+/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc}</usr/share/texlive/texmf
+-dist/fonts/type1/public/eurosym/feymr10.pfb></usr/share/texlive/texmf-dist/fon
+ts/type1/urw/courier/ucrr8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/urw/
+times/utmb8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/urw/times/utmr8a.pf
+b>
+Output written on docstory-1a.pdf (1 page, 46590 bytes).
+PDF statistics:
+ 25 PDF objects out of 1000 (max. 8388607)
+ 17 compressed objects within 1 object stream
+ 0 named destinations out of 1000 (max. 500000)
+ 1 words of extra memory for PDF output out of 10000 (max. 10000000)
+
diff --git a/docstory-1a.pdf b/docstory-1a.pdf
new file mode 100644
index 0000000..0a4541b
--- /dev/null
+++ b/docstory-1a.pdf
Binary files differ
diff --git a/docstory-1a.tex b/docstory-1a.tex
new file mode 100644
index 0000000..e189546
--- /dev/null
+++ b/docstory-1a.tex
@@ -0,0 +1,466 @@
+% Standard Finnish Invoice Template v0.4
+% Copyright 2008 Jaakko Heusala <jheusala@iki.fi>
+%
+% See README in finnish for instructions.
+%
+% $Id: invoice.tex 4581 2008-02-24 18:59:30Z jheusala $
+% [The zlib/libpng License]
+%
+% This software is provided 'as-is', without any express or implied
+% warranty. In no event will the authors be held liable for any damages
+% arising from the use of this software.
+%
+% Permission is granted to anyone to use this software for any purpose,
+% including commercial applications, and to alter it and redistribute it
+% freely, subject to the following restrictions:
+%
+% 1. The origin of this software must not be misrepresented; you must not
+% claim that you wrote the original software. If you use this software
+% in a product, an acknowledgment in the product documentation would be
+% appreciated but is not required.
+%
+% 2. Altered source versions must be plainly marked as such, and must not be
+% misrepresented as being the original software.
+%
+% 3. This notice may not be removed or altered from any source
+% distribution.
+%
+
+\documentclass[a4paper,10pt]{letter}
+\title{Lasku 1/2018}
+\date{17.7.2018}
+\usepackage{pslatex}
+\usepackage[utf8]{inputenc}
+\usepackage[finnish]{babel}
+\pagestyle{empty}
+\usepackage[left=0cm,top=0cm,right=0cm,bottom=0cm,nohead,nofoot]{geometry}
+\usepackage[gen]{eurosym}
+\usepackage{color}
+%\usepackage{pstricks}
+\usepackage{rotating}
+\usepackage[T1]{fontenc} % Fixes scandinavian character problem
+\begin{document}
+
+\setlength{\unitlength}{1mm}
+\begin{picture}(210,297)(0,0)
+
+%% Document Header
+\fontsize{12pt}{14pt}
+\selectfont
+\put(20,277){
+ \begin{tabular}[t]{@{}p{8.5cm}@{}p{8.5cm}@{}r}
+ \parbox[t]{9.5cm}{
+ \fontsize{16pt}{18pt}
+ \selectfont
+ \textsc{Docstory} \\
+ \fontsize{12pt}{14pt}
+ \selectfont
+ Elokuvaohjaaja Soile Mottisenkangas \\
+ Pohjavedenkatu 12 F 39 \\
+ 00980 Helsinki \\
+ \\
+ \\
+ Artlab Oy / Kimmo Koskinen \\
+ Nilsiänkatu 8 \\
+ 00510 Helsinki
+ }
+ &
+ \parbox[t]{8.5cm}{
+ LASKU \\
+ \\
+ 17.7.2018
+ \\
+ \\
+ \\
+ \framebox{
+ \fontsize{10pt}{11pt}
+ \selectfont
+ \begin{tabular}[t]{@{}l@{}l@{}}
+ \begin{tabular}[t]{@{}ll}
+ Laskun numero: & 1/2018 \\
+ Asiakasnumero: & 1 \\
+ Päivämäärä: & 17.7.2018 \\
+ Maksuehdot: & 14 pv netto \\
+ Eräpäivä: & 31.7.2018 \\
+ \end{tabular}
+ &
+ \begin{tabular}[t]{@{}ll}
+ Maksettava: & 4084.04 \euro \\
+ Huomautusaika: & 7 vrk \\
+ Viivästyskorko: & 10,0\% \\
+ Muistutusmaksu: & 5,00 \euro \\
+ Viitteenne: & Yötyön Zen \\
+ \end{tabular}
+ \end{tabular}
+ }
+ } & 1 (1) \\
+ \end{tabular}
+}
+
+
+\fontsize{8pt}{9pt}
+\selectfont
+\put(10,222){
+
+\begin{tabular}[t]{@{}rlrrrrrrr@{}}
+ \parbox[t]{0.50cm}{\raggedleft Rivi\\nro} &
+ \parbox[t]{5.5cm}{Tuote/palvelu} &
+ \parbox[t]{0.50cm}{\raggedleft KPL} &
+ \parbox[t]{1.5cm}{\raggedleft A-hinta\\veroton} &
+ \parbox[t]{1.5cm}{\raggedleft A-hinta\\verollinen} &
+ \parbox[t]{1.5cm}{\raggedleft ALV-\%} &
+ \parbox[t]{1.5cm}{\raggedleft Veroton\\yhteensä} &
+ \parbox[t]{1.5cm}{\raggedleft ALV\\yhteensä} &
+ \parbox[t]{1.5cm}{\raggedleft Verollinen\\yhteensä} \\[2.5ex]
+\hline
+\raggedbottom 1 & \parbox[t]{5.5cm}{Käsikirjoitus ja ennakkosuunnittelu\\2018} & \raggedbottom 1 & \raggedbottom 760.00 & \raggedbottom 1000.00 & \raggedbottom 24\% & \raggedbottom 760.00 & \raggedbottom 240.00 & \raggedbottom 1000.00 \\[2.2ex]\raggedbottom 2 & \parbox[t]{5.5cm}{matkustuspäivä HKI-RAAHE\\3.6.2018} & \raggedbottom 1 & \raggedbottom 117.80 & \raggedbottom 155.00 & \raggedbottom 24\% & \raggedbottom 117.80 & \raggedbottom 37.20 & \raggedbottom 155.00 \\[2.2ex]\raggedbottom 3 & \parbox[t]{5.5cm}{kuvauspäivä RAAHE\\4-6.6.2018} & \raggedbottom 3 & \raggedbottom 235.60 & \raggedbottom 310.00 & \raggedbottom 24\% & \raggedbottom 706.80 & \raggedbottom 223.20 & \raggedbottom 930.00 \\[2.2ex]\raggedbottom 4 & \parbox[t]{5.5cm}{matkustuspäivä HKI-ÄHTÄRI\\3.6.2018} & \raggedbottom 1 & \raggedbottom 117.80 & \raggedbottom 155.00 & \raggedbottom 24\% & \raggedbottom 117.80 & \raggedbottom 37.20 & \raggedbottom 155.00 \\[2.2ex]\raggedbottom 5 & \parbox[t]{5.5cm}{kuvauspäivä ÄHTÄRI\\19-20.6.2018} & \raggedbottom 2 & \raggedbottom 235.60 & \raggedbottom 310.00 & \raggedbottom 24\% & \raggedbottom 471.20 & \raggedbottom 148.80 & \raggedbottom 620.00 \\[2.2ex]\raggedbottom 6 & \parbox[t]{5.5cm}{kuvauspäivä RIIHIMÄKI-HYVINKÄÄ\\10.7.2018} & \raggedbottom 1 & \raggedbottom 235.60 & \raggedbottom 310.00 & \raggedbottom 24\% & \raggedbottom 235.60 & \raggedbottom 74.40 & \raggedbottom 310.00 \\[2.2ex]\raggedbottom 7 & \parbox[t]{5.5cm}{kuvauspäivä HELSINKI\\11.7.2018} & \raggedbottom 1 & \raggedbottom 235.60 & \raggedbottom 310.00 & \raggedbottom 24\% & \raggedbottom 235.60 & \raggedbottom 74.40 & \raggedbottom 310.00 \\[2.2ex]\raggedbottom 8 & \parbox[t]{5.5cm}{päiväraha\\3.6. - 11.7.2018} & \raggedbottom 9 & \raggedbottom 42.00 & \raggedbottom 55.26 & \raggedbottom 24\% & \raggedbottom 378.00 & \raggedbottom 119.34 & \raggedbottom 497.34 \\[2.2ex]\raggedbottom 9 & \parbox[t]{5.5cm}{kulukorvaukset yhteensä\\3.6. - 11.7.2018} & \raggedbottom 1 & \raggedbottom 106.70 & \raggedbottom 106.70 & \raggedbottom 0\% & \raggedbottom 106.70 & \raggedbottom 0.00 & \raggedbottom 106.70 \\[2.2ex]
+\hline
+& Yhteensä & & & & & 3129.50 & 954.54 & 4084.04 \\
+\end{tabular}
+}
+
+
+
+%% Additional info
+\put(10,120){ \parbox[t]{200cm}{Muistutuksesta perimme 5,00 euron muistutusmaksun.} }
+
+
+%% Company Contact Info
+\fontsize{8pt}{8.5pt}
+\selectfont
+\put(10,110){
+ \begin{tabular}{p{3cm}p{3cm}p{4cm}p{4cm}p{3.25cm}@{}}
+ \hline
+ \\
+ \parbox[t]{3cm}{
+ \textbf{Docstory}\\
+ \mbox{Pohjavedenkatu 12 F 39}\\
+ \mbox{00980 Helsinki}
+ } &
+ \parbox[t]{3cm}{
+ Y-tunnus: \mbox{2924646-9} \\
+ Kotipaikka: Helsinki \\
+ {\tt \mbox{http://www.docstory.fi}}
+ } &
+ \parbox[t]{4cm}{
+ Sähköposti: {\tt \mbox{soile@docstory.fi}}\\
+ Puhelin: \mbox{+358 40 370 5224}
+ } &
+ \parbox[t]{4cm}{
+ Tilinumero:\\
+ IBAN: {\tt \mbox{FI45 5780 0720 5070 73}}
+ } &
+ \parbox[t]{3.25cm}{
+ Viitenumero: {\tt \mbox{1012}} \\
+% VAT: {\tt \mbox{(ei vielä)}}
+ } \\
+ \end{tabular}
+}
+
+%% Standard Finnish Bank Transfer Form
+\linethickness{0.5mm}
+
+%% For debug
+%\color{red}
+%\put(0,0){\circle{10}}
+%\put(210,0){\circle{10}}
+%\put(0,101.6){\circle{10}}
+%\put(210,101.6){\circle{10}}
+%
+%% For debug
+%\put(5,5){\makebox(0,0){0,0}}
+%\put(200,5){\makebox(0,0){210,0}}
+%\put(7,99){\makebox(0,0){0,101.6}}
+%\put(200,99){\makebox(0,0){210,101.6}}
+
+% Bold Vertical lines
+\color{blue}
+%\put(20.32,69.85){\circle{10}}
+\put(20.32,69.85){\line(0,1){31.75}}
+%\put(111.76,27.5166667){\circle{10}}
+\put(111.76,27.5166667){\line(0,1){74.0833333}}
+%\put(124.46,27.5166667){\circle{10}}
+\put(124.46,27.5166667){\line(0,1){16.9333333}}
+%\put(157.48,27.5166667){\circle{10}}
+\put(157.48,27.5166667){\line(0,1){8.46666667}}
+
+% Bold Horizontal lines
+%\put(111.76,84.6666667){\circle{10}}
+\put(111.76,84.6666667){\line(-1,0){106.68}}
+\put(111.76,84.6666667){\line(1,0){91.44}}
+
+%\put(111.76,69.85){\circle{10}}
+\put(111.76,69.85){\line(-1,0){106.68}}
+
+%\put(111.76,44.45){\circle{10}}
+\put(111.76,44.45){\line(1,0){91.44}}
+
+%\put(111.76,35.9833333){\circle{10}}
+\put(111.76,35.9833333){\line(-1,0){106.68}}
+\put(111.76,35.9833333){\line(1,0){91.44}}
+
+%\put(111.76,27.5166667){\circle{10}}
+\put(111.76,27.5166667){\line(-1,0){106.68}}
+\put(111.76,27.5166667){\line(1,0){91.44}}
+
+%\put(52.49333333,29.6333333){\line(1,0){1.69333333}} % Tilinumeron viiva
+
+%\put(20.32,27.5166667){\circle{10}}
+\put(20.32,27.5166667){\line(0,1){8.46666667}}
+
+% Normal lines
+\linethickness{0.13mm}
+
+%% Debug line
+%\color{red}
+%\put(0,101.6){\line(1,0){210}}
+%\color{blue}
+
+% Normal Vertical Lines
+%\put(20.32,27.5166667){\circle{10}}
+%\put(20.32,27.5166667){\line(0,1){8.46666667}}
+%\put(25.40,27.5166667){\line(0,1){2.11666667}} % 01
+%\put(30.48,27.5166667){\line(0,1){2.11666667}} % 02
+%\put(35.56,27.5166667){\line(0,1){2.11666667}} % 03
+%\put(40.64,27.5166667){\line(0,1){2.11666667}} % 04
+%\put(45.72,27.5166667){\line(0,1){2.11666667}} % 05
+%\put(50.80,27.5166667){\line(0,1){2.11666667}} % 06
+%\put(55.88,27.5166667){\line(0,1){2.11666667}} % 07
+%\put(60.96,27.5166667){\line(0,1){2.11666667}} % 08
+%\put(66.04,27.5166667){\line(0,1){2.11666667}} % 09
+%\put(71.12,27.5166667){\line(0,1){2.11666667}} % 10
+%\put(76.20,27.5166667){\line(0,1){2.11666667}} % 11
+%\put(81.28,27.5166667){\line(0,1){2.11666667}} % 12
+%\put(86.36,27.5166667){\line(0,1){2.11666667}} % 13
+%\put(91.44,27.5166667){\line(0,1){2.11666667}} % 14
+%\put(96.52,27.5166667){\line(0,1){2.11666667}} % 15
+
+%\put(161.29,84.6666667){\circle{10}}
+\put(161.29,84.6666667){\line(0,1){16.9333333}}
+
+% Normal Horizontal lines
+%\put(20.02,40.2166667){\circle{10}}
+\put(20.02,40.2166667){\line(1,0){91.44}} % 20.02 should be 20.32 (8/10 inches)
+
+% Texts
+
+% Tilinumero
+\put(0,84.6666667){
+ \makebox(19,16.9333333)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Saajan\\
+ tilinumero\\
+ Mottagarens\\
+ kontonummer
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Saaja
+\put(0,69.85){
+ \makebox(19,14.8166667)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Saaja\\
+ Mottagare
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Maksaja
+\put(0,52){
+ \makebox(19,14.8166667)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Maksajan\\
+ nimi ja\\
+ osoite \\
+ Betalarens \\
+ namn och \\
+ adress
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Allekirjoitus
+\put(0,35.9833333){
+ \makebox(19,14.8166667)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Alle-\\
+ kirjoitus\\
+ Underskrift
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Tililtä nro
+\put(0,27.5166667){
+ \makebox(19,8.46666667)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Tililtä nro\\
+ Från konto nr
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Viitenumero
+\put(111.5,35.9833333){
+ \makebox(12.7,8.46666667)[l]{
+ \begin{minipage}[l]{12.7mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ Viitenro\\
+ Ref.nr
+ \end{minipage}
+ }
+}
+
+% Eräpäivä
+\put(111.5,27.5166667){
+ \makebox(12.7,8.46666667)[l]{
+ \begin{minipage}[l]{12.7mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ Eräpäivä\\
+ Förf.dag
+ \end{minipage}
+ }
+}
+
+% Euro
+\put(157,26.5){
+ \makebox(12.7,8.46666667)[tl]{
+ \begin{minipage}[tl]{12.7mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ Euro
+ \end{minipage}
+ }
+}
+
+
+% Tilisiirtoteksti
+\put(4.5,37){
+ \begin{sideways}
+ \fontsize{8pt}{8.5pt}
+ \selectfont
+ \textbf{TILISIIRTO GIRERING}
+ \end{sideways}
+}
+
+% Maksu välitetään -teksti
+%\put(150,5){\circle{10}}
+\put(150,5){
+ \makebox(52,12)[t]{
+ \begin{minipage}[t]{52mm}
+ \fontsize{5pt}{5.5pt}
+ \selectfont
+ Maksu välitetään saajalle vain Suomessa Kotimaan maksujenvälityksen yleisten
+ ehtojen mukaisesti ja vain maksajan ilmoittaman tilinumeron perusteella. \\
+ Betalningen förmedlas till mottagare endast i Finland enligt Allmänna villkor för
+ inrikes betalningsförmedling och endast till det kontonummer betalaren angivit.
+ \end{minipage}
+ }
+}
+
+
+\color{black}
+\fontsize{9pt}{10pt}
+\selectfont
+
+% Saajan tilinumero
+%\put(20.32,86.5){\circle{10}}
+\put(20.32,86.5){
+ \makebox(91.44,16.9333333)[bl]{
+ \begin{minipage}[bl]{91.44mm}
+ \fontsize{9pt}{10pt}
+ \selectfont
+ FI45 5780 0720 5070 73
+ \end{minipage}
+ }
+}
+
+% Saaja
+
+\put(20.32,68.25){
+ \makebox(91.44,13.7)[tl]{
+ \begin{minipage}[tl]{91.44mm}
+ \fontsize{9pt}{10pt}
+ \selectfont
+ Docstory \\
+ Pohjavedenkatu 12 F 39 \\
+ 00980 Helsinki
+ \end{minipage}
+ }
+}
+
+% Maksaja
+\put(20.32,35.9833333){
+ \makebox(91.44,29.6333333)[tl]{
+ \begin{minipage}[tl]{91.44mm}
+ \fontsize{9pt}{10pt}
+ \selectfont
+ Artlab Oy / Kimmo Koskinen \\
+ Nilsiänkatu 8 \\
+ 00510 Helsinki
+ \end{minipage}
+ }
+}
+
+% Viestiosa
+\put(114.3,44.45){
+ \makebox(81.28,38)[tl]{
+ \begin{minipage}[tl]{81.28mm}
+ \fontsize{9pt}{10pt}
+ \selectfont
+ Laskunumero: 1/2018 \\
+ Asiakasnumero: 1 \\
+ \\
+ \\
+ \\
+ \\
+ \\
+ Viitenumero mainittava maksaessa!
+ \end{minipage}
+ }
+}
+
+% Viitenumero
+\put(132.08,39){ 1012 } % Viitenumero
+\put(132.08,30){ 31.7.2018 } % Eräpäivä
+\put(168,30){ 4084.04 } % Summa
+
+
+%% Viivakoodi
+%\put(20.32,3){
+% \X=.25mm
+% \barheight=12mm
+% \code{2574136020371846000964220000000000512301010508081000001}
+%}
+
+% Pankki-teksti
+\color{blue}
+\fontsize{6pt}{10pt}
+\selectfont
+\put(185,2){ PANKKI BANKEN }
+
+\end{picture}
+\end{document}
diff --git a/docstory-1a.yaml b/docstory-1a.yaml
new file mode 100644
index 0000000..bd9de90
--- /dev/null
+++ b/docstory-1a.yaml
@@ -0,0 +1,82 @@
+title: Lasku 1/2018
+date: 17.7.2018
+
+payee: Artlab Oy / Kimmo Koskinen
+payeeaddr: Nilsiänkatu 8
+payeepostcode: "00510"
+payeepostoffice: Helsinki
+payeereference: Yötyön Zen
+
+invoicenumber: 1/2018
+payeenumber: 1
+duedate: 31.7.2018
+terms: 14 pv netto
+
+noticeperiod: 7 vrk
+latepercent: 10,0
+remindfee: 5,00
+invoicerefcode: 1012
+
+invoiceitems:
+- number: 1
+ desc: Käsikirjoitus ja ennakkosuunnittelu
+ date: 2018
+ count: 1
+ unit: 760.00
+ vatpc: 24
+
+- number: 2
+ desc: matkustuspäivä HKI-RAAHE
+ date: 3.6.2018
+ count: 1
+ unit: 117.80
+ vatpc: 24
+
+- number: 3
+ desc: kuvauspäivä RAAHE
+ date: 4-6.6.2018
+ count: 3
+ unit: 235.60
+ vatpc: 24
+
+- number: 4
+ desc: matkustuspäivä HKI-ÄHTÄRI
+ date: 3.6.2018
+ count: 1
+ unit: 117.80
+ vatpc: 24
+
+- number: 5
+ desc: kuvauspäivä ÄHTÄRI
+ date: 19-20.6.2018
+ count: 2
+ unit: 235.60
+ vatpc: 24
+
+- number: 6
+ desc: kuvauspäivä RIIHIMÄKI-HYVINKÄÄ
+ date: 10.7.2018
+ count: 1
+ unit: 235.60
+ vatpc: 24
+
+- number: 7
+ desc: kuvauspäivä HELSINKI
+ date: 11.7.2018
+ count: 1
+ unit: 235.60
+ vatpc: 24
+
+- number: 8
+ desc: päiväraha
+ date: 3.6. - 11.7.2018
+ count: 9
+ unit: 42.00
+ vatpc: 24
+
+- number: 9
+ desc: kulukorvaukset yhteensä
+ date: 3.6. - 11.7.2018
+ count: 1
+ unit: 106.70
+ vatpc: 0
diff --git a/lasku.aux b/lasku.aux
new file mode 100644
index 0000000..a6ec9e8
--- /dev/null
+++ b/lasku.aux
@@ -0,0 +1,3 @@
+\relax
+\catcode `"\active
+\babel@aux{finnish}{}
diff --git a/lasku.log b/lasku.log
new file mode 100644
index 0000000..bd6bc01
--- /dev/null
+++ b/lasku.log
@@ -0,0 +1,401 @@
+This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=pdflatex 2018.7.11) 17 JUL 2018 17:20
+entering extended mode
+ restricted \write18 enabled.
+ %&-line parsing enabled.
+**lasku.tex
+(./lasku.tex
+LaTeX2e <2018-04-01> patch level 4
+Babel <3.20> and hyphenation patterns for 84 language(s) loaded.
+(/usr/share/texlive/texmf-dist/tex/latex/base/letter.cls
+Document Class: letter 2014/09/29 v1.2z Standard LaTeX document class
+(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
+File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
+)
+\longindentation=\dimen102
+\indentedwidth=\dimen103
+\labelcount=\count80
+)
+(/usr/share/texlive/texmf-dist/tex/latex/pslatex/pslatex.sty
+Package: pslatex 1996/07/24 v1.2 pslatex emulation (DPC)
+LaTeX Font Info: Redeclaring symbol font `operators' on input line 65.
+LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
+(Font) OT1/cmr/m/n --> OT1/ptmcm/m/n on input line 65.
+LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
+(Font) OT1/cmr/bx/n --> OT1/ptmcm/m/n on input line 65.
+LaTeX Font Info: Redeclaring symbol font `letters' on input line 66.
+LaTeX Font Info: Overwriting symbol font `letters' in version `normal'
+(Font) OML/cmm/m/it --> OML/ptmcm/m/it on input line 66.
+LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
+(Font) OML/cmm/b/it --> OML/ptmcm/m/it on input line 66.
+LaTeX Font Info: Redeclaring symbol font `symbols' on input line 67.
+LaTeX Font Info: Overwriting symbol font `symbols' in version `normal'
+(Font) OMS/cmsy/m/n --> OMS/pzccm/m/n on input line 67.
+LaTeX Font Info: Overwriting symbol font `symbols' in version `bold'
+(Font) OMS/cmsy/b/n --> OMS/pzccm/m/n on input line 67.
+LaTeX Font Info: Redeclaring symbol font `largesymbols' on input line 68.
+LaTeX Font Info: Overwriting symbol font `largesymbols' in version `normal'
+(Font) OMX/cmex/m/n --> OMX/psycm/m/n on input line 68.
+LaTeX Font Info: Overwriting symbol font `largesymbols' in version `bold'
+(Font) OMX/cmex/m/n --> OMX/psycm/m/n on input line 68.
+\symbold=\mathgroup4
+\symitalic=\mathgroup5
+LaTeX Font Info: Redeclaring math alphabet \mathbf on input line 74.
+LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal'
+(Font) OT1/cmr/bx/n --> OT1/ptm/bx/n on input line 74.
+LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `bold'
+(Font) OT1/cmr/bx/n --> OT1/ptm/bx/n on input line 74.
+LaTeX Font Info: Redeclaring math alphabet \mathit on input line 75.
+LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal'
+(Font) OT1/cmr/m/it --> OT1/ptm/m/it on input line 75.
+LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
+(Font) OT1/cmr/bx/it --> OT1/ptm/m/it on input line 75.
+)
+(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
+Package: inputenc 2018/04/06 v1.3b Input encoding file
+\inpenc@prehook=\toks14
+\inpenc@posthook=\toks15
+)
+(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
+Package: babel 2018/05/02 3.20 The Babel package
+
+(/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def
+File: switch.def 2018/05/02 3.20 Babel switching mechanism
+)
+(/usr/share/texlive/texmf-dist/tex/generic/babel-finnish/finnish.ldf
+Language: finnish 2007/10/20 v1.3q Finnish support from the babel system
+
+(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def
+File: babel.def 2018/05/02 3.20 Babel common definitions
+\babel@savecnt=\count81
+\U@D=\dimen104
+
+(/usr/share/texlive/texmf-dist/tex/generic/babel/txtbabel.def)
+\bbl@dirlevel=\count82
+)
+Package babel Info: Making " an active character on input line 89.
+))
+(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
+Package: geometry 2018/03/24 v5.7 Page Geometry
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
+Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
+\KV@toks@=\toks16
+)
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty
+Package: ifpdf 2017/03/15 v3.2 Provides the ifpdf switch
+)
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty
+Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
+Package ifvtex Info: VTeX not detected.
+)
+(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
+Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
+)
+\Gm@cnth=\count83
+\Gm@cntv=\count84
+\c@Gm@tempcnt=\count85
+\Gm@bindingoffset=\dimen105
+\Gm@wd@mp=\dimen106
+\Gm@odd@mp=\dimen107
+\Gm@even@mp=\dimen108
+\Gm@layoutwidth=\dimen109
+\Gm@layoutheight=\dimen110
+\Gm@layouthoffset=\dimen111
+\Gm@layoutvoffset=\dimen112
+\Gm@dimlist=\toks17
+)
+(/usr/share/texlive/texmf-dist/tex/latex/eurosym/eurosym.sty
+Package: eurosym 1998/08/06 v1.1 European currency symbol ``Euro''
+\@eurobox=\box26
+)
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty
+Package: color 2016/07/10 v1.1e Standard LaTeX Color (DPC)
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg
+File: color.cfg 2016/01/02 v1.6 sample color configuration
+)
+Package color Info: Driver file: pdftex.def on input line 147.
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
+File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
+))
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/rotating.sty
+Package: rotating 2016/08/11 v2.16d rotated objects in LaTeX
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
+Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
+Package: graphics 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
+
+(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
+Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
+)
+(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
+File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
+)
+Package graphics Info: Driver file: pdftex.def on input line 99.
+)
+\Gin@req@height=\dimen113
+\Gin@req@width=\dimen114
+)
+(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty
+Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
+)
+\c@r@tfl@t=\count86
+\rotFPtop=\skip41
+\rotFPbot=\skip42
+\rot@float@box=\box27
+\rot@mess@toks=\toks18
+)
+(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
+Package: fontenc 2017/04/05 v2.0i Standard LaTeX package
+
+(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def
+File: t1enc.def 2017/04/05 v2.0i Standard LaTeX file
+LaTeX Font Info: Redeclaring font encoding T1 on input line 48.
+)) (./lasku.aux)
+\openout1 = `lasku.aux'.
+
+LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for OMS/pzccm/m/n on input line 42.
+LaTeX Font Info: Try loading font information for OMS+pzccm on input line 42
+.
+
+(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omspzccm.fd
+File: omspzccm.fd 2000/01/03 Fontinst v1.801 font definitions for OMS/pzccm.
+)
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 42.
+LaTeX Font Info: ... okay on input line 42.
+
+*geometry* driver: auto-detecting
+*geometry* detected driver: pdftex
+*geometry* verbose mode - [ preamble ] result:
+* driver: pdftex
+* paper: a4paper
+* layout: <same size as paper>
+* layoutoffset:(h,v)=(0.0pt,0.0pt)
+* modes:
+* h-part:(L,W,R)=(0.0pt, 597.50787pt, 0.0pt)
+* v-part:(T,H,B)=(0.0pt, 845.04684pt, 0.0pt)
+* \paperwidth=597.50787pt
+* \paperheight=845.04684pt
+* \textwidth=597.50787pt
+* \textheight=845.04684pt
+* \oddsidemargin=-72.26999pt
+* \evensidemargin=-72.26999pt
+* \topmargin=-72.26999pt
+* \headheight=0.0pt
+* \headsep=0.0pt
+* \topskip=10.0pt
+* \footskip=0.0pt
+* \marginparwidth=90.0pt
+* \marginparsep=11.0pt
+* \columnsep=10.0pt
+* \skip\footins=10.0pt plus 2.0pt minus 4.0pt
+* \hoffset=0.0pt
+* \voffset=0.0pt
+* \mag=1000
+* \@twocolumnfalse
+* \@twosidefalse
+* \@mparswitchfalse
+* \@reversemarginfalse
+* (1in=72.27pt=25.4mm, 1cm=28.453pt)
+
+(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
+[Loading MPS to PDF converter (version 2006.09.02).]
+\scratchcounter=\count87
+\scratchdimen=\dimen115
+\scratchbox=\box28
+\nofMPsegments=\count88
+\nofMParguments=\count89
+\everyMPshowfont=\toks19
+\MPscratchCnt=\count90
+\MPscratchDim=\dimen116
+\MPnumerator=\count91
+\makeMPintoPDFobject=\count92
+\everyMPtoPDFconversion=\toks20
+) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
+Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
+Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
+)
+(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
+Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty
+Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
+Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
+)))
+(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
+Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
+Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty
+Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
+
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty
+Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
+Package ifluatex Info: LuaTeX not detected.
+))))
+(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
+Package: pdftexcmds 2018/01/30 v0.27 Utility functions of pdfTeX for LuaTeX (HO
+)
+Package pdftexcmds Info: LuaTeX not detected.
+Package pdftexcmds Info: \pdf@primitive is available.
+Package pdftexcmds Info: \pdf@ifprimitive is available.
+Package pdftexcmds Info: \pdfdraftmode found.
+)
+Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
+38.
+Package grfext Info: Graphics extension search list:
+(grfext) [.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPE
+G,.JBIG2,.JB2,.eps]
+(grfext) \AppendGraphicsExtensions on input line 456.
+
+(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
+File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
+e
+))
+LaTeX Font Info: Try loading font information for OT1+ptmcm on input line 97
+.
+
+(/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1ptmcm.fd
+File: ot1ptmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OT1/ptmcm.
+)
+LaTeX Font Info: Try loading font information for OML+ptmcm on input line 97
+.
+
+(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omlptmcm.fd
+File: omlptmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OML/ptmcm.
+)
+LaTeX Font Info: Try loading font information for OMX+psycm on input line 97
+.
+
+(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omxpsycm.fd
+File: omxpsycm.fd 2000/01/03 Fontinst v1.801 font definitions for OMX/psycm.
+)
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <12> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 97.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <9> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 97.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <7> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 97.
+
+Underfull \hbox (badness 10000) in paragraph at lines 97--97
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 97--97
+
+ []
+
+
+Overfull \hbox (28.45276pt too wide) in paragraph at lines 97--97
+[][]|
+ []
+
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <10> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 97.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <7.4> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 97.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <6> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 97.
+
+Underfull \hbox (badness 10000) in paragraph at lines 97--97
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 97--97
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 97--97
+
+ []
+
+
+Overfull \hbox (25.78978pt too wide) in paragraph at lines 97--97
+[]
+ []
+
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <8> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 119.
+LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <5> not available
+(Font) Font shape `OT1/ptm/b/n' tried instead on input line 119.
+
+Overfull \hbox (0.88554pt too wide) in paragraph at lines 119--119
+ []\T1/ptm/m/n/8 KPL
+ []
+
+LaTeX Font Info: Font shape `T1/ptm/bx/n' in size <8> not available
+(Font) Font shape `T1/ptm/b/n' tried instead on input line 157.
+
+Overfull \hbox (4.40144pt too wide) in paragraph at lines 157--157
+[]
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 443--443
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 443--443
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 443--443
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 443--443
+
+ []
+
+
+Underfull \hbox (badness 10000) in paragraph at lines 443--443
+
+ []
+
+[1
+
+{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./lasku.aux) )
+Here is how much of TeX's memory you used:
+ 3111 strings out of 492648
+ 42945 string characters out of 6132015
+ 124524 words of memory out of 5000000
+ 6924 multiletter control sequences out of 15000+600000
+ 56062 words of font info for 86 fonts, out of 8000000 for 9000
+ 1141 hyphenation exceptions out of 8191
+ 41i,26n,25p,453b,427s stack positions out of 5000i,500n,10000p,200000b,80000s
+{/usr/share
+/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc}</usr/share/texlive/texmf-dist/
+fonts/type1/public/eurosym/feymr10.pfb></usr/share/texlive/texmf-dist/fonts/typ
+e1/urw/courier/ucrr8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/urw/times/
+utmb8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/urw/times/utmr8a.pfb>
+Output written on lasku.pdf (1 page, 47506 bytes).
+PDF statistics:
+ 25 PDF objects out of 1000 (max. 8388607)
+ 17 compressed objects within 1 object stream
+ 0 named destinations out of 1000 (max. 500000)
+ 1 words of extra memory for PDF output out of 10000 (max. 10000000)
+
diff --git a/lasku.pdf b/lasku.pdf
new file mode 100644
index 0000000..cb7c93e
--- /dev/null
+++ b/lasku.pdf
Binary files differ
diff --git a/lasku.py b/lasku.py
index 6ee3b6f..110c636 100755
--- a/lasku.py
+++ b/lasku.py
@@ -9,6 +9,9 @@ import yaml
def debug(*args):
sys.stderr.write('{}\n'.format(' '.join(str(x) for x in args)))
+def round(f):
+ return int(f + 0.5)
+
def euros(cents):
return '%.02f' % (cents / 100.0)
@@ -18,51 +21,93 @@ class Item:
def __init__(self, itemdict):
self.dict = dict(itemdict)
- count = itemdict['count']
- if count == "":
- return
+ bignum = 99999999
+ self.dict.update({
+ 'unit_net_cents': bignum,
+ 'unit_vat_cents': bignum,
+ 'unit_cents': bignum,
+ 'total_net_cents': bignum,
+ 'total_vat_cents': bignum,
+ 'total_cents': bignum,
+ })
+
+ self.compute()
+ self.check()
+
+ self.dict.update({
+ 'unit_net_euros': euros(self['unit_net_cents']),
+ 'unit_vat_euros': euros(self['unit_vat_cents']),
+ 'unit_euros': euros(self['unit_cents']),
+ 'total_net_euros': euros(self['total_net_cents']),
+ 'total_vat_euros': euros(self['total_vat_cents']),
+ 'total_euros': euros(self['total_cents']),
+ })
+
+ def __getitem__(self, key):
+ return self.dict[key]
+
+ def __setitem__(self, key, value):
+ self.dict[key] = value
- unit_cents = int(itemdict['unit'] * 100.0)
- vatpc = float(itemdict['vatpc']) / 100.0
+ def items(self):
+ return self.dict.items()
- self.total_cents = count * unit_cents
+ def check(self):
+ count = self['count']
+ vatpc = int(self['vatpc'] / 100.0)
+ unit_net_cents = self['unit_net_cents']
+ unit_vat_cents = self['unit_vat_cents']
+ unit_cents = self['unit_cents']
+ total_net_cents = self['total_net_cents']
+ total_vat_cents = self['total_vat_cents']
+ total_cents = self['total_cents']
+
+ debug(self.dict)
+
+ assert unit_net_cents * count == total_net_cents, \
+ '{} * {} != {}'.format(unit_net_cents, count, total_net_cents)
+
+ assert unit_net_cents + unit_vat_cents == unit_cents, \
+ '{} + {} != {}'.format(unit_net_cents, unit_vat_cents, unit_cents)
+
+ assert total_cents == count * (unit_net_cents + unit_vat_cents), \
+ '{} != {} * ({} + {})'.format(
+ total_net_cents, count, unit_net_cents, unit_vat_cents)
- self.vat_cents = 0
if vatpc > 0:
- unit_cents_with_vat = int(unit_cents / (1.0 - vatpc))
- unit_vat_cents = unit_cents_with_vat - unit_cents
- debug('dict', self.dict)
- debug('total_cents', self.total_cents)
- debug('vatpc', vatpc)
- debug('unit_cents_with_vat', unit_cents_with_vat)
- debug('unit_vat_cents', unit_vat_cents)
- debug('calc', int(vatpc * unit_cents_with_vat))
- assert int(unit_cents_with_vat * vatpc) == unit_vat_cents
- assert unit_cents_with_vat == unit_cents + unit_vat_cents
- self.vat_cents = unit_vat_cents * count
+ assert unit_cents == unit_net_cents + unit_vat_cents, \
+ '{} != {} + {}'.format(unit_cents, unit_net_cents, unit_vat_cents)
- self.dict.update({
- 'unit_euros': euros(unit_cents),
- 'total_cents': self.total_cents,
- 'total': euros(self.total_cents),
- 'unitwithvat': euros(unit_cents + self.vat_cents),
- 'vat_cents': self.vat_cents,
- 'vat': euros(self.vat_cents),
- 'vatsum': euros(self.vat_cents * count),
- 'totalwithvat': euros(count * (unit_cents + self.vat_cents)),
- })
+ assert total_vat_cents == count * unit_vat_cents, \
+ '{} != {} * {}'.format(total_vat_cents, count, unit_net_cents)
+
+ assert round(total_cents * vatpc) == total_vat_cents, \
+ '{} * {} != {}'.format(
+ total_cents, vatpc, total_vat_cents)
+
+ def compute(self):
+ count = self['count']
+ vatpc = float(self['vatpc']) / 100.0
+
+ unit_net_cents = self['unit_net_cents'] = round(self['unit'] * 100.0)
+ unit_vat_cents = self['unit_vat_cents'] = round(
+ unit_net_cents * vatpc / (1 - vatpc))
+ unit_cents = self['unit_cents'] = unit_net_cents + unit_vat_cents
+ self['total_net_cents'] = unit_net_cents * count
+ self['total_vat_cents'] = unit_vat_cents * count
+ self['total_cents'] = count * unit_cents
item_template = (
r'\raggedbottom #number# & '
r'\parbox[t]{5.5cm}{#desc#\\#date#} & '
r'\raggedbottom #count# & '
+ r'\raggedbottom #unit_net_euros# & '
r'\raggedbottom #unit_euros# & '
- r'\raggedbottom #unitwithvat# & '
r'\raggedbottom #vatpc#\% & '
- r'\raggedbottom #total# & '
- r'\raggedbottom #vatsum# & '
- r'\raggedbottom #totalwithvat# \\[2.2ex]'
+ r'\raggedbottom #total_net_euros# & '
+ r'\raggedbottom #total_vat_euros# & '
+ r'\raggedbottom #total_euros# \\[2.2ex]'
)
@@ -90,21 +135,21 @@ values = dict(company)
values.update(invoice)
itemtext = ''
-total_cents = 0
-total_vat = 0
-total_sum = 0
+sum_net_cents = 0
+sum_vat_cents = 0
+sum_cents = 0
for item in items:
it = Item(item)
- itemtext += substitute_all(item_template, it.dict)
- total_cents += it.total_cents
- total_vat += it.vat_cents
- total_sum += it.total_cents + it.vat_cents
+ itemtext += substitute_all(item_template, it)
+ sum_net_cents += it['total_net_cents']
+ sum_vat_cents += it['total_vat_cents']
+ sum_cents += it['total_cents']
values['itemtext'] = itemtext
-values['totalraw'] = euros(total_cents)
-values['totalvat'] = euros(total_vat)
-values['totalsum'] = euros(total_sum)
+values['totalraw'] = euros(sum_net_cents)
+values['totalvat'] = euros(sum_vat_cents)
+values['totalsum'] = euros(sum_cents)
values['amount'] = values['totalsum']
diff --git a/lasku.tex b/lasku.tex
new file mode 100644
index 0000000..9e54c1e
--- /dev/null
+++ b/lasku.tex
@@ -0,0 +1,465 @@
+% Standard Finnish Invoice Template v0.4
+% Copyright 2008 Jaakko Heusala <jheusala@iki.fi>
+%
+% See README in finnish for instructions.
+%
+% $Id: invoice.tex 4581 2008-02-24 18:59:30Z jheusala $
+% [The zlib/libpng License]
+%
+% This software is provided 'as-is', without any express or implied
+% warranty. In no event will the authors be held liable for any damages
+% arising from the use of this software.
+%
+% Permission is granted to anyone to use this software for any purpose,
+% including commercial applications, and to alter it and redistribute it
+% freely, subject to the following restrictions:
+%
+% 1. The origin of this software must not be misrepresented; you must not
+% claim that you wrote the original software. If you use this software
+% in a product, an acknowledgment in the product documentation would be
+% appreciated but is not required.
+%
+% 2. Altered source versions must be plainly marked as such, and must not be
+% misrepresented as being the original software.
+%
+% 3. This notice may not be removed or altered from any source
+% distribution.
+%
+
+\documentclass[a4paper,10pt]{letter}
+\title{Lasku 1/2018}
+\date{1.7.2018}
+\usepackage{pslatex}
+\usepackage[utf8]{inputenc}
+\usepackage[finnish]{babel}
+\pagestyle{empty}
+\usepackage[left=0cm,top=0cm,right=0cm,bottom=0cm,nohead,nofoot]{geometry}
+\usepackage[gen]{eurosym}
+\usepackage{color}
+%\usepackage{pstricks}
+\usepackage{rotating}
+\usepackage[T1]{fontenc} % Fixes scandinavian character problem
+\begin{document}
+
+\setlength{\unitlength}{1mm}
+\begin{picture}(210,297)(0,0)
+
+%% Document Header
+\fontsize{12pt}{14pt}
+\selectfont
+\put(20,277){
+ \begin{tabular}[t]{@{}p{8.5cm}@{}p{8.5cm}@{}r}
+ \parbox[t]{9.5cm}{
+ \fontsize{16pt}{18pt}
+ \selectfont
+ \textsc{Docstory T:mi} \\
+ \fontsize{12pt}{14pt}
+ \selectfont
+ Soile Mottisenkangas \\
+ Pohjavedenkatu 12 F 39 \\
+ 00980 Helsinki \\
+ \\
+ \\
+ QvarnLabs Ab \\
+ Bulevardi 7 \\
+ 00120 Helsinki
+ }
+ &
+ \parbox[t]{8.5cm}{
+ LASKU \\
+ \\
+ 1.7.2018
+ \\
+ \\
+ \\
+ \framebox{
+ \fontsize{10pt}{11pt}
+ \selectfont
+ \begin{tabular}[t]{@{}l@{}l@{}}
+ \begin{tabular}[t]{@{}ll}
+ Laskun numero: & 1/2018 \\
+ Asiakasnumero: & 12765 \\
+ Päivämäärä: & 1.7.2018 \\
+ Maksuehdot: & 14 pv netto \\
+ Eräpäivä: & 15.7.2018 \\
+ \end{tabular}
+ &
+ \begin{tabular}[t]{@{}ll}
+ Maksettava: & 257.00 \euro \\
+ Huomautusaika: & 8 vrk \\
+ Viivästyskorko: & 10,0\% \\
+ Muistutusmaksu: & 5,00 \euro \\
+ \end{tabular}
+ \end{tabular}
+ }
+ } & 1 (1) \\
+ \end{tabular}
+}
+
+
+\fontsize{8pt}{9pt}
+\selectfont
+\put(10,222){
+
+\begin{tabular}[t]{@{}rlrrrrrrr@{}}
+ \parbox[t]{0.50cm}{\raggedleft Rivi\\nro} &
+ \parbox[t]{5.5cm}{Tuote/palvelu} &
+ \parbox[t]{0.50cm}{\raggedleft KPL} &
+ \parbox[t]{1.5cm}{\raggedleft A-hinta\\veroton} &
+ \parbox[t]{1.5cm}{\raggedleft A-hinta\\verollinen} &
+ \parbox[t]{1.5cm}{\raggedleft ALV-\%} &
+ \parbox[t]{1.5cm}{\raggedleft Veroton\\yhteensä} &
+ \parbox[t]{1.5cm}{\raggedleft ALV\\yhteensä} &
+ \parbox[t]{1.5cm}{\raggedleft Verollinen\\yhteensä} \\[2.5ex]
+\hline
+\raggedbottom 1 & \parbox[t]{5.5cm}{Elokuvaohjaus\\1-15.6.2018} & \raggedbottom 1 & \raggedbottom 100.0 & \raggedbottom 24.00 & \raggedbottom 24\% & \raggedbottom 100.00 & \raggedbottom 24.00 & \raggedbottom 124.00 \\[2.2ex]\raggedbottom 2 & \parbox[t]{5.5cm}{Elämää\\1.5.2018} & \raggedbottom 1 & \raggedbottom 100.0 & \raggedbottom 33.00 & \raggedbottom 33\% & \raggedbottom 100.00 & \raggedbottom 33.00 & \raggedbottom 133.00 \\[2.2ex]
+\hline
+& Yhteensä & & & & & 200.00 & 57.00 & 257.00 \\
+\end{tabular}
+}
+
+
+
+%% Additional info
+\put(10,120){ \parbox[t]{200cm}{Muistutuksesta perimme 5,00 euron muistutusmaksun.} }
+
+
+%% Company Contact Info
+\fontsize{8pt}{8.5pt}
+\selectfont
+\put(10,110){
+ \begin{tabular}{p{3cm}p{3cm}p{4cm}p{4cm}p{3.25cm}@{}}
+ \hline
+ \\
+ \parbox[t]{3cm}{
+ \textbf{Docstory T:mi}\\
+ \mbox{Pohjavedenkatu 12 F 39}\\
+ \mbox{00980 Helsinki}
+ } &
+ \parbox[t]{3cm}{
+ Y-tunnus: \mbox{2924646-9} \\
+ Kotipaikka: Helsinki \\
+ {\tt \mbox{http://www.docstory.fi}}
+ } &
+ \parbox[t]{4cm}{
+ Sähköposti: {\tt \mbox{soile@docstory.fi}}\\
+ Puhelin: \mbox{+358 40 370 5224}
+ } &
+ \parbox[t]{4cm}{
+ Tilinumero:\\
+ IBAN: {\tt \mbox{FI45 5780 0720 5070 73}}
+ } &
+ \parbox[t]{3.25cm}{
+ Viitenumero: {\tt \mbox{5123010105}} \\
+ VAT: {\tt \mbox{}}
+ } \\
+ \end{tabular}
+}
+
+%% Standard Finnish Bank Transfer Form
+\linethickness{0.5mm}
+
+%% For debug
+%\color{red}
+%\put(0,0){\circle{10}}
+%\put(210,0){\circle{10}}
+%\put(0,101.6){\circle{10}}
+%\put(210,101.6){\circle{10}}
+%
+%% For debug
+%\put(5,5){\makebox(0,0){0,0}}
+%\put(200,5){\makebox(0,0){210,0}}
+%\put(7,99){\makebox(0,0){0,101.6}}
+%\put(200,99){\makebox(0,0){210,101.6}}
+
+% Bold Vertical lines
+\color{blue}
+%\put(20.32,69.85){\circle{10}}
+\put(20.32,69.85){\line(0,1){31.75}}
+%\put(111.76,27.5166667){\circle{10}}
+\put(111.76,27.5166667){\line(0,1){74.0833333}}
+%\put(124.46,27.5166667){\circle{10}}
+\put(124.46,27.5166667){\line(0,1){16.9333333}}
+%\put(157.48,27.5166667){\circle{10}}
+\put(157.48,27.5166667){\line(0,1){8.46666667}}
+
+% Bold Horizontal lines
+%\put(111.76,84.6666667){\circle{10}}
+\put(111.76,84.6666667){\line(-1,0){106.68}}
+\put(111.76,84.6666667){\line(1,0){91.44}}
+
+%\put(111.76,69.85){\circle{10}}
+\put(111.76,69.85){\line(-1,0){106.68}}
+
+%\put(111.76,44.45){\circle{10}}
+\put(111.76,44.45){\line(1,0){91.44}}
+
+%\put(111.76,35.9833333){\circle{10}}
+\put(111.76,35.9833333){\line(-1,0){106.68}}
+\put(111.76,35.9833333){\line(1,0){91.44}}
+
+%\put(111.76,27.5166667){\circle{10}}
+\put(111.76,27.5166667){\line(-1,0){106.68}}
+\put(111.76,27.5166667){\line(1,0){91.44}}
+
+%\put(52.49333333,29.6333333){\line(1,0){1.69333333}} % Tilinumeron viiva
+
+%\put(20.32,27.5166667){\circle{10}}
+\put(20.32,27.5166667){\line(0,1){8.46666667}}
+
+% Normal lines
+\linethickness{0.13mm}
+
+%% Debug line
+%\color{red}
+%\put(0,101.6){\line(1,0){210}}
+%\color{blue}
+
+% Normal Vertical Lines
+%\put(20.32,27.5166667){\circle{10}}
+%\put(20.32,27.5166667){\line(0,1){8.46666667}}
+%\put(25.40,27.5166667){\line(0,1){2.11666667}} % 01
+%\put(30.48,27.5166667){\line(0,1){2.11666667}} % 02
+%\put(35.56,27.5166667){\line(0,1){2.11666667}} % 03
+%\put(40.64,27.5166667){\line(0,1){2.11666667}} % 04
+%\put(45.72,27.5166667){\line(0,1){2.11666667}} % 05
+%\put(50.80,27.5166667){\line(0,1){2.11666667}} % 06
+%\put(55.88,27.5166667){\line(0,1){2.11666667}} % 07
+%\put(60.96,27.5166667){\line(0,1){2.11666667}} % 08
+%\put(66.04,27.5166667){\line(0,1){2.11666667}} % 09
+%\put(71.12,27.5166667){\line(0,1){2.11666667}} % 10
+%\put(76.20,27.5166667){\line(0,1){2.11666667}} % 11
+%\put(81.28,27.5166667){\line(0,1){2.11666667}} % 12
+%\put(86.36,27.5166667){\line(0,1){2.11666667}} % 13
+%\put(91.44,27.5166667){\line(0,1){2.11666667}} % 14
+%\put(96.52,27.5166667){\line(0,1){2.11666667}} % 15
+
+%\put(161.29,84.6666667){\circle{10}}
+\put(161.29,84.6666667){\line(0,1){16.9333333}}
+
+% Normal Horizontal lines
+%\put(20.02,40.2166667){\circle{10}}
+\put(20.02,40.2166667){\line(1,0){91.44}} % 20.02 should be 20.32 (8/10 inches)
+
+% Texts
+
+% Tilinumero
+\put(0,84.6666667){
+ \makebox(19,16.9333333)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Saajan\\
+ tilinumero\\
+ Mottagarens\\
+ kontonummer
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Saaja
+\put(0,69.85){
+ \makebox(19,14.8166667)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Saaja\\
+ Mottagare
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Maksaja
+\put(0,52){
+ \makebox(19,14.8166667)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Maksajan\\
+ nimi ja\\
+ osoite \\
+ Betalarens \\
+ namn och \\
+ adress
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Allekirjoitus
+\put(0,35.9833333){
+ \makebox(19,14.8166667)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Alle-\\
+ kirjoitus\\
+ Underskrift
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Tililtä nro
+\put(0,27.5166667){
+ \makebox(19,8.46666667)[r]{
+ \begin{minipage}[r]{19mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ \begin{flushright}
+ Tililtä nro\\
+ Från konto nr
+ \end{flushright}
+ \end{minipage}
+ }
+}
+
+% Viitenumero
+\put(111.5,35.9833333){
+ \makebox(12.7,8.46666667)[l]{
+ \begin{minipage}[l]{12.7mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ Viitenro\\
+ Ref.nr
+ \end{minipage}
+ }
+}
+
+% Eräpäivä
+\put(111.5,27.5166667){
+ \makebox(12.7,8.46666667)[l]{
+ \begin{minipage}[l]{12.7mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ Eräpäivä\\
+ Förf.dag
+ \end{minipage}
+ }
+}
+
+% Euro
+\put(157,26.5){
+ \makebox(12.7,8.46666667)[tl]{
+ \begin{minipage}[tl]{12.7mm}
+ \fontsize{7pt}{8pt}
+ \selectfont
+ Euro
+ \end{minipage}
+ }
+}
+
+
+% Tilisiirtoteksti
+\put(4.5,37){
+ \begin{sideways}
+ \fontsize{8pt}{8.5pt}
+ \selectfont
+ \textbf{TILISIIRTO GIRERING}
+ \end{sideways}
+}
+
+% Maksu välitetään -teksti
+%\put(150,5){\circle{10}}
+\put(150,5){
+ \makebox(52,12)[t]{
+ \begin{minipage}[t]{52mm}
+ \fontsize{5pt}{5.5pt}
+ \selectfont
+ Maksu välitetään saajalle vain Suomessa Kotimaan maksujenvälityksen yleisten
+ ehtojen mukaisesti ja vain maksajan ilmoittaman tilinumeron perusteella. \\
+ Betalningen förmedlas till mottagare endast i Finland enligt Allmänna villkor för
+ inrikes betalningsförmedling och endast till det kontonummer betalaren angivit.
+ \end{minipage}
+ }
+}
+
+
+\color{black}
+\fontsize{9pt}{10pt}
+\selectfont
+
+% Saajan tilinumero
+%\put(20.32,86.5){\circle{10}}
+\put(20.32,86.5){
+ \makebox(91.44,16.9333333)[bl]{
+ \begin{minipage}[bl]{91.44mm}
+ \fontsize{9pt}{10pt}
+ \selectfont
+ FI45 5780 0720 5070 73
+ \end{minipage}
+ }
+}
+
+% Saaja
+
+\put(20.32,68.25){
+ \makebox(91.44,13.7)[tl]{
+ \begin{minipage}[tl]{91.44mm}
+ \fontsize{9pt}{10pt}
+ \selectfont
+ Docstory T:mi \\
+ Pohjavedenkatu 12 F 39 \\
+ 00980 Helsinki
+ \end{minipage}
+ }
+}
+
+% Maksaja
+\put(20.32,35.9833333){
+ \makebox(91.44,29.6333333)[tl]{
+ \begin{minipage}[tl]{91.44mm}
+ \fontsize{9pt}{10pt}
+ \selectfont
+ QvarnLabs Ab \\
+ Bulevardi 7 \\
+ 00120 Helsinki
+ \end{minipage}
+ }
+}
+
+% Viestiosa
+\put(114.3,44.45){
+ \makebox(81.28,38)[tl]{
+ \begin{minipage}[tl]{81.28mm}
+ \fontsize{9pt}{10pt}
+ \selectfont
+ Laskunumero: 1/2018 \\
+ Asiakasnumero: 12765 \\
+ \\
+ \\
+ \\
+ \\
+ \\
+ Viitenumero mainittava maksaessa!
+ \end{minipage}
+ }
+}
+
+% Viitenumero
+\put(132.08,39){ 5123010105 } % Viitenumero
+\put(132.08,30){ 15.7.2018 } % Eräpäivä
+\put(168,30){ 257.00 } % Summa
+
+
+%% Viivakoodi
+%\put(20.32,3){
+% \X=.25mm
+% \barheight=12mm
+% \code{2574136020371846000964220000000000512301010508081000001}
+%}
+
+% Pankki-teksti
+\color{blue}
+\fontsize{6pt}{10pt}
+\selectfont
+\put(185,2){ PANKKI BANKEN }
+
+\end{picture}
+\end{document}