summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/bchart/CHANGES.txt7
-rw-r--r--Master/texmf-dist/doc/latex/bchart/bchart.pdfbin138879 -> 141445 bytes
-rw-r--r--Master/texmf-dist/doc/latex/bchart/bchart.tex47
-rw-r--r--Master/texmf-dist/tex/latex/bchart/bchart.sty9
4 files changed, 57 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/latex/bchart/CHANGES.txt b/Master/texmf-dist/doc/latex/bchart/CHANGES.txt
new file mode 100644
index 00000000000..dd24339b477
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/bchart/CHANGES.txt
@@ -0,0 +1,7 @@
+Changelog for bchart
+====================
+
+Version 0.1.1:
+- New "value" option for bars
+- Discussion of known issue with "Dimension too large" error
+
diff --git a/Master/texmf-dist/doc/latex/bchart/bchart.pdf b/Master/texmf-dist/doc/latex/bchart/bchart.pdf
index b1465748b74..430cd442c95 100644
--- a/Master/texmf-dist/doc/latex/bchart/bchart.pdf
+++ b/Master/texmf-dist/doc/latex/bchart/bchart.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/bchart/bchart.tex b/Master/texmf-dist/doc/latex/bchart/bchart.tex
index d483a23dcea..9e0447c6dd8 100644
--- a/Master/texmf-dist/doc/latex/bchart/bchart.tex
+++ b/Master/texmf-dist/doc/latex/bchart/bchart.tex
@@ -7,10 +7,10 @@
\title{
\texttt{bchart}: Simple Bar Charts in \LaTeX
\medskip\\
- \large Version 0.1.0
+ \large Version 0.1.1
}
\author{Tobias Kuhn}
-\date{22 November 2011}
+\date{16 March 2012}
\begin{document}
@@ -152,6 +152,22 @@ The \texttt{plain}-flag can be used to prevent the value of the bar to be displa
\end{bchart}
\end{quote}
+With the \texttt{value}-option, the value to be displayed to the right of the bar can be modified:
+\begin{quote}\small
+\begin{verbatim}
+\begin{bchart}[step=2,max=8]
+ \bcbar[value=six]{6}
+ \bcbar[value=III]{3}
+\end{bchart}
+\end{verbatim}
+\end{quote}
+\begin{quote}
+\begin{bchart}[step=2,max=8]
+ \bcbar[value=six]{6}
+ \bcbar[value=III]{3}
+\end{bchart}
+\end{quote}
+
\section{Skips}
@@ -360,7 +376,9 @@ These three ways to change the size of the chart can all be combined to produce
\section{Known Issues}
-There is currently one known issue with this package. When using fractions in the \texttt{step}-option, sometimes rounding errors become apparent:
+There are some known issues with this package. Below, they are discussed and workarounds are presented.
+
+When using fractions in the \texttt{step}-option, sometimes rounding errors become apparent:
\begin{quote}\small
\begin{verbatim}
\begin{bchart}[step=0.2,max=1]
@@ -387,5 +405,28 @@ As a workaround, the \texttt{steps}-option can be used instead, where all marks
\end{bchart}
\end{quote}
+Another known issue is the fact that you can get a \LaTeX{} error message saying ``Dimension too large'' when using large numbers:
+\begin{quote}\small
+\begin{verbatim}
+\begin{bchart}[max=20000]
+ \bcbar{18000}
+\end{bchart}
+\end{verbatim}
+\end{quote}
+A possible workaround is moving the decimal point of all numbers by a couple of digits and manually adding the real value with the \texttt{value}-option:
+\begin{quote}\small
+\begin{verbatim}
+\begin{bchart}[max=20]
+ \bcbar[value=18000]{18}
+\end{bchart}
+\end{verbatim}
+\end{quote}
+\begin{quote}
+\begin{bchart}[max=20]
+ \bcbar[value=18000]{18}
+\end{bchart}
+\end{quote}
+This is only a partial workaround though, since the numbers on the x-axis cannot be manually modified.
+
\end{document}
diff --git a/Master/texmf-dist/tex/latex/bchart/bchart.sty b/Master/texmf-dist/tex/latex/bchart/bchart.sty
index 36851c4763f..212d4feac4e 100644
--- a/Master/texmf-dist/tex/latex/bchart/bchart.sty
+++ b/Master/texmf-dist/tex/latex/bchart/bchart.sty
@@ -1,8 +1,8 @@
%-------------------------------------------------------------------------------
% bchart (LaTeX package)
%-------------------------------------------------------------------------------
-% Version: 0.1.0
-% Date: 22 November 2011
+% Version: 0.1.1
+% Date: 16 March 2012
% Author: Tobias Kuhn
%-------------------------------------------------------------------------------
@@ -45,11 +45,13 @@
\newcommand{\bcbarcolor}{}
\newcommand{\bcbartext}{}
\newcommand{\bcbarlabel}{}
+\newcommand{\bcbarvalue}{}
\newcommand{\bcplainbar}{}
\makeatletter
\define@key{bcbar}{color}{\renewcommand{\bcbarcolor}{#1}}
\define@key{bcbar}{text}{\renewcommand{\bcbartext}{#1}}
\define@key{bcbar}{label}{\renewcommand{\bcbarlabel}{#1}}
+\define@key{bcbar}{value}{\renewcommand{\bcbarvalue}{#1}}
\define@key{bcbar}{plain}[false]{\renewcommand{\bcplainbar}{true}}
\makeatother
@@ -71,6 +73,7 @@
\renewcommand{\bcbarcolor}{blue!20}
\renewcommand{\bcbartext}{}
\renewcommand{\bcbarlabel}{}
+ \renewcommand{\bcbarvalue}{##2\bcunit}
\renewcommand{\bcplainbar}{false}
% Read parameters:
\setkeys{bcbar}{##1}
@@ -79,7 +82,7 @@
\draw (0,\bcpos) rectangle ($##2-\bcmin*(\bcwidth/\bcrange,0) + (0,\bcpos-5mm)$);
\ifthenelse{\equal{\bcplainbar}{true}}{}{
% Write value:
- \node[anchor=west] at ($##2-\bcmin*(\bcwidth/\bcrange,0) + (0,\bcpos-2.5mm)$) {\sf ##2\bcunit};
+ \node[anchor=west] at ($##2-\bcmin*(\bcwidth/\bcrange,0) + (0,\bcpos-2.5mm)$) {\sf \bcbarvalue};
}
% Write text:
\node[anchor=west] at (0,\bcpos-2.5mm) {\sf \bcbartext};