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

learn more… | top users | synonyms

0
votes
0answers
24 views

Is there syntax higlighting for javascript in LaTeX? [duplicate]

Is there a listing setting for javascript, or a package that can be used instead?
4
votes
0answers
61 views

Sortable table by clicking on headings [migrated]

Is it possible to create a table in TeX and compile into PDF, which would have its column headers so, that clicking on them would sort the (numerical) table content by that column? I understand that ...
3
votes
0answers
77 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 ...
7
votes
4answers
4k 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?
4
votes
2answers
144 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 ...
6
votes
1answer
2k views

hyperref: how to format text in a forms text-field

I would like to pre-format the text in a form text-field, e.g. make it bold, italic or use a specific font. The following code generates a simple text-field: \documentclass{scrreprt} ...
1
vote
0answers
80 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. ...
1
vote
1answer
41 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
1answer
380 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 ...
3
votes
0answers
187 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
0answers
62 views

Beamer equivalent of Keynote's old web view

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. ...
6
votes
1answer
280 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 ...
1
vote
0answers
121 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: ...
7
votes
1answer
131 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 ...
9
votes
1answer
89 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
91 views

How can I write specifications following the W3C specifications format in LaTeX?

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 ...
23
votes
3answers
2k views

Automatic “Zoom in” hypertext boxes in PDF

I remember long time ago, seeing PDF documents (such as online PDF versions of newspapers) that had hypertext boxes around paragraphs, such that when you clicked inside those boxes the surrounded ...
1
vote
0answers
401 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 ...
3
votes
1answer
177 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 ...
1
vote
1answer
571 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 ...
4
votes
1answer
171 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
92 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 ...
5
votes
1answer
202 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 ...
22
votes
1answer
641 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
123 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 ...
1
vote
0answers
114 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 ...
4
votes
2answers
717 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?
3
votes
2answers
492 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: ...
11
votes
1answer
2k 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 ...
1
vote
1answer
187 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
194 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
227 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 ...
11
votes
1answer
414 views

Beamer and JavaScript in a web browser

I have written a talk in Beamer and to illustrate one of my points I've written a program in JavaScript (well actually Processing). You can view it here (it seems to run ok in Chrome and Firefox, and ...
26
votes
2answers
1k 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
555 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
501 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 ...
11
votes
2answers
502 views

Insert web content dynamically (Javascript?)

This year in my field we have a large conference overlapping with the European soccer championship. Luckily my talk does not overlap with any match, but in case it will happen in the future I was ...
1
vote
1answer
262 views

How to obtain a high quality image from a web browser source [closed]

How to create high quality images from a Javascript/Dojo image presented in a browser which can be used by LaTeX?
5
votes
1answer
2k views

Two column layout with form

So here is the basic idea: 2 column Layout, 1 column with text and 1 column with a form you can fill in Acrobat Reader etc. I tried to use parallel and/or paracol package along with the hyperref ...
0
votes
1answer
493 views

JavaScript/HTML/SVG rendered inside a TeX PDF document, impossible?

I have a pretty general question. I have a report that is automatically created from HTML and Javascript and is output as a PDF. I'm using JavaScript because it's the best and easiest way I've found ...
8
votes
2answers
1k views

Example of Javascript form within pdflatex

Can someone please show me an example of how to include a simple Javascript form within a pdflatex document? Can someone please show me an example of accessing and modifying the PDF file's DOM from ...
12
votes
1answer
4k views

How do you say Happy New Year with LaTeX?

Title says it all. How do you wish "Happy New Year" to a TeXie? Compile the code below with pdfLaTeX, view it with "PDF Reader" or "Adobe Acrobat Pro" and press the "Happy New Year" button on the ...
4
votes
1answer
2k views

Hello World in pdfLaTeX

After many years being silent, TeX can now talk! Almost minimal code below! It should be of particular interest to Physicists and Cosmologists. Need to have Adobe Reader installed. ...
10
votes
2answers
2k views

What is the best way to insert document-level JavaScript in LaTeX documents

I have been toying with the idea of converting some forms at work to interactive forms. I have tried some of the routines that come with insdljs, but they seem a bit dated. The idea is very ...