2022 Developer Survey is open! Take survey.

Questions tagged [interaction]

{interaction} is about moving from one part of the document to the other by clicking on a link in the document. In LaTeX, interaction is provided by the {hyperref} package. In ConTeXt, interaction is enabled using `\setupinteraction[state=start]`. It can also refer to the mode in which you interact with TeX itself.

Filter by
Sorted by
Tagged with
1 vote
0 answers
47 views

Document with bright and dark modes that the user can switch between

I would like to have an option to switch to "dark mode" in my pdf, say, using a button in the document. Using the xcolor and pagecolor packages, I can change the background color and/or text ...
user avatar
  • 111
2 votes
2 answers
31 views

interaction between wrapfig, amsmath and macro `\smash` in header of first page - help debug

In the MWE below, a pdflatex compilation (texlive 2020 and 2021) gives an error of type Extra \else. The problem disappears when I add an extra group around the \smash (e.g. {\smash{TTT}}) or if I ...
user avatar
0 votes
0 answers
156 views

Interactive (Rotable) PDF with 3D Plot

Using (say) Matlab, it's very simple to create 3D surface plots. Is it possible to embed them into LaTeX such that the resulting PDF is interactive and one can rotate the figure and look at it from ...
user avatar
  • 239
1 vote
0 answers
158 views

LaTeX to html pages with interactive features

My search has brought to several questions with a similar gist to mine, but I could not find a satisfying ansewr to my specific needs. In addition, these threads were quite old and maybe things have ...
user avatar
0 votes
0 answers
28 views

Is it possible to embed one (or more) translations into a .PDF that is interactively accessible?

Specifically for my Curriculum Vitae I find myself regularly creating it twice: Once in my native language, and a second time in English. I therefore have two .PDFs with the exact same layout, just ...
user avatar
3 votes
1 answer
389 views

What does a number in an Undefined control sequence in TeX's prompt do?

$ latex This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=latex) restricted \write18 enabled. **\s666666 entering extended mode LaTeX2e <2017-04-15> Babel <3....
user avatar
  • 471
1 vote
1 answer
112 views

How to create arrows which can be hidden/visible and are overlaid on the text?

In the microtype manual on page 17, they have used multiple arrows which become visible when you click on some keywords. These arrows link to a figure and some portions of main text. What packages ...
user avatar
  • 1,549
3 votes
1 answer
360 views

How to hide some text until the reader clicks on it?

I'd want to create a "Guess who?". It would consist in guessing who did an action, e.g. "I love Belgian fries", and below this I'd like to put a hidden name. I know the \phantom command, but I'd also ...
user avatar
  • 31
2 votes
0 answers
69 views

Detect and act on tampering/re-printing of PDF

Is there a way to make a LaTeX-produced PDF file appear wildly different if someone has modified it (i.e. by opening it in a PDF reader application, and using the "Print to PDF" feature)? In short, I ...
user avatar
  • 235
1 vote
1 answer
175 views

Pass value to command / Create custom buttoms with media9

I am quite a newby when it comes to defining custom methods/macros in LaTeX. My MWE looks like that: \documentclass[12pt,a4paper]{article} \newcounter{myCounter} \setcounter{myCounter}{1} \...
user avatar
  • 305
2 votes
1 answer
32 views

Interactively checking default hyphenations

I'm using this programme \let\\\showhyphens \documentclass{article} \usepackage[british]{babel} \begin{document} to check default hyphenations interactively by typing *\\{necessarily} &c. Is ...
user avatar
  • 3,256
0 votes
0 answers
45 views

Is it possible to detect, inside a package, whether `\errorstopmode` is in effect? [duplicate]

The title says it all: can I test, inside a package or a macro, whether \errorstopmode is in effect?
user avatar
2 votes
2 answers
196 views

Dynamically hide and show Plots

I would like to know if it's possible to do something like this, using axis in tikzpicture: I'm currently ploting curves this way : \documentclass{article} \usepackage[latin1]{inputenc} \...
user avatar
  • 335
6 votes
1 answer
622 views

How to embedded source code on-demand into PDF?

I wondered if its possible to embed source code of some software you are writing about into the PDF but not displayed by default. E.g. you have a long script I would be nice if the user/reader could ...
user avatar
  • 2,965
1 vote
1 answer
492 views

Interactive SVG

