Not Obsolete LaTeX to HTML Converter?











up vote
21
down vote

favorite
7












I am looking to convert LaTeX to HTML. A long time ago (during my thesis, in 2000!), I used Hacha and Hevea ... but obviously, they are no longer maintained, especially the Windows version.
More recently Google sent me to tex4ht, but it seems that there too the project is at a standstill (the site indicates that there will soon be opportunities for image management, but that was in 2014, since then nothing more) and is poorly documented.



Hence my question: is there a recent solution for converting LaTeX to HTML compatible with Windows? The option that I need are:




  • using CSS

  • cutting the document into several file

  • allowing the use of picture for navigation (up, prev, next)

  • compatible with Windows










share|improve this question









New contributor




Christophe Genolini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 5




    tex4ht is maintained very well with a bunch of new features every few weeks!
    – Keks Dose
    yesterday






  • 1




    lwarp (which I have not used) tex4ht and latexml are the three main actively maintained ones
    – David Carlisle
    yesterday






  • 9




    There is also Pandoc, which does not fully support all features and packages but it generally works ok, is easy to use and it is able to convert between many different formats.
    – Marijn
    yesterday






  • 1




    "not obsolete" today will be "obsolete" tomorrow
    – Mauricio Gracia Gutierrez
    yesterday















up vote
21
down vote

favorite
7












I am looking to convert LaTeX to HTML. A long time ago (during my thesis, in 2000!), I used Hacha and Hevea ... but obviously, they are no longer maintained, especially the Windows version.
More recently Google sent me to tex4ht, but it seems that there too the project is at a standstill (the site indicates that there will soon be opportunities for image management, but that was in 2014, since then nothing more) and is poorly documented.



Hence my question: is there a recent solution for converting LaTeX to HTML compatible with Windows? The option that I need are:




  • using CSS

  • cutting the document into several file

  • allowing the use of picture for navigation (up, prev, next)

  • compatible with Windows










share|improve this question









New contributor




Christophe Genolini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 5




    tex4ht is maintained very well with a bunch of new features every few weeks!
    – Keks Dose
    yesterday






  • 1




    lwarp (which I have not used) tex4ht and latexml are the three main actively maintained ones
    – David Carlisle
    yesterday






  • 9




    There is also Pandoc, which does not fully support all features and packages but it generally works ok, is easy to use and it is able to convert between many different formats.
    – Marijn
    yesterday






  • 1




    "not obsolete" today will be "obsolete" tomorrow
    – Mauricio Gracia Gutierrez
    yesterday













up vote
21
down vote

favorite
7









up vote
21
down vote

favorite
7






7





I am looking to convert LaTeX to HTML. A long time ago (during my thesis, in 2000!), I used Hacha and Hevea ... but obviously, they are no longer maintained, especially the Windows version.
More recently Google sent me to tex4ht, but it seems that there too the project is at a standstill (the site indicates that there will soon be opportunities for image management, but that was in 2014, since then nothing more) and is poorly documented.



Hence my question: is there a recent solution for converting LaTeX to HTML compatible with Windows? The option that I need are:




  • using CSS

  • cutting the document into several file

  • allowing the use of picture for navigation (up, prev, next)

  • compatible with Windows










share|improve this question









New contributor




Christophe Genolini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I am looking to convert LaTeX to HTML. A long time ago (during my thesis, in 2000!), I used Hacha and Hevea ... but obviously, they are no longer maintained, especially the Windows version.
More recently Google sent me to tex4ht, but it seems that there too the project is at a standstill (the site indicates that there will soon be opportunities for image management, but that was in 2014, since then nothing more) and is poorly documented.



Hence my question: is there a recent solution for converting LaTeX to HTML compatible with Windows? The option that I need are:




  • using CSS

  • cutting the document into several file

  • allowing the use of picture for navigation (up, prev, next)

  • compatible with Windows







latex2html






share|improve this question









New contributor




Christophe Genolini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Christophe Genolini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday









Null

1,09631222




1,09631222






New contributor




Christophe Genolini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









