Group Abstract Group Abstract

Message Boards Message Boards

0
|
8.4K Views
|
8 Replies
|
1 Total Like
View groups...
Share
Share this post:

Navigation keys for Mathematica slideshow presentation on Mac?

POSTED BY: Murray Eisenberg
8 Replies

Would something like this

nb = EvaluationNotebook[];
SetOptions[nb, NotebookEventActions -> {{"KeyDown", "l"} :> FrontEndExecute[FrontEndToken[nb, "ScrollPageLast"]], {"KeyDown", 
"f"} :> FrontEndExecute[FrontEndToken[nb, "ScrollPageFirst"]]}]

work? If you press l you go to the last slide and if you press f you go to the first slide...

Probably it is better to use these keys as they are not normally part of Wolfram Language Input:

nb = EvaluationNotebook[];
SetOptions[nb, NotebookEventActions -> {{"KeyDown", "'"} :> FrontEndExecute[FrontEndToken[nb, "ScrollPageLast"]], {"KeyDown", "§"} :> FrontEndExecute[FrontEndToken[nb, "ScrollPageFirst"]]}]

Cheers,

Marco

POSTED BY: Marco Thiel

Alas, neither of those pairs of choices to go to first and last slide is suitable -- assuming that one wants a slideshow in Mathematica still to allow actual interactivity, including adding or altering input there on the fly. For example, suppose it's appropriate in the middle of a presentation to add:

 f[x_] := Exp[-x] Sin[x^2]
 f'[x]

Oops: that would take you immediately away from the Input cell where you were working!

(And for the same reason, one would not want to use the letters "f" and "l", as you realized. E.g., if you wanted to add input such as a Plot expression, or to define a function named f.

POSTED BY: Murray Eisenberg

You could perhaps try to use shift, control, command as modifiers and require two keys to be pressed rather than just the f and l, or paragraph sign?

POSTED BY: Marco Thiel
POSTED BY: Marco Thiel

Yes, I know about all that. The issue was to get suitable keys to work. But bare Up Arrow and Down Arrow seems to be not a totally satisfactory choice for first slide and last slide, given that one is more like to want to reserve them for navigating through a particular slide.

POSTED BY: Murray Eisenberg

Oh sorry I misunderstood that question.

Best wishes, Marco

POSTED BY: Marco Thiel

I was able to get this to work after a fashion on my MacBook with Fn-Up arrow and Fn-Down arrow (previous and next slide), and command-up arrow (first slide) and command-down arrow (last slide). That's not exactly what should be happening – as you note, Fn-left and right arrows should work but don't (see https://support.apple.com/en-gb/HT201236).

In any case, the best thing for now may be to remap the keys from the provided list so that you're not dependant on such awkward key combinations.

POSTED BY: Arno Bosse

Those key combinations work for me, too. A good compromise would seem to be to leave Home and End as first slide and last slide, which on Mac will be Cmd-Up arrow and Cmd-Down arrow, respectively. And to change Previous slide and Next slide to left arrow and right arrow, respectively.

POSTED BY: Murray Eisenberg
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard