| 1 |
%% |
| 2 |
%% This is file `diadia-example', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% diadia.dtx (with options: `examplefile') |
| 8 |
%% |
| 9 |
%% Copyright (C) 2015 by: |
| 10 |
%% Josef Kleber |
| 11 |
%% <[email protected]> |
| 12 |
%% |
| 13 |
%% This file may be distributed and/or modified under the conditions of |
| 14 |
%% the LaTeX Project Public License, either version 1.3 of this license |
| 15 |
%% or (at your option) any later version. The latest version of this |
| 16 |
%% license is in: |
| 17 |
%% |
| 18 |
%% http://www.latex-project.org/lppl.txt |
| 19 |
%% |
| 20 |
%% and version 1.3 or later is part of all distributions of LaTeX version |
| 21 |
%% 2003/12/01 or later. |
| 22 |
%% |
| 23 |
%% This work has the LPPL maintenance status "maintained". |
| 24 |
%% |
| 25 |
%% The Current Maintainer of this work is Josef Kleber. |
| 26 |
%% |
| 27 |
%% This work consists of all files listed in manifest.txt. |
| 28 |
%% |
| 29 |
\documentclass[a4paper,DIV=13,parskip]{scrreprt} |
| 30 |
\usepackage[english]{babel} |
| 31 |
\usepackage[utf8]{inputenc} |
| 32 |
\usepackage[T1]{fontenc} |
| 33 |
\usepackage{textcomp} |
| 34 |
\usepackage[tabcolor=gray!40,tabstyle=advanced]{diadia} |
| 35 |
\usepackage{bera} |
| 36 |
\usepackage{marvosym} |
| 37 |
\usepackage{hyperref} |
| 38 |
\begin{document} |
| 39 |
\pgfplotstableset{columns/date/.append style={date type={\day.\month.\year}}} |
| 40 |
\pgfplotsset{xlabel=2015, |
| 41 |
tick label style={font=\footnotesize}} |
| 42 |
\title{My Diabetes Diary} |
| 43 |
\author{John Doe} |
| 44 |
\maketitle |
| 45 |
\centering |
| 46 |
\chapter{Long term values} |
| 47 |
|
| 48 |
\begin{diadiasidebyside} |
| 49 |
\diadiatab{}{hba1c.dat} |
| 50 |
|
| 51 |
\begin{diadiaplot}[plotstyle=hbaonec]{xmin=2015-02-01,xmax=2015-04-30} |
| 52 |
\diadiaaddplot{}{x=date,y=hba1c}{hba1c.dat} |
| 53 |
\end{diadiaplot} |
| 54 |
\end{diadiasidebyside} |
| 55 |
|
| 56 |
\vfill |
| 57 |
\begin{diadiaplot}[plotstyle=bloodsugar] |
| 58 |
{width=\textwidth, |
| 59 |
height=11cm, |
| 60 |
legend style={at={(0.5,-0.15)},font=\footnotesize,anchor=north,legend columns=-1}, |
| 61 |
xtick={2015-03-01,2015-04-01,2015-05-01}, |
| 62 |
xmin=2015-02-18, |
| 63 |
xmax=2015-04-30} |
| 64 |
\diadiaaddplot{plot4,nomarks}{x=date,y=avg90}{ddbsl1avg.dat} |
| 65 |
\diadiaaddplot{plot3,nomarks}{x=date,y=avg30}{ddbsl1avg.dat} |
| 66 |
\diadiaaddplot{plot2,nomarks}{x=date,y=avg07}{ddbsl1avg.dat} |
| 67 |
\diadiaaddplot{plot1}{x=date,y=value}{ddbsl1avg.dat} |
| 68 |
\legend{$\varnothing_{90}$,$\varnothing_{30}$,$\varnothing_{7}$,morning} |
| 69 |
\end{diadiaplot} |
| 70 |
\chapter{February 2015} |
| 71 |
\section{Data} |
| 72 |
\diadiatab{font=\small}{201502.dat} |
| 73 |
|
| 74 |
\vspace{1cm} |
| 75 |
\begin{diadiasidebyside} |
| 76 |
\begin{diadiaplot}[plotstyle=bloodsugar]{xmin=2015-02-18,xmax=2015-02-28} |
| 77 |
\diadiaaddplot{}{x=date,y=bsl1}{diadia.dat} |
| 78 |
\diadiaaddplot{}{x=date,y=bsl2}{diadia.dat} |
| 79 |
\diadiaaddplot{}{x=date,y=bsl3}{diadia.dat} |
| 80 |
\legend{morning,noon,evening} |
| 81 |
\end{diadiaplot} |
| 82 |
|
| 83 |
\begin{diadiaplot}[plotstyle=insulin]{xmin=2015-02-18,xmax=2015-02-27} |
| 84 |
\diadiaaddplot{}{x=date,y=id1}{diadia.dat} |
| 85 |
\diadiaaddplot{}{x=date,y=id2}{diadia.dat} |
| 86 |
\diadiaaddplot{}{x=date,y=id3}{diadia.dat} |
| 87 |
\legend{morning,noon,evening} |
| 88 |
\end{diadiaplot} |
| 89 |
|
| 90 |
\begin{diadiaplot}[plotstyle=bloodpressure]{xmin=2015-02-18,xmax=2015-02-27} |
| 91 |
\diadiaaddplot{}{x=date,y=bps}{diadia.dat} |
| 92 |
\diadiaaddplot{}{x=date,y=bpd}{diadia.dat} |
| 93 |
\legend{systolic,diastolic} |
| 94 |
\end{diadiaplot} |
| 95 |
|
| 96 |
\begin{diadiaplot}[plotstyle=pulse]{xmin=2015-02-18,xmax=2015-02-27} |
| 97 |
\diadiaaddplot{}{x=date,y=pul}{diadia.dat} |
| 98 |
\end{diadiaplot} |
| 99 |
\end{diadiasidebyside} |
| 100 |
|
| 101 |
\vspace{1cm} |
| 102 |
\begin{diadiasidebyside} |
| 103 |
\begin{diadiaplot}[plotstyle=weight]{xmin=2015-02-18,xmax=2015-02-27} |
| 104 |
\diadiaaddplot{ddpweightplot}{x=date,y=weight}{diadia.dat} |
| 105 |
\end{diadiaplot} |
| 106 |
|
| 107 |
\begin{diadiaplot}[plotstyle=cu]{xmin=2015-02-18,xmax=2015-02-27,enlargelimits=.08} |
| 108 |
\diadiaaddplot{}{x=date,y=cu}{diadia.dat} |
| 109 |
\end{diadiaplot} |
| 110 |
\end{diadiasidebyside} |
| 111 |
\section{Pharmaceuticals} |
| 112 |
\begin{medicationchart}{}{16.02.2015} |
| 113 |
\mcentry{Oxycodon-HCI STADA 10mg Retardtabletten}{1}{1}{1}{0}{} |
| 114 |
\mcentry{Insulin}{1}{1}{1}{0}{see data} |
| 115 |
\mcentry{Unacid 3g}{1}{0}{1}{1}{infusion 08:00, 16:00, 00:00} |
| 116 |
\mcentry{Mono-Embolex 3000 I.E. Prophylaxe}{0}{0}{1}{0}{} |
| 117 |
\end{medicationchart} |
| 118 |
\begin{medicationchart}{}{24.02.2015} |
| 119 |
\mcentry{Oxycodon-HCI STADA 10mg Retardtabletten}{0}{0}{1}{0}{} |
| 120 |
\mcentry{Insulin}{1}{1}{1}{0}{see data} |
| 121 |
\mcentry{Mono-Embolex 3000 I.E. Prophylaxe}{0}{0}{1}{0}{} |
| 122 |
\end{medicationchart} |
| 123 |
\begin{medicationchart}{}{28.02.2015} |
| 124 |
\mcentry{Oxycodon-HCI STADA 10mg Retardtabletten}{0}{0}{1}{0}{} |
| 125 |
\mcentry{Metformin}{2}{0}{2}{0}{} |
| 126 |
\mcentry{Mono-Embolex 3000 I.E. Prophylaxe}{0}{0}{1}{0}{} |
| 127 |
\end{medicationchart} |
| 128 |
\chapter{March 2015} |
| 129 |
\section{Data} |
| 130 |
\begin{diadiasidebyside} |
| 131 |
\diadiatab{columns={date,bsl1,bsl2,bsl3}}{201503.dat} |
| 132 |
|
| 133 |
\begin{diadiaplot}[plotstyle=bloodsugar]{xmin=2015-03-01,xmax=2015-03-31} |
| 134 |
\diadiaaddplot{}{x=date,y=bsl1}{diadia.dat} |
| 135 |
\diadiaaddplot{}{x=date,y=bsl2}{diadia.dat} |
| 136 |
\diadiaaddplot{}{x=date,y=bsl3}{diadia.dat} |
| 137 |
\legend{morning,noon,evening} |
| 138 |
\end{diadiaplot} |
| 139 |
\end{diadiasidebyside} |
| 140 |
\section{Pharmaceuticals} |
| 141 |
\begin{medicationchart}{}{03.03.2015} |
| 142 |
\mcentry{Oxycodon-HCI STADA 10mg Retardtabletten}{0}{0}{1}{0}{} |
| 143 |
\mcentry{Januvia 100mg}{1}{0}{0}{0}{replaces Metformin due to op} |
| 144 |
\mcentry{Mono-Embolex 3000 I.E. Prophylaxe}{0}{0}{1}{0}{} |
| 145 |
\end{medicationchart} |
| 146 |
\begin{medicationchart}{}{10.03.2015} |
| 147 |
\mcentry{Oxycodon-HCI STADA 10mg Retardtabletten}{0}{0}{1}{0}{} |
| 148 |
\mcentry{Novaminsulfon Lichtenstein 500 mg}{1}{1}{1}{1}{} |
| 149 |
\mcentry{Januvia 100mg}{1}{0}{0}{0}{} |
| 150 |
\mcentry{Unacid 3g}{1}{0}{1}{1}{infusion 08:00, 16:00, 00:00} |
| 151 |
\mcentry{Mono-Embolex 3000 I.E. Prophylaxe}{0}{0}{1}{0}{} |
| 152 |
\end{medicationchart} |
| 153 |
\begin{medicationchart}{}{20.03.2015} |
| 154 |
\mcentry{Oxycodon-HCI STADA 10mg Retardtabletten}{0}{0}{1}{0}{} |
| 155 |
\mcentry{Novaminsulfon Lichtenstein 500 mg}{1}{1}{1}{1}{} |
| 156 |
\mcentry{Unacid 3g}{1}{0}{1}{1}{infusion 08:00, 16:00, 00:00} |
| 157 |
\mcentry{Mono-Embolex 3000 I.E. Prophylaxe}{0}{0}{1}{0}{} |
| 158 |
\end{medicationchart} |
| 159 |
\begin{medicationchart}{}{30.03.2015} |
| 160 |
\mcentry{Oxycodon-HCI STADA 10mg Retardtabletten}{0}{0}{1}{0}{} |
| 161 |
\mcentry{Novaminsulfon Lichtenstein 500 mg}{1}{1}{1}{1}{} |
| 162 |
\mcentry{Mono-Embolex 3000 I.E. Prophylaxe}{0}{0}{1}{0}{} |
| 163 |
\end{medicationchart} |
| 164 |
\chapter{April 2015} |
| 165 |
\section{Data} |
| 166 |
\begin{diadiasidebyside} |
| 167 |
\diadiatab{columns={date,value,avg07,avg30,avg90}}{201504.dat} |
| 168 |
|
| 169 |
\begin{diadiaplot}[plotstyle=bloodsugar]{xmin=2015-04-02,xmax=2015-04-29} |
| 170 |
\annotation[text width=1.4cm]{2015-04-10}{123}{rise after discharge} |
| 171 |
\diadiaaddplot{plot4,nomarks}{x=date,y=avg90}{ddbsl1avg.dat} |
| 172 |
\diadiaaddplot{plot3,nomarks}{x=date,y=avg30}{ddbsl1avg.dat} |
| 173 |
\diadiaaddplot{plot2,nomarks}{x=date,y=avg07}{ddbsl1avg.dat} |
| 174 |
\diadiaaddplot{plot1}{x=date,y=value}{ddbsl1avg.dat} |
| 175 |
\legend{$\varnothing_{90}$,$\varnothing_{30}$,$\varnothing_{7}$,morning} |
| 176 |
\end{diadiaplot} |
| 177 |
\end{diadiasidebyside} |
| 178 |
|
| 179 |
\section{Pharmaceuticals} |
| 180 |
\begin{medicationchart}{}{02.04.2015} |
| 181 |
\mcentry{Oxycodon-HCI STADA 10mg Retardtabletten}{0}{0}{1}{0}{} |
| 182 |
\mcentry{Novaminsulfon Lichtenstein 500 mg}{1}{1}{1}{1}{} |
| 183 |
\mcentry{Mono-Embolex 3000 I.E. Prophylaxe}{0}{0}{1}{0}{} |
| 184 |
\end{medicationchart} |
| 185 |
|
| 186 |
\begin{medicationchart}{}{07.04.2015} |
| 187 |
\mcentry{Oxycodon-HCI STADA 10mg Retardtabletten}{0}{0}{1}{0}{} |
| 188 |
\mcentry{Novaminsulfon Lichtenstein 500 mg}{1}{1}{1}{1}{} |
| 189 |
\mcentry{Mono-Embolex 3000 I.E. Prophylaxe Novartis}{0}{0}{1}{0}{} |
| 190 |
\mcentry{Sultamicillin-ratiopharm 375mg}{1}{0}{1}{0}{} |
| 191 |
\end{medicationchart} |
| 192 |
|
| 193 |
\begin{medicationchart}{}{16.04.2015} |
| 194 |
\mcentry{Oxycodon-HCI STADA 10mg Retardtabletten}{0}{0}{1}{0}{} |
| 195 |
\mcentry{Novaminsulfon Lichtenstein 500 mg}{1}{1}{1}{1}{} |
| 196 |
\mcentry{Mono-Embolex 3000 I.E. Prophylaxe Novartis}{0}{0}{1}{0}{} |
| 197 |
\mcentry{Amoclav 875mg + 125mg (Amoxicillin, Clavulansäure) Hexal}{1}{0}{1}{0}{} |
| 198 |
\end{medicationchart} |
| 199 |
|
| 200 |
\begin{medicationchart}{}{20.04.2015} |
| 201 |
\mcentry{Oxycodon-HCI STADA 10mg Retardtabletten}{0}{0}{1}{0}{} |
| 202 |
\mcentry{Novaminsulfon Lichtenstein 500 mg}{1}{1}{1}{1}{} |
| 203 |
\mcentry{ASS protect 100mg}{0}{1}{0}{0}{} |
| 204 |
\mcentry{Amoclav 875mg + 125mg (Amoxicillin, Clavulansäure) Hexal}{1}{0}{1}{0}{} |
| 205 |
\end{medicationchart} |
| 206 |
|
| 207 |
\section{Misc.} |
| 208 |
|
| 209 |
\infobox{width=8cm}{22.04.2015}{ |
| 210 |
Podiatrist appointment: |
| 211 |
|
| 212 |
\bigskip |
| 213 |
22.04.2015 11:30 |
| 214 |
|
| 215 |
\medskip |
| 216 |
\Telefon\ 089/65831933 |
| 217 |
} |
| 218 |
\end{document} |
| 219 |
\endinput |
| 220 |
%% |
| 221 |
%% End of file `diadia-example'. |