Christophe Genolini

1064




1064




New contributor




Christophe Genolini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Christophe Genolini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Christophe Genolini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 5




    tex4ht is maintained very well with a bunch of new features every few weeks!
    – Keks Dose
    yesterday






  • 1




    lwarp (which I have not used) tex4ht and latexml are the three main actively maintained ones
    – David Carlisle
    yesterday






  • 9




    There is also Pandoc, which does not fully support all features and packages but it generally works ok, is easy to use and it is able to convert between many different formats.
    – Marijn
    yesterday






  • 1




    "not obsolete" today will be "obsolete" tomorrow
    – Mauricio Gracia Gutierrez
    yesterday














  • 5




    tex4ht is maintained very well with a bunch of new features every few weeks!
    – Keks Dose
    yesterday






  • 1




    lwarp (which I have not used) tex4ht and latexml are the three main actively maintained ones
    – David Carlisle
    yesterday






  • 9




    There is also Pandoc, which does not fully support all features and packages but it generally works ok, is easy to use and it is able to convert between many different formats.
    – Marijn
    yesterday






  • 1




    "not obsolete" today will be "obsolete" tomorrow
    – Mauricio Gracia Gutierrez
    yesterday








5




5




tex4ht is maintained very well with a bunch of new features every few weeks!
– Keks Dose
yesterday




tex4ht is maintained very well with a bunch of new features every few weeks!
– Keks Dose
yesterday




1




1




lwarp (which I have not used) tex4ht and latexml are the three main actively maintained ones
– David Carlisle
yesterday




lwarp (which I have not used) tex4ht and latexml are the three main actively maintained ones
– David Carlisle
yesterday




9




9




There is also Pandoc, which does not fully support all features and packages but it generally works ok, is easy to use and it is able to convert between many different formats.
– Marijn
yesterday




There is also Pandoc, which does not fully support all features and packages but it generally works ok, is easy to use and it is able to convert between many different formats.
– Marijn
yesterday




1




1




"not obsolete" today will be "obsolete" tomorrow
– Mauricio Gracia Gutierrez
yesterday




"not obsolete" today will be "obsolete" tomorrow
– Mauricio Gracia Gutierrez
yesterday










1 Answer
1






active

oldest

votes

















up vote
29
down vote













It is true that the main page of tex4ht and documentation seems obsolete, but the project itself is alive, as can be seen from the history of commits and the mailing list. We added MathJax output support recently, for example.



It is also true that the full distribution which is on CTAN haven't been updated since the original author passed away, but the updates go directly to TeX distributions, so it is not necessary to install the distribution by hand, it would be quite complicated process. Everything you need to run updated tex4ht is included in TeX Live.



At the moment, I am working on a new documentation, which should be big improvement over the current state.



Regarding your question, all of this should be possible with tex4ht. It produces basic CSS for your document, it also enables to include custom CSS in the generated HTML. It supports cutting of the document to separate files for chapters, sections etc. It works on Windows when you use TL, but Miktex works as well.



The following file, myconfig.cfg will split an article on sections:



Preamble{xhtml,2}
Configure{AddCss}{test.css}
Css{body{background-color:green;}}
Configure{crosslinks}{}{}{includegraphics{next.png}}{includegraphics{prev.png}}{}{}{}{includegraphics{up.jpg}}
begin{document}
EndPreamble


The split is requested using 2 option used in the Preamble command. The Css command can be used for simple CSS instruction, while the Configure{AddCss} requires inclusion of an external CSS file. The Configure{crosslinks} requires pictures for links for previous, next and top pages.



Compilation of the document can be requested using the following command:



make4ht -uc myconfig.cfg filename.tex


make4ht is a build system for tex4ht, it should be used instead of the htlatex command.