I would like to be able to click inside a (white) box in an image like: and then jump to the description of that function. I tried: \documentclass[twoside]{book} \usepackage{float} \usepackage{...
user avatar
  • 1,215
0 votes
1 answer
241 views

Open an "embedded" picture by clicking on text

Is it possible to achieve the following in Latex: Upon clicking on a specific text (e.g. a word) in a pdf, a box w/ predefined size and location opens, showing a picture1? It would be also nice if ...
user avatar
  • 289
0 votes
1 answer
74 views

Interaction turns off footnote in table

If I use \setupinteraction in my document, my footnote in the header of my table disappears. If I turn off \setupinteraction, the footnote reappears. Is there a way to have interaction enabled and ...
user avatar
  • 487
10 votes
3 answers
800 views

Beamer - Unhide Content at click

I am using Beamer LaTeX for a presenation. On one slide I want to interact with the audience and I want to unhide the text (A,B,C,D,E in the MWE) in the order in which the audience mentions these ...
user avatar
  • 471
5 votes
1 answer
422 views

Can I add a button on tables that export them to .csv?

Is there any package that allow us to create a button to export a table as .csv? Is this kind of interactivity of easy coping tables possible with latex? It would be a tool for someone that take ...
user avatar
  • 1,073
4 votes
1 answer
1k views

Disabling all document interactivity (for PDF/X compliance)

I am working on making my XeLaTeX-compiled PDF file compliant with PDF/X-1a:2001 standard. When I use this answer with TeXLive 2015, document validates fully (in Acrobat Pro DC). However, when I test ...
user avatar
  • 1,624
0 votes
0 answers
114 views

Interactive pdf. Moving between lines

I made a quiz in LaTex for my exam, and my professor wants me to do the following. When I click on a solution of a problem in the pdf, I would get as a result the problem which is given for that ...
user avatar
2 votes
2 answers
102 views

ConTeXt: How to style interactive elements individually rather than globally

I want two have two links, one bold and one normal. As a MWE: \setupinteraction[state=start,style=normal] \starttext {\bf\goto{Link 1}[url(http://www.example.com)]} \goto{Link 2}[url(http://www....
user avatar
  • 599
16 votes
0 answers
948 views

Datepicker for LaTeX fillable form

I am replicating a fillable/savable form from LiveCycle with LaTeX using \CheckBox and \TextField items. I would also like to replicate the pop-up calendar / datepicker feature. I am aware of the ...
user avatar
  • 436
5 votes
1 answer
1k views

Interactive Beamer presentation with Clicks and Arrows

I watched a nice presentation here about atrial fibrillation with interactive features. I would like to have similar features too. Code \documentclass{beamer} \usepackage{enumerate} \usetheme{...
user avatar
2 votes
0 answers
109 views

Interaction with green chapter titles -- right paren shows up black [closed]

I use \setupinteraction[state=start] and \setupcolors[state=start] for making the entries of the table of contents interactive, and all entries show up green. But in the backmatter a chapter title ...
user avatar
1 vote
0 answers
262 views

Forms and graphs

I am trying to write a document for my students to practice on quadratic functions. Using a form, the student can enter the coefficients of the quadratic functions and is then given the discriminant (...
user avatar
  • 328
12 votes
0 answers
2k views

How can I create a show/hide button? [duplicate]

I would like to create a show/hide button that appears on a typeset PDF so that when it is clicked, the content appears. This is similar to the ideas here: Hide all but one instances of a custom ...
user avatar
3 votes
0 answers
3k views

Interactive PDF - Click thumbnail images to open in quicklook like window

Is it possible to create an interactive PDF where you can click a scaled down embedded image and it opens it up large in a preview like window hovering in front of the open PDF? Sort of like the PDF ...
user avatar
10 votes
2 answers
5k views

How to enlarge a picture on click?

I am trying to create a technical manual which contains a lot of screen-shots. Nevertheless I am looking for: Insert the pictures as thumbnails and when one clicks on them, they expand as embedded ...
user avatar
  • 537
3 votes
1 answer
1k views

How can I make toggle buttons with images using pdflatex?

I am currently designing an interactive PDF by means of the media9 package in Latex. I have three \mediabutton buttons that I would like to treat as toggle buttons. A picture of the buttons is shown ...
user avatar
4 votes
1 answer
562 views

ConTeXt: How to set up interaction mode to emulate hyperref?

I have prepared a self explanatory MWE to check interaction mode for various objects in ConTeXt ver: 2013.01.10 01:04 MKIV. Evince document viewer is used for testing. Questions: How to set up ...
user avatar
  • 2,758
6 votes
1 answer
264 views

Change color of links created with \in, \at, etc

By default the link color of references created with \in or \at is red. How can this color be globally changed, so that all links have the same color (e.g. blue)? \setupinteraction [state=start,...
user avatar
  • 735