Compile LaTeX to HTML/CSS with kept typography












4















I have put lots of effort in the past to align, set and layout LaTeX documents as PDFs. Is there any reasonable converter, which uses CSS3, HTML, and so on to create a beautiful website from LaTeX. From what I see the well-known converters only keep the HTML very bare, and throw away the design.



If I cannot directly compile TeX to HTML, can you recommend some PDF converters, or other ways to publish LaTeX in a browser-centric way (not using PDFs)?










share|improve this question




















  • 2





    pdf2htmlex converts PDF to HTML without losing format

    – deimi
    May 8 '14 at 11:11


















4















I have put lots of effort in the past to align, set and layout LaTeX documents as PDFs. Is there any reasonable converter, which uses CSS3, HTML, and so on to create a beautiful website from LaTeX. From what I see the well-known converters only keep the HTML very bare, and throw away the design.



If I cannot directly compile TeX to HTML, can you recommend some PDF converters, or other ways to publish LaTeX in a browser-centric way (not using PDFs)?










share|improve this question




















  • 2





    pdf2htmlex converts PDF to HTML without losing format

    – deimi
    May 8 '14 at 11:11
















4












4








4


1






I have put lots of effort in the past to align, set and layout LaTeX documents as PDFs. Is there any reasonable converter, which uses CSS3, HTML, and so on to create a beautiful website from LaTeX. From what I see the well-known converters only keep the HTML very bare, and throw away the design.



If I cannot directly compile TeX to HTML, can you recommend some PDF converters, or other ways to publish LaTeX in a browser-centric way (not using PDFs)?










share|improve this question
















I have put lots of effort in the past to align, set and layout LaTeX documents as PDFs. Is there any reasonable converter, which uses CSS3, HTML, and so on to create a beautiful website from LaTeX. From what I see the well-known converters only keep the HTML very bare, and throw away the design.



If I cannot directly compile TeX to HTML, can you recommend some PDF converters, or other ways to publish LaTeX in a browser-centric way (not using PDFs)?







pdftex conversion web






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 8 '14 at 10:45









Svend Tveskæg

20.8k1052140




20.8k1052140










asked May 8 '14 at 10:34









wishiwishi

1234




1234








  • 2





    pdf2htmlex converts PDF to HTML without losing format

    – deimi
    May 8 '14 at 11:11
















  • 2





    pdf2htmlex converts PDF to HTML without losing format

    – deimi
    May 8 '14 at 11:11










2




2





pdf2htmlex converts PDF to HTML without losing format

– deimi
May 8 '14 at 11:11







pdf2htmlex converts PDF to HTML without losing format

– deimi
May 8 '14 at 11:11












4 Answers
4






active

oldest

votes


















5














pdf2htmlEX can convert PDF to HTML without losing format.






