JavaScript is a scripting language commonly implemented as part of a web browser.

learn more… | top users | synonyms

1
vote
0answers
26 views

Inserting Mathematical Equation in HTML through AJAX [closed]

I am retrieving mathematical equation stored in database in the TeX format, through an AJAX variable. But the equations are appearing rendered. Please help.
2
votes
2answers
50 views

Input JS file within insDLJS environment

The eforms package provides the insDLJS environment to insert document-level JavaScript into a PDF file. It would be convenient (for code reuse and syntax highlighting, among other things) to put the ...
7
votes
1answer
101 views

Is it possible to embed a scrollable frame inside a PDF?

(This is an end-of-year crazy question) Is it possible to embed a (scrollable) frame or a PDF inside a PDF? If so, how to do it in (pdf)LaTeX? This is something pretty common in HTML (see for ...
1
vote
0answers
48 views

voting via pdflatex

Can one use a pdf file output of pdflatex as a ballot and vote counter? I am looking for a ballot.tex file such that ballot.pdf will have the following properties: There are boxes of choices ...
3
votes
1answer
97 views

javascript interactive plot context

I am trying to embed an interactive plot into a ConText presentation. I'm not entirely sure if this is possible. I am using javascript code from amCharts. For this I need three java scripts, two of ...
2
votes
1answer
122 views

How to validate date/email entries in pdf forms using hyperref?

Consider the MWE below, I want to validate the date entry as well as the Email addresses to be entered as they should be using the validation option that is only briefly mentioned in the manual of the ...
2
votes
2answers
125 views

Beamer : after the last page — initiate a loop

I'd like that the presentation goes to a specific page after the last page, as it would be the natural next page. I know : \hypersetup{pdfstartpage=1} But it works only to go back to the first page. ...
1
vote
0answers
141 views

How to use MathJax with LaTeX inside a document.write() [closed]

I am generating a mixture of text and LaTeX using document.write(). MathJax only seems to process some of it. If I copy the text directly into the body of the file, it works fine. Here is a MWE. ...
0
votes
0answers
89 views

HTML + Javascript to LaTex

I'd like to convert a HTML + Javascript document to LaTex. An example document can you find here: ...
4
votes
2answers
275 views

Include live remote image in Beamer presentation

From this question, I see that it is possible to include remote images within a PDF, via the media9 package. Can direct inclusion of Javascript--as in this question--be used to update the image ...
2
votes
0answers
92 views

Javascript in preamble

For TeX Live 2012 there is the package insDLJS that allows you to write a documentwide complex javascriptcode in the header of the document, like (Pseudocode): \documentclass{standalone} ...
7
votes
1answer
396 views

Would it be possibile to advance Beamer at the level of the HTML presentations?

I use mostly Reveal.js for my presentations and lately I learned Beamer. As far as I see you can reproduce almost anything from a HTML pres. in Beamer with a little work, except for the ...
3
votes
1answer
169 views

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} ...
0
votes
1answer
65 views

Add JavaScript that executes when an image is clicked

As explained e.g. here, JavaScript can be added to a pdf using latex. Can someone provide me with an example, how I can add a JavaScript to an image in the pdf that executes when the image is ...
41
votes
1answer
1k views

How to embed Javascript in LaTeX Beamer?

I'm wondering if it is possible to add javascript animations in LaTeX Beamer, e.g. figures created with C3 or D3? As far as I remember the animate packages uses javascript in order to display (and ...
1
vote
1answer
183 views

Lyx generated PDF with JavaScript encounters NotAllowedError

I am trying to generate a pdf file that opens another pdf file with this code \usepackage[pdftex]{insdljs} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Main Script ...
3
votes
0answers
185 views

How to get and process bitmap graphics at a pixel level on-the-fly?

We are trying to solve How to get intersection point(s) of two glyphs? and there are some interesting subtasks. In word cloud algorithms they are converting glyphs (a vector form) to a raster form and ...
2
votes
2answers
166 views

Use tex to generate a html page with an embedded video, possible?

I want to use tex to generate a html page with an embedded video. I know that I can use latex2html to convert tex to html. I also know about media9 but I think it can only be used to render videos in ...
2
votes
1answer
469 views

Copy to clipboard using Javascript macro

I'm pretty inexperienced with Javascript, especially within LaTeX, so I'd like some pointers, guidance or even an MWE of my proposed "button": I want to create a button to copy data to the system ...
9
votes
1answer
261 views

Alternative text for Javascript (form) boxes for viewers that don't support Javascript?

I am using the tdclock package to display the current date and time. In looks pretty good in Acrobat, but in other viewers (like Evince) it looks terrible because they don't support Javascripts and ...
5
votes
2answers
504 views

timeline and animate package

I'm trying to make some pdf with animate package controlling a loop with the timeline. The purpose is to have a loop but reaching the last frame, the color of the dot should change. My main questions ...
1
vote
0answers
326 views

Get TeX to work with jsPdf [closed]

jsPdf is a Javascript library that creates pdf documents on the fly. This is very useful to me as I have a familiarity with Javascript and I want to be able to do this operation server-side. ...
2
votes
1answer
120 views

TeXstudio readAllStandardOutputStr seems not to work

I try to insert automatic timestamps into a LaTeX file, to get id's for some items On a windows machine I have got the following macro (JavaScript): %SCRIPT var ...
3
votes
0answers
1k 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 ...
3
votes
1answer
465 views

Beamer equivalent of Keynote's old web view [closed]

