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 --- .../doc/latex/bargraph-js/bargraphjs-man.tex | 1189 ++++++++++++++++++++ 1 file changed, 1189 insertions(+) create mode 100644 texmf-dist/doc/latex/bargraph-js/bargraphjs-man.tex (limited to 'texmf-dist/doc/latex/bargraph-js/bargraphjs-man.tex') 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