share|improve this answer































    2














    I'm currently developing a free open source tool that can convert LaTeX to a single HTML file. Its called PDBF (https://github.com/uds-datalab/PDBF) and runs on win/linux/mac.



    Instructions:




    • Make sure you have a Java Runtime (version >= 1.7) installed

    • Download latest version of PDBF: https://github.com/uds-datalab/PDBF/archive/gh-pages.zip

    • Unpack archive

    • Change current dir to unpacked folder

    • Run: java -jar pdbf.jar /path/to/sometexfile.tex


    Resulting HTML file is placed in the same folder as the source tex file with the same name as the source tex file.



    Technical details:
    The PDBF compiler basically uses a regular tex engine to compile your pdf and then stores the pdf as base64 encoded javascript string in the HTML and then includes a slightly modified version of pdf.js (The free and open source pdf engine of firefox) into the HTML to display that pdf.



    Hope you like my project. Feel free to contact me through github if you have suggestions or encounter bugs.






    share|improve this answer
























    • Can you have a video to demonstrate this? It would really be helpful for students not well familiar with HTML.

      – rsc05
      Mar 31 '18 at 8:45



















    1














    To be honest, the best I did was to convert the Latex file to pdf. Then the best and easiest thing to do is to convert the pdf to HTML5 using https://www.idrsolutions.com/online-pdf-to-html5-converter/



    This was the best and easiest possible method one may do to preserve all the structure of the latex file.






    share|improve this answer































      0














      You should consider lwarp. It might require some work on your tex files, but it gives excellent output.






      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%2f176023%2fcompile-latex-to-html-css-with-kept-typography%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        5














        pdf2htmlEX can convert PDF to HTML without losing format.






        share|improve this answer




























          5














          pdf2htmlEX can convert PDF to HTML without losing format.






          share|improve this answer


























            5












            5








            5







            pdf2htmlEX can convert PDF to HTML without losing format.






            share|improve this answer













            pdf2htmlEX can convert PDF to HTML without losing format.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 8 '14 at 11:22









            deimideimi

            1,103810




            1,103810























                2














                I'm currently developing a free open source tool that can convert LaTeX to a single HTML file. Its called PDBF (https://github.com/uds-datalab/PDBF) and runs on win/linux/mac.



                Instructions:




                • Make sure you have a Java Runtime (version >= 1.7) installed

                • Download latest version of PDBF: https://github.com/uds-datalab/PDBF/archive/gh-pages.zip

                • Unpack archive

                • Change current dir to unpacked folder

                • Run: java -jar pdbf.jar /path/to/sometexfile.tex


                Resulting HTML file is placed in the same folder as the source tex file with the same name as the source tex file.



                Technical details:
                The PDBF compiler basically uses a regular tex engine to compile your pdf and then stores the pdf as base64 encoded javascript string in the HTML and then includes a slightly modified version of pdf.js (The free and open source pdf engine of firefox) into the HTML to display that pdf.



                Hope you like my project. Feel free to contact me through github if you have suggestions or encounter bugs.






                share|improve this answer
























                • Can you have a video to demonstrate this? It would really be helpful for students not well familiar with HTML.

                  – rsc05
                  Mar 31 '18 at 8:45
















                2














                I'm currently developing a free open source tool that can convert LaTeX to a single HTML file. Its called PDBF (https://github.com/uds-datalab/PDBF) and runs on win/linux/mac.



                Instructions:




                • Make sure you have a Java Runtime (version >= 1.7) installed

                • Download latest version of PDBF: https://github.com/uds-datalab/PDBF/archive/gh-pages.zip

                • Unpack archive

                • Change current dir to unpacked folder

                • Run: java -jar pdbf.jar /path/to/sometexfile.tex


                Resulting HTML file is placed in the same folder as the source tex file with the same name as the source tex file.



                Technical details:
                The PDBF compiler basically uses a regular tex engine to compile your pdf and then stores the pdf as base64 encoded javascript string in the HTML and then includes a slightly modified version of pdf.js (The free and open source pdf engine of firefox) into the HTML to display that pdf.



                Hope you like my project. Feel free to contact me through github if you have suggestions or encounter bugs.






                share|improve this answer
























                • Can you have a video to demonstrate this? It would really be helpful for students not well familiar with HTML.

                  – rsc05
                  Mar 31 '18 at 8:45














                2












                2








                2







                I'm currently developing a free open source tool that can convert LaTeX to a single HTML file. Its called PDBF (https://github.com/uds-datalab/PDBF) and runs on win/linux/mac.



                Instructions:




                • Make sure you have a Java Runtime (version >= 1.7) installed

                • Download latest version of PDBF: https://github.com/uds-datalab/PDBF/archive/gh-pages.zip

                • Unpack archive

                • Change current dir to unpacked folder

                • Run: java -jar pdbf.jar /path/to/sometexfile.tex


                Resulting HTML file is placed in the same folder as the source tex file with the same name as the source tex file.



                Technical details:
                The PDBF compiler basically uses a regular tex engine to compile your pdf and then stores the pdf as base64 encoded javascript string in the HTML and then includes a slightly modified version of pdf.js (The free and open source pdf engine of firefox) into the HTML to display that pdf.



                Hope you like my project. Feel free to contact me through github if you have suggestions or encounter bugs.






                share|improve this answer













                I'm currently developing a free open source tool that can convert LaTeX to a single HTML file. Its called PDBF (https://github.com/uds-datalab/PDBF) and runs on win/linux/mac.



                Instructions:




                • Make sure you have a Java Runtime (version >= 1.7) installed

                • Download latest version of PDBF: https://github.com/uds-datalab/PDBF/archive/gh-pages.zip

                • Unpack archive

                • Change current dir to unpacked folder

                • Run: java -jar pdbf.jar /path/to/sometexfile.tex


                Resulting HTML file is placed in the same folder as the source tex file with the same name as the source tex file.



                Technical details:
                The PDBF compiler basically uses a regular tex engine to compile your pdf and then stores the pdf as base64 encoded javascript string in the HTML and then includes a slightly modified version of pdf.js (The free and open source pdf engine of firefox) into the HTML to display that pdf.



                Hope you like my project. Feel free to contact me through github if you have suggestions or encounter bugs.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 29 '15 at 19:21









                Patrick BenderPatrick Bender

                937




                937













                • Can you have a video to demonstrate this? It would really be helpful for students not well familiar with HTML.

                  – rsc05
                  Mar 31 '18 at 8:45



















                • Can you have a video to demonstrate this? It would really be helpful for students not well familiar with HTML.

                  – rsc05
                  Mar 31 '18 at 8:45

















                Can you have a video to demonstrate this? It would really be helpful for students not well familiar with HTML.

                – rsc05
                Mar 31 '18 at 8:45





                Can you have a video to demonstrate this? It would really be helpful for students not well familiar with HTML.

                – rsc05
                Mar 31 '18 at 8:45











                1














                To be honest, the best I did was to convert the Latex file to pdf. Then the best and easiest thing to do is to convert the pdf to HTML5 using https://www.idrsolutions.com/online-pdf-to-html5-converter/



                This was the best and easiest possible method one may do to preserve all the structure of the latex file.






                share|improve this answer




























                  1














                  To be honest, the best I did was to convert the Latex file to pdf. Then the best and easiest thing to do is to convert the pdf to HTML5 using https://www.idrsolutions.com/online-pdf-to-html5-converter/



                  This was the best and easiest possible method one may do to preserve all the structure of the latex file.






                  share|improve this answer


























                    1












                    1








                    1







                    To be honest, the best I did was to convert the Latex file to pdf. Then the best and easiest thing to do is to convert the pdf to HTML5 using https://www.idrsolutions.com/online-pdf-to-html5-converter/



                    This was the best and easiest possible method one may do to preserve all the structure of the latex file.






                    share|improve this answer













                    To be honest, the best I did was to convert the Latex file to pdf. Then the best and easiest thing to do is to convert the pdf to HTML5 using https://www.idrsolutions.com/online-pdf-to-html5-converter/



                    This was the best and easiest possible method one may do to preserve all the structure of the latex file.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 31 '18 at 9:41









                    rsc05rsc05

                    267110




                    267110























                        0














                        You should consider lwarp. It might require some work on your tex files, but it gives excellent output.






                        share|improve this answer




























                          0














                          You should consider lwarp. It might require some work on your tex files, but it gives excellent output.






                          share|improve this answer


























                            0












                            0








                            0







                            You should consider lwarp. It might require some work on your tex files, but it gives excellent output.






                            share|improve this answer













                            You should consider lwarp. It might require some work on your tex files, but it gives excellent output.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 10 at 15:20









                            Benjamin McKayBenjamin McKay

                            2,64211427




                            2,64211427






























                                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%2f176023%2fcompile-latex-to-html-css-with-kept-typography%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

                                Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                                ComboBox Display Member on multiple fields

                                Is it possible to collect Nectar points via Trainline?