Skip to main content

Questions tagged [html]

{html} is for questions related to HTML, a markup language mainly used for creating web pages.

Filter by
Sorted by
Tagged with
0 votes
1 answer
66 views

How can I markup a document for both TeX and HTML?

I have a book that I would like to publish both on Kindle and as a regular printed book. The Kindle version uses HTML as the markup so it has things   in it and stuff like that. Obviously ...
Tyler Durden's user avatar
1 vote
1 answer
35 views

make4ht: configure the list style

I like to match the list style of HTML output with the PDF. When I use \item[] in the 2nd level of any list, there should also be no item label in HTML. And in the case of using \item in the 2nd level,...
raf's user avatar
  • 785
1 vote
1 answer
35 views

make4ht: configure the hyperlink to open in a new tab

I am using make4ht for the conversion from tex to html file with the following configuration. What I need to configure is related to URLs and hyperlinks. I want to get the hyperlink settings of the ...
raf's user avatar
  • 785
1 vote
1 answer
43 views

no hyperref in index of html

Here an mwe off this site. If i process it with pdflatex i get the hyperrefs. But if i process it with htlatex the index does not have working hyperrefs. What am i missing? \documentclass{article} \...
FireBird Press LLC's user avatar
0 votes
1 answer
54 views

Texstudio convert to html

I'm using Texstudio and its convert-to-html button. This mwe works to create a pdf, but it does not work when I use the convert-to-html option. \documentclass{report} \usepackage{graphicx} \begin{...
FireBird Press LLC's user avatar
1 vote
1 answer
27 views

htlatex listings emergency stop

I am trying to generate some HTML (using htlatex) from a very simple .tex-file containing some listings. If I do not set my own style, it proceeds as expected and generates the HTML, but when I choose ...
Rewbert's user avatar
  • 111
1 vote
1 answer
49 views

Converting LaTeX to HTML without losing formatting from titlesec & titling

I've tried several existing TeX->HTML solutions, including tex4ht, pandoc, and lwarp, but all suffer from a similar issue where they completely lose all formatting done by titlesec, geometry, ...
swurl's user avatar
  • 11
1 vote
1 answer
26 views

Add translate="no" attribute in the elements generated from code listings

I'm using make4ht to convert .tex files to HTML, and I added google translate API to the generated website, but some elements shouldn't be translated and adding translate="no" attribute to ...
Valdinei Rodrigues's user avatar
1 vote
1 answer
19 views

make4ht place footnotes container inside "main-content" container