Is there a beamer package that will display a non-static, locally hosted web page? I think I am looking for something similar to Keynote's old web view, but since I have Keynote 09, I'm in a pickle. ...
2
votes
0answers
470 views

Latex forms, MakeTextField, LayoutTextField and javascript questions

I trying to do underlined TextField with label under the field (hyperref package). using Underlined text field in a fillable form i tried to renew MakeTextField: ...
11
votes
1answer
475 views

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 ...
10
votes
2answers
355 views

How to create PSTricks animations on the web page with interactive control panels?

I just visited a cool site that showing PSTricks animations with interactive control panels. For more details, please visit this link (click). The question is how does the owner of the site make the ...
3
votes
0answers
197 views

How can I write specifications following the W3C specifications format in LaTeX? [on hold]

W3C specifications follow a very nice template (example: HTML-RDFa). The specifications are HTML documents styled by a javascript library ReSpec. Is it possible to write specifications in LaTeX ...
1
vote
0answers
1k views

Javascript LaTeX to HTML interpreter?

Is there a possibility to 'render' latex code with your browser? I have some *.tex files which I would like to render a HTML version of (with HTML-navigation, hyperlinks, etc). However - running some ...
4
votes
1answer
367 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 ...
4
votes
1answer
391 views

\pushbuttons with Icons with pdflatex (xobject reference)

I would like to create a pushbutton with icons instead of text. Like the text in the example below the icons should change with the mouse options. The manual of the eforms package (eformman.pdf) ...
-1
votes
1answer
128 views

Embedding Tex inside JavaScript and/or C# [closed]

Firstly, I'm completely new to using TeX, so please bear with my ignorance. I am writing an application that will require the program to display some symbols, namely those in the MusixTeX library, but ...
6
votes
1answer
457 views

Inject JavaScript with pdflatex etc. for page level events

I am experimenting a little bit with JavaScript in PDF documents generated via pdflatex. I wonder, whether there is a method to access the event handler of Adobe Acrobat or Acrobat Reader in order to ...
4
votes
1answer
700 views

LaTeX 3D PDF with U3D file and media9: add a view at runtime

I am wondering if I could hack media9 package to achieve such a feature: end-users should be able to add a new view of an animated U3D file at runtime. So I'll be editing the VIEWS FILE from a ...
6
votes
1answer
755 views

Hide LaTeX parts through JavaScript

I'm creating an interactive pdf form with the hyperref package. The form is quite comprehensive, so the current goal is to only show parts that are relevant to the specific user. For example, the user ...
2
votes
1answer
1k views

point-and-click open source javascript equation editor for latex?

Does anyone have experience with a good open source equation editor for online use? I'm not interested in WYSIWYG (What are the Open source WYSIWYG Independent Web Equation Editors available on ...
23
votes
1answer
999 views

Move-around box in PDF display

I tried using the fancytooltips package and like it a lot. One thing that I could imagine would be nice is to have the entry showing up as a movable box instead of just a tooltip. (Sometimes the ...
3
votes
1answer
148 views

Can we have viewer specific text in a pdf generated by pdfLaTex?

I am wondering if we could have a pdf file, which can tell what viewer its being viewed with. I was looking for some tex command, which says something like: If viewer is Acrobat, print "Hi You are ...
8
votes
2answers
2k views

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?
1
vote
0answers
182 views

Testing system in beamer [closed]

Can I use \radioButton option in Beamer? I need to make test(choice) system with counting right answers in presentation mode, maybe there's any class for making testing. I have error with ...
19
votes
2answers
9k views

\listings code style for HTML5 (CSS, HTML, JavaScript)

I would like to create a code style for HTML5 that can be used with the \listings package. An HTML5 document consists of three languages: CSS, HTML and JavaScript. That makes the whole thing a bit ...
5
votes
2answers
986 views

Is there any solution to include Java Applets in presentations/beamers?

I am preparing a presentation on the compiler Texmaker "documentclass" in "beamer". I was fascinated with the package "multimedia" which is a solution to include movies in the presentation. Question: ...
1
vote
1answer
361 views

How to use listings with multiple languages?

I've got a HTML document with JavaScript inside that I want to show in my article. For that I would like to use my JavaScript and HTML formatting. How can I get the listings package to use two ...
0
votes
1answer
569 views

inlineMath \$…\$ not working but default \(…\) does [closed]

I am having issues getting a custom inlineMath format to work. I have included the MathJax CDN and then using the in-line configuration options. I can get all of the default formats to work $$...$$, ...
3
votes
1answer
358 views

Compiling my own mktexfmt

I'm trying to compile my own version of pdftex which works fine. However, I must compile my own format file (fmt) for that. This should be done with mktexfmt. My problem is that I don't know where to ...
23
votes
4answers
18k views

language option supported in listings

I am afraid that listing doesn't support javascript. \begin{lstlisting}[language=javascript] ... \end{lstlisting} What am I doing wrong?
28
votes
2answers
2k views

pdftex and javascript forms with automatic calculations

I would like to create a PDF document in TeX with a form. Some of the fields in the form will be calculated based on the values of other fields. Here is a MWE, thanks to Victor Ivrii on the pdftex ...
6
votes
1answer
860 views

(La)TeX Web browser [closed]

I had an idea this morning and would like to share and to know if someone has already developed it somewhere! A Mozilla group is currently building a JavaScript Application able to transform any PDF ...
4
votes
1answer
820 views

How do I place a simple javascript in the resulting PDF?

I would like to use LaTeX to produce a PDF document with forms with the following features: -One or two user-modifiable text fields -One output text field -A "run" button that, when pressed, will take ...