From 7550a40711358021c4e6028deb4aa9d11fc503e4 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 1 Oct 2019 11:31:05 +0900 Subject: add bargraph-js --- texmf-dist/doc/latex/bargraph-js/README.md | 27 + .../doc/latex/bargraph-js/bargraphjs-man.pdf | Bin 0 -> 263600 bytes .../doc/latex/bargraph-js/bargraphjs-man.tex | 1189 ++++++++++++++++ .../latex/bargraph-js/examples/bgjs-examples.dtx | 1451 ++++++++++++++++++++ .../latex/bargraph-js/examples/bgjs-examples.ins | 66 + .../latex/bargraph-js/examples/bgjs-examples.pdf | Bin 0 -> 265306 bytes .../examples/binomial-dist/binomial-tbl-gh.tex | 401 ++++++ 7 files changed, 3134 insertions(+) create mode 100644 texmf-dist/doc/latex/bargraph-js/README.md create mode 100644 texmf-dist/doc/latex/bargraph-js/bargraphjs-man.pdf create mode 100644 texmf-dist/doc/latex/bargraph-js/bargraphjs-man.tex create mode 100644 texmf-dist/doc/latex/bargraph-js/examples/bgjs-examples.dtx create mode 100644 texmf-dist/doc/latex/bargraph-js/examples/bgjs-examples.ins create mode 100644 texmf-dist/doc/latex/bargraph-js/examples/bgjs-examples.pdf create mode 100644 texmf-dist/doc/latex/bargraph-js/examples/binomial-dist/binomial-tbl-gh.tex (limited to 'texmf-dist/doc') diff --git a/texmf-dist/doc/latex/bargraph-js/README.md b/texmf-dist/doc/latex/bargraph-js/README.md new file mode 100644 index 00000000..5cb1b59f --- /dev/null +++ b/texmf-dist/doc/latex/bargraph-js/README.md @@ -0,0 +1,27 @@ +The bargraph-js Package +Author: D. P. Story +Dated: 2019-04-07 + +The package uses Acrobat forms and Acrobat JavaScript API to create and +manipulate interactive bar graphs. This means the user can enter data in a +couple formats, to populate the bar graphs. The package can also be used to +create and display discrete probability distributions, for both the pmf and +cdf of a distribution. + +Any bar graph created by the bargraph-js package requires Adobe Reader DC (or +Acrobat) for full functionality. + +PDF Creators: Any of the usual PDF creator can be used; however, to repeat, +an Adobe PDF reader is required for full functionality. + +Enjoy! + +Now, I must get back to my retirement. + + +D. P. Story +www.acrotex.net +dpstory@uakron.edu +dpstory@acrotex.net + + diff --git a/texmf-dist/doc/latex/bargraph-js/bargraphjs-man.pdf b/texmf-dist/doc/latex/bargraph-js/bargraphjs-man.pdf new file mode 100644 index 00000000..9070a144 Binary files /dev/null and b/texmf-dist/doc/latex/bargraph-js/bargraphjs-man.pdf differ diff --git a/texmf-dist/doc/latex/bargraph-js/bargraphjs-man.tex b/texmf-dist/doc/latex/bargraph-js/bargraphjs-man.tex new file mode 100644 index 00000000..2dd5e673 --- /dev/null +++ b/texmf-dist/doc/latex/bargraph-js/bargraphjs-man.tex @@ -0,0 +1,1189 @@ +\documentclass{article} +\usepackage[fleqn]{amsmath} +\usepackage[ + web={centertitlepage,designv,forcolorpaper,tight*,latextoc,extended}, + eforms={usealtadobe,setcorder},aebxmp +]{aeb_pro} +\usepackage[dynamic]{bargraph-js} +%\usepackage[ImplMulti]{dljslib} +\usepackage{graphicx,array,fancyvrb} +\usepackage{aeb_mlink} +%\usepackage{myriadpro} +%\usepackage{calibri} +\usepackage[altbullet]{lucidbry} + +\hfuzz2pt +\makePDasXOn + %\previewOn\pmpvOn + +\def\hardspace{{\fontfamily{cmtt}\selectfont\symbol{32}}} +\let\uif\textsf + +\advance\marginparwidth12pt + +\usepackage{acroman} +\usepackage[active]{srcltx} + +\edef\amtIndent{\the\parindent} + +\addtolength{\marginparwidth}{2pt} + +\urlstyle{tt} + +\def\STRUT{\rule{0pt}{14pt}} + +\makeatletter +\newcount\hesheCnt \hesheCnt=-1 +\def\heshe{\@ifstar{\heshei}{\global\advance\hesheCnt1\relax\heshei}} +\def\heshei{\ifodd\hesheCnt she\else he\fi} +\def\HeShe{\@ifstar{\HeShei}{\global\advance\hesheCnt1\relax\HeShei}} +\def\HeShei{\ifodd\hesheCnt She\else He\fi} +\def\hisher{\@ifstar{\hisheri}{\global\advance\hesheCnt1\relax\hisheri}} +\def\hisheri{\ifodd\hesheCnt her\else his\fi} +\def\himher{\@ifstar{\himheri}{\global\advance\hesheCnt1\relax\himheri}} +\def\himheri{\ifodd\hesheCnt her\else him\fi} +\makeatother + +\DeclareDocInfo +{ + university={\AcroTeX.Net}, + title={The \textsf{bargraph-js} Package}, + author={D. P. Story}, + email={dpstory@acrotex.net}, + subject=Documentation for the bargraph-js package, + talksite={\url{www.acrotex.net}}, + version={0.7,2019/04/07}, + Keywords={LaTeX, form fields, bargraphs using JavaScript, AcroTeX}, + copyrightStatus=True, + copyrightNotice={Copyright (C) \the\year, D. P. Story}, + copyrightInfoURL={http://www.acrotex.net} +} + +\universityLayout{fontsize=Large} +\titleLayout{fontsize=LARGE} +\authorLayout{fontsize=Large} +\tocLayout{fontsize=Large,color=aeb} +\sectionLayout{indent=-62.5pt,fontsize=large,color=aeb} +\subsectionLayout{indent=-31.25pt,color=aeb} +\subsubsectionLayout{indent=0pt,color=aeb} +\subsubDefaultDing{\texorpdfstring{$\bullet$}{\textrm\textbullet}} + +\begin{insDLJS*}{lbl} +\begin{newsegment}{Labeling function} +function customLabelsForBars(fld,v){ +var pos=fld.indexOf("."); +var bargraph=fld.substring(0,pos); +var bar=fld.substring(pos+1); + switch(bargraph) { + case "vehiclesH@hBar": + switch(bar) { + case "auto": + return "Automobiles: "+v; + case "truck": + return "Pickup trucks: "+v; + case "suv": + return "SUV types: "+v+", costing big \$\$s"; + case "van": + return "Family vans: "+v + +", these cost some serious \u20AC\u20ACs"; + default: + return simpleBarLabels(fld,v); + } +// other cases can be included + default: + return simpleBarLabels(fld,v); + } +} +\end{newsegment} +\begin{newsegment}{Validate input data} +function validateArrayNonNegNums(aValue){ + var bOk=true; + for (var i=0; i