share|improve this answer























  • Thanks for your answers. I already found the Preamble{xhtml,2} option, but I did not manage to used some icons "up.png", "prev.png" and "next.png" instead of [up], [prev] and [next]. Any clues on how I can do that?
    – Christophe Genolini
    yesterday








  • 1




    @ChristopheGenolini have you tried the Configure{crosslinks} from my answer? The used pictures must be present on your system.
    – michal.h21
    yesterday






  • 1




    Yes, it works. Thanks a lot. So now that it works, I will have dozens of question (like : "I want the arrow to be in order left / up / next, how can I do that?") :-) Is there an official active forum somewhere?
    – Christophe Genolini
    12 hours ago








  • 2




    @ChristopheGenolini the unofficial forum is here, just add tex4ht tag to your question. We have also mailing list.
    – michal.h21
    12 hours ago











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
});


}
});






Christophe Genolini is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464112%2fnot-obsolete-latex-to-html-converter%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
29
down vote













It is true that the main page of tex4ht and documentation seems obsolete, but the project itself is alive, as can be seen from the history of commits and the mailing list. We added MathJax output support recently, for example.



It is also true that the full distribution which is on CTAN haven't been updated since the original author passed away, but the updates go directly to TeX distributions, so it is not necessary to install the distribution by hand, it would be quite complicated process. Everything you need to run updated tex4ht is included in TeX Live.



At the moment, I am working on a new documentation, which should be big improvement over the current state.



Regarding your question, all of this should be possible with tex4ht. It produces basic CSS for your document, it also enables to include custom CSS in the generated HTML. It supports cutting of the document to separate files for chapters, sections etc. It works on Windows when you use TL, but Miktex works as well.



The following file, myconfig.cfg will split an article on sections:



Preamble{xhtml,2}
Configure{AddCss}{test.css}
Css{body{background-color:green;}}
Configure{crosslinks}{}{}{includegraphics{next.png}}{includegraphics{prev.png}}{}{}{}{includegraphics{up.jpg}}
begin{document}
EndPreamble


The split is requested using 2 option used in the Preamble command. The Css command can be used for simple CSS instruction, while the Configure{AddCss} requires inclusion of an external CSS file. The Configure{crosslinks} requires pictures for links for previous, next and top pages.



Compilation of the document can be requested using the following command:



make4ht -uc myconfig.cfg filename.tex


make4ht is a build system for tex4ht, it should be used instead of the htlatex command.






share|improve this answer























  • Thanks for your answers. I already found the Preamble{xhtml,2} option, but I did not manage to used some icons "up.png", "prev.png" and "next.png" instead of [up], [prev] and [next]. Any clues on how I can do that?
    – Christophe Genolini
    yesterday








  • 1




    @ChristopheGenolini have you tried the Configure{crosslinks} from my answer? The used pictures must be present on your system.
    – michal.h21
    yesterday






  • 1




    Yes, it works. Thanks a lot. So now that it works, I will have dozens of question (like : "I want the arrow to be in order left / up / next, how can I do that?") :-) Is there an official active forum somewhere?
    – Christophe Genolini
    12 hours ago








  • 2




    @ChristopheGenolini the unofficial forum is here, just add tex4ht tag to your question. We have also mailing list.
    – michal.h21
    12 hours ago















up vote
29
down vote













It is true that the main page of tex4ht and documentation seems obsolete, but the project itself is alive, as can be seen from the history of commits and the mailing list. We added MathJax output support recently, for example.



It is also true that the full distribution which is on CTAN haven't been updated since the original author passed away, but the updates go directly to TeX distributions, so it is not necessary to install the distribution by hand, it would be quite complicated process. Everything you need to run updated tex4ht is included in TeX Live.



At the moment, I am working on a new documentation, which should be big improvement over the current state.



Regarding your question, all of this should be possible with tex4ht. It produces basic CSS for your document, it also enables to include custom CSS in the generated HTML. It supports cutting of the document to separate files for chapters, sections etc. It works on Windows when you use TL, but Miktex works as well.



The following file, myconfig.cfg will split an article on sections:



Preamble{xhtml,2}
Configure{AddCss}{test.css}
Css{body{background-color:green;}}
Configure{crosslinks}{}{}{includegraphics{next.png}}{includegraphics{prev.png}}{}{}{}{includegraphics{up.jpg}}
begin{document}
EndPreamble


The split is requested using 2 option used in the Preamble command. The Css command can be used for simple CSS instruction, while the Configure{AddCss} requires inclusion of an external CSS file. The Configure{crosslinks} requires pictures for links for previous, next and top pages.



Compilation of the document can be requested using the following command:



make4ht -uc myconfig.cfg filename.tex


make4ht is a build system for tex4ht, it should be used instead of the htlatex command.






share|improve this answer























  • Thanks for your answers. I already found the Preamble{xhtml,2} option, but I did not manage to used some icons "up.png", "prev.png" and "next.png" instead of [up], [prev] and [next]. Any clues on how I can do that?
    – Christophe Genolini
    yesterday








  • 1




    @ChristopheGenolini have you tried the Configure{crosslinks} from my answer? The used pictures must be present on your system.
    – michal.h21
    yesterday






  • 1




    Yes, it works. Thanks a lot. So now that it works, I will have dozens of question (like : "I want the arrow to be in order left / up / next, how can I do that?") :-) Is there an official active forum somewhere?
    – Christophe Genolini
    12 hours ago








  • 2




    @ChristopheGenolini the unofficial forum is here, just add tex4ht tag to your question. We have also mailing list.
    – michal.h21
    12 hours ago













up vote
29
down vote










up vote
29
down vote









It is true that the main page of tex4ht and documentation seems obsolete, but the project itself is alive, as can be seen from the history of commits and the mailing list. We added MathJax output support recently, for example.



It is also true that the full distribution which is on CTAN haven't been updated since the original author passed away, but the updates go directly to TeX distributions, so it is not necessary to install the distribution by hand, it would be quite complicated process. Everything you need to run updated tex4ht is included in TeX Live.



At the moment, I am working on a new documentation, which should be big improvement over the current state.



Regarding your question, all of this should be possible with tex4ht. It produces basic CSS for your document, it also enables to include custom CSS in the generated HTML. It supports cutting of the document to separate files for chapters, sections etc. It works on Windows when you use TL, but Miktex works as well.



The following file, myconfig.cfg will split an article on sections:



Preamble{xhtml,2}
Configure{AddCss}{test.css}
Css{body{background-color:green;}}
Configure{crosslinks}{}{}{includegraphics{next.png}}{includegraphics{prev.png}}{}{}{}{includegraphics{up.jpg}}
begin{document}
EndPreamble


The split is requested using 2 option used in the Preamble command. The Css command can be used for simple CSS instruction, while the Configure{AddCss} requires inclusion of an external CSS file. The Configure{crosslinks} requires pictures for links for previous, next and top pages.



Compilation of the document can be requested using the following command:



make4ht -uc myconfig.cfg filename.tex


make4ht is a build system for tex4ht, it should be used instead of the htlatex command.






share|improve this answer














It is true that the main page of tex4ht and documentation seems obsolete, but the project itself is alive, as can be seen from the history of commits and the mailing list. We added MathJax output support recently, for example.



It is also true that the full distribution which is on CTAN haven't been updated since the original author passed away, but the updates go directly to TeX distributions, so it is not necessary to install the distribution by hand, it would be quite complicated process. Everything you need to run updated tex4ht is included in TeX Live.



At the moment, I am working on a new documentation, which should be big improvement over the current state.



Regarding your question, all of this should be possible with tex4ht. It produces basic CSS for your document, it also enables to include custom CSS in the generated HTML. It supports cutting of the document to separate files for chapters, sections etc. It works on Windows when you use TL, but Miktex works as well.



The following file, myconfig.cfg will split an article on sections:



Preamble{xhtml,2}
Configure{AddCss}{test.css}
Css{body{background-color:green;}}
Configure{crosslinks}{}{}{includegraphics{next.png}}{includegraphics{prev.png}}{}{}{}{includegraphics{up.jpg}}
begin{document}
EndPreamble


The split is requested using 2 option used in the Preamble command. The Css command can be used for simple CSS instruction, while the Configure{AddCss} requires inclusion of an external CSS file. The Configure{crosslinks} requires pictures for links for previous, next and top pages.



Compilation of the document can be requested using the following command:



make4ht -uc myconfig.cfg filename.tex


make4ht is a build system for tex4ht, it should be used instead of the htlatex command.







share|improve this answer














share|improve this answer



share|improve this answer








edited yesterday

























answered yesterday









michal.h21

29.2k446104




29.2k446104












  • Thanks for your answers. I already found the Preamble{xhtml,2} option, but I did not manage to used some icons "up.png", "prev.png" and "next.png" instead of [up], [prev] and [next]. Any clues on how I can do that?
    – Christophe Genolini
    yesterday








  • 1




    @ChristopheGenolini have you tried the Configure{crosslinks} from my answer? The used pictures must be present on your system.
    – michal.h21
    yesterday






  • 1




    Yes, it works. Thanks a lot. So now that it works, I will have dozens of question (like : "I want the arrow to be in order left / up / next, how can I do that?") :-) Is there an official active forum somewhere?
    – Christophe Genolini
    12 hours ago








  • 2




    @ChristopheGenolini the unofficial forum is here, just add tex4ht tag to your question. We have also mailing list.
    – michal.h21
    12 hours ago


















  • Thanks for your answers. I already found the Preamble{xhtml,2} option, but I did not manage to used some icons "up.png", "prev.png" and "next.png" instead of [up], [prev] and [next]. Any clues on how I can do that?
    – Christophe Genolini
    yesterday








  • 1




    @ChristopheGenolini have you tried the Configure{crosslinks} from my answer? The used pictures must be present on your system.
    – michal.h21
    yesterday






  • 1




    Yes, it works. Thanks a lot. So now that it works, I will have dozens of question (like : "I want the arrow to be in order left / up / next, how can I do that?") :-) Is there an official active forum somewhere?
    – Christophe Genolini
    12 hours ago








  • 2




    @ChristopheGenolini the unofficial forum is here, just add tex4ht tag to your question. We have also mailing list.
    – michal.h21
    12 hours ago
















Thanks for your answers. I already found the Preamble{xhtml,2} option, but I did not manage to used some icons "up.png", "prev.png" and "next.png" instead of [up], [prev] and [next]. Any clues on how I can do that?
– Christophe Genolini
yesterday






Thanks for your answers. I already found the Preamble{xhtml,2} option, but I did not manage to used some icons "up.png", "prev.png" and "next.png" instead of [up], [prev] and [next]. Any clues on how I can do that?
– Christophe Genolini
yesterday






1




1




@ChristopheGenolini have you tried the Configure{crosslinks} from my answer? The used pictures must be present on your system.
– michal.h21
yesterday




@ChristopheGenolini have you tried the Configure{crosslinks} from my answer? The used pictures must be present on your system.
– michal.h21
yesterday




1




1




Yes, it works. Thanks a lot. So now that it works, I will have dozens of question (like : "I want the arrow to be in order left / up / next, how can I do that?") :-) Is there an official active forum somewhere?
– Christophe Genolini
12 hours ago






Yes, it works. Thanks a lot. So now that it works, I will have dozens of question (like : "I want the arrow to be in order left / up / next, how can I do that?") :-) Is there an official active forum somewhere?
– Christophe Genolini
12 hours ago






2




2




@ChristopheGenolini the unofficial forum is here, just add tex4ht tag to your question. We have also mailing list.
– michal.h21
12 hours ago




@ChristopheGenolini the unofficial forum is here, just add tex4ht tag to your question. We have also mailing list.
– michal.h21
12 hours ago










Christophe Genolini is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Christophe Genolini is a new contributor. Be nice, and check out our Code of Conduct.













Christophe Genolini is a new contributor. Be nice, and check out our Code of Conduct.












Christophe Genolini is a new contributor. Be nice, and check out our Code of Conduct.
















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%2f464112%2fnot-obsolete-latex-to-html-converter%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

Plaza Victoria

In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...