From 4b0f677aea00124171602de9498d50ac10d71eb3 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 20 Sep 2019 03:00:40 +0000 Subject: CTAN sync 201909200300 --- macros/latex/contrib/ocgx2/README.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'macros/latex/contrib/ocgx2/README.md') diff --git a/macros/latex/contrib/ocgx2/README.md b/macros/latex/contrib/ocgx2/README.md index e8b100e0cd..1f33d755ed 100644 --- a/macros/latex/contrib/ocgx2/README.md +++ b/macros/latex/contrib/ocgx2/README.md @@ -162,9 +162,9 @@ directive `\AllOff{...}` is written as `\Not{ \Or{ ... } }`. These are the available commands: ````latex -\switchocg[]{}{} -\showocg[]{}{} -\hideocg[]{}{} +\switchocg[]{}{} +\showocg[]{}{} +\hideocg[]{}{} \actionsocg[]{}{}{}{} ```` For details about their usage, read the @@ -172,18 +172,22 @@ For details about their usage, read the By default, links are triggered on mouse-click. Other triggers are possible with `ocgx2`. For this, `ocgx2` provides the optional argument `[]` to -the commands listed above. Choose one of +the commands listed above. Choose *one* of ````latex onmousenter, onmouseexit, onmousedown, onmouseup, onmouseall ```` for ``. In order to listen to more than one mouse event, use `onmouseall`. OCG ids in the mandatory argument(s) must then be grouped with -commas as follows: +braces and commas as follows: ````latex - , , , + {}, {}, {}, {} ```` Any of these groups may be left empty in order to configure only some -triggers. Inside the groups, OCG ids are separated by spaces. +triggers. Inside the groups, OCG ids are also separated by commas. Therefore, +braces must be put around the groups. For example: +````latex +\switchocg[onmouseall]{, ,{ocg1, ocg2, ocg3, ocg4},{ocg1, ocg2, ocg3, ocg4}}{Toggle layers on mouse-down and -up} +```` ---- -- cgit v1.2.3