What is current status of using tikz with tex4ht?Using htlatex with tikz-dependencyRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ: Drawing an arc from an intersection to an intersectionHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingtex4ht and listings: lines don't break when using escapeinsideLine up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?torn paper problem compile

How can this pool heater gas line be disconnected?

Surely they can fit?

Exception propagation: When should I catch exceptions?

Was there ever any real use for a 6800-based Apple I?

A cryptic tricolour

Word for being out at night during curfew

Can a tourist shoot a gun in the USA?

Create a list of all possible Boolean configurations of three constraints

Was this a power play by Daenerys?

On what legal basis did the UK remove the 'European Union' from its passport?

As programers say: Strive to be lazy

What kind of SATA connector is this?

Anatomically Correct Carnivorous Tree

What is Plautus’s pun about frustum and frustrum?

51% attack - apparently very easy? refering to CZ's "rollback btc chain" - How to make sure such corruptible scenario can never happen so easily?

How are one-time password generators like Google Authenticator different from having two passwords?

Why was the Ancient One so hesitant to teach Dr. Strange the art of sorcery?

How to get reference to Component from inside an event method

Does kinetic energy warp spacetime?

How to make a language evolve quickly?

When a land becomes a creature, is it untapped?

Extrude the faces of a cube symmetrically along XYZ

Why is “Ich wusste, dass aus dir mal was wird” grammitally correct?

Drawing lines to nearest point



What is current status of using tikz with tex4ht?


Using htlatex with tikz-dependencyRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ: Drawing an arc from an intersection to an intersectionHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingtex4ht and listings: lines don't break when using escapeinsideLine up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?torn paper problem compile













2















I am completely confused now about how to use tikz with tex4ht, since there seems to be some latest changes and not able to figure what is the way to make it work.



Here is a MWE, which I'd like to compile with make4ht in mathjax mode. But the output does not look correct compared to the PDF



documentclass[11pt]article
usepackagetikz
usepackageamsmath
begindocument

begintikzpicture
coordinate[label =above:$0$, label =below:$u=0$] (A) at (0,0);
coordinate[label =above:$pi$, label =below:$u_x=0$] (B) at (4,0);

draw (A) -- node[above] $u_t = k u_xx $ node[below] $f(x)$ ++ (B);

node at (A)[circle,fill,inner sep=1pt];
node at (B)[circle,fill,inner sep=1pt];

endtikzpicture
enddocument


Now lualatex produces this



Mathematica graphics



And make4ht foo.tex "mathjax" or make4ht foo.tex produces this



Mathematica graphics



The math does not look as good as the PDF. And if I do this make4ht -ulm foo.tex "mathjax" it produces this



Mathematica graphics



Changing the MWE to have this



documentclass[11pt]article
usepackagetikz,graphicx,tikz-dependency
defpgfsysdriverpgfsys-tex4ht.def
usepackageamsmath
begindocument
%as before
enddocument


Produces same output which is



Mathematica graphics



ALso adding



ifdefinedHCode
defpgfsysdriverpgfsys-tex4ht.def
fi


Had no effect.



I looked at using-htlatex-with-tikz-dependency but answers given are way too complicated and could not follow it. It needs external tools to make them work. inkscape and so on. Which I do not want to use.



What is the simplest way to make tikz work with make4ht these days? I am using TL 2018.



Will things change in TL 2019 for tex4ht?










