Using ocgx, pgfplots packages to create a clickable pdf file, use in Microsoft Powerpoint? ...

Protagonist's race is hidden - should I reveal it?

Is Vivien of the Wilds + Wilderness Reclamation a competitive combo?

What were wait-states, and why was it only an issue for PCs?

Does traveling In The United States require a passport or can I use my green card if not a US citizen?

Are Flameskulls resistant to magical piercing damage?

What is the evidence that custom checks in Northern Ireland are going to result in violence?

“Since the train was delayed for more than an hour, passengers were given a full refund.” – Why is there no article before “passengers”?

Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?

Why isn't everyone flabbergasted about Bran's "gift"?

A journey... into the MIND

Is the Mordenkainen's Sword spell underpowered?

What is the definining line between a helicopter and a drone a person can ride in?

Why these surprising proportionalities of integrals involving odd zeta values?

/bin/ls sorts differently than just ls

Can 'non' with gerundive mean both lack of obligation and negative obligation?

What is the ongoing value of the Kanban board to the developers as opposed to management

How to mute a string and play another at the same time

How to leave only the following strings?

Does Prince Arnaud cause someone holding the Princess to lose?

Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?

How to create a command for the "strange m" symbol in latex?

Will I be more secure with my own router behind my ISP's router?

Why aren't road bike wheels tiny?

Knights and Knaves question



Using ocgx, pgfplots packages to create a clickable pdf file, use in Microsoft Powerpoint?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)pgfplots, using sprintf in clickable libraryplotting two time series with boundsCreate PGFPlots Histogram from fileUsing pgfplots to create 2-D parameterized parametric plotPlot data file using PGFPlotsPlot excel file using pgfplotsPGFPLOTS: 3d Surface plots using data filetikz pgf - create bubble plot without using file contentPlotting an approximative function using tikz and pgfplots packagesHow to read data from file using pgfplots?












1















So using a simple example of a .tex file to get a clickable pdf, I want to then take the pdf image and use it in a powerpoint presentation. So I could be presenting in powerpoint, and click on the objects in the pdf to change visibility of the graph like in the example code below. I can load the pdf into powerpoint like normal, but it loses the clickable functionality. Any ideas?!?



documentclass{beamer}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage{tikz}
usetikzlibrary{ocgx,calc}
begin{document}