My MWE is: \documentclass{article} \begin{document} Test \footnote{This is a test!} \end{document} When I compile using this configuration file (.cfg): \Preamble{xhtml,html5,fn-in} \Configure{...
Valdinei Rodrigues's user avatar
0 votes
0 answers
28 views

Convert Latex code to Html [duplicate]

How to Convert Latex code to HTML in nodejs? Is it possible? or is there any other way to build pdf and build HTML code using same code?
user316374's user avatar
0 votes
0 answers
27 views

Adding an html document to an article [duplicate]

I'm trying to add an html document to an article document and i don't seem to find a way. Anyone can help? Thank you all very much in advance !
HansDerHalbe's user avatar
0 votes
0 answers
41 views

Which software can be used for diagrams incorporated in latex and html

I need to draw one or a few flow-diagram like graph which must be included in a PDF produced with Latex and a HTML file shown in a browser. What is the best option for the software? I would prefer a ...
user855443's user avatar
  • 1,120
2 votes
1 answer
79 views

make4ht compiled HTML math doesn't justify with text

My test.tex MWE is: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{mathtools} \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam a ...
Valdinei Rodrigues's user avatar
0 votes
0 answers
36 views

How to put html table into latex document (not as a figure) [duplicate]

I have an html table like <table>...</table> with some css formatting and I'd like to put that table into latex document. I don't want to put it as a figure because I will not ba able to ...
Kernier's user avatar
2 votes
1 answer
109 views

make4ht math input error when using amsmath

My MWE is the file test.tex here: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \begin{equation} y[n] = \begin{cases}...
Valdinei Rodrigues's user avatar
1 vote
1 answer
122 views

error using htlatex and no output file is generated :(

I am very new to using LaTeX so please be kind :) Specs: Using Windows OS, TexLive, Overleaf(initially). Used the accessible package from https://libguides.lib.msu.edu/c.php?g=995742&p=8207771 ...
Locke's user avatar
  • 13
0 votes
0 answers
128 views

How to create a latex file with html input value?

I have a latex file and a website. On the website I have an input field, in which you can write text. Then when you click a download-button on the website I want that it automatically creates a pdf (...
mat's user avatar
  • 1
3 votes
1 answer
164 views

converting context to HTML problem. TL 2023. Strange characters show up

I am learning context a little, so I can compare its output to HTML with tex4ht. I know very little about context. I found the most simple example in this answer ConTeXt to HTML conversion for ...
Nasser's user avatar
  • 20.3k
1 vote
1 answer
108 views

Table Column Alignment to HTML

How to retain the LaTeX tabular cell alignment in the converted HTML col element? For example: \begin{tabular}{**lcr**} should convert as <col align="**left**" ..><col align="...
RampSmart's user avatar
  • 125
1 vote
1 answer
296 views

Librarys in TikZJax

https://tikzjax.com/ https://tikzjax-demo.glitch.me/ Is it possible to use librarys in TikZJax? I testet \tikzset{ background rectangle/.style={fill=red, rounded corners}, show background ...
cis's user avatar
  • 8,912
2 votes
1 answer
49 views

TeX4HT - How to add extra tag on theorem-like environments

I am using TeX4HT to convert LaTeX into HTML. I need the HTML structure of theorem-like environment to be like below: The <div> class attribute value should be the name of the type, such as ...
sizr's user avatar
  • 55
1 vote
0 answers
88 views

Difficulty loading multiple LATEX's symbols in a mathematical website [closed]

how are you doing? For some time now, I've been writing some texts about Olympiad mathematics on a wiki. You can find this wiki at the following address: https://olimpedia.fandom.com/pt-br/wiki/...
Nilton Cesar's user avatar
2 votes
1 answer
105 views

Glossary styling. How to stop terms from overlapping the definitions?

I have created a simple Glossary for my article, but one of the terms being defined (Guidelines) is rendered written over its definition. This way it is illegible, as you can see on the screenshot ...
BsAxUbx5KoQDEpCAqSffwGy554PSah's user avatar
1 vote
1 answer
89 views

How can I convert a chess PDF to a HTML file to include diagrams using tex4ht?

I'm trying to convert a chess pdf to html file before converting to mobi and keeping it with the diagrams. I'm doing this through tex4ht on TeXStudio. I have the code: \documentclass{article} \...
Cauê's user avatar
  • 11
2 votes
1 answer
171 views

Export alignment information during docx to html conversion - pandoc

I'm using pandoc in my website to allow my content creators to use Word, which would simplify developmnent immensely. The only issue I have is that Pandoc seems to output very little information about ...
J-Cake's user avatar
  • 121
1 vote
0 answers
160 views

Use html inside Latex

I'm having a html and css code of a figure, and wanna insert this code inside the latex file such that when i compile the document it show me the figure.
Ahmed EL YOUSEFI's user avatar
0 votes
0 answers
60 views

make4ht and hyphens and apostrophes

make4ht incorrectly outputs en-dash, em-dash and apostrophes. \documentclass{article} \begin{document} -- --- ' \end{document} Compiling this with make4ht test.tex outputs garbage – — ’. Note ...
David Wood's user avatar
1 vote
1 answer
97 views

How make tex4ht include navigation link on book title page to table of contents?

To the source file doc.tex below, I'm applying the command make4ht doc.tex "3" to produce an html version that has a separate page for each section. When the resulting doc.html file is ...
murray's user avatar
  • 8,692
0 votes
0 answers
238 views

How can I make rendered expressions by KaTex on a p5.js canvas show on downloaded images?

I am trying to render LaTeX-Expressions with KaTeX on a p5.js canvas in order to export them together with the canvas as a png and use that elsewhere. The expressions render just fine, but when I ...
pana pana's user avatar
1 vote
0 answers
147 views

Error converting Latex to HTML - package algorithm2e?

Update I've reduced the entire thesis down to an empty doc with the packages that I'm using. I've tried commenting out each of the packages one by one, and including them one by one, and the results ...
memo's user avatar
  • 111
1 vote
1 answer
206 views

`make4ht`: Generating HTML output, but leaving the styling to the user (i.e. don't make CSS?)

A nice feature of make4ht is that it converts the latex document to HTML, but the awesome feature of make4ht is that it generates all the right images and inserts them in the right places for math. ...
bzm3r's user avatar
  • 3,206
0 votes
1 answer
151 views

When compiling with make4ht, how to avoid generation of intermediate files that are corrupting the index of version control?

I'm using make4ht as a replacement of the old htlatex to convert a tex file into HTML (see this post for detail: Is the htlatex tool of the latest texlive broken?) With the following command, the html ...
tribbloid's user avatar
  • 113
0 votes
1 answer
125 views

How to number a group of equations in html/Mathjax [closed]

I am using MathJax on my website. When I number a single equation, it turns out all right. However, for a group of equations, it doesn't work. I have to modify the code like below and only then the Eq ...
QMC's user avatar
  • 473
0 votes
1 answer
2k views

pandoc doesnt generate latex equations during .md to .html conversion

I'm using pandoc to convert a .md file with latex equations into .html pandoc sample_equations.md -o test_today.html This is one such equation in sample_equations.md \begin{equation} \frac{\partial ...
newstudent's user avatar
1 vote
1 answer
57 views

How to get \hypereff[]{} working with htlatex?

In this minimal example: \documentclass[11pt]{book} \usepackage[utf8]{inputenc} \usepackage[]{hyperref} \begin{document} Hahaha \hyperref[other]{2} \end{document} Compiling with pdflatex, it ends ...
Socrates's user avatar
0 votes
0 answers
32 views

publish online book with latex [duplicate]

I am writing a mathematical book in Latex that I would like to make accessible as an online book, something in the style of jupyterbook, say. Is there any such service available? I would be willing to ...
darko's user avatar
  • 101
2 votes
1 answer
1k views

How can I convert LaTeX code into minimal HTML?

I'm using Texmaker from the MikTex distribution. What I would like to do, is to create Latex code run Texmaker to do all the substituitons, e.g. from \newcommand build it as pure ASCII-code rather ...
MS-SPO's user avatar
  • 13.7k
0 votes
1 answer
1k views

HTML to PDF with Pandoc: How to change background color of the PDF?

I want to change the background color of the default white to #353535 and for that I'm trying to use the 'backgroundcolor' variable like so, pandoc FINAL.html \ > -f html \ > -V backgroundcolor:#...
rowanantkinson's user avatar
2 votes
0 answers
58 views

Shift from print to tablet

Ten years ago, most people either read scienfitic papers on the screen or printed them on paper. Today, I have the impression that printing becomes rare and people prefer tablet computers (often iPads)...
J Fabian Meier's user avatar
1 vote
1 answer
60 views

Empty html with Blogging in LaTeX

As the title suggests, this is a follow up of this question. I'm following Michal's answer, I have created the same structure suggested in the answer, created the .make4ht file and the same hello....
Luis Turcio's user avatar
  • 2,759
1 vote
2 answers
201 views

Include MATLAB code listing compiled into HTML with correct colors

I am compiling a LaTeX file my_document.tex into an HTML page my_document.html using htlatex with the following command: htlatex my_document.tex "xhtml,mathml-" " -cmozhtf" I have ...
Paul Wintz's user avatar
5 votes
2 answers
5k views

How to render html tables in markdown using Pandoc?

The following markdown code containing html table tags doesn't render properly when converted to latex format using Pandoc. file.md: <table> <tr> <th>Alfreds Futterkiste</th> &...
Gatecrasher53's user avatar
3 votes
1 answer
188 views

Compile xypic diagrams into html

Does anyone know of a way to compile latex files into HTML (as opposed to pdf), in a way such that that commutative diagrams done with xypic are correctly displayed? (EDIT: and moreover that formulae ...
Joao Faria Martins's user avatar
1 vote
0 answers
107 views

Prevent processing of arabic text in sections

Background I am using the package arabtex to process arabic text in coding examples. However, in my main file, every time I do this the code (for example <!DOCTYPE html>) in \section{} gets ...
kexxcream's user avatar
  • 2,845
1 vote
1 answer
433 views

Arabic text inside of listings

Background I am trying to get Arabic text to show inside of HTML code tags using the listings package. The code does not generate any errors, but does not show the Arabic text either. The below ...
kexxcream's user avatar
  • 2,845
0 votes
1 answer
370 views

How to write LaTeX in browsers (in other words HTML)?

I know it is a dumb question because there is MathJax and MathML. But lots of people has said that MathJax also have MathML support. And in https://artofproblemsolving.com, I found that MathJax doesn'...
RajinCoding2007's user avatar
0 votes
2 answers
923 views

MathJax not rendering Tex in display style

I'm rendering a LaTeX file to HTML via Pandoc, and the output has one key difference that I can't figure out how to fix. In my LaTeX'd PDFs, I have some math in display mode that renders as: But in ...
Andrew M.H. Alexander's user avatar
4 votes
1 answer
2k views

LaTex in websites [closed]

I am doing a website in html, and my website is on math. So, I need to write equations there, but I have no idea of how to do it. I has been searching and I found this website https://proofwiki.org/...
Rata mágica's user avatar
0 votes
1 answer
73 views

How to export all collumns from jabref?

I'm using jabref to manage my references. The inssue that I'm facing is that I want to export all the columns that I've added. Like: But when I opened the exportted file, there are just the default ...
user2535338's user avatar
0 votes
0 answers
334 views

Extract image from RMarkDown HTML

I often generate reports using RMarkDown. These include images based on analyses which are encoded in the knitted HTML file in URI scheme format. The following RMarkDown can be knitted to such a file. ...
LBogaardt's user avatar
  • 405

1
2 3 4 5
9