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
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
And make4ht foo.tex "mathjax"
or make4ht foo.tex
produces this
The math does not look as good as the PDF. And if I do this make4ht -ulm foo.tex "mathjax"
it produces this
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
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
|
show 2 more comments
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
And make4ht foo.tex "mathjax"
or make4ht foo.tex
produces this
The math does not look as good as the PDF. And if I do this make4ht -ulm foo.tex "mathjax"
it produces this
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
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
1
It's worth mentioning that there are multiple issues with thetex4ht
driver at the moment. See github.com/pgf-tikz/pgf/issues/651. Thedvisvgm4ht
(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 useincludegraphics
to load the output pdf image with tex4ht.
– Nasser
May 2 at 10:17
Don't despair :) Thedvisvgm4ht
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 thedvisvgm4ht
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 thedvisvgm_hashes
extension formake4ht
. 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
|
show 2 more comments
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
And make4ht foo.tex "mathjax"
or make4ht foo.tex
produces this
The math does not look as good as the PDF. And if I do this make4ht -ulm foo.tex "mathjax"
it produces this
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
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
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
And make4ht foo.tex "mathjax"
or make4ht foo.tex
produces this
The math does not look as good as the PDF. And if I do this make4ht -ulm foo.tex "mathjax"
it produces this
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
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
tikz-pgf tex4ht
asked May 2 at 9:26
NasserNasser
8,41073290
8,41073290
1
It's worth mentioning that there are multiple issues with thetex4ht
driver at the moment. See github.com/pgf-tikz/pgf/issues/651. Thedvisvgm4ht
(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 useincludegraphics
to load the output pdf image with tex4ht.
– Nasser
May 2 at 10:17
Don't despair :) Thedvisvgm4ht
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 thedvisvgm4ht
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 thedvisvgm_hashes
extension formake4ht
. 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
|
show 2 more comments
1
It's worth mentioning that there are multiple issues with thetex4ht
driver at the moment. See github.com/pgf-tikz/pgf/issues/651. Thedvisvgm4ht
(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 useincludegraphics
to load the output pdf image with tex4ht.
– Nasser
May 2 at 10:17
Don't despair :) Thedvisvgm4ht
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 thedvisvgm4ht
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 thedvisvgm_hashes
extension formake4ht
. 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
|
show 2 more comments
1 Answer
1
active
oldest
votes
If you compile this file "correctly" with tex4ht then it produces the expected HTML file:
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
Thanks. I am installing TL 2019 at this moment. It will take 2-3 hrs to finish. Will try withdefpgfsysdriverpgfsys-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 thedvisvgm4ht
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
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%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
If you compile this file "correctly" with tex4ht then it produces the expected HTML file:
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
Thanks. I am installing TL 2019 at this moment. It will take 2-3 hrs to finish. Will try withdefpgfsysdriverpgfsys-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 thedvisvgm4ht
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
add a comment |
If you compile this file "correctly" with tex4ht then it produces the expected HTML file:
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
Thanks. I am installing TL 2019 at this moment. It will take 2-3 hrs to finish. Will try withdefpgfsysdriverpgfsys-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 thedvisvgm4ht
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
add a comment |
If you compile this file "correctly" with tex4ht then it produces the expected HTML file:
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
If you compile this file "correctly" with tex4ht then it produces the expected HTML file:
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
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 withdefpgfsysdriverpgfsys-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 thedvisvgm4ht
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
add a comment |
Thanks. I am installing TL 2019 at this moment. It will take 2-3 hrs to finish. Will try withdefpgfsysdriverpgfsys-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 thedvisvgm4ht
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
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%2f488733%2fwhat-is-current-status-of-using-tikz-with-tex4ht%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
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. Thedvisvgm4ht
(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 thedvisvgm_hashes
extension formake4ht
. 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