share|improve this question

















  • 1





    It's worth mentioning that there are multiple issues with the tex4ht driver at the moment. See github.com/pgf-tikz/pgf/issues/651. The dvisvgm4ht(used in the answer below) is not without problems either and I gather is slower.

    – David Purton
    May 2 at 10:12











  • @DavidPurton Oh no :( well. Will try it once 2019 is installed. If all is lost and it is still not working, I could always generate the PDF's of the pictures using tikz standalone, then use includegraphics to load the output pdf image with tex4ht.

    – Nasser
    May 2 at 10:17











  • Don't despair :) The dvisvgm4ht driver definitely does a better job. I think it's still a work in progress though.

    – David Purton
    May 2 at 10:19











  • @DavidPurton I think the dvisvgm4ht works in most cases, I don't recall any open issues. but maybe I just forgot about something. The compilation time can be saved using the dvisvgm_hashes extension for make4ht. It compiles only changed images and support multiple CPU cores.

    – michal.h21
    May 2 at 11:19











  • @michal.h21, I found an issue while working on shadings. I'll put in a bug report for you.

    – David Purton
    May 2 at 11:28















2















I am completely confused now about how to use tikz with tex4ht, since there seems to be some latest changes and not able to figure what is the way to make it work.



Here is a MWE, which I'd like to compile with make4ht in mathjax mode. But the output does not look correct compared to the PDF



documentclass[11pt]article
usepackagetikz
usepackageamsmath
begindocument

begintikzpicture
coordinate[label =above:$0$, label =below:$u=0$] (A) at (0,0);
coordinate[label =above:$pi$, label =below:$u_x=0$] (B) at (4,0);

draw (A) -- node[above] $u_t = k u_xx $ node[below] $f(x)$ ++ (B);

node at (A)[circle,fill,inner sep=1pt];
node at (B)[circle,fill,inner sep=1pt];

endtikzpicture
enddocument


Now lualatex produces this



Mathematica graphics



And make4ht foo.tex "mathjax" or make4ht foo.tex produces this



Mathematica graphics



The math does not look as good as the PDF. And if I do this make4ht -ulm foo.tex "mathjax" it produces this



Mathematica graphics



Changing the MWE to have this



documentclass[11pt]article
usepackagetikz,graphicx,tikz-dependency
defpgfsysdriverpgfsys-tex4ht.def
usepackageamsmath
begindocument
%as before
enddocument


Produces same output which is



Mathematica graphics



ALso adding



ifdefinedHCode
defpgfsysdriverpgfsys-tex4ht.def
fi


Had no effect.



I looked at using-htlatex-with-tikz-dependency but answers given are way too complicated and could not follow it. It needs external tools to make them work. inkscape and so on. Which I do not want to use.



What is the simplest way to make tikz work with make4ht these days? I am using TL 2018.



Will things change in TL 2019 for tex4ht?










share|improve this question

















  • 1





    It's worth mentioning that there are multiple issues with the tex4ht driver at the moment. See github.com/pgf-tikz/pgf/issues/651. The dvisvgm4ht(used in the answer below) is not without problems either and I gather is slower.

    – David Purton
    May 2 at 10:12











  • @DavidPurton Oh no :( well. Will try it once 2019 is installed. If all is lost and it is still not working, I could always generate the PDF's of the pictures using tikz standalone, then use includegraphics to load the output pdf image with tex4ht.

    – Nasser
    May 2 at 10:17











  • Don't despair :) The dvisvgm4ht driver definitely does a better job. I think it's still a work in progress though.

    – David Purton
    May 2 at 10:19











  • @DavidPurton I think the dvisvgm4ht works in most cases, I don't recall any open issues. but maybe I just forgot about something. The compilation time can be saved using the dvisvgm_hashes extension for make4ht. It compiles only changed images and support multiple CPU cores.

    – michal.h21
    May 2 at 11:19











  • @michal.h21, I found an issue while working on shadings. I'll put in a bug report for you.

    – David Purton
    May 2 at 11:28













2












2








2








I am completely confused now about how to use tikz with tex4ht, since there seems to be some latest changes and not able to figure what is the way to make it work.



Here is a MWE, which I'd like to compile with make4ht in mathjax mode. But the output does not look correct compared to the PDF



documentclass[11pt]article
usepackagetikz
usepackageamsmath
begindocument

begintikzpicture
coordinate[label =above:$0$, label =below:$u=0$] (A) at (0,0);
coordinate[label =above:$pi$, label =below:$u_x=0$] (B) at (4,0);

draw (A) -- node[above] $u_t = k u_xx $ node[below] $f(x)$ ++ (B);

node at (A)[circle,fill,inner sep=1pt];
node at (B)[circle,fill,inner sep=1pt];

endtikzpicture
enddocument


Now lualatex produces this



Mathematica graphics



And make4ht foo.tex "mathjax" or make4ht foo.tex produces this



Mathematica graphics



The math does not look as good as the PDF. And if I do this make4ht -ulm foo.tex "mathjax" it produces this



Mathematica graphics



Changing the MWE to have this



documentclass[11pt]article
usepackagetikz,graphicx,tikz-dependency
defpgfsysdriverpgfsys-tex4ht.def
usepackageamsmath
begindocument
%as before
enddocument


Produces same output which is



Mathematica graphics



ALso adding



ifdefinedHCode
defpgfsysdriverpgfsys-tex4ht.def
fi


Had no effect.



I looked at using-htlatex-with-tikz-dependency but answers given are way too complicated and could not follow it. It needs external tools to make them work. inkscape and so on. Which I do not want to use.



What is the simplest way to make tikz work with make4ht these days? I am using TL 2018.



Will things change in TL 2019 for tex4ht?










share|improve this question














I am completely confused now about how to use tikz with tex4ht, since there seems to be some latest changes and not able to figure what is the way to make it work.



Here is a MWE, which I'd like to compile with make4ht in mathjax mode. But the output does not look correct compared to the PDF



documentclass[11pt]article
usepackagetikz
usepackageamsmath
begindocument

begintikzpicture
coordinate[label =above:$0$, label =below:$u=0$] (A) at (0,0);
coordinate[label =above:$pi$, label =below:$u_x=0$] (B) at (4,0);

draw (A) -- node[above] $u_t = k u_xx $ node[below] $f(x)$ ++ (B);

node at (A)[circle,fill,inner sep=1pt];
node at (B)[circle,fill,inner sep=1pt];

endtikzpicture
enddocument


Now lualatex produces this



Mathematica graphics



And make4ht foo.tex "mathjax" or make4ht foo.tex produces this



Mathematica graphics



The math does not look as good as the PDF. And if I do this make4ht -ulm foo.tex "mathjax" it produces this



Mathematica graphics



Changing the MWE to have this



documentclass[11pt]article
usepackagetikz,graphicx,tikz-dependency
defpgfsysdriverpgfsys-tex4ht.def
usepackageamsmath
begindocument
%as before
enddocument


Produces same output which is



Mathematica graphics



ALso adding



ifdefinedHCode
defpgfsysdriverpgfsys-tex4ht.def
fi


Had no effect.



I looked at using-htlatex-with-tikz-dependency but answers given are way too complicated and could not follow it. It needs external tools to make them work. inkscape and so on. Which I do not want to use.



What is the simplest way to make tikz work with make4ht these days? I am using TL 2018.



Will things change in TL 2019 for tex4ht?







tikz-pgf tex4ht






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 2 at 9:26









NasserNasser

8,41073290




8,41073290







  • 1





    It's worth mentioning that there are multiple issues with the tex4ht driver at the moment. See github.com/pgf-tikz/pgf/issues/651. The dvisvgm4ht(used in the answer below) is not without problems either and I gather is slower.

    – David Purton
    May 2 at 10:12











  • @DavidPurton Oh no :( well. Will try it once 2019 is installed. If all is lost and it is still not working, I could always generate the PDF's of the pictures using tikz standalone, then use includegraphics to load the output pdf image with tex4ht.

    – Nasser
    May 2 at 10:17











  • Don't despair :) The dvisvgm4ht driver definitely does a better job. I think it's still a work in progress though.

    – David Purton
    May 2 at 10:19











  • @DavidPurton I think the dvisvgm4ht works in most cases, I don't recall any open issues. but maybe I just forgot about something. The compilation time can be saved using the dvisvgm_hashes extension for make4ht. It compiles only changed images and support multiple CPU cores.

    – michal.h21
    May 2 at 11:19











  • @michal.h21, I found an issue while working on shadings. I'll put in a bug report for you.

    – David Purton
    May 2 at 11:28












  • 1





    It's worth mentioning that there are multiple issues with the tex4ht driver at the moment. See github.com/pgf-tikz/pgf/issues/651. The dvisvgm4ht(used in the answer below) is not without problems either and I gather is slower.

    – David Purton
    May 2 at 10:12











  • @DavidPurton Oh no :( well. Will try it once 2019 is installed. If all is lost and it is still not working, I could always generate the PDF's of the pictures using tikz standalone, then use includegraphics to load the output pdf image with tex4ht.

    – Nasser
    May 2 at 10:17











  • Don't despair :) The dvisvgm4ht driver definitely does a better job. I think it's still a work in progress though.

    – David Purton
    May 2 at 10:19











  • @DavidPurton I think the dvisvgm4ht works in most cases, I don't recall any open issues. but maybe I just forgot about something. The compilation time can be saved using the dvisvgm_hashes extension for make4ht. It compiles only changed images and support multiple CPU cores.

    – michal.h21
    May 2 at 11:19











  • @michal.h21, I found an issue while working on shadings. I'll put in a bug report for you.

    – David Purton
    May 2 at 11:28







1




1





It's worth mentioning that there are multiple issues with the tex4ht driver at the moment. See github.com/pgf-tikz/pgf/issues/651. The dvisvgm4ht(used in the answer below) is not without problems either and I gather is slower.

– David Purton
May 2 at 10:12





It's worth mentioning that there are multiple issues with the tex4ht driver at the moment. See github.com/pgf-tikz/pgf/issues/651. The dvisvgm4ht(used in the answer below) is not without problems either and I gather is slower.

– David Purton
May 2 at 10:12













@DavidPurton Oh no :( well. Will try it once 2019 is installed. If all is lost and it is still not working, I could always generate the PDF's of the pictures using tikz standalone, then use includegraphics to load the output pdf image with tex4ht.

– Nasser
May 2 at 10:17





@DavidPurton Oh no :( well. Will try it once 2019 is installed. If all is lost and it is still not working, I could always generate the PDF's of the pictures using tikz standalone, then use includegraphics to load the output pdf image with tex4ht.

– Nasser
May 2 at 10:17













Don't despair :) The dvisvgm4ht driver definitely does a better job. I think it's still a work in progress though.

– David Purton
May 2 at 10:19





Don't despair :) The dvisvgm4ht driver definitely does a better job. I think it's still a work in progress though.

– David Purton
May 2 at 10:19













@DavidPurton I think the dvisvgm4ht works in most cases, I don't recall any open issues. but maybe I just forgot about something. The compilation time can be saved using the dvisvgm_hashes extension for make4ht. It compiles only changed images and support multiple CPU cores.

– michal.h21
May 2 at 11:19





@DavidPurton I think the dvisvgm4ht works in most cases, I don't recall any open issues. but maybe I just forgot about something. The compilation time can be saved using the dvisvgm_hashes extension for make4ht. It compiles only changed images and support multiple CPU cores.

– michal.h21
May 2 at 11:19













@michal.h21, I found an issue while working on shadings. I'll put in a bug report for you.

– David Purton
May 2 at 11:28





@michal.h21, I found an issue while working on shadings. I'll put in a bug report for you.

– David Purton
May 2 at 11:28










1 Answer
1






active

oldest

votes


















4














If you compile this file "correctly" with tex4ht then it produces the expected HTML file:



enter image description here



Here "correctly" means that you need to tell pgf the "correct" driver to use by adding the line:



 defpgfsysdriverpgfsys-dvisvgm4ht.def


to the top of the tex file. If you are using TeXLive 2019 then you will have this file as it is included as part of the webquiz package, but this driver file is actually written by Michal Hoftich, who is one of the tex4ht maintainers. You can download the latest version of this driver from https://github.com/michal-h21/dvisvgm4ht.



Here is the modified MWE:



documentclass[11pt]article
ifdefinedHCode
defpgfsysdriverpgfsys-dvisvgm4ht.def
fi

usepackagetikz
usepackageamsmath
begindocument

begintikzpicture
coordinate[label =above:$0$, label =below:$u=0$] (A) at (0,0);
coordinate[label =above:$pi$, label =below:$u_x=0$] (B) at (4,0);

draw (A) -- node[above] $u_t = k u_xx $ node[below] $f(x)$ ++ (B);

node at (A)[circle,fill,inner sep=1pt];
node at (B)[circle,fill,inner sep=1pt];

endtikzpicture
enddocument


The easiest way to compile this file with tex4ht is to use Michal Hoftich's make4ht:




make4ht filename







share|improve this answer

























  • Thanks. I am installing TL 2019 at this moment. It will take 2-3 hrs to finish. Will try with defpgfsysdriverpgfsys-dvisvgm4ht.def then. I prefer not to download individual files so installing 2019 would be better option.

    – Nasser
    May 2 at 10:08






  • 1





    I've send mail to Henri Menke to use the alternative driver as a default one for TikZ and tex4ht.

    – michal.h21
    May 2 at 10:36











  • @michal.h21 Thanks. When it hits texlive I'll have to update my package so that it no longer uses it.

    – Andrew
    May 2 at 11:18











  • Great, it works! Thanks to to your help and ofcourse thanks to Michal.h21 for all his great work on this.

    – Nasser
    May 2 at 18:56






  • 1





    @Andrew I've fixed some bugs in the dvisvgm4ht driver, it can can compile most tikz pictures without compilation errors. The output is sometimes wrong for some more complex images, but it is OK in most cases

    – michal.h21
    May 6 at 16:20











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%2f488733%2fwhat-is-current-status-of-using-tikz-with-tex4ht%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









4














If you compile this file "correctly" with tex4ht then it produces the expected HTML file:



enter image description here



Here "correctly" means that you need to tell pgf the "correct" driver to use by adding the line:



 defpgfsysdriverpgfsys-dvisvgm4ht.def


to the top of the tex file. If you are using TeXLive 2019 then you will have this file as it is included as part of the webquiz package, but this driver file is actually written by Michal Hoftich, who is one of the tex4ht maintainers. You can download the latest version of this driver from https://github.com/michal-h21/dvisvgm4ht.



Here is the modified MWE:



documentclass[11pt]article
ifdefinedHCode
defpgfsysdriverpgfsys-dvisvgm4ht.def
fi

usepackagetikz
usepackageamsmath
begindocument

begintikzpicture
coordinate[label =above:$0$, label =below:$u=0$] (A) at (0,0);
coordinate[label =above:$pi$, label =below:$u_x=0$] (B) at (4,0);

draw (A) -- node[above] $u_t = k u_xx $ node[below] $f(x)$ ++ (B);

node at (A)[circle,fill,inner sep=1pt];
node at (B)[circle,fill,inner sep=1pt];

endtikzpicture
enddocument


The easiest way to compile this file with tex4ht is to use Michal Hoftich's make4ht:




make4ht filename







share|improve this answer

























  • Thanks. I am installing TL 2019 at this moment. It will take 2-3 hrs to finish. Will try with defpgfsysdriverpgfsys-dvisvgm4ht.def then. I prefer not to download individual files so installing 2019 would be better option.

    – Nasser
    May 2 at 10:08






  • 1





    I've send mail to Henri Menke to use the alternative driver as a default one for TikZ and tex4ht.

    – michal.h21
    May 2 at 10:36











  • @michal.h21 Thanks. When it hits texlive I'll have to update my package so that it no longer uses it.

    – Andrew
    May 2 at 11:18











  • Great, it works! Thanks to to your help and ofcourse thanks to Michal.h21 for all his great work on this.

    – Nasser
    May 2 at 18:56






  • 1





    @Andrew I've fixed some bugs in the dvisvgm4ht driver, it can can compile most tikz pictures without compilation errors. The output is sometimes wrong for some more complex images, but it is OK in most cases

    – michal.h21
    May 6 at 16:20















4














If you compile this file "correctly" with tex4ht then it produces the expected HTML file:



enter image description here



Here "correctly" means that you need to tell pgf the "correct" driver to use by adding the line:



 defpgfsysdriverpgfsys-dvisvgm4ht.def


to the top of the tex file. If you are using TeXLive 2019 then you will have this file as it is included as part of the webquiz package, but this driver file is actually written by Michal Hoftich, who is one of the tex4ht maintainers. You can download the latest version of this driver from https://github.com/michal-h21/dvisvgm4ht.



Here is the modified MWE:



documentclass[11pt]article
ifdefinedHCode
defpgfsysdriverpgfsys-dvisvgm4ht.def
fi

usepackagetikz
usepackageamsmath
begindocument

begintikzpicture
coordinate[label =above:$0$, label =below:$u=0$] (A) at (0,0);
coordinate[label =above:$pi$, label =below:$u_x=0$] (B) at (4,0);

draw (A) -- node[above] $u_t = k u_xx $ node[below] $f(x)$ ++ (B);

node at (A)[circle,fill,inner sep=1pt];
node at (B)[circle,fill,inner sep=1pt];

endtikzpicture
enddocument


The easiest way to compile this file with tex4ht is to use Michal Hoftich's make4ht:




make4ht filename







share|improve this answer

























  • Thanks. I am installing TL 2019 at this moment. It will take 2-3 hrs to finish. Will try with defpgfsysdriverpgfsys-dvisvgm4ht.def then. I prefer not to download individual files so installing 2019 would be better option.

    – Nasser
    May 2 at 10:08






  • 1





    I've send mail to Henri Menke to use the alternative driver as a default one for TikZ and tex4ht.

    – michal.h21
    May 2 at 10:36











  • @michal.h21 Thanks. When it hits texlive I'll have to update my package so that it no longer uses it.

    – Andrew
    May 2 at 11:18











  • Great, it works! Thanks to to your help and ofcourse thanks to Michal.h21 for all his great work on this.

    – Nasser
    May 2 at 18:56






  • 1





    @Andrew I've fixed some bugs in the dvisvgm4ht driver, it can can compile most tikz pictures without compilation errors. The output is sometimes wrong for some more complex images, but it is OK in most cases

    – michal.h21
    May 6 at 16:20













4












4








4







If you compile this file "correctly" with tex4ht then it produces the expected HTML file:



enter image description here



Here "correctly" means that you need to tell pgf the "correct" driver to use by adding the line:



 defpgfsysdriverpgfsys-dvisvgm4ht.def


to the top of the tex file. If you are using TeXLive 2019 then you will have this file as it is included as part of the webquiz package, but this driver file is actually written by Michal Hoftich, who is one of the tex4ht maintainers. You can download the latest version of this driver from https://github.com/michal-h21/dvisvgm4ht.



Here is the modified MWE:



documentclass[11pt]article
ifdefinedHCode
defpgfsysdriverpgfsys-dvisvgm4ht.def
fi

usepackagetikz
usepackageamsmath
begindocument

begintikzpicture
coordinate[label =above:$0$, label =below:$u=0$] (A) at (0,0);
coordinate[label =above:$pi$, label =below:$u_x=0$] (B) at (4,0);

draw (A) -- node[above] $u_t = k u_xx $ node[below] $f(x)$ ++ (B);

node at (A)[circle,fill,inner sep=1pt];
node at (B)[circle,fill,inner sep=1pt];

endtikzpicture
enddocument


The easiest way to compile this file with tex4ht is to use Michal Hoftich's make4ht:




make4ht filename







share|improve this answer















If you compile this file "correctly" with tex4ht then it produces the expected HTML file:



enter image description here



Here "correctly" means that you need to tell pgf the "correct" driver to use by adding the line:



 defpgfsysdriverpgfsys-dvisvgm4ht.def


to the top of the tex file. If you are using TeXLive 2019 then you will have this file as it is included as part of the webquiz package, but this driver file is actually written by Michal Hoftich, who is one of the tex4ht maintainers. You can download the latest version of this driver from https://github.com/michal-h21/dvisvgm4ht.



Here is the modified MWE:



documentclass[11pt]article
ifdefinedHCode
defpgfsysdriverpgfsys-dvisvgm4ht.def
fi

usepackagetikz
usepackageamsmath
begindocument

begintikzpicture
coordinate[label =above:$0$, label =below:$u=0$] (A) at (0,0);
coordinate[label =above:$pi$, label =below:$u_x=0$] (B) at (4,0);

draw (A) -- node[above] $u_t = k u_xx $ node[below] $f(x)$ ++ (B);

node at (A)[circle,fill,inner sep=1pt];
node at (B)[circle,fill,inner sep=1pt];

endtikzpicture
enddocument


The easiest way to compile this file with tex4ht is to use Michal Hoftich's make4ht:




make4ht filename








share|improve this answer














share|improve this answer



share|improve this answer








edited May 2 at 10:12

























answered May 2 at 9:58









AndrewAndrew

32.5k34684




32.5k34684












  • Thanks. I am installing TL 2019 at this moment. It will take 2-3 hrs to finish. Will try with defpgfsysdriverpgfsys-dvisvgm4ht.def then. I prefer not to download individual files so installing 2019 would be better option.

    – Nasser
    May 2 at 10:08






  • 1





    I've send mail to Henri Menke to use the alternative driver as a default one for TikZ and tex4ht.

    – michal.h21
    May 2 at 10:36











  • @michal.h21 Thanks. When it hits texlive I'll have to update my package so that it no longer uses it.

    – Andrew
    May 2 at 11:18











  • Great, it works! Thanks to to your help and ofcourse thanks to Michal.h21 for all his great work on this.

    – Nasser
    May 2 at 18:56






  • 1





    @Andrew I've fixed some bugs in the dvisvgm4ht driver, it can can compile most tikz pictures without compilation errors. The output is sometimes wrong for some more complex images, but it is OK in most cases

    – michal.h21
    May 6 at 16:20

















  • Thanks. I am installing TL 2019 at this moment. It will take 2-3 hrs to finish. Will try with defpgfsysdriverpgfsys-dvisvgm4ht.def then. I prefer not to download individual files so installing 2019 would be better option.

    – Nasser
    May 2 at 10:08






  • 1





    I've send mail to Henri Menke to use the alternative driver as a default one for TikZ and tex4ht.

    – michal.h21
    May 2 at 10:36











  • @michal.h21 Thanks. When it hits texlive I'll have to update my package so that it no longer uses it.

    – Andrew
    May 2 at 11:18











  • Great, it works! Thanks to to your help and ofcourse thanks to Michal.h21 for all his great work on this.

    – Nasser
    May 2 at 18:56






  • 1





    @Andrew I've fixed some bugs in the dvisvgm4ht driver, it can can compile most tikz pictures without compilation errors. The output is sometimes wrong for some more complex images, but it is OK in most cases

    – michal.h21
    May 6 at 16:20
















Thanks. I am installing TL 2019 at this moment. It will take 2-3 hrs to finish. Will try with defpgfsysdriverpgfsys-dvisvgm4ht.def then. I prefer not to download individual files so installing 2019 would be better option.

– Nasser
May 2 at 10:08





Thanks. I am installing TL 2019 at this moment. It will take 2-3 hrs to finish. Will try with defpgfsysdriverpgfsys-dvisvgm4ht.def then. I prefer not to download individual files so installing 2019 would be better option.

– Nasser
May 2 at 10:08




1




1





I've send mail to Henri Menke to use the alternative driver as a default one for TikZ and tex4ht.

– michal.h21
May 2 at 10:36





I've send mail to Henri Menke to use the alternative driver as a default one for TikZ and tex4ht.

– michal.h21
May 2 at 10:36













@michal.h21 Thanks. When it hits texlive I'll have to update my package so that it no longer uses it.

– Andrew
May 2 at 11:18





@michal.h21 Thanks. When it hits texlive I'll have to update my package so that it no longer uses it.

– Andrew
May 2 at 11:18













Great, it works! Thanks to to your help and ofcourse thanks to Michal.h21 for all his great work on this.

– Nasser
May 2 at 18:56





Great, it works! Thanks to to your help and ofcourse thanks to Michal.h21 for all his great work on this.

– Nasser
May 2 at 18:56




1




1





@Andrew I've fixed some bugs in the dvisvgm4ht driver, it can can compile most tikz pictures without compilation errors. The output is sometimes wrong for some more complex images, but it is OK in most cases

– michal.h21
May 6 at 16:20





@Andrew I've fixed some bugs in the dvisvgm4ht driver, it can can compile most tikz pictures without compilation errors. The output is sometimes wrong for some more complex images, but it is OK in most cases

– michal.h21
May 6 at 16:20

















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%2f488733%2fwhat-is-current-status-of-using-tikz-with-tex4ht%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

Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020