Compile LaTeX to HTML/CSS with kept typography
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
add a comment |
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
2
pdf2htmlex converts PDF to HTML without losing format
– deimi
May 8 '14 at 11:11
add a comment |
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
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
pdftex conversion web
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
add a comment |
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
add a comment |
4 Answers
4
active
oldest
votes
pdf2htmlEX can convert PDF to HTML without losing format.
add a comment |
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.
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
add a comment |
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.
add a comment |
You should consider lwarp. It might require some work on your tex files, but it gives excellent output.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
pdf2htmlEX can convert PDF to HTML without losing format.
add a comment |
pdf2htmlEX can convert PDF to HTML without losing format.
add a comment |
pdf2htmlEX can convert PDF to HTML without losing format.
pdf2htmlEX can convert PDF to HTML without losing format.
answered May 8 '14 at 11:22
deimideimi
1,103810
1,103810
add a comment |
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 31 '18 at 9:41
rsc05rsc05
267110
267110
add a comment |
add a comment |
You should consider lwarp. It might require some work on your tex files, but it gives excellent output.
add a comment |
You should consider lwarp. It might require some work on your tex files, but it gives excellent output.
add a comment |
You should consider lwarp. It might require some work on your tex files, but it gives excellent output.
You should consider lwarp. It might require some work on your tex files, but it gives excellent output.
answered Mar 10 at 15:20
Benjamin McKayBenjamin McKay
2,64211427
2,64211427
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
2
pdf2htmlex converts PDF to HTML without losing format
– deimi
May 8 '14 at 11:11