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











up vote
1
down vote

favorite












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
























  • 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 at 23:23










  • I suggest you amend Question to something like "How can I adapt my LaTeX Animation to suit PowerPoint ?"
    – KJO
    Oct 24 at 23:56










  • Btw., ocgx is a bit dated, use ocgx2 instead: usepackage[tikz]{ocgx2}, and remove usetikzlibrary{ocgx}.
    – AlexG
    Oct 25 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 at 7:53

















up vote
1
down vote

favorite












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
























  • 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 at 23:23










  • I suggest you amend Question to something like "How can I adapt my LaTeX Animation to suit PowerPoint ?"
    – KJO
    Oct 24 at 23:56










  • Btw., ocgx is a bit dated, use ocgx2 instead: usepackage[tikz]{ocgx2}, and remove usetikzlibrary{ocgx}.
    – AlexG
    Oct 25 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 at 7:53















up vote
1
down vote

favorite









up vote
1
down vote

favorite











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 at 23:08









Bernard

162k767192




162k767192










asked Oct 24 at 22:17









Ryan

61




61












  • 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 at 23:23










  • I suggest you amend Question to something like "How can I adapt my LaTeX Animation to suit PowerPoint ?"
    – KJO
    Oct 24 at 23:56










  • Btw., ocgx is a bit dated, use ocgx2 instead: usepackage[tikz]{ocgx2}, and remove usetikzlibrary{ocgx}.
    – AlexG
    Oct 25 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 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 at 23:23










  • I suggest you amend Question to something like "How can I adapt my LaTeX Animation to suit PowerPoint ?"
    – KJO
    Oct 24 at 23:56










  • Btw., ocgx is a bit dated, use ocgx2 instead: usepackage[tikz]{ocgx2}, and remove usetikzlibrary{ocgx}.
    – AlexG
    Oct 25 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 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 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 at 23:23












I suggest you amend Question to something like "How can I adapt my LaTeX Animation to suit PowerPoint ?"
– KJO
Oct 24 at 23:56




I suggest you amend Question to something like "How can I adapt my LaTeX Animation to suit PowerPoint ?"
– KJO
Oct 24 at 23:56












Btw., ocgx is a bit dated, use ocgx2 instead: usepackage[tikz]{ocgx2}, and remove usetikzlibrary{ocgx}.
– AlexG
Oct 25 at 7:32






Btw., ocgx is a bit dated, use ocgx2 instead: usepackage[tikz]{ocgx2}, and remove usetikzlibrary{ocgx}.
– AlexG
Oct 25 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 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 at 7:53












1 Answer
1






active

oldest

votes

















up vote
0
down vote













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',
    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








    up vote
    0
    down vote













    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

























      up vote
      0
      down vote













      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























        up vote
        0
        down vote










        up vote
        0
        down vote









        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 at 23:44









        KJO

        753112




        753112






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?