diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/diadia/diadia.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/diadia/diadia.sty | 173 |
1 files changed, 7 insertions, 166 deletions
diff --git a/Master/texmf-dist/tex/latex/diadia/diadia.sty b/Master/texmf-dist/tex/latex/diadia/diadia.sty index a6e5cf83293..4d4b7af2e23 100644 --- a/Master/texmf-dist/tex/latex/diadia/diadia.sty +++ b/Master/texmf-dist/tex/latex/diadia/diadia.sty @@ -27,7 +27,7 @@ %% 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]% +\ProvidesPackage{diadia}[2015/05/20 v1.1 diadia.sty - Josef Kleber (C) 2015]% \RequirePackage{xkeyval}% \newcommand*\DD@JK@define@key[4]% {% @@ -65,6 +65,7 @@ \RequirePackage[many]{tcolorbox}% \RequirePackage{environ}% \RequirePackage{multicol}% +\RequirePackage{amssymb}% \usepgfplotslibrary{dateplot}% \def\DD@JK@closedcycle{}% \def\DD@JK@addplotdefault{}% @@ -97,176 +98,16 @@ \def\DD@JK@trans@CU{\GetTranslation{dd-CU}}% \def\DD@JK@trans@Pulse{\GetTranslation{dd-Pulse}}% \def\DD@JK@trans@Hbaonec{\GetTranslation{dd-Hbaonec}}% +\def\DD@JK@trans@Value{\GetTranslation{dd-Value}}% \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% +\IfFileExists{diadia.cfg}% {% - 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}{}}% + \input{diadia.cfg}% }% -\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% - },% + \PackageError{diadia}{diadia.cfg not found}% + {Please install diadia.cfg! The style definitions are missing!}% }% \newcommand*{\annotation}[4][]% {% |