{"id":988,"date":"2025-09-30T14:40:28","date_gmt":"2025-09-30T12:40:28","guid":{"rendered":"https:\/\/spheresdevir.ovh\/?p=988"},"modified":"2025-09-30T14:40:29","modified_gmt":"2025-09-30T12:40:29","slug":"javascript-et-latex","status":"publish","type":"post","link":"https:\/\/spheresdevir.ovh\/index.php\/2025\/09\/30\/javascript-et-latex\/","title":{"rendered":"Javascript et LateX"},"content":{"rendered":"\n<p>Pour faire fonctionner un script de Javascript dans du LateX, j&#8217;utilise le paquet insDLJS, qui me permet d&#8217;avoir une zone d\u00e9limit\u00e9 o\u00f9 je peux \u00e9crire mes fonctions Javascript, qui seront appel\u00e9 par les boutons de formulaire interactif du paquet hyperref.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\\documentclass&#91;a4paper, 12pt]{report}\n\\usepackage{insDLJS}% \\ paquet pour JS\n\\usepackage{hyperref}% \\ paquet pour champs de formulaires\n\n%D\u00e9but de la zone Javascript\n\\begin{insDLJS}&#91;test]{script}{fonctionTest}\n\nfunction HelloWorld(){\nthis.getField(\"Hello\").value=\"Hello World !\"\napp.alert(\"Hello World!\", 3);\n}\n\n\\end{insDLJS} \n%Fin de la zone Javascript\n\n%D\u00e9but de la zone pdf\n\\begin{document}\n\\PushButton&#91;name=myButton,onclick={HelloWorld();}]{Hello}\\\\\n\n\\TextField&#91;name=Hello]{ I say :}\\\\\n\\end{document}\n%Fin de la zone document<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pour faire fonctionner un script de Javascript dans du LateX, j&#8217;utilise le paquet insDLJS, qui&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51,8],"tags":[43,53],"class_list":["post-988","post","type-post","status-publish","format-standard","hentry","category-latex-pdf","category-technology","tag-43","tag-latex"],"_links":{"self":[{"href":"https:\/\/spheresdevir.ovh\/index.php\/wp-json\/wp\/v2\/posts\/988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/spheresdevir.ovh\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/spheresdevir.ovh\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/spheresdevir.ovh\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/spheresdevir.ovh\/index.php\/wp-json\/wp\/v2\/comments?post=988"}],"version-history":[{"count":1,"href":"https:\/\/spheresdevir.ovh\/index.php\/wp-json\/wp\/v2\/posts\/988\/revisions"}],"predecessor-version":[{"id":989,"href":"https:\/\/spheresdevir.ovh\/index.php\/wp-json\/wp\/v2\/posts\/988\/revisions\/989"}],"wp:attachment":[{"href":"https:\/\/spheresdevir.ovh\/index.php\/wp-json\/wp\/v2\/media?parent=988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/spheresdevir.ovh\/index.php\/wp-json\/wp\/v2\/categories?post=988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/spheresdevir.ovh\/index.php\/wp-json\/wp\/v2\/tags?post=988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}