diff options
author | Karl Berry <karl@freefriends.org> | 2011-10-14 23:25:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-10-14 23:25:45 +0000 |
commit | cf02168f68651051c7b0bd61322a7f5547565129 (patch) | |
tree | e1add7fbc36a1399a84a69f06e825f123f53131b /Master/texmf-dist/doc/latex/pstricks-examples-en/aebocg.fdf | |
parent | 895adaa5b890a2593a7da3e90d8f1d9a96c1220d (diff) |
new doc pstricks-examples-en (14oct11)
git-svn-id: svn://tug.org/texlive/trunk@24289 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pstricks-examples-en/aebocg.fdf')
-rw-r--r-- | Master/texmf-dist/doc/latex/pstricks-examples-en/aebocg.fdf | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pstricks-examples-en/aebocg.fdf b/Master/texmf-dist/doc/latex/pstricks-examples-en/aebocg.fdf new file mode 100644 index 00000000000..a343c13462f --- /dev/null +++ b/Master/texmf-dist/doc/latex/pstricks-examples-en/aebocg.fdf @@ -0,0 +1,49 @@ +%FDF-1.2 +1 0 obj +<< /FDF << /JavaScript << /Doc 2 0 R >> >> >> +endobj +2 0 obj +[ (AeB Pro: OCG Support) 3 0 R ] +endobj +3 0 obj +<<>> +stream +var ocgs = this.getOCGOrder(); +var xBlds = new Array(); +console.println("Reindexing ocgs and creating xBlds"); +if ( ocgs != null ) { + var l = ocgs.length; + for ( i=0; i<l; i++ ) { + if (ocgs[0].name.substring(0,3) == "xb." ) + xBlds.push(ocgs.shift()); + else ocgs.push(ocgs.shift()); + } +} +var assocxLayers = new Array(); +if ( xBlds != null ) { + for ( var i=0; i<xBlds.length; i++) + assocxLayers[xBlds[i].name]=i; +} +function getxBld (name) { + var i = assocxLayers["xb."+name]; + return ( i == undefined ) ? null : xBlds[i]; +} +function toggleHelp (name) +{ + var o = getxBld(name); + if ( o != null ) o.state = (event.name.indexOf("Enter") != -1); +} +function toggleSetThisLayer(name, bState) { + var oLayer = getxBld(name); + if ( oLayer != null ) + oLayer.state = (arguments.length > 1) ? bState : !oLayer.state; +} +function getLayerState(name) { + var oLayer = getxBld(name); + return ( oLayer != null ) ? oLayer.state : null; +} +endstream +endobj +trailer +<< /Root 1 0 R >> +%%EOF |