diff --git a/.gitignore b/.gitignore index 082abf0..c9927f6 100644 --- a/.gitignore +++ b/.gitignore @@ -472,3 +472,4 @@ TSWLatexianTemp* # PDF output files *.pdf +report/*.pdf \ No newline at end of file diff --git a/figures/sample.pgf b/figures/sample.pgf index 6a072a7..c0c6c6d 100644 --- a/figures/sample.pgf +++ b/figures/sample.pgf @@ -33,7 +33,7 @@ \begingroup% \makeatletter% \begin{pgfpicture}% -\pgfpathrectangle{\pgfpointorigin}{\pgfqpoint{6.000000in}{4.000000in}}% +\pgfpathrectangle{\pgfpointorigin}{\pgfqpoint{5.000000in}{4.000000in}}% \pgfusepath{use as bounding box, clip}% \begin{pgfscope}% \pgfsetbuttcap% @@ -45,8 +45,8 @@ \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% -\pgfpathlineto{\pgfqpoint{6.000000in}{0.000000in}}% -\pgfpathlineto{\pgfqpoint{6.000000in}{4.000000in}}% +\pgfpathlineto{\pgfqpoint{5.000000in}{0.000000in}}% +\pgfpathlineto{\pgfqpoint{5.000000in}{4.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{4.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathclose% @@ -62,16 +62,16 @@ \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{0.750000in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{5.400000in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{5.400000in}{3.520000in}}% -\pgfpathlineto{\pgfqpoint{0.750000in}{3.520000in}}% -\pgfpathlineto{\pgfqpoint{0.750000in}{0.440000in}}% +\pgfpathmoveto{\pgfqpoint{0.625000in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{4.500000in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{4.500000in}{3.520000in}}% +\pgfpathlineto{\pgfqpoint{0.625000in}{3.520000in}}% +\pgfpathlineto{\pgfqpoint{0.625000in}{0.440000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% -\pgfpathrectangle{\pgfqpoint{0.750000in}{0.440000in}}{\pgfqpoint{4.650000in}{3.080000in}}% +\pgfpathrectangle{\pgfqpoint{0.625000in}{0.440000in}}{\pgfqpoint{3.875000in}{3.080000in}}% \pgfusepath{clip}% \pgfsetbuttcap% \pgfsetmiterjoin% @@ -82,16 +82,16 @@ \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{0.961364in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{1.384091in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{1.384091in}{3.373333in}}% -\pgfpathlineto{\pgfqpoint{0.961364in}{3.373333in}}% -\pgfpathlineto{\pgfqpoint{0.961364in}{0.440000in}}% +\pgfpathmoveto{\pgfqpoint{0.801136in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{1.153409in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{1.153409in}{3.373333in}}% +\pgfpathlineto{\pgfqpoint{0.801136in}{3.373333in}}% +\pgfpathlineto{\pgfqpoint{0.801136in}{0.440000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% -\pgfpathrectangle{\pgfqpoint{0.750000in}{0.440000in}}{\pgfqpoint{4.650000in}{3.080000in}}% +\pgfpathrectangle{\pgfqpoint{0.625000in}{0.440000in}}{\pgfqpoint{3.875000in}{3.080000in}}% \pgfusepath{clip}% \pgfsetbuttcap% \pgfsetmiterjoin% @@ -102,16 +102,16 @@ \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{1.384091in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{1.806818in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{1.806818in}{1.470631in}}% -\pgfpathlineto{\pgfqpoint{1.384091in}{1.470631in}}% -\pgfpathlineto{\pgfqpoint{1.384091in}{0.440000in}}% +\pgfpathmoveto{\pgfqpoint{1.153409in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{1.505682in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{1.505682in}{1.470631in}}% +\pgfpathlineto{\pgfqpoint{1.153409in}{1.470631in}}% +\pgfpathlineto{\pgfqpoint{1.153409in}{0.440000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% -\pgfpathrectangle{\pgfqpoint{0.750000in}{0.440000in}}{\pgfqpoint{4.650000in}{3.080000in}}% +\pgfpathrectangle{\pgfqpoint{0.625000in}{0.440000in}}{\pgfqpoint{3.875000in}{3.080000in}}% \pgfusepath{clip}% \pgfsetbuttcap% \pgfsetmiterjoin% @@ -122,16 +122,16 @@ \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{1.806818in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{2.229545in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{2.229545in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{1.806818in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{1.806818in}{0.440000in}}% +\pgfpathmoveto{\pgfqpoint{1.505682in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{1.857955in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{1.857955in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{1.505682in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{1.505682in}{0.440000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% -\pgfpathrectangle{\pgfqpoint{0.750000in}{0.440000in}}{\pgfqpoint{4.650000in}{3.080000in}}% +\pgfpathrectangle{\pgfqpoint{0.625000in}{0.440000in}}{\pgfqpoint{3.875000in}{3.080000in}}% \pgfusepath{clip}% \pgfsetbuttcap% \pgfsetmiterjoin% @@ -142,16 +142,16 @@ \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{2.229545in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{2.652273in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{2.652273in}{0.677838in}}% -\pgfpathlineto{\pgfqpoint{2.229545in}{0.677838in}}% -\pgfpathlineto{\pgfqpoint{2.229545in}{0.440000in}}% +\pgfpathmoveto{\pgfqpoint{1.857955in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{2.210227in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{2.210227in}{0.677838in}}% +\pgfpathlineto{\pgfqpoint{1.857955in}{0.677838in}}% +\pgfpathlineto{\pgfqpoint{1.857955in}{0.440000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% -\pgfpathrectangle{\pgfqpoint{0.750000in}{0.440000in}}{\pgfqpoint{4.650000in}{3.080000in}}% +\pgfpathrectangle{\pgfqpoint{0.625000in}{0.440000in}}{\pgfqpoint{3.875000in}{3.080000in}}% \pgfusepath{clip}% \pgfsetbuttcap% \pgfsetmiterjoin% @@ -162,16 +162,16 @@ \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{2.652273in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{3.075000in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{3.075000in}{1.074234in}}% -\pgfpathlineto{\pgfqpoint{2.652273in}{1.074234in}}% -\pgfpathlineto{\pgfqpoint{2.652273in}{0.440000in}}% +\pgfpathmoveto{\pgfqpoint{2.210227in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{2.562500in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{2.562500in}{1.074234in}}% +\pgfpathlineto{\pgfqpoint{2.210227in}{1.074234in}}% +\pgfpathlineto{\pgfqpoint{2.210227in}{0.440000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% -\pgfpathrectangle{\pgfqpoint{0.750000in}{0.440000in}}{\pgfqpoint{4.650000in}{3.080000in}}% +\pgfpathrectangle{\pgfqpoint{0.625000in}{0.440000in}}{\pgfqpoint{3.875000in}{3.080000in}}% \pgfusepath{clip}% \pgfsetbuttcap% \pgfsetmiterjoin% @@ -182,16 +182,16 @@ \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{3.075000in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{3.497727in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{3.497727in}{2.501261in}}% -\pgfpathlineto{\pgfqpoint{3.075000in}{2.501261in}}% -\pgfpathlineto{\pgfqpoint{3.075000in}{0.440000in}}% +\pgfpathmoveto{\pgfqpoint{2.562500in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{2.914773in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{2.914773in}{2.501261in}}% +\pgfpathlineto{\pgfqpoint{2.562500in}{2.501261in}}% +\pgfpathlineto{\pgfqpoint{2.562500in}{0.440000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% -\pgfpathrectangle{\pgfqpoint{0.750000in}{0.440000in}}{\pgfqpoint{4.650000in}{3.080000in}}% +\pgfpathrectangle{\pgfqpoint{0.625000in}{0.440000in}}{\pgfqpoint{3.875000in}{3.080000in}}% \pgfusepath{clip}% \pgfsetbuttcap% \pgfsetmiterjoin% @@ -202,16 +202,16 @@ \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{3.497727in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{3.920455in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{3.920455in}{2.739099in}}% -\pgfpathlineto{\pgfqpoint{3.497727in}{2.739099in}}% -\pgfpathlineto{\pgfqpoint{3.497727in}{0.440000in}}% +\pgfpathmoveto{\pgfqpoint{2.914773in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{3.267045in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{3.267045in}{2.739099in}}% +\pgfpathlineto{\pgfqpoint{2.914773in}{2.739099in}}% +\pgfpathlineto{\pgfqpoint{2.914773in}{0.440000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% -\pgfpathrectangle{\pgfqpoint{0.750000in}{0.440000in}}{\pgfqpoint{4.650000in}{3.080000in}}% +\pgfpathrectangle{\pgfqpoint{0.625000in}{0.440000in}}{\pgfqpoint{3.875000in}{3.080000in}}% \pgfusepath{clip}% \pgfsetbuttcap% \pgfsetmiterjoin% @@ -222,16 +222,16 @@ \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{3.920455in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{4.343182in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{4.343182in}{1.867027in}}% -\pgfpathlineto{\pgfqpoint{3.920455in}{1.867027in}}% -\pgfpathlineto{\pgfqpoint{3.920455in}{0.440000in}}% +\pgfpathmoveto{\pgfqpoint{3.267045in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{3.619318in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{3.619318in}{1.867027in}}% +\pgfpathlineto{\pgfqpoint{3.267045in}{1.867027in}}% +\pgfpathlineto{\pgfqpoint{3.267045in}{0.440000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% -\pgfpathrectangle{\pgfqpoint{0.750000in}{0.440000in}}{\pgfqpoint{4.650000in}{3.080000in}}% +\pgfpathrectangle{\pgfqpoint{0.625000in}{0.440000in}}{\pgfqpoint{3.875000in}{3.080000in}}% \pgfusepath{clip}% \pgfsetbuttcap% \pgfsetmiterjoin% @@ -242,16 +242,16 @@ \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{4.343182in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{4.765909in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{4.765909in}{1.312072in}}% -\pgfpathlineto{\pgfqpoint{4.343182in}{1.312072in}}% -\pgfpathlineto{\pgfqpoint{4.343182in}{0.440000in}}% +\pgfpathmoveto{\pgfqpoint{3.619318in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{3.971591in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{3.971591in}{1.312072in}}% +\pgfpathlineto{\pgfqpoint{3.619318in}{1.312072in}}% +\pgfpathlineto{\pgfqpoint{3.619318in}{0.440000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% -\pgfpathrectangle{\pgfqpoint{0.750000in}{0.440000in}}{\pgfqpoint{4.650000in}{3.080000in}}% +\pgfpathrectangle{\pgfqpoint{0.625000in}{0.440000in}}{\pgfqpoint{3.875000in}{3.080000in}}% \pgfusepath{clip}% \pgfsetbuttcap% \pgfsetmiterjoin% @@ -262,11 +262,11 @@ \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{4.765909in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{5.188636in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{5.188636in}{0.836396in}}% -\pgfpathlineto{\pgfqpoint{4.765909in}{0.836396in}}% -\pgfpathlineto{\pgfqpoint{4.765909in}{0.440000in}}% +\pgfpathmoveto{\pgfqpoint{3.971591in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{4.323864in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{4.323864in}{0.836396in}}% +\pgfpathlineto{\pgfqpoint{3.971591in}{0.836396in}}% +\pgfpathlineto{\pgfqpoint{3.971591in}{0.440000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% @@ -285,7 +285,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{0.961364in}{0.440000in}% +\pgfsys@transformshift{0.801136in}{0.440000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -293,7 +293,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=0.961364in,y=0.342778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}1}}% +\pgftext[x=0.801136in,y=0.342778in,,top]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{1}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -310,7 +310,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{1.677851in}{0.440000in}% +\pgfsys@transformshift{1.398209in}{0.440000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -318,7 +318,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=1.677851in,y=0.342778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}2}}% +\pgftext[x=1.398209in,y=0.342778in,,top]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{2}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -335,7 +335,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{2.394337in}{0.440000in}% +\pgfsys@transformshift{1.995281in}{0.440000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -343,7 +343,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=2.394337in,y=0.342778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}3}}% +\pgftext[x=1.995281in,y=0.342778in,,top]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{3}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -360,7 +360,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{3.110824in}{0.440000in}% +\pgfsys@transformshift{2.592354in}{0.440000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -368,7 +368,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=3.110824in,y=0.342778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}4}}% +\pgftext[x=2.592354in,y=0.342778in,,top]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{4}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -385,7 +385,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{3.827311in}{0.440000in}% +\pgfsys@transformshift{3.189426in}{0.440000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -393,7 +393,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=3.827311in,y=0.342778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}5}}% +\pgftext[x=3.189426in,y=0.342778in,,top]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{5}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -410,7 +410,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{4.543798in}{0.440000in}% +\pgfsys@transformshift{3.786498in}{0.440000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -418,7 +418,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=4.543798in,y=0.342778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}6}}% +\pgftext[x=3.786498in,y=0.342778in,,top]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{6}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -435,7 +435,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{5.260285in}{0.440000in}% +\pgfsys@transformshift{4.383571in}{0.440000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -443,7 +443,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=5.260285in,y=0.342778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}7}}% +\pgftext[x=4.383571in,y=0.342778in,,top]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{7}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -460,7 +460,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{0.750000in}{0.440000in}% +\pgfsys@transformshift{0.625000in}{0.440000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -468,7 +468,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=0.583333in, y=0.391775in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0}}% +\pgftext[x=0.458333in, y=0.391775in, left, base]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{0}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -485,7 +485,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{0.750000in}{0.836396in}% +\pgfsys@transformshift{0.625000in}{0.836396in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -493,7 +493,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=0.583333in, y=0.788171in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}5}}% +\pgftext[x=0.458333in, y=0.788171in, left, base]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{5}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -510,7 +510,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{0.750000in}{1.232793in}% +\pgfsys@transformshift{0.625000in}{1.232793in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -518,7 +518,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=0.513888in, y=1.184568in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}10}}% +\pgftext[x=0.388888in, y=1.184568in, left, base]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{10}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -535,7 +535,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{0.750000in}{1.629189in}% +\pgfsys@transformshift{0.625000in}{1.629189in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -543,7 +543,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=0.513888in, y=1.580964in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}15}}% +\pgftext[x=0.388888in, y=1.580964in, left, base]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{15}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -560,7 +560,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{0.750000in}{2.025586in}% +\pgfsys@transformshift{0.625000in}{2.025586in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -568,7 +568,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=0.513888in, y=1.977360in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}20}}% +\pgftext[x=0.388888in, y=1.977360in, left, base]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{20}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -585,7 +585,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{0.750000in}{2.421982in}% +\pgfsys@transformshift{0.625000in}{2.421982in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -593,7 +593,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=0.513888in, y=2.373757in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}25}}% +\pgftext[x=0.388888in, y=2.373757in, left, base]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{25}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -610,7 +610,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{0.750000in}{2.818378in}% +\pgfsys@transformshift{0.625000in}{2.818378in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -618,7 +618,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=0.513888in, y=2.770153in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}30}}% +\pgftext[x=0.388888in, y=2.770153in, left, base]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{30}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% @@ -635,7 +635,7 @@ \pgfusepath{stroke,fill}% }% \begin{pgfscope}% -\pgfsys@transformshift{0.750000in}{3.214775in}% +\pgfsys@transformshift{0.625000in}{3.214775in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% @@ -643,7 +643,7 @@ \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% -\pgftext[x=0.513888in, y=3.166549in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}35}}% +\pgftext[x=0.388888in, y=3.166549in, left, base]{\color{textcolor}{\rmfamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}$\mathdefault{35}$}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% @@ -652,8 +652,8 @@ \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{0.750000in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{0.750000in}{3.520000in}}% +\pgfpathmoveto{\pgfqpoint{0.625000in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{0.625000in}{3.520000in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% @@ -663,8 +663,8 @@ \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{5.400000in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{5.400000in}{3.520000in}}% +\pgfpathmoveto{\pgfqpoint{4.500000in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{4.500000in}{3.520000in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% @@ -674,8 +674,8 @@ \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{0.750000in}{0.440000in}}% -\pgfpathlineto{\pgfqpoint{5.400000in}{0.440000in}}% +\pgfpathmoveto{\pgfqpoint{0.625000in}{0.440000in}}% +\pgfpathlineto{\pgfqpoint{4.500000in}{0.440000in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% @@ -685,8 +685,8 @@ \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% -\pgfpathmoveto{\pgfqpoint{0.750000in}{3.520000in}}% -\pgfpathlineto{\pgfqpoint{5.400000in}{3.520000in}}% +\pgfpathmoveto{\pgfqpoint{0.625000in}{3.520000in}}% +\pgfpathlineto{\pgfqpoint{4.500000in}{3.520000in}}% \pgfusepath{stroke}% \end{pgfscope}% \end{pgfpicture}% diff --git a/report/sample.pdf b/report/sample.pdf deleted file mode 100644 index fbf2eec..0000000 Binary files a/report/sample.pdf and /dev/null differ diff --git a/report/sample.tex b/report/sample.tex index 67148e8..606d5d8 100644 --- a/report/sample.tex +++ b/report/sample.tex @@ -2,7 +2,24 @@ \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage[table,xcdraw]{xcolor} -\graphicspath{{figures/}} +\usepackage{pgf} +\usepackage{{booktabs}} +\usepackage{layouts} +\usepackage{parskip} + + +%% Assumed preamble to import pandas exported PGF +\def\mathdefault#1{#1} +\everymath=\expandafter{\the\everymath\displaystyle} +\IfFileExists{scrextend.sty}{ + \usepackage[fontsize=10.000000pt]{scrextend} +}{ + \renewcommand{\normalsize}{\fontsize{10.000000}{12.000000}\selectfont} + \normalsize +} +\makeatletter\@ifpackageloaded{underscore}{}{\usepackage[strings]{underscore}}\makeatother + +\graphicspath{{../figures/}{figures/}} \title{Practice} \author{Hendrik Tillemans} \date{December 2024} @@ -43,11 +60,19 @@ And numbered lists: We can export figures in .pgf format to import them: -\begin{figure} +Current text width: \printinunitsof{in}\prntlen{\textwidth} + +\begin{figure}[hbtp] \begin{center} - \input{sample.pgf} + \input{../figures/sample.pgf} \end{center} \caption{A PGF histogram from \texttt{matplotlib}.} \end{figure} +Similarly pandas can export \LaTeX tables which we can include + +\input{sample_table.tex} + +These capabilities should suffice for the report. + \end{document} diff --git a/scripts/sample_report.py b/scripts/sample_report.py index 1a1e7fa..8f2bead 100644 --- a/scripts/sample_report.py +++ b/scripts/sample_report.py @@ -4,8 +4,11 @@ import matplotlib.pyplot as plt iris = pd.read_csv('https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv') +# set size of plot +plt.figure(figsize=(5,4)) _ = plt.hist(iris["petal_length"]) +# configure PGF matplotlib.use("pgf") matplotlib.rcParams.update({ "pgf.texsystem": "pdflatex", @@ -13,4 +16,9 @@ matplotlib.rcParams.update({ 'text.usetex': True, 'pgf.rcfonts': False, }) -plt.savefig("../figures/sample.pgf") \ No newline at end of file +plt.savefig("../figures/sample.pgf") + +summary = iris.describe() +summary.to_latex("../report/sample_table.tex", + columns=["petal_width", "petal_length", "sepal_width", "sepal_length"], + header=["Petal Width", "Petal Length", "Sepal Width", "Sepal Length"])