People who code: we want your input. Take the Survey

Questions tagged [ocgx2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
19 views

Switching pictures in place with ocgx2

Using ocgx2 and pdflatex I would like to switch between two tikzpictures that are identical in size. If I do \switchocg{ocg23a ocg23b}{Lösung} \begin{ocg}{OCG 1}{ocg1}{1} \begin{tikzpicture} \...
0
votes
0answers
24 views

ocgx2 package: printed links have low resolution

I encountered a weird behavior when using the ocgx2 package. It allows one to have colored links (like urls, but also references to sections in the toc, basically everything clickable) in the pdf but ...
2
votes
0answers
65 views

Stacking pdf layers: MWE breaks linux pdf viewers okular and evince

I would have commented on Stacking pdf layers But lacking the reputation, I'll have to open a new thread. However \documentclass[12pt]{article} \usepackage[samin, norsk, nynorsk, british]{babel} \...
1
vote
0answers
43 views

ocgx2: Multiple Choice Questions up to three automatic trials

This question is a following of the two clever and efficient answers linked below to elaborate semi-interactive quizzes/MCQ with ocgx2 (OCG/OCMG). (1) ocgx2: verify and reset of Multiple Choice ...
1
vote
1answer
47 views

List of todos breaks with ocgcolorlinks

When trying to use \listoftodos with colorinlistoftodos and ocgcolorlinks, text disappears from the list of todos. To be precise, the text is still there, I can copy it, but cannot see it – it becomes ...
1
vote
0answers
38 views

Interactive point tooltip still active on pgfplot when status updated by ocg to invisible

My problem is as below. I have pdf report which i want to use it with ocg to display when needed. There are many plot which has clickable point option and plotted by pgfplot library. These plots are ...
0
votes
0answers
21 views

OCGX2 to successively change visibility using one button

I am using the ocgx2 package with hyperref and scrartcl class to do simple things, basically just doing \switchocg{ocg1}{Toggle} \begin{ocg}{OCG 1}{ocg1}{0} hidden text... \end{ocg} in order to ...
0
votes
0answers
54 views

Extract page range from pdf preserve LaTeX ocg

I have a pdf file created with pdflatex and hyperref / ocgx2 packages. How can I create a pdf out of this containing a range of pages (say pages 2 to 5) preserving the ocg? Usually I do: pdftk orig....
1
vote
1answer
54 views

How stable is ocgx2 with hyperref

I want to achieve color links which are non-colored in print. The package ocgx2 will achieve this with \documentclass{article} \usepackage{hyperref} \usepackage[ocgcolorlinks]{ocgx2} \begin{document}...
0
votes
0answers
38 views

Toggle minted highlighting using OCG layers

I have a document which contains a minted listing spanning multiple pages. I would like the ability to toggle the highlighting using OCG layers. More specifically, I'd like the listing to have black ...
2
votes
2answers
91 views

ocg: problem using keyval

Trying to build expandable macros using ocg layers, I am facing quite disturbing issue that I am not able to figure out and so turn here for some help of specialists... I am using a macro to insert ...
0
votes
0answers
133 views

How to make one CheckBox (from hyperref) status dependent on other CheckBoxes'?

I want to have four CheckBoxes A, B, C and D: B,C and D change their status on mouse click, in the usual way. And A is checked automatically only when all B, C and D are checked, A doesn't response ...
0
votes
1answer
45 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
100 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
91 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 ...
5
votes
1answer
215 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 ...
5
votes
1answer
538 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
190 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
584 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
81 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
341 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
185 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
107 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
150 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
381 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
441 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
272 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 ...