diff --git a/barchart/barchart.sty b/barchart/barchart.sty new file mode 100644 index 0000000..8c7058a --- /dev/null +++ b/barchart/barchart.sty @@ -0,0 +1,171 @@ +% this is my first package +% +% (c) Frederik Vanggaard +% +% Inspired by bchart version 0.1.2 by Tobias Kuhn +% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN archives +%% in directory macros/latex/base/lppl.txt. +% +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesPackage{barchart} + [2014/05/19 v0.01 LaTeX package for bar charts] + +\usepackage{tikz} +\usepackage{ifthen} +\usetikzlibrary{calc} + +\newlength{\barcpos} +\newcommand{\tempWidth}{} +% barchart args: +% #1: max +% #2: min +% #3: steps +% #4: step +% #5: width +% #7: height +% #8: scale +% #9: axis label +\newcommand{\barcmin}{} +\newcommand{\barcmax}{} +\newcommand{\barcsteps}{} +\newcommand{\barcstep}{} +\newlength{\barctotalWidth} +\newcommand{\ypos}{} +\newcommand{\scale}{} +\newcommand{\barcy}{} + +\makeatletter +\define@key{barchart}{min}{\renewcommand{\barcmin}{#1}} +\define@key{barchart}{max}{\renewcommand{\barcmax}{#1}} +\define@key{barchart}{steps}{\renewcommand{\barcsteps}{#1}} +\define@key{barchart}{step}{\renewcommand{\barcstep}{#1}} +\define@key{barchart}{width}{\setlength{\barctotalWidth}{#1}} +\define@key{barchart}{height}{\renewcommand{\ypos}{#1}} +\define@key{barchart}{scale}{\renewcommand{\scale}{#1}} +\define@key{barchart}{label}{\renewcommand{\barcy}{#1}} + +\makeatother + +%barc args: +% #1: color +% #2: width +% #3: plain (true/false) +% #4: label +% #5: rotation (true/false) +\newcommand{\barccolor}{} +\newcommand{\barcwidth}{} +\newcommand{\barcplain}{} +\newcommand{\barclabel}{} +\newcommand{\barcrotation}{} + +\makeatletter +\define@key{barc}{color}{\renewcommand{\barccolor}{#1}} +\define@key{barc}{width}{\renewcommand{\barcwidth}{#1}} +\define@key{barc}{plain}[false]{\renewcommand{\barcplain}{true}} +\define@key{barc}{label}{\renewcommand{\barclabel}{#1}} +\define@key{barc}{rotation}[false]{\renewcommand{\barcrotation}{true}} + +\makeatother + +%skip args: +% #1: size +\newcommand{\barcskiplabel}{} + +\makeatletter +\define@key{barcskip}{label}{\renewcommand{\barcskiplabel}{#1}} +\makeatother + +\newenvironment{barchart}[1][]{% + \newcommand{\barc}[2][] {% + + \renewcommand{\barccolor}{blue!20} + \renewcommand{\barcwidth}{30pt} + \renewcommand{\barcplain}{false} + \renewcommand{\barclabel}{} + \renewcommand{\barcrotation}{false} + + \addtolength{\barcpos}{5mm} + \setkeys{barc}{##1} + %\fill[color=\barccolor,fill,draw](\barcpos,0) rectangle (\barcwidth+\barcpos,##2); + \fill[color=\barccolor, fill,draw](\barcpos,0) rectangle ($##2-\barcmin*(0,\barcrange/\barcrange) + (\barcwidth+\barcpos-5mm,0)$); + \draw (\barcpos,0) rectangle ($##2-\barcmin*(0,\barcrange/\barcrange) + (\barcwidth+\barcpos-5mm,0)$); + + %\node[draw, shape=circle,fill,\barccolor] at (\barcpos+\barcwidth-5mm,0){}; + %\node[draw, shape=circle,fill,\barccolor] at ($##2-\barcmin*(0,\barcrange/\barcrange) + (\barcwidth+\barcpos-5mm,0)$){##2}; + + \ifthenelse{\equal{\barcplain}{true}}{}{ + % Write value: + %\node[anchor=east] at ($(\barcpos+(\barcwidth/3,0) + (0,##2+0.5)$){##2}; + % $##2-\bcmin*(\bcwidth/\bcrange,0) + (0,\bcpos-2.5mm)$ + \node[] at ($($##2-\barcmin*(0,\barcrange/\barcrange) + (\barcwidth+\barcpos-5mm,0)$)!0.5!(\barcpos,##2+0.25+\barcmax/10) $){##2}; + } + \ifthenelse{\equal{\barcrotation}{true}}{false}{ + \node[label={[label distance=0.5cm,text depth=-1ex,rotate=-90]right:\barclabel}] at ($($\barcmin*(0,\barcrange/\barcrange) + (\barcwidth+\barcpos-5mm,0)$)!0.5!(\barcpos,1.5) $) {}; + } + \ifthenelse{\equal{\barcrotation}{false}}{true}{ + \node[label={[label distance=0.5cm,text depth=-1ex,rotate=-45]right:\barclabel}] at ($($\barcmin*(0,\barcrange/\barcrange) + (\barcwidth+\barcpos-10mm,0)$)!0.5!(\barcpos,1) $) {}; + } + + \addtolength{\barcpos}{\dimexpr(\barcwidth-20pt) \relax} + + } + + \newcommand{\barcskip}[2][]{ + \renewcommand{\barcskiplabel}{} + \setkeys{barcskip}{##1} + \addtolength{\barcpos}{##2} + } + + \renewcommand{\barcmin}{0} + \renewcommand{\barcmax}{10} + \renewcommand{\barcstep}{1} + \renewcommand{\ypos}{1em} + \renewcommand{\scale}{1} + + \renewcommand{\smallskip}[1][]{\barcskip[##1]{2.5mm}} + \renewcommand{\medskip}[1][]{\barcskip[##1]{5.0mm}} + \renewcommand{\bigskip}[1][]{\barcskip[##1]{7.5mm}} + + \newcommand{\barcrange}{\bcstripunit{\dimexpr\barcmax pt-\barcmin pt\relax}} + \renewcommand{\barcstep}{\barcrange} + \renewcommand{\barcsteps}{0,\barcstep,...,\barcrange}% + + + \setkeys{barchart}{#1} + \begin{tikzpicture}[y=\ypos, scale = \scale] +} { + + + \draw (0,0) -- (\barcpos+\barcwidth,0); + \draw (0,0) -- ($(0,(\barcmax-\barcmin)$); + \draw (0,0) -- (0-1mm,0); + \node[anchor=east] (n) at (0-1mm,0) {\bcstripunit{\dimexpr\barcmin pt\relax}}; + \coordinate (labelpos) at (n.east); + + + \foreach \x in \barcsteps { + \ifthenelse{\equal{\x}{0}}{}{ + \draw ($\x*(0,\barcmax/\barcrange) + (0,0)$) -- ($\x*(0,\barcmax/\barcrange) + (0-1mm,0)$); + \node[anchor=east] at (-1mm,\x){\bcstripunit{\dimexpr\barcmin pt+\x pt\relax}}; + } + } + + + \ifthenelse{\equal{\barcy}{}}{}{ + %\node[label={[label distance=0.5cm,align=center,text depth=-1ex,rotate=-90]left:\barcy}] at ($(-0.75,\barcmax) !0.5! (0,\barcmin)$){}; + \node[rotate=-90] at ($(-0.75-\barcmax/100,\barcmax) !0.5! (0,\barcmin)$){\barcy}; + } + \end{tikzpicture}% + + +} + +\makeatletter +\newcommand*{\bcstripunit}[1]{\strip@pt#1} +\makeatother + + +%% +%% End of file `barchart.sty'. \ No newline at end of file diff --git a/barchart/barchart_doc.aux b/barchart/barchart_doc.aux new file mode 100644 index 0000000..15c557d --- /dev/null +++ b/barchart/barchart_doc.aux @@ -0,0 +1,8 @@ +\relax +\@writefile{toc}{\contentsline {section}{\numberline {1}Introduction}{1}} +\@writefile{toc}{\contentsline {section}{\numberline {2}Charts}{1}} +\@writefile{toc}{\contentsline {section}{\numberline {3}Bars}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {4}Skips}{4}} +\@writefile{toc}{\contentsline {section}{\numberline {5}Labels}{4}} +\@writefile{toc}{\contentsline {section}{\numberline {6}Scaling}{4}} +\@writefile{toc}{\contentsline {section}{\numberline {7}Known Issues}{4}} diff --git a/barchart/barchart_doc.fdb_latexmk b/barchart/barchart_doc.fdb_latexmk new file mode 100644 index 0000000..57ea4d1 --- /dev/null +++ b/barchart/barchart_doc.fdb_latexmk @@ -0,0 +1,92 @@ +# Fdb version 3 +["pdflatex"] 1400573854 "barchart_doc.tex" "barchart_doc.pdf" "barchart_doc" 1400573900 + "/usr/local/texlive/2013/texmf-dist/tex/context/base/supp-pdf.mkii" 1337017135 71627 94eb9990bed73c364d7f53f960cc8c5b "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/etexcmds.sty" 1335995445 7612 c47308d923ec19888707b0f1792b326a "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifluatex.sty" 1303254447 7324 11d14f318d865f420e692d4e6c9c18c3 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifpdf.sty" 1303254447 7140 ece2cc23d9f20e1f53975ac167f42d3e "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/infwarerr.sty" 1335995445 8253 3bdedc8409aa5d290a2339be6f09af03 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty" 1335995445 5152 387d9200f396b498d5fd679ae44ed898 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty" 1335995445 14040 8de9f47fabc4ca3bd69b6d795e32751c "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ltxcmds.sty" 1335995445 18425 775b341047ce304520cc7c11ca41392e "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty" 1335995445 19987 01cb2f3c1d21e5f05711b7fd50b17f2a "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex" 1288312291 1006 b103be0bfc8c1682ff1fa9760697a329 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex" 1288312291 17851 c112f6fe3b1889f91d54568be38c934d "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex" 1288312291 17756 ee5bc7b20f746062c721d3fb3561530d "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex" 1288312291 5784 795b041ac60be7a46c83610345e459cb "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex" 1288312291 7101 668c6a35cbea2ae302bbff4c62370bbd "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex" 1288312291 2995 7ef0769105aad1182125ada52b0cbaa6 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex" 1203877327 2631 7eefa6cdbefd8d4e2bad7262cf1094cd "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex" 1288312291 43868 70ba8731b9094652f05c653fd1011379 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex" 1288312291 14189 bb3d2e0069dd43b25211385d7cac9d2c "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex" 1288312291 7725 917b5feaf8acae1fd979a8564eaf989c "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex" 1288312291 9518 b56e94efcd163a86f7e645fed6165055 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex" 1288312291 32491 d736244a6b667da89812f9b71e53016f "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex" 1288312291 3052 e5672c657232fd63b0a9853b0746297c "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex" 1288312291 15994 10d20fb800ca222911f363d456007171 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex" 1288312291 21374 d2661129e65955d45fb741c95bb78d7a "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.code.tex" 1288312291 16741 1d0bcd33afcd45b27dceb8fd40f9b4e5 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex" 1203727794 6577 2d95347b651f18f98fead9415f300f4a "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalc.code.tex" 1288312291 14490 6a653859ebfaf7b159324bc9a3739f12 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.tex" 1288312291 11599 d694704a88e2f9007c996d3a6a4d629c "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex" 1288312291 141845 db379d46f557a21d1a89b87a59bd9c88 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.code.tex" 1288312291 30458 cb99d585a0cb84cc8870d0c59953a396 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex" 1288312291 378 6ef5723aad20c1a3d29639e179a42dd6 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex" 1288312291 13312 f9d89166b99ea7e00e77858fe0194db1 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex" 1288312291 83664 208cb30de41494880aa77fffb3a1ccda "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex" 1288312291 8606 58f348f09f02ad9c20b10c1005bd9663 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex" 1288312291 19855 ed1993a13913c58cb372b1d66f20ea17 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex" 1288312291 7724 738eefe8218f0e08dd2c317adbca7db5 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex" 1288312291 3534 c7f28fbac13616513e513efe93b8569b "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex" 1288312291 8574 010fc7ab92ca16c2da0f097ae7066b0d "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.tex" 1288312291 6964 d4b5e82dabddda1c728063bb9c8a22ba "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.tex" 1288312291 2688 139c6abc86761a6190c2f4bef5d752be "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex" 1288312291 86620 8a979a1502115110f3469c7579238489 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex" 1288312291 27428 c613a3d1b703431360c8ef5579d00d85 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex" 1288312291 7107 704b307dcd1ea898b650a4d17fe53fbe "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex" 1288312291 20561 36e4cfc08771b8946e4669f1caa099d3 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex" 1288312291 10369 a8edc63c9a6be08baf6e4c402df10590 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex" 1288312291 38030 dfa64639c84226b6d8ea0a34ae778755 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg" 1288312291 978 15af626ebd3d4d790aac19170dac04f2 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def" 1288312291 3630 7c64370dc4387995125f5b825096be23 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def" 1288312291 12510 e20a03f54abbfc8914dba322a7a3dba7 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex" 1288312291 32236 3923b93ea40b486a68f35dd7558f335c "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex" 1203877327 1983 b5994ebbcee17f1ba3d29bb1bd696fcf "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex" 1288312291 7677 2eb6cc84c604878c08c9d943bbbc6e32 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex" 1288312291 21943 6710bea9dc92856d36a3dd219c3fdb8b "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex" 1288312291 32925 ac47add413403603a8d3c47e035bd76c "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex" 1288312291 33372 15f61ab79cad6ae1941b5caee584016a "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex" 1288312291 2320 086533930e1dade214bdcd74a189c5a5 "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex" 1288312291 13382 a0507b5422f675ba8588f019a2f8b68e "" + "/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def" 1288312291 2771 d32e3f533abf44397dd690e41e934cdc "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls" 1254151887 20571 b8bd218bf2e18b4f5817ee643cd9c515 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/base/ifthen.sty" 1254151887 5022 2ec7815b07dc68e65542e23a180bc839 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo" 1254151887 9042 248dfba326a1b8733d6bb8e0a3ac1e49 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty" 1254151804 14183 42a8fc761b806986eef292369afc2988 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty" 1156702488 7882 3bd78469d444e8d494e27cfd7ca92719 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty" 1156702488 2266 7054435e4584a41cf53b0a7ca624d0cb "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty" 1156702488 3153 c50e6bd54d2dd3933fc52bcf369bec4a "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/color.cfg" 1254097189 802 7b8c8d72c24d795ed7720e4dfd29bff3 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg" 1279039959 678 4792914a8f45be57bb98413425e4c7af "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg" 1278958963 3563 d35e897cae3b8c6848f6677b73370b54 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/ms/everyshi.sty" 1177890616 3878 6aa7c08ff2621006e0603349e40a30a8 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty" 1303254447 12029 04d7fdf76e0464c23b5aa3a727952d7c "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/grfext.sty" 1335995445 7075 bd0c34fbf1ae8fd1debd2a554e41b2d5 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/kvoptions.sty" 1335995445 22417 c74ff4af6a1aa2b65d1924020edbbe11 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/pdftex-def/pdftex.def" 1306616590 55368 3c8a0d99822330f2dfabc0dfb09ce897 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty" 1203877327 1190 7fc0a2dca176dcabef03fed7aa3e5e7e "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty" 1288312291 410 5bf12ea7330e5f12c445332a4fe9a263 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65.sty" 1203877327 21115 facf03b7dbe5ea2f5f1dce1ac84b5d05 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18.sty" 1203727794 1091 d9163d29def82ee90370c8a63667742c "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty" 1203877327 339 592cf35cba3d400082b8a9a5d0199d70 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty" 1203877327 362 4d082b7c595b2ffec199f5351c4303c9 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/utilities/pgffor.sty" 1288312291 323 c1a2c1d11990f32ace1f893aa7fee540 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty" 1203727794 274 4cad6e665cc93ac2ac979039a94fa1e1 "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty" 1203877327 325 2bcd023400636339210573e2b3ee298b "" + "/usr/local/texlive/2013/texmf-dist/tex/latex/xcolor/xcolor.sty" 1169481954 55224 a43bab84e0ac5e6efcaf9a98bde73a94 "" + "barchart.sty" 1400572657 5319 da8777f32cee5ce721bd286965b80106 "" + "barchart_doc.aux" 1400573855 494 b9d79b481fe4888ecfe7f9d3abdd05a4 "" + "barchart_doc.tex" 1400573864 3603 059d893b46539615e8f897691df1325d "" + (generated) + "barchart_doc.log" + "barchart_doc.aux" + "barchart_doc.pdf" diff --git a/barchart/barchart_doc.log b/barchart/barchart_doc.log new file mode 100644 index 0000000..bdc572b --- /dev/null +++ b/barchart/barchart_doc.log @@ -0,0 +1,537 @@ +This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=pdflatex 2013.5.30) 20 MAY 2014 10:17 +entering extended mode + restricted \write18 enabled. + %&-line parsing enabled. +**barchart_doc.tex -recorder +(./barchart_doc.tex +LaTeX2e <2011/06/27> +Babel <3.9f> and hyphenation patterns for 78 languages loaded. +(/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls +Document Class: article 2007/10/19 v1.4h Standard LaTeX document class +(/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo +File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) +) +\c@part=\count79 +\c@section=\count80 +\c@subsection=\count81 +\c@subsubsection=\count82 +\c@paragraph=\count83 +\c@subparagraph=\count84 +\c@figure=\count85 +\c@table=\count86 +\abovecaptionskip=\skip41 +\belowcaptionskip=\skip42 +\bibindent=\dimen102 +) (./barchart.sty +Package: barchart 2014/05/19 v0.01 LaTeX package for bar charts +(/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty +(/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty +(/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te +x +\pgfutil@everybye=\toks14 +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def +\pgfutil@abb=\box26 +(/usr/local/texlive/2013/texmf-dist/tex/latex/ms/everyshi.sty +Package: everyshi 2001/05/15 v3.00 EveryShipout Package (MS) +)) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex +Package: pgfrcs 2010/10/25 v2.10 (rcs-revision 1.24) +)) +Package: pgf 2008/01/15 v2.10 (rcs-revision 1.12) +(/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty +(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty +Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR) + +(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty +Package: keyval 1999/03/16 v1.13 key=value parser (DPC) +\KV@toks@=\toks15 +) +(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty +Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR) + +(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty +Package: trig 1999/03/16 v1.09 sin cos tan (DPC) +) +(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg +File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live +) +Package graphics Info: Driver file: pdftex.def on input line 91. + +(/usr/local/texlive/2013/texmf-dist/tex/latex/pdftex-def/pdftex.def +File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX + +(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/infwarerr.sty +Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO) +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ltxcmds.sty +Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO) +) +\Gread@gobject=\count87 +)) +\Gin@req@height=\dimen103 +\Gin@req@width=\dimen104 +) +(/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex +Package: pgfsys 2010/06/30 v2.10 (rcs-revision 1.37) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex +\pgfkeys@pathtoks=\toks16 +\pgfkeys@temptoks=\toks17 + +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c +ode.tex +\pgfkeys@tmptoks=\toks18 +)) +\pgf@x=\dimen105 +\pgf@y=\dimen106 +\pgf@xa=\dimen107 +\pgf@ya=\dimen108 +\pgf@xb=\dimen109 +\pgf@yb=\dimen110 +\pgf@xc=\dimen111 +\pgf@yc=\dimen112 +\w@pgf@writea=\write3 +\r@pgf@reada=\read1 +\c@pgf@counta=\count88 +\c@pgf@countb=\count89 +\c@pgf@countc=\count90 +\c@pgf@countd=\count91 + +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg +File: pgf.cfg 2008/05/14 (rcs-revision 1.7) +) +Package pgfsys Info: Driver file for pgf: pgfsys-pdftex.def on input line 900. + +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.d +ef +File: pgfsys-pdftex.def 2009/05/22 (rcs-revision 1.26) + +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-p +df.def +File: pgfsys-common-pdf.def 2008/05/19 (rcs-revision 1.10) +))) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath. +code.tex +File: pgfsyssoftpath.code.tex 2008/07/18 (rcs-revision 1.7) +\pgfsyssoftpath@smallbuffer@items=\count92 +\pgfsyssoftpath@bigbuffer@items=\count93 +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol. +code.tex +File: pgfsysprotocol.code.tex 2006/10/16 (rcs-revision 1.4) +)) (/usr/local/texlive/2013/texmf-dist/tex/latex/xcolor/xcolor.sty +Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK) + +(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/color.cfg +File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive +) +Package xcolor Info: Driver file: pdftex.def on input line 225. +Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337. +Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341. +Package xcolor Info: Model `RGB' extended on input line 1353. +Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355. +Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356. +Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357. +Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358. +Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359. +Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360. +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex +Package: pgfcore 2010/04/11 v2.10 (rcs-revision 1.7) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex +\pgfmath@dimen=\dimen113 +\pgfmath@count=\count94 +\pgfmath@box=\box27 +\pgfmath@toks=\toks19 +\pgfmath@stack@operand=\toks20 +\pgfmath@stack@operation=\toks21 +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code. +tex +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic +.code.tex) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigo +nometric.code.tex) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.rando +m.code.tex) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.compa +rison.code.tex) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base. +code.tex) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round +.code.tex) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc. +code.tex))) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex +\c@pgfmathroundto@lastzeros=\count95 +)) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.co +de.tex +File: pgfcorepoints.code.tex 2010/04/09 (rcs-revision 1.20) +\pgf@picminx=\dimen114 +\pgf@picmaxx=\dimen115 +\pgf@picminy=\dimen116 +\pgf@picmaxy=\dimen117 +\pgf@pathminx=\dimen118 +\pgf@pathmaxx=\dimen119 +\pgf@pathminy=\dimen120 +\pgf@pathmaxy=\dimen121 +\pgf@xx=\dimen122 +\pgf@xy=\dimen123 +\pgf@yx=\dimen124 +\pgf@yy=\dimen125 +\pgf@zx=\dimen126 +\pgf@zy=\dimen127 +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconst +ruct.code.tex +File: pgfcorepathconstruct.code.tex 2010/08/03 (rcs-revision 1.24) +\pgf@path@lastx=\dimen128 +\pgf@path@lasty=\dimen129 +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage +.code.tex +File: pgfcorepathusage.code.tex 2008/04/22 (rcs-revision 1.12) +\pgf@shorten@end@additional=\dimen130 +\pgf@shorten@start@additional=\dimen131 +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.co +de.tex +File: pgfcorescopes.code.tex 2010/09/08 (rcs-revision 1.34) +\pgfpic=\box28 +\pgf@hbox=\box29 +\pgf@layerbox@main=\box30 +\pgf@picture@serial@count=\count96 +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicst +ate.code.tex +File: pgfcoregraphicstate.code.tex 2008/04/22 (rcs-revision 1.9) +\pgflinewidth=\dimen132 +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransform +ations.code.tex +File: pgfcoretransformations.code.tex 2009/06/10 (rcs-revision 1.11) +\pgf@pt@x=\dimen133 +\pgf@pt@y=\dimen134 +\pgf@pt@temp=\dimen135 +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.cod +e.tex +File: pgfcorequick.code.tex 2008/10/09 (rcs-revision 1.3) +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.c +ode.tex +File: pgfcoreobjects.code.tex 2006/10/11 (rcs-revision 1.2) +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathproce +ssing.code.tex +File: pgfcorepathprocessing.code.tex 2008/10/09 (rcs-revision 1.8) +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.co +de.tex +File: pgfcorearrows.code.tex 2008/04/23 (rcs-revision 1.11) +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.cod +e.tex +File: pgfcoreshade.code.tex 2008/11/23 (rcs-revision 1.13) +\pgf@max=\dimen136 +\pgf@sys@shading@range@num=\count97 +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.cod +e.tex +File: pgfcoreimage.code.tex 2010/03/25 (rcs-revision 1.16) + +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal. +code.tex +File: pgfcoreexternal.code.tex 2010/09/01 (rcs-revision 1.17) +\pgfexternal@startupbox=\box31 +)) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.co +de.tex +File: pgfcorelayers.code.tex 2010/08/27 (rcs-revision 1.2) +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretranspare +ncy.code.tex +File: pgfcoretransparency.code.tex 2008/01/17 (rcs-revision 1.2) +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns. +code.tex +File: pgfcorepatterns.code.tex 2009/07/02 (rcs-revision 1.3) +))) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.cod +e.tex +File: pgfmoduleshapes.code.tex 2010/09/09 (rcs-revision 1.13) +\pgfnodeparttextbox=\box32 +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code. +tex +File: pgfmoduleplot.code.tex 2010/10/22 (rcs-revision 1.8) +) +(/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version +-0-65.sty +Package: pgfcomp-version-0-65 2007/07/03 v2.10 (rcs-revision 1.7) +\pgf@nodesepstart=\dimen137 +\pgf@nodesepend=\dimen138 +) +(/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version +-1-18.sty +Package: pgfcomp-version-1-18 2007/07/23 v2.10 (rcs-revision 1.1) +)) +(/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/utilities/pgffor.sty +(/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex) +) (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex +Package: pgffor 2010/03/23 v2.10 (rcs-revision 1.18) +\pgffor@iter=\dimen139 +\pgffor@skip=\dimen140 +\pgffor@stack=\toks22 +\pgffor@toks=\toks23 +)) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.cod +e.tex +Package: tikz 2010/10/13 v2.10 (rcs-revision 1.76) + +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothan +dlers.code.tex +File: pgflibraryplothandlers.code.tex 2010/05/31 v2.10 (rcs-revision 1.15) +\pgf@plot@mark@count=\count98 +\pgfplotmarksize=\dimen141 +) +\tikz@lastx=\dimen142 +\tikz@lasty=\dimen143 +\tikz@lastxsaved=\dimen144 +\tikz@lastysaved=\dimen145 +\tikzleveldistance=\dimen146 +\tikzsiblingdistance=\dimen147 +\tikz@figbox=\box33 +\tikz@tempbox=\box34 +\tikztreelevel=\count99 +\tikznumberofchildren=\count100 +\tikznumberofcurrentchild=\count101 +\tikz@fig@count=\count102 + +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.cod +e.tex +File: pgfmodulematrix.code.tex 2010/08/24 (rcs-revision 1.4) +\pgfmatrixcurrentrow=\count103 +\pgfmatrixcurrentcolumn=\count104 +\pgf@matrix@numberofcolumns=\count105 +) +\tikz@expandcount=\count106 + +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie +s/tikzlibrarytopaths.code.tex +File: tikzlibrarytopaths.code.tex 2008/06/17 v2.10 (rcs-revision 1.2) +))) +(/usr/local/texlive/2013/texmf-dist/tex/latex/base/ifthen.sty +Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC) +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie +s/tikzlibrarycalc.code.tex +File: tikzlibrarycalc.code.tex 2009/09/04 v2.10 (rcs-revision 1.6) +) +\barcpos=\skip43 +\barctotalWidth=\skip44 +) (./barchart_doc.aux) +\openout1 = `barchart_doc.aux'. + +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 11. +LaTeX Font Info: ... okay on input line 11. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 11. +LaTeX Font Info: ... okay on input line 11. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 11. +LaTeX Font Info: ... okay on input line 11. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 11. +LaTeX Font Info: ... okay on input line 11. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 11. +LaTeX Font Info: ... okay on input line 11. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 11. +LaTeX Font Info: ... okay on input line 11. + +ABD: EveryShipout initializing macros +(/usr/local/texlive/2013/texmf-dist/tex/context/base/supp-pdf.mkii +[Loading MPS to PDF converter (version 2006.09.02).] +\scratchcounter=\count107 +\scratchdimen=\dimen148 +\scratchbox=\box35 +\nofMPsegments=\count108 +\nofMParguments=\count109 +\everyMPshowfont=\toks24 +\MPscratchCnt=\count110 +\MPscratchDim=\dimen149 +\MPnumerator=\count111 +\makeMPintoPDFobject=\count112 +\everyMPtoPDFconversion=\toks25 +) (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty +Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO +) + +(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifluatex.sty +Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO) +Package ifluatex Info: LuaTeX not detected. +) +(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifpdf.sty +Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO) +Package ifpdf Info: pdfTeX in PDF mode is detected. +) +Package pdftexcmds Info: LuaTeX not detected. +Package pdftexcmds Info: \pdf@primitive is available. +Package pdftexcmds Info: \pdf@ifprimitive is available. +Package pdftexcmds Info: \pdfdraftmode found. +) +(/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty +Package: epstopdf-base 2010/02/09 v2.5 Base part for package epstopdf + +(/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/grfext.sty +Package: grfext 2010/08/19 v1.1 Manage graphics extensions (HO) + +(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty +Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO) +)) +(/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/kvoptions.sty +Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO) + +(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty +Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO) + +(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/etexcmds.sty +Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO) +Package etexcmds Info: Could not find \expanded. +(etexcmds) That can mean that you are not using pdfTeX 1.50 or +(etexcmds) that some package has redefined \expanded. +(etexcmds) In the latter case, load this package earlier. +))) +Package grfext Info: Graphics extension search list: +(grfext) [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE +G,.JBIG2,.JB2,.eps] +(grfext) \AppendGraphicsExtensions on input line 452. + +(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg +File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv +e +)) +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <17.28> on input line 13. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <12> on input line 13. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line 13. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line 13. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line 16. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line 16. +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! + +[1 + +{/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! + +[2] +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! + [3] +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! +Missing character: There is no t in font nullfont! +Missing character: There is no r in font nullfont! +Missing character: There is no u in font nullfont! +Missing character: There is no e in font nullfont! + [4] (./barchart_doc.aux) ) +Here is how much of TeX's memory you used: + 10169 strings out of 493315 + 195609 string characters out of 6137904 + 241784 words of memory out of 5000000 + 13426 multiletter control sequences out of 15000+600000 + 8698 words of font info for 32 fonts, out of 8000000 for 9000 + 957 hyphenation exceptions out of 8191 + 63i,8n,57p,432b,830s stack positions out of 5000i,500n,10000p,200000b,80000s + +Output written on barchart_doc.pdf (4 pages, 94660 bytes). +PDF statistics: + 52 PDF objects out of 1000 (max. 8388607) + 37 compressed objects within 1 object stream + 0 named destinations out of 1000 (max. 500000) + 13 words of extra memory for PDF output out of 10000 (max. 10000000) + diff --git a/barchart/barchart_doc.pdf b/barchart/barchart_doc.pdf new file mode 100644 index 0000000..6530f1e Binary files /dev/null and b/barchart/barchart_doc.pdf differ diff --git a/barchart/barchart_doc.pdf alias b/barchart/barchart_doc.pdf alias new file mode 100644 index 0000000..e69de29 diff --git a/barchart/barchart_doc.synctex.gz b/barchart/barchart_doc.synctex.gz new file mode 100644 index 0000000..6ab9685 Binary files /dev/null and b/barchart/barchart_doc.synctex.gz differ diff --git a/barchart/barchart_doc.tex b/barchart/barchart_doc.tex new file mode 100644 index 0000000..e2dc22a --- /dev/null +++ b/barchart/barchart_doc.tex @@ -0,0 +1,159 @@ +\documentclass[]{article} +\usepackage{barchart} + +\title{\texttt{barchart}: Easy Bar Chart in \LaTeX + \medskip\\ + \large Version 0.1.0 +} +\author{Frederik Vanggaard} +\date{\today} + +\begin{document} + +\maketitle + +\section{Introduction} +\texttt{barchart} is a \LaTeX\space package for creating simple and easy to use bar-chart. The package is heavily inspired by \texttt{bchart} by Tobias Kuhn. \texttt{barchart} provides an easy way to create vertical barcharts using Tikz. + +\section{Charts} +\texttt{barchart} comes with a variety of customization options for both the overall chart and for each individual bar. A simple chart can be done like this: + +\begin{quote}\small +\begin{verbatim} +\begin{barchart} + \barc{5} + \barc{7} + \barc{3} +\end{barchart} +\end{verbatim} +\end{quote} +\begin{quote}\small +\begin{figure}[ht] + \begin{barchart} + \barc{5} + \barc{7} + \barc{3} + \end{barchart} +\end{figure} +\end{quote} + +The only arguments that are mandatory is the bar value. The charts can be changed using a few simple options such as \texttt{min}, \texttt{max} and \texttt{step}. + +\begin{quote}\small +\begin{verbatim} +\begin{barchart}[min = 0, max = 60, step = 10, height=0.25em] + \barc{30} + \barc{20} + \barc{50} +\end{barchart} +\end{verbatim} +\end{quote} +\begin{quote}\small +\begin{figure}[ht] + \begin{barchart}[min = 0, max = 60, step = 10, height=0.25em] + \barc{30} + \barc{20} + \barc{50} + \end{barchart} +\end{figure} +\end{quote} + +\texttt{height} is used to set the height of the whole chart. Omitting a height on charts with large \texttt{max} values will make the chart enormous. + +\section{Bars} +Each bar can be customized to your liking. This can be done using \texttt{color}, \texttt{width} and \texttt{plain}. +\texttt{color} changes the color of each bar like: + + +\begin{quote}\small +\begin{verbatim} +\begin{barchart}[step = 2] + \barc[color=yellow!60]{5} + \barc[color=orange!60]{7} + \barc[color=cyan!60]{3} +\end{barchart} +\end{verbatim} +\end{quote} +\begin{quote}\small +\begin{figure}[ht] + \begin{barchart}[step = 2] + \barc[color=yellow!60]{5} + \barc[color=orange!60]{7} + \barc[color=cyan!60]{3} + \end{barchart} +\end{figure} +\end{quote} + +\texttt{width} changes the width of each bar: + +\begin{quote}\small +\begin{verbatim} +\begin{barchart}[step = 2] + \barc[width=40pt]{5} + \barc[width=30pt]{7} + \barc[width=50pt]{3} + \barc[width=20pt]{3} +\end{barchart} +\end{verbatim} +\end{quote} +\begin{quote}\small +\begin{figure}[ht] + \begin{barchart}[step = 2] + \barc[width=40pt]{5} + \barc[width=30pt]{7} + \barc[width=50pt]{3} + \barc[width=20pt]{3} + \end{barchart} +\end{figure} +\end{quote} +Using less than \texttt{20pt} is not recommended. Instead of using pre-defined step as the examples have shown so far, \texttt{steps} can be used. + +\begin{quote}\small +\begin{verbatim} +\begin{barchart}[steps = {1,3,5,7,10}] + \barc{5} + \barc{7} + \barc{3} +\end{barchart} +\end{verbatim} +\end{quote} +\begin{quote}\small +\begin{figure}[ht] + \begin{barchart}[steps = {1,3,5,7,10}] + \barc{5} + \barc{7} + \barc{3} + \end{barchart} +\end{figure} +\end{quote} + +\texttt{plain} is a boolean which can either be \texttt{true} or \texttt{false} and removes the label on the bar. +\begin{quote}\small +\begin{verbatim} +\begin{barchart} + \barc{5} + \barc[plain=true]{7} + \barc[plain=true]{3} +\end{barchart} +\end{verbatim} +\end{quote} +\begin{quote}\small +\begin{figure}[ht] + \begin{barchart} + \barc{5} + \barc[plain=true]{7} + \barc[plain=true]{3} + \end{barchart} +\end{figure} +\end{quote} + + +\section{Skips} + +\section{Labels} + +\section{Scaling} + +\section{Known Issues} + +\end{document} \ No newline at end of file diff --git a/barchart/barchart_example.pdf b/barchart/barchart_example.pdf new file mode 100644 index 0000000..ab78811 Binary files /dev/null and b/barchart/barchart_example.pdf differ diff --git a/barchart/barchart_example.tex b/barchart/barchart_example.tex new file mode 100644 index 0000000..f00a84c --- /dev/null +++ b/barchart/barchart_example.tex @@ -0,0 +1,47 @@ +\documentclass[]{article} +\usepackage{barchart} + + +\begin{document} +\section{Bar Chart Example} + +\begin{figure}[ht] + \begin{barchart}[min = 0, max = 10, step = 2, height = 0.75em, scale = 2, label=Something nice] + \barc[label = test, rotation = true, width = 20pt, color = blue!60]{1} + \barcskip{5pt} + \barc[width = 20pt, color = cyan!60]{3} + \barcskip{5pt} + \barc[width = 20pt, color = yellow!60]{7} + \barcskip{5pt} + \barc[label = a long label, rotation = true,width = 20pt, color = orange!60]{5} + \barcskip{5pt} + \barc[width = 20pt, color = red!60]{3} + \barcskip{5pt} + \barc[color = magenta!60]{6} + \barcskip{5pt} + \barc[color = green!60]{6} + \barcskip{5pt} + \barc[label = lol,color = green!60]{9} + \barcskip{5pt} + \barc[color = green!60, plain=true]{3} + \barcskip{5pt} + \barc[color = green!60]{3} + \barcskip{5pt} + \barc[label = again?, rotation=true, color = green!60, plain=true]{3} + \barcskip{5pt} + \barc[color = green!60, label=a loooong label]{3} + \end{barchart} + \caption{A nice caption} +\end{figure} + +\begin{figure}[ht] + \begin{barchart}[min = 0, max = 100, step = 10, height = 0.5ex, scale = 1, label=Something nice] + \barc[label = test, width = 20pt, color = blue!60]{50} + \barcskip{5pt} + \barc[width = 30pt, color = cyan!60]{75} + \barcskip{5pt} + \end{barchart} + \caption{A nice caption} +\end{figure} + +\end{document} \ No newline at end of file