diff options
author | Karl Berry <karl@freefriends.org> | 2015-05-11 20:54:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-05-11 20:54:14 +0000 |
commit | 584df13b52347fa68b9618c42e6d724c7f975143 (patch) | |
tree | 1b3e58512693fb6f70f61e7c0a10d7da71371305 /Master/texmf-dist/tex | |
parent | eaf3393e6d9bac332929e5bcf9f9c661a02ed62c (diff) |
diadia (11may15)
git-svn-id: svn://tug.org/texlive/trunk@37330 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/diadia/diadia-english.trsl | 57 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/diadia/diadia-fallback.trsl | 57 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/diadia/diadia-german.trsl | 57 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/diadia/diadia.sty | 427 |
4 files changed, 598 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/diadia/diadia-english.trsl b/Master/texmf-dist/tex/latex/diadia/diadia-english.trsl new file mode 100644 index 00000000000..e7ce8601176 --- /dev/null +++ b/Master/texmf-dist/tex/latex/diadia/diadia-english.trsl @@ -0,0 +1,57 @@ +%% +%% This is file `diadia-english.trsl', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% diadia.dtx (with options: `english') +%% +%% Copyright (C) 2015 by: +%% Josef Kleber +%% <josef.kleber@gmx.de> +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3 or later is part of all distributions of LaTeX version +%% 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Josef Kleber. +%% +%% This work consists of all files listed in manifest.txt. +%% +\DeclareTranslation{English}{dd-BloodSugar}{Blood Sugar}% +\DeclareTranslation{English}{dd-Insulin}{Insulin}% +\DeclareTranslation{English}{dd-BloodPressure}{Blood Pressure}% +\DeclareTranslation{English}{dd-Weight}{Weight}% +\DeclareTranslation{English}{dd-MedicationChart}{Medication Chart}% +\DeclareTranslation{English}{dd-issued}{issued}% +\DeclareTranslation{English}{dd-Pharmaceutical}{Pharmaceutical}% +\DeclareTranslation{English}{dd-Morning}{Morning}% +\DeclareTranslation{English}{dd-Noon}{Noon}% +\DeclareTranslation{English}{dd-Evening}{Evening}% +\DeclareTranslation{English}{dd-Night}{Night}% +\DeclareTranslation{English}{dd-Note}{Note}% +\DeclareTranslation{English}{dd-Info}{Info}% +\DeclareTranslation{English}{dd-Date}{Date}% +\DeclareTranslation{English}{dd-BSi}{BS(1)}% +\DeclareTranslation{English}{dd-BSii}{BS(2)}% +\DeclareTranslation{English}{dd-BSiii}{BS(3)}% +\DeclareTranslation{English}{dd-IDi}{I(1)}% +\DeclareTranslation{English}{dd-IDii}{I(2)}% +\DeclareTranslation{English}{dd-IDiii}{I(3)}% +\DeclareTranslation{English}{dd-BPs}{BP(s)}% +\DeclareTranslation{English}{dd-BPd}{BP(d)}% +\DeclareTranslation{English}{dd-Weight}{Weight}% +\DeclareTranslation{English}{dd-CU}{CU}% +\DeclareTranslation{English}{dd-Pulse}{Pulse}% +\DeclareTranslation{English}{dd-Hbaonec}{$\text{HbA}_{\text{1c}}$}% +\endinput +%% +%% End of file `diadia-english.trsl'. diff --git a/Master/texmf-dist/tex/latex/diadia/diadia-fallback.trsl b/Master/texmf-dist/tex/latex/diadia/diadia-fallback.trsl new file mode 100644 index 00000000000..2e004f0dce7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/diadia/diadia-fallback.trsl @@ -0,0 +1,57 @@ +%% +%% This is file `diadia-fallback.trsl', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% diadia.dtx (with options: `fallback') +%% +%% Copyright (C) 2015 by: +%% Josef Kleber +%% <josef.kleber@gmx.de> +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3 or later is part of all distributions of LaTeX version +%% 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Josef Kleber. +%% +%% This work consists of all files listed in manifest.txt. +%% +\DeclareTranslationFallback{dd-BloodSugar}{Blood Sugar}% +\DeclareTranslationFallback{dd-Insulin}{Insulin}% +\DeclareTranslationFallback{dd-BloodPressure}{Blood Pressure}% +\DeclareTranslationFallback{dd-Weight}{Weight}% +\DeclareTranslationFallback{dd-MedicationChart}{Medication Chart}% +\DeclareTranslationFallback{dd-issued}{issued}% +\DeclareTranslationFallback{dd-Pharmaceutical}{Pharmaceutical}% +\DeclareTranslationFallback{dd-Morning}{Morning}% +\DeclareTranslationFallback{dd-Noon}{Noon}% +\DeclareTranslationFallback{dd-Evening}{Evening}% +\DeclareTranslationFallback{dd-Night}{Night}% +\DeclareTranslationFallback{dd-Note}{Note}% +\DeclareTranslationFallback{dd-Info}{Info}% +\DeclareTranslationFallback{dd-Date}{Date}% +\DeclareTranslationFallback{dd-BSi}{BS(1)}% +\DeclareTranslationFallback{dd-BSii}{BS(2)}% +\DeclareTranslationFallback{dd-BSiii}{BS(3)}% +\DeclareTranslationFallback{dd-IDi}{I(1)}% +\DeclareTranslationFallback{dd-IDii}{I(2)}% +\DeclareTranslationFallback{dd-IDiii}{I(3)}% +\DeclareTranslationFallback{dd-BPs}{BP(s)}% +\DeclareTranslationFallback{dd-BPd}{BP(d)}% +\DeclareTranslationFallback{dd-Weight}{Weight}% +\DeclareTranslationFallback{dd-CU}{CU}% +\DeclareTranslationFallback{dd-Pulse}{Pulse}% +\DeclareTranslationFallback{dd-Hbaonec}{$\text{HbA}_{\text{1c}}$}% +\endinput +%% +%% End of file `diadia-fallback.trsl'. diff --git a/Master/texmf-dist/tex/latex/diadia/diadia-german.trsl b/Master/texmf-dist/tex/latex/diadia/diadia-german.trsl new file mode 100644 index 00000000000..eff74b88906 --- /dev/null +++ b/Master/texmf-dist/tex/latex/diadia/diadia-german.trsl @@ -0,0 +1,57 @@ +%% +%% This is file `diadia-german.trsl', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% diadia.dtx (with options: `german') +%% +%% Copyright (C) 2015 by: +%% Josef Kleber +%% <josef.kleber@gmx.de> +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3 or later is part of all distributions of LaTeX version +%% 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Josef Kleber. +%% +%% This work consists of all files listed in manifest.txt. +%% +\DeclareTranslation{German}{dd-BloodSugar}{Blutzucker}% +\DeclareTranslation{German}{dd-Insulin}{Insulin}% +\DeclareTranslation{German}{dd-BloodPressure}{Blutdruck}% +\DeclareTranslation{German}{dd-Weight}{Gewicht}% +\DeclareTranslation{German}{dd-MedicationChart}{Medikamentenplan}% +\DeclareTranslation{German}{dd-issued}{ausgestellt}% +\DeclareTranslation{German}{dd-Pharmaceutical}{Medikament}% +\DeclareTranslation{German}{dd-Morning}{morgens}% +\DeclareTranslation{German}{dd-Noon}{mittags}% +\DeclareTranslation{German}{dd-Evening}{abends}% +\DeclareTranslation{German}{dd-Night}{nachts}% +\DeclareTranslation{German}{dd-Note}{Bemerkung}% +\DeclareTranslation{German}{dd-Info}{Info}% +\DeclareTranslation{German}{dd-Date}{Datum}% +\DeclareTranslation{German}{dd-BSi}{BZ(1)}% +\DeclareTranslation{German}{dd-BSii}{BZ(2)}% +\DeclareTranslation{German}{dd-BSiii}{BZ(3)}% +\DeclareTranslation{German}{dd-IDi}{I(1)}% +\DeclareTranslation{German}{dd-IDii}{I(2)}% +\DeclareTranslation{German}{dd-IDiii}{I(3)}% +\DeclareTranslation{German}{dd-BPs}{BD(s)}% +\DeclareTranslation{German}{dd-BPd}{BD(d)}% +\DeclareTranslation{German}{dd-Weight}{Gewicht}% +\DeclareTranslation{German}{dd-CU}{BE}% +\DeclareTranslation{German}{dd-Pulse}{Puls}% +\DeclareTranslation{German}{dd-Hbaonec}{$\text{HbA}_{\text{1c}}$}% +\endinput +%% +%% End of file `diadia-german.trsl'. diff --git a/Master/texmf-dist/tex/latex/diadia/diadia.sty b/Master/texmf-dist/tex/latex/diadia/diadia.sty new file mode 100644 index 00000000000..a6e5cf83293 --- /dev/null +++ b/Master/texmf-dist/tex/latex/diadia/diadia.sty @@ -0,0 +1,427 @@ +%% +%% This is file `diadia.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% diadia.dtx (with options: `package') +%% +%% Copyright (C) 2015 by: +%% Josef Kleber +%% <josef.kleber@gmx.de> +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3 or later is part of all distributions of LaTeX version +%% 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Josef Kleber. +%% +%% This work consists of all files listed in manifest.txt. +%% +\NeedsTeXFormat{LaTeX2e}% +\ProvidesPackage{diadia}[2015/05/11 v1.0 diadia.sty - Josef Kleber (C) 2015]% +\RequirePackage{xkeyval}% +\newcommand*\DD@JK@define@key[4]% +{% + \expandafter\gdef\csname#1@#3\endcsname{#4}% + \define@key{#2.sty}{#3}[#4]% + {% + \expandafter\gdef\csname#1@#3\endcsname{##1}% + }% + \define@key{#2}{#3}% + {% + \expandafter\def\csname#1@#3\endcsname{##1}% + }% +}% +\DD@JK@define@key{DD@JK}{diadia}{tabstyle}{simple}% +\DD@JK@define@key{DD@JK}{diadia}{tabcolor}{none}% +\DD@JK@define@key{DD@JK}{diadia}{plotstyle}{none}% +\DD@JK@define@key{DD@JK}{diadia}{plotclosedcycle}{false}% +\DD@JK@define@key{DD@JK}{diadia}{mcnotewidth}{3cm}% +\DD@JK@define@key{DD@JK}{diadia}{columnsep}{18pt}% +\DD@JK@define@key{DD@JK}{diadia}{columnseprule}{0pt}% +\DD@JK@define@key{DD@JK}{diadia}{columnseprulecolor}{\normalcolor}% +\ExecuteOptionsX{tabstyle,tabcolor,plotstyle,plotclosedcycle,mcnotewidth,% + columnsep,columnseprule,columnseprulecolor}% +\ProcessOptionsX*\relax% +\RequirePackage{pgfplots}% +\RequirePackage{pgfplotstable}% +\RequirePackage{pgfcalendar}% +\RequirePackage{tabularx}% +\RequirePackage{booktabs}% +\RequirePackage{colortbl}% +\RequirePackage{ifthen}% +\RequirePackage{calc}% +\RequirePackage{translations}% +\RequirePackage{amsmath}% +\RequirePackage[many]{tcolorbox}% +\RequirePackage{environ}% +\RequirePackage{multicol}% +\usepgfplotslibrary{dateplot}% +\def\DD@JK@closedcycle{}% +\def\DD@JK@addplotdefault{}% +\input{diadia-fallback.trsl}% +\input{diadia-english.trsl}% +\input{diadia-german.trsl}% +\def\DD@JK@trans@BloodSugar{\GetTranslation{dd-BloodSugar}}% +\def\DD@JK@trans@Insulin{\GetTranslation{dd-Insulin}}% +\def\DD@JK@trans@BloodPressure{\GetTranslation{dd-BloodPressure}}% +\def\DD@JK@trans@Weight{\GetTranslation{dd-Weight}}% +\def\DD@JK@trans@MedicationChart{\GetTranslation{dd-MedicationChart}}% +\def\DD@JK@trans@issued{\GetTranslation{dd-issued}}% +\def\DD@JK@trans@Pharmaceutical{\GetTranslation{dd-Pharmaceutical}}% +\def\DD@JK@trans@Morning{\GetTranslation{dd-Morning}}% +\def\DD@JK@trans@Noon{\GetTranslation{dd-Noon}}% +\def\DD@JK@trans@Evening{\GetTranslation{dd-Evening}}% +\def\DD@JK@trans@Night{\GetTranslation{dd-Night}}% +\def\DD@JK@trans@Note{\GetTranslation{dd-Note}}% +\def\DD@JK@trans@Info{\GetTranslation{dd-Info}}% +\def\DD@JK@trans@Date{\GetTranslation{dd-Date}}% +\def\DD@JK@trans@BSi{\GetTranslation{dd-BSi}}% +\def\DD@JK@trans@BSii{\GetTranslation{dd-BSii}}% +\def\DD@JK@trans@BSiii{\GetTranslation{dd-BSiii}}% +\def\DD@JK@trans@IDi{\GetTranslation{dd-IDi}}% +\def\DD@JK@trans@IDii{\GetTranslation{dd-IDii}}% +\def\DD@JK@trans@IDiii{\GetTranslation{dd-IDiii}}% +\def\DD@JK@trans@BPs{\GetTranslation{dd-BPs}}% +\def\DD@JK@trans@BPd{\GetTranslation{dd-BPd}}% +\def\DD@JK@trans@Weight{\GetTranslation{dd-Weight}}% +\def\DD@JK@trans@CU{\GetTranslation{dd-CU}}% +\def\DD@JK@trans@Pulse{\GetTranslation{dd-Pulse}}% +\def\DD@JK@trans@Hbaonec{\GetTranslation{dd-Hbaonec}}% +\newcolumntype{Z}{>{\raggedright\let\newline\\\arraybackslash}X}% +\newcolumntype{Y}{>{\raggedright\let\newline\\\arraybackslash}p{\DD@JK@mcnotewidth}}% +\pgfplotsset{% + compat=1.12,% + date ZERO=2015-01-01% +}% +\pgfplotsset{% + ddpuser/.style=% + {},% + ddpdefault/.style=% + {% + thick,% + date coordinates in=x,% + xticklabel={\day.\month.},% + legend style={at={(0.5,-0.25)},% + font=\footnotesize,% + anchor=north,% + legend columns=-1},% + ddpuser% + },% + ddpweight/.style=% + {% + smooth,% + area style,% + ylabel=\DD@JK@trans@Weight% + },% + ddpweightplot/.style=% + {% + teal,% + fill=teal!50,% + mark=halfcircle*,% + every mark/.append style={solid,fill=.!80!black}% + },% + ddpbloodpressure/.style=% + {% + cycle list name=diadiacyclelist,% + unbounded coords=jump,% + ylabel=\DD@JK@trans@BloodPressure% + },% + ddpinsulin/.style=% + {% + cycle list name=diadiacyclelist,% + unbounded coords=jump,% + ylabel=\DD@JK@trans@Insulin% + },% + ddpbloodsugar/.style=% + {% + smooth,% + cycle list name=diadiacyclelist,% + unbounded coords=jump,% + ylabel=\DD@JK@trans@BloodSugar% + },% + ddppulse/.style=% + {% + smooth,% + cycle list name=diadiacyclelist,% + unbounded coords=jump,% + ylabel=\DD@JK@trans@Pulse% + },% + ddpcu/.style=% + {% + ybar,% + tick align=inside,% + cycle list name=diadiacyclelist,% + unbounded coords=jump,% + ylabel=\DD@JK@trans@CU% + },% + ddphbaonec/.style=% + {% + ybar,% + tick align=inside,% + cycle list name=diadiacyclelist,% + unbounded coords=jump,% + ylabel=\DD@JK@trans@Hbaonec% + }% +}% +\pgfplotstableset% +{% + empty cells with={--},% + columns/date/.style={date type},% + columns/bsl1/.style={string replace={nan}{}},% + columns/bsl2/.style={string replace={nan}{}},% + columns/bsl3/.style={string replace={nan}{}},% + columns/id1/.style={string replace={nan}{}},% + columns/id2/.style={string replace={nan}{}},% + columns/id3/.style={string replace={nan}{}},% + columns/bps/.style={string replace={nan}{}},% + columns/bpd/.style={string replace={nan}{}},% + columns/weight/.style={fixed,fixed zerofill,precision=1,string replace={nan}{}},% + columns/cu/.style={string replace={nan}{}},% + columns/pul/.style={string replace={nan}{}},% + columns/hba1c/.style={fixed,fixed zerofill,precision=1,string replace={nan}{}}% +}% +\pgfplotstableset% +{% + columns/date/.append style={column name={\DD@JK@trans@Date}},% + columns/bsl1/.append style={column name={\DD@JK@trans@BSi}},% + columns/bsl2/.append style={column name={\DD@JK@trans@BSii}},% + columns/bsl3/.append style={column name={\DD@JK@trans@BSiii}},% + columns/id1/.append style={column name={\DD@JK@trans@IDi}},% + columns/id2/.append style={column name={\DD@JK@trans@IDii}},% + columns/id3/.append style={column name={\DD@JK@trans@IDiii}},% + columns/bps/.append style={column name={\DD@JK@trans@BPs}},% + columns/bpd/.append style={column name={\DD@JK@trans@BPd}},% + columns/weight/.append style={column name={\DD@JK@trans@Weight}},% + columns/cu/.append style={column name={\DD@JK@trans@CU}},% + columns/pul/.append style={column name={\DD@JK@trans@Pulse}},% + columns/hba1c/.append style={column name={\DD@JK@trans@Hbaonec}}% +}% +\pgfplotscreateplotcyclelist{diadiacyclelist}% +{% + {teal,mark=halfcircle*,every mark/.append style={solid,fill=.!80!black}},% + {orange,mark=halfcircle*,every mark/.append style={solid,fill=.!80!black,rotate=180}},% + {cyan,mark=o,every mark/.append style={solid,fill=.!80!black}},% + {yellow,mark=star,every mark/.append style={solid,fill=.!80!black}}% +}% +\tikzset% +{% + ddpannotation/.style=% + {% + fill=yellow!50!white,% + rectangle,% + rounded corners=3pt,% + font=\tiny% + },% + setlimit/.style=% + {% + red,% + thick% + },% + ddaddplotfill/.style=% + {% + fill=teal!50,% + },% +}% +\tcbset% +{% + ddboxdefault/.style=% + {% + enhanced,% + fonttitle=\bfseries\large,% + coltitle=black,% + center title,% + titlerule=.75mm,% + toprule=1mm,% + bottomrule=1mm,% + toptitle=2mm,% + bottomtitle=2mm% + },% + medicationchart/.style=% + {% + ddboxdefault,% + fontupper=\footnotesize,% + colback=yellow!10!white,% + colframe=yellow!60!black,% + colbacktitle=yellow!20!white,% + left=0mm,% + right=0mm,% + top=0mm,% + bottom=0mm,% + boxsep=0mm,% + },% + infobox/.style=% + {% + ddboxdefault,% + width=\linewidth-10.888pt,% + colback=orange!10!white,% + colframe=orange!60!black,% + colbacktitle=orange!20!white% + },% +}% +\newcommand*{\annotation}[4][]% +{% + \node[ddpannotation,#1] at (#2,#3) {#4};% +}% +\newcommand*{\diadiatab}[3][]% +{% + \begingroup% + % \end{macrocode} + \setkeys{diadia}{#1}% + \ifthenelse{\equal{\DD@JK@tabstyle}{simple}}% + {}% + {% + \ifthenelse{\equal{\DD@JK@tabstyle}{advanced}}% + {% + \pgfplotstableset% + {% + every head row/.style={before row=\toprule,after row=\midrule},% + every last row/.style={after row=\bottomrule}% + }% + }% + {}% + }% + \ifthenelse{\equal{\DD@JK@tabcolor}{none}}% + {}% + {% + \pgfplotstableset% + {% + every even row/.style={before row={\rowcolor{\DD@JK@tabcolor}}}% + }% + }% + \pgfplotstabletypeset[#2]{#3}% + \endgroup% +}% +\newcommand*\diadiaaddplot{\@ifstar\@@diadiaaddplot\@diadiaaddplot}% +\newcommand*\@diadiaaddplot[4][]% +{% + \addplot+[\DD@JK@addplotdefault,#2] table[#3] {#4}\DD@JK@closedcycle;% +}% +\newcommand*\@@diadiaaddplot[4][]% +{% + \addplot[#2] table[#3] {#4}\DD@JK@closedcycle;% +}% +\newenvironment{diadiaplot}[2][]% +{% + \begin{tikzpicture}[baseline]% + \setkeys{diadia}{#1}% + \ifthenelse{\equal{\DD@JK@plotclosedcycle}{true}}% + {\def\DD@JK@closedcycle{\closedcycle}}% + {\def\DD@JK@closedcycle{}}% + \def\DD@JK@ddpmode{}% + \ifthenelse{\equal{\DD@JK@plotstyle}{none}}% + {% + \def\DD@JK@ddpmode{}% + }% + {% + \ifthenelse{\equal{\DD@JK@plotstyle}{weight}}% + {% + \def\DD@JK@ddpmode{ddpweight}% + \def\DD@JK@closedcycle{\closedcycle}% + }% + {% + \ifthenelse{\equal{\DD@JK@plotstyle}{bloodpressure}}% + {% + \def\DD@JK@ddpmode{ddpbloodpressure}% + }% + {% + \ifthenelse{\equal{\DD@JK@plotstyle}{insulin}}% + {% + \def\DD@JK@ddpmode{ddpinsulin}% + }% + {% + \ifthenelse{\equal{\DD@JK@plotstyle}{bloodsugar}}% + {% + \def\DD@JK@ddpmode{ddpbloodsugar}% + }% + {% + \ifthenelse{\equal{\DD@JK@plotstyle}{pulse}}% + {% + \def\DD@JK@ddpmode{ddppulse}% + }% + {% + \ifthenelse{\equal{\DD@JK@plotstyle}{cu}}% + {% + \def\DD@JK@ddpmode{ddpcu}% + \def\DD@JK@addplotdefault{ddaddplotfill}% + }% + {% + \ifthenelse{\equal{\DD@JK@plotstyle}{hbaonec}}% + {% + \def\DD@JK@ddpmode{ddphbaonec}% + \def\DD@JK@addplotdefault{ddaddplotfill}% + }% + {}% + }% + }% + }% + }% + }% + }% + }% + \begin{axis}[ddpdefault,% + \DD@JK@ddpmode,% + #2% + ]% +}% +{% + \end{axis}% + \end{tikzpicture}% +}% +\newcommand*{\mcentry}[6]% +{% + #1 & #2 & #3 & #4 & #5 & #6 \\% +}% +\NewEnviron{medicationchart}[3][]% +{% + \begingroup% + \setkeys{diadia}{#1}% + \tcbox[medicationchart,% + title={\DD@JK@trans@MedicationChart\space (\DD@JK@trans@issued: #3)},#2]% + {% + \renewcommand{\arraystretch}{1.2}% + \begin{tabularx}{\textwidth-13.64pt}{Z||r|r|r|r||Y}% + \DD@JK@trans@Pharmaceutical & \DD@JK@trans@Morning & \DD@JK@trans@Noon &% + \DD@JK@trans@Evening & \DD@JK@trans@Night & \DD@JK@trans@Note\\\hline\hline% + \BODY% + \end{tabularx}% + }% + \endgroup% +}% +\newcommand{\infobox}[3]% +{% + \begin{tcolorbox}[infobox,title={\DD@JK@trans@Info\space (#2)},#1]% + #3% + \end{tcolorbox}% +}% +\newenvironment{diadiasidebyside}[1][]% +{% + \setkeys{diadia}{#1}% + \setlength{\columnsep}{\DD@JK@columnsep}% + \setlength{\columnseprule}{\DD@JK@columnseprule}% + \def\columnseprulecolor{\DD@JK@columnseprulecolor}% + \pgfplotsset{width=\columnwidth}% + \begin{multicols}{2}% +}% +{% + \end{multicols}% +}% +\newcommand*{\setlimit}[2][]% +{% + \pgfplotsset{% + extra y ticks={#2},% + extra tick style={grid=major, major grid style={setlimit, #1}}% + }% +}% +\endinput +%% +%% End of file `diadia.sty'. |