Questions tagged [ocgx2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

OCGX Overlapping Links Visibility

I'm using OCGX to generate multiple layers with text and links. All layers are set invisible/hidden (0) by default, except one "main" visible layer. The purpose of this is so when the PDF is opened in ...
4
votes
0answers
97 views

Link colour fills page [closed]

This morning I updated my local MikTeX distribution with the pending package updates. I now get a completely blue page if the page contains a link, but only when compiled with XeLaTeX. Removing ocgx2 ...
0
votes
0answers
44 views

Can I use pdftooltip from pdfcomment for a tikz ocgx2 switch

I am using ocgx2 to toggle the visibility of elements in a complex tikz graph. Additionally, I want to explain what happens when someone clicks on a switch in a pdf tooltip. However, I am struggling ...
4
votes
1answer
103 views

Tikz & OCG: make button cycling through different layers

I would like to have an OCG button which, when pressed, cycles through a set of OCG layers. I've tried using self-referencing OCG buttons, where each toggled the other (I tried with and without ...
4
votes
1answer
237 views

Stacking pdf layers

I am trying to display different boxes with a logo in it based on which PDF layers are active. See the image below In my example I only have 3, but for my actual problem I am guessing I need 3 groups....
2
votes
1answer
109 views

ocgx2, xparse, expl3: splitting comma separated OCMD/OCGs lists of arguments for references automation

On an applicative level, this question follows a previous one about quizzes (MCQs) with OCGs. But it seems (I suspect) that the issue might come from expansion concept and/or LaTeX3 syntax on how to ...
5
votes
1answer
345 views

ocgx2: verify and reset of Multiple Choice Questions with OCGs

EDIT: The original question was unclear, not well-posed, posted too early and too much verbose. After having some rest and digging more in deep the issue, I am now able to answer by myself to almost ...
3
votes
1answer
66 views

How to add a particular object to an `ocg` list

This is an addendum of a previous question: How to put a box and use columns to separate arrows. Please consider this MWE (adapted from a nice answer of that question): \documentclass{article} \...
4
votes
1answer
265 views

Creating a lot of checkbox'es to make visible/invisible arrows using `tikzpicture` environment

I have this MWE, taken from marmot's nice answer: \documentclass{article} \usepackage[margin=0in,footskip=0in,paperwidth=60cm,paperheight=29cm]{geometry} \usepackage[english]{babel} \usepackage[utf8]{...
3
votes
2answers
126 views

Is there a bug with the `switch ocg with mark on` key of the ocgx and ocgx2 packages?

Indeed, with this key, visibility does not work properly. I quote the manual: /tikz/switch ocg with mark on={<ocg reference»}{<OCGs list> } These styles transform the current path or ...
2
votes
1answer
92 views

Scalebox not working properly inside hyperlinks when using ocgx2 package

I am using hyperlink text formatted with graphicx' \scalebox command with independent factors for horizontal and vertical scaling. When formatting is applied inside hyperref's hyperlinks, the text in ...
1
vote
2answers
113 views

Problem with using glossaries-extra with ocgcolorlinks option of the ocgx2 package and scalebox-based glsabbrvsmfont/glsnamefont commands

The following example causes problem: \documentclass{article} \usepackage[colorlinks,linkcolor=blue]{hyperref} \usepackage[ocgcolorlinks]{ocgx2} \usepackage[record,acronym,shortcuts=ac]{glossaries-...
4
votes
2answers
313 views

TikZ: Is it possible to use ocgx or ocgx2 with scaling?

To get a handout, I drew polygons on A4 paper arranged in landscape mode. In order to create an interactive slide show with beamer associated with these documents, I had to reduce the dimensions with ...
4
votes
1answer
343 views

Multiple choice questions linked to solutions using Optional Content Groups (OCG)

I am setting up some practice tests for an aptitude exam my son will undertake for entry to university. Many example questions are available. Hard copy books publish the questions at the front of the ...
4
votes
1answer
222 views

Is there a way to modify the mouse with ocgx2?

I wrote a transparency with Beamer containing a timed itemize list (overlay) and an OCG layer. When the mouse is not above the OCG link called "circle", it has the following form: When the mouse is ...