tikzset{ocg button/.style={circle,minimum size=.5em,switch ocg with mark on={#1}{}}}

begin{frame}
frametitle{Title}

begin{tikzpicture}[overlay,remember picture,ocg={name=Layer 1,ref=layer1}]
begin{scope}[shift={(current page)}]
fill[red,fill opacity=.5] (120:1cm) circle [radius=1.5cm];
end{scope}
end{tikzpicture}
begin{tikzpicture}[overlay,remember picture,ocg={name=Layer 2,ref=layer2}]
begin{scope}[shift={(current page)}]
fill[blue,fill opacity=.5] (240:1cm) circle [radius=1.5cm];
end{scope}
end{tikzpicture}
begin{tikzpicture}[overlay,remember picture,ocg={name=Layer 3,ref=layer3}]
begin{scope}[shift={(current page)}]
fill[green,fill opacity=.5] (0:1cm) circle [radius=1.5cm];
end{scope}
end{tikzpicture}

begin{itemize}
item Layer 1 tikznode[fill=red!50,ocg button=layer1]{};
item Layer 2 tikznode[fill=blue!50,ocg button=layer2]{};
item Layer 3 tikznode[fill=green!50,ocg button=layer3]{};
end{itemize}
end{frame}
end{document}









share|improve this question
















bumped to the homepage by Community 21 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • At a rough guess PowerPoint is not a pdf presenter, and as such cant run any imbedded code the way Acrobat can with its JavaScript support. Perhaps you need to use Acrobat reader to run the embedded programs or convert PDF to PowerPoint and add its own scripted controls. I guess this may be classed "off topic" by Latex Mods however I think it helps others to see an answer as to why a Latex feature may not be available to some users. Perhaps you could test in powerpoint settings if pdfs from other presentation sources can run without similar issues and modify question or provide your own answer

    – KJO
    Oct 24 '18 at 23:23











  • I suggest you amend Question to something like "How can I adapt my LaTeX Animation to suit PowerPoint ?"

    – KJO
    Oct 24 '18 at 23:56











  • Btw., ocgx is a bit dated, use ocgx2 instead: usepackage[tikz]{ocgx2}, and remove usetikzlibrary{ocgx}.

    – AlexG
    Oct 25 '18 at 7:32













  • PDF Layers are a PDF feature. What you see in PPT is a screenshot / converted to bitmap version of the PDF and thus no more PDF. That's why the layers are gone in PPT.

    – AlexG
    Oct 25 '18 at 7:53


















1















So using a simple example of a .tex file to get a clickable pdf, I want to then take the pdf image and use it in a powerpoint presentation. So I could be presenting in powerpoint, and click on the objects in the pdf to change visibility of the graph like in the example code below. I can load the pdf into powerpoint like normal, but it loses the clickable functionality. Any ideas?!?



documentclass{beamer}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage{tikz}
usetikzlibrary{ocgx,calc}
begin{document}

tikzset{ocg button/.style={circle,minimum size=.5em,switch ocg with mark on={#1}{}}}

begin{frame}
frametitle{Title}

begin{tikzpicture}[overlay,remember picture,ocg={name=Layer 1,ref=layer1}]
begin{scope}[shift={(current page)}]
fill[red,fill opacity=.5] (120:1cm) circle [radius=1.5cm];
end{scope}
end{tikzpicture}
begin{tikzpicture}[overlay,remember picture,ocg={name=Layer 2,ref=layer2}]
begin{scope}[shift={(current page)}]
fill[blue,fill opacity=.5] (240:1cm) circle [radius=1.5cm];
end{scope}
end{tikzpicture}
begin{tikzpicture}[overlay,remember picture,ocg={name=Layer 3,ref=layer3}]
begin{scope}[shift={(current page)}]
fill[green,fill opacity=.5] (0:1cm) circle [radius=1.5cm];
end{scope}
end{tikzpicture}

begin{itemize}
item Layer 1 tikznode[fill=red!50,ocg button=layer1]{};
item Layer 2 tikznode[fill=blue!50,ocg button=layer2]{};
item Layer 3 tikznode[fill=green!50,ocg button=layer3]{};
end{itemize}
end{frame}
end{document}









share|improve this question
















bumped to the homepage by Community 21 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • At a rough guess PowerPoint is not a pdf presenter, and as such cant run any imbedded code the way Acrobat can with its JavaScript support. Perhaps you need to use Acrobat reader to run the embedded programs or convert PDF to PowerPoint and add its own scripted controls. I guess this may be classed "off topic" by Latex Mods however I think it helps others to see an answer as to why a Latex feature may not be available to some users. Perhaps you could test in powerpoint settings if pdfs from other presentation sources can run without similar issues and modify question or provide your own answer

    – KJO
    Oct 24 '18 at 23:23











  • I suggest you amend Question to something like "How can I adapt my LaTeX Animation to suit PowerPoint ?"

    – KJO
    Oct 24 '18 at 23:56











  • Btw., ocgx is a bit dated, use ocgx2 instead: usepackage[tikz]{ocgx2}, and remove usetikzlibrary{ocgx}.

    – AlexG
    Oct 25 '18 at 7:32













  • PDF Layers are a PDF feature. What you see in PPT is a screenshot / converted to bitmap version of the PDF and thus no more PDF. That's why the layers are gone in PPT.

    – AlexG
    Oct 25 '18 at 7:53
















1












1








1








So using a simple example of a .tex file to get a clickable pdf, I want to then take the pdf image and use it in a powerpoint presentation. So I could be presenting in powerpoint, and click on the objects in the pdf to change visibility of the graph like in the example code below. I can load the pdf into powerpoint like normal, but it loses the clickable functionality. Any ideas?!?



documentclass{beamer}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage{tikz}
usetikzlibrary{ocgx,calc}
begin{document}

tikzset{ocg button/.style={circle,minimum size=.5em,switch ocg with mark on={#1}{}}}

begin{frame}
frametitle{Title}

begin{tikzpicture}[overlay,remember picture,ocg={name=Layer 1,ref=layer1}]
begin{scope}[shift={(current page)}]
fill[red,fill opacity=.5] (120:1cm) circle [radius=1.5cm];
end{scope}
end{tikzpicture}
begin{tikzpicture}[overlay,remember picture,ocg={name=Layer 2,ref=layer2}]
begin{scope}[shift={(current page)}]
fill[blue,fill opacity=.5] (240:1cm) circle [radius=1.5cm];
end{scope}
end{tikzpicture}
begin{tikzpicture}[overlay,remember picture,ocg={name=Layer 3,ref=layer3}]
begin{scope}[shift={(current page)}]
fill[green,fill opacity=.5] (0:1cm) circle [radius=1.5cm];
end{scope}
end{tikzpicture}

begin{itemize}
item Layer 1 tikznode[fill=red!50,ocg button=layer1]{};
item Layer 2 tikznode[fill=blue!50,ocg button=layer2]{};
item Layer 3 tikznode[fill=green!50,ocg button=layer3]{};
end{itemize}
end{frame}
end{document}









share|improve this question
















So using a simple example of a .tex file to get a clickable pdf, I want to then take the pdf image and use it in a powerpoint presentation. So I could be presenting in powerpoint, and click on the objects in the pdf to change visibility of the graph like in the example code below. I can load the pdf into powerpoint like normal, but it loses the clickable functionality. Any ideas?!?



documentclass{beamer}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage{tikz}
usetikzlibrary{ocgx,calc}
begin{document}

tikzset{ocg button/.style={circle,minimum size=.5em,switch ocg with mark on={#1}{}}}

begin{frame}
frametitle{Title}

begin{tikzpicture}[overlay,remember picture,ocg={name=Layer 1,ref=layer1}]
begin{scope}[shift={(current page)}]
fill[red,fill opacity=.5] (120:1cm) circle [radius=1.5cm];
end{scope}
end{tikzpicture}
begin{tikzpicture}[overlay,remember picture,ocg={name=Layer 2,ref=layer2}]
begin{scope}[shift={(current page)}]
fill[blue,fill opacity=.5] (240:1cm) circle [radius=1.5cm];
end{scope}
end{tikzpicture}
begin{tikzpicture}[overlay,remember picture,ocg={name=Layer 3,ref=layer3}]
begin{scope}[shift={(current page)}]
fill[green,fill opacity=.5] (0:1cm) circle [radius=1.5cm];
end{scope}
end{tikzpicture}

begin{itemize}
item Layer 1 tikznode[fill=red!50,ocg button=layer1]{};
item Layer 2 tikznode[fill=blue!50,ocg button=layer2]{};
item Layer 3 tikznode[fill=green!50,ocg button=layer3]{};
end{itemize}
end{frame}
end{document}






pgfplots powerpoint ocgx






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 24 '18 at 23:08









Bernard

177k778210




177k778210










asked Oct 24 '18 at 22:17









RyanRyan

61




61





bumped to the homepage by Community 21 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 21 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • At a rough guess PowerPoint is not a pdf presenter, and as such cant run any imbedded code the way Acrobat can with its JavaScript support. Perhaps you need to use Acrobat reader to run the embedded programs or convert PDF to PowerPoint and add its own scripted controls. I guess this may be classed "off topic" by Latex Mods however I think it helps others to see an answer as to why a Latex feature may not be available to some users. Perhaps you could test in powerpoint settings if pdfs from other presentation sources can run without similar issues and modify question or provide your own answer

    – KJO
    Oct 24 '18 at 23:23











  • I suggest you amend Question to something like "How can I adapt my LaTeX Animation to suit PowerPoint ?"

    – KJO
    Oct 24 '18 at 23:56











  • Btw., ocgx is a bit dated, use ocgx2 instead: usepackage[tikz]{ocgx2}, and remove usetikzlibrary{ocgx}.

    – AlexG
    Oct 25 '18 at 7:32













  • PDF Layers are a PDF feature. What you see in PPT is a screenshot / converted to bitmap version of the PDF and thus no more PDF. That's why the layers are gone in PPT.

    – AlexG
    Oct 25 '18 at 7:53





















  • At a rough guess PowerPoint is not a pdf presenter, and as such cant run any imbedded code the way Acrobat can with its JavaScript support. Perhaps you need to use Acrobat reader to run the embedded programs or convert PDF to PowerPoint and add its own scripted controls. I guess this may be classed "off topic" by Latex Mods however I think it helps others to see an answer as to why a Latex feature may not be available to some users. Perhaps you could test in powerpoint settings if pdfs from other presentation sources can run without similar issues and modify question or provide your own answer

    – KJO
    Oct 24 '18 at 23:23











  • I suggest you amend Question to something like "How can I adapt my LaTeX Animation to suit PowerPoint ?"

    – KJO
    Oct 24 '18 at 23:56











  • Btw., ocgx is a bit dated, use ocgx2 instead: usepackage[tikz]{ocgx2}, and remove usetikzlibrary{ocgx}.

    – AlexG
    Oct 25 '18 at 7:32













  • PDF Layers are a PDF feature. What you see in PPT is a screenshot / converted to bitmap version of the PDF and thus no more PDF. That's why the layers are gone in PPT.

    – AlexG
    Oct 25 '18 at 7:53



















At a rough guess PowerPoint is not a pdf presenter, and as such cant run any imbedded code the way Acrobat can with its JavaScript support. Perhaps you need to use Acrobat reader to run the embedded programs or convert PDF to PowerPoint and add its own scripted controls. I guess this may be classed "off topic" by Latex Mods however I think it helps others to see an answer as to why a Latex feature may not be available to some users. Perhaps you could test in powerpoint settings if pdfs from other presentation sources can run without similar issues and modify question or provide your own answer

– KJO
Oct 24 '18 at 23:23





At a rough guess PowerPoint is not a pdf presenter, and as such cant run any imbedded code the way Acrobat can with its JavaScript support. Perhaps you need to use Acrobat reader to run the embedded programs or convert PDF to PowerPoint and add its own scripted controls. I guess this may be classed "off topic" by Latex Mods however I think it helps others to see an answer as to why a Latex feature may not be available to some users. Perhaps you could test in powerpoint settings if pdfs from other presentation sources can run without similar issues and modify question or provide your own answer

– KJO
Oct 24 '18 at 23:23













I suggest you amend Question to something like "How can I adapt my LaTeX Animation to suit PowerPoint ?"

– KJO
Oct 24 '18 at 23:56





I suggest you amend Question to something like "How can I adapt my LaTeX Animation to suit PowerPoint ?"

– KJO
Oct 24 '18 at 23:56













Btw., ocgx is a bit dated, use ocgx2 instead: usepackage[tikz]{ocgx2}, and remove usetikzlibrary{ocgx}.

– AlexG
Oct 25 '18 at 7:32







Btw., ocgx is a bit dated, use ocgx2 instead: usepackage[tikz]{ocgx2}, and remove usetikzlibrary{ocgx}.

– AlexG
Oct 25 '18 at 7:32















PDF Layers are a PDF feature. What you see in PPT is a screenshot / converted to bitmap version of the PDF and thus no more PDF. That's why the layers are gone in PPT.

– AlexG
Oct 25 '18 at 7:53







PDF Layers are a PDF feature. What you see in PPT is a screenshot / converted to bitmap version of the PDF and thus no more PDF. That's why the layers are gone in PPT.

– AlexG
Oct 25 '18 at 7:53












1 Answer
1






active

oldest

votes


















0














It would appear from the second option on this page that you can import a LaTeX generated pdf to a slide then select it to be opened so that you can activate any LaTeX imbedded controls (Presuming you also have Acrobat or similar JavaScript enabled viewer installed).



from the description "This makes the PDF file part of the presentation file. The quality of the PDF file is reduced with this method, but you can open the full PDF file by double-clicking the image when viewing or editing in Normal view"



The alternative as per first option would be to use LaTeX to export PNG or single PDF pages to be added page by page to the PPT with similar PowerPoint controls.






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456649%2fusing-ocgx-pgfplots-packages-to-create-a-clickable-pdf-file-use-in-microsoft-p%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    It would appear from the second option on this page that you can import a LaTeX generated pdf to a slide then select it to be opened so that you can activate any LaTeX imbedded controls (Presuming you also have Acrobat or similar JavaScript enabled viewer installed).



    from the description "This makes the PDF file part of the presentation file. The quality of the PDF file is reduced with this method, but you can open the full PDF file by double-clicking the image when viewing or editing in Normal view"



    The alternative as per first option would be to use LaTeX to export PNG or single PDF pages to be added page by page to the PPT with similar PowerPoint controls.






    share|improve this answer




























      0














      It would appear from the second option on this page that you can import a LaTeX generated pdf to a slide then select it to be opened so that you can activate any LaTeX imbedded controls (Presuming you also have Acrobat or similar JavaScript enabled viewer installed).



      from the description "This makes the PDF file part of the presentation file. The quality of the PDF file is reduced with this method, but you can open the full PDF file by double-clicking the image when viewing or editing in Normal view"



      The alternative as per first option would be to use LaTeX to export PNG or single PDF pages to be added page by page to the PPT with similar PowerPoint controls.






      share|improve this answer


























        0












        0








        0







        It would appear from the second option on this page that you can import a LaTeX generated pdf to a slide then select it to be opened so that you can activate any LaTeX imbedded controls (Presuming you also have Acrobat or similar JavaScript enabled viewer installed).



        from the description "This makes the PDF file part of the presentation file. The quality of the PDF file is reduced with this method, but you can open the full PDF file by double-clicking the image when viewing or editing in Normal view"



        The alternative as per first option would be to use LaTeX to export PNG or single PDF pages to be added page by page to the PPT with similar PowerPoint controls.






        share|improve this answer













        It would appear from the second option on this page that you can import a LaTeX generated pdf to a slide then select it to be opened so that you can activate any LaTeX imbedded controls (Presuming you also have Acrobat or similar JavaScript enabled viewer installed).



        from the description "This makes the PDF file part of the presentation file. The quality of the PDF file is reduced with this method, but you can open the full PDF file by double-clicking the image when viewing or editing in Normal view"



        The alternative as per first option would be to use LaTeX to export PNG or single PDF pages to be added page by page to the PPT with similar PowerPoint controls.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 24 '18 at 23:44









        KJOKJO

        3,9501223




        3,9501223






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456649%2fusing-ocgx-pgfplots-packages-to-create-a-clickable-pdf-file-use-in-microsoft-p%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

            How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

            Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...