2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-19 11:38:05 +02:00
LaTeX-examples/documents/Einnahmenueberschussrechnung/EUR.tex

103 lines
4.1 KiB
TeX
Raw Normal View History

2014-01-13 12:27:52 +01:00
\documentclass[a4paper, 12pt]{article}
\usepackage[utf8]{inputenc} % this is needed for umlauts
\usepackage[ngerman]{babel} % this is needed for umlauts
\usepackage[T1]{fontenc} % needed for right umlaut output in pdf
\usepackage[ngerman, num]{isodate} % get DD.MM.YYYY dates
2014-01-13 14:37:51 +01:00
\usepackage[locale=DE,group-minimum-digits={3}]{siunitx}
2014-01-13 12:27:52 +01:00
\usepackage{parskip}
\usepackage{fancyhdr}
\usepackage[rmargin=2.4cm]{geometry}
2014-01-13 13:24:52 +01:00
\usepackage{csvsimple}
\usepackage{pgfplots}
\usepackage{myInformation}
2014-01-13 12:27:52 +01:00
\fancypagestyle{appendix}{%
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
}
2014-01-13 12:27:52 +01:00
\setlength{\headheight}{15pt} % fixes \headheight warning
\lhead{\Vorname{}~\Nachname{}, \Strasse{}, \PLZ{}~\Ort}
\rhead{Id-Nr. \Idnr}
% Begin document %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\pagestyle{fancy}
\section*{Überschussrechnung \Year}
\subsection*{Einnahmen}
2014-01-13 13:24:52 +01:00
\csvreader[before reading=\def\einnahmen{0},separator=semicolon]{2013-einnahmen-selbststaendig.csv}{Betrag=\Betrag}{%
\pgfmathsetmacro{\einnahmen}{\einnahmen+\Betrag}%
}
\begin{tabular}{|p{2.5cm}|p{2.5cm}|p{7cm}|p{2cm}|}\hline%
\textbf{Rechnungs-\newline{}nummer} & \textbf{Rechnungs-\newline{datum}} & \textbf{Text} & \textbf{Betrag\newline{}in EUR}
\csvreader[head to column names,separator=semicolon]{2013-einnahmen-selbststaendig.csv}{}%
{\\\hline\Rechnungsnummer & \Rechnungsdatum & \Text &\hfill\num[round-mode=places,round-precision=2]{\Betrag}}%
2014-01-13 13:24:52 +01:00
\\\hline\hline
\multicolumn{3}{|l|}{Summe} & \hfill\num[round-mode=places,round-precision=2]{\einnahmen}
\\\hline
\end{tabular}
2014-01-13 12:27:52 +01:00
\subsection*{Ausgaben}
2014-01-13 13:24:52 +01:00
\csvreader[before reading=\def\ausgaben{0},separator=semicolon]{2013-ausgaben.csv}{Betrag=\Betrag}{%
\pgfmathsetmacro{\ausgaben}{\ausgaben+\Betrag}%
}
\begin{tabular}{|p{2cm}|p{10.4cm}|p{2cm}|}\hline%
\textbf{Datum} & \textbf{Text} & \textbf{Betrag}
\csvreader[head to column names,separator=semicolon]{2013-ausgaben.csv}{}%
{\\\hline\Datum & \Text &\hfill\num[round-mode=places,round-precision=2]{\Betrag}}%
2014-01-13 13:24:52 +01:00
\\\hline\hline
\multicolumn{2}{|l|}{Summe} & \hfill\num[round-mode=places,round-precision=2]{\ausgaben}
\\\hline
\end{tabular}
\vfill\pgfmathsetmacro{\gewinn}{\einnahmen-\ausgaben}
\textbf{Gewinn / Verlust:}\hfill\num[round-mode=places,round-precision=2]{\gewinn}
2014-01-13 12:27:52 +01:00
\clearpage
\subsection*{Sonstige Einnahmen aus selbstständiger Tätigkeit}
2014-01-13 13:24:52 +01:00
\csvreader[before reading=\def\selbststaendig{0},separator=semicolon]{2013-einnahmen-sonstiges.csv}{Betrag=\Betrag}{%
\pgfmathsetmacro{\selbststaendig}{\selbststaendig+\Betrag}%
}
\begin{tabular}{|p{2cm}|p{10.4cm}|p{2cm}|}\hline%
\textbf{Datum} & \textbf{Text} & \textbf{Betrag}
\csvreader[head to column names,separator=semicolon]{2013-einnahmen-sonstiges.csv}{}%
{\\\hline\Datum & \Text &\hfill\num[round-mode=places,round-precision=2]{\Betrag}}%
2014-01-13 13:24:52 +01:00
\\\hline\hline
\multicolumn{2}{|l|}{Summe} & \hfill\num[round-mode=places,round-precision=2]{\selbststaendig}
\\\hline
\end{tabular}
2014-01-13 12:27:52 +01:00
\subsection*{Einnahmen aus Kapitalerträgen}
2014-01-13 13:24:52 +01:00
\csvreader[before reading=\def\kapitalsum{0},separator=semicolon]{2013-kapitalertraege.csv}{Betrag=\Betrag}{%
\pgfmathsetmacro{\kapitalsum}{\kapitalsum+\Betrag}%
}
\begin{tabular}{|p{2cm}|p{10.4cm}|p{2cm}|}\hline%
\textbf{Datum} & \textbf{Text} & \textbf{Betrag}
\csvreader[head to column names,separator=semicolon]{2013-kapitalertraege.csv}{}%
{\\\hline\Datum & \Text &\hfill\num[round-mode=places,round-precision=2]{\Betrag}}%
2014-01-13 13:24:52 +01:00
\\\hline\hline
\multicolumn{2}{|l|}{Summe} & \hfill\num[round-mode=places,round-precision=2]{\kapitalsum}
\\\hline
\end{tabular}
2014-01-13 12:27:52 +01:00
\subsection*{Einnahmen aus nicht-selbstständiger Tätigkeit}
\csvreader[before reading=\def\nichstselbststaendig{0},separator=semicolon]{2013-nicht-selbststaendig.csv}{Betrag=\Betrag}{%
\pgfmathsetmacro{\nichstselbststaendig}{\nichstselbststaendig+\Betrag}%
}
\begin{tabular}{|p{2cm}|p{10.4cm}|p{2cm}|}\hline%
\textbf{Datum} & \textbf{Text} & \textbf{Betrag}
\csvreader[head to column names,separator=semicolon]{2013-nicht-selbststaendig.csv}{}%
{\\\hline\Datum & \Text &\hfill\num[round-mode=places,round-precision=2]{\Betrag}}%
\\\hline\hline
\multicolumn{2}{|l|}{Summe} & \hfill\num[round-mode=places,round-precision=2]{\nichstselbststaendig}
\\\hline
\end{tabular}
2014-01-13 12:27:52 +01:00
\end{document}