JavaScript is a scripting language commonly implemented as part of a web browser, but also of some PDF viewers.
Questions tagged [javascript]
128 questions
13
votes
1 answer
Forming a "spoiler text" environment in LaTeX (via Javascript?)
I've been writing a mathematical text for some time, and seeing as it is the 21st century, I would like this text to be interactive and dynamic, probably in PDF format. The main function that I am looking to implement is a sort of "spoiler text"…
Christopher A. Wong
- 667
- 4
- 13
9
votes
2 answers
texlive.js possible?
I just found about emscripten,
texlive.js is it really a converted version of texlive in JavaScript or a server as Scribtex and many others?
Is this really possible?
La Raison
- 560
7
votes
1 answer
Javascript application in latex
I would like to know if it is possible to add an interactive app created with Javascript to a Latex document.
I would like to add some of the Javascripts that appear here.
Like that one:
EDIT
I can have the .js document, so I would like how to…
idriskameni
- 173
5
votes
1 answer
Is there a way to properly display JSX in LaTeX?
I have this simple example of jsx code. How can I change the settings so that the indention of the code snippet gets right? Btw in case somebody has a decent link or example of listings which support syntax hightlighting for newer languages like…
thiloilg
- 153
3
votes
1 answer
Change Picture with Javascript
since months i cant find a way to change pictures by pressing a button in one field. With a text is is like:
\documentclass[a4paper]{article}
\usepackage{eforms}
\begin{insDLJS}[test]{test}{JavaScript}
function MakeArray(2){
this.length=n
…
Guest
- 31
2
votes
1 answer
Can I run this javascript when I open the resulting PDF?
I have created a simle javascript file that runs hidden EXE file masked as a PDF. I would like to hide this script indside another PDF file. The script should run when I open it, but nothing is happening (it works when I run it as a .js file). I'm…
0
votes
0 answers
Blacking out a created PDF after a given date with javascript
With the recent CJEU ruling, libraries can lend ebooks like normal books if the book cannot be used after the lending period. Therefore I wanted to try building a PDF with JavaScript which blacks out the content based on the date.
I found the…