Error when rendering svgLatex to HTML conversion (basic explanation)running pdflatex after htlatex causes...

Do creatures with a listed speed of "0 ft., fly 30 ft. (hover)" ever touch the ground?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

Getting extremely large arrows with tikzcd

Processor speed limited at 0.4 Ghz

Forgetting the musical notes while performing in concert

How does a dynamic QR code work?

Unlock My Phone! February 2018

How to coordinate airplane tickets?

What Exploit Are These User Agents Trying to Use?

Sums of two squares in arithmetic progressions

In the UK, is it possible to get a referendum by a court decision?

Does int main() need a declaration on C++?

Car headlights in a world without electricity

Was the Stack Exchange "Happy April Fools" page fitting with the '90's code?

Is there a hemisphere-neutral way of specifying a season?

Finding the reason behind the value of the integral.

How dangerous is XSS

Why was Sir Cadogan fired?

How to Prove P(a) → ∀x(P(x) ∨ ¬(x = a)) using Natural Deduction

How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?

What is required to make GPS signals available indoors?

What is the opposite of "eschatology"?

Where would I need my direct neural interface to be implanted?

Why was the shrink from 8″ made only to 5.25″ and not smaller (4″ or less)



Error when rendering svg


Latex to HTML conversion (basic explanation)running pdflatex after htlatex causes hyperref error Undefined control sequenceTikz to html, characters in picture, svg errorUndefined control sequence Hy@MakeCurrentHrefAuto when using tex4htTex4ht error with tikz in TL2015: Undefined control sequence pgfsys@svg@newlineTex4ebook not generating SVG filesUndefined control sequence pgfsyspdfmark converting Standalone TikZ with pdflatexHow to skip hook configurations for control sequences that don't exist?tex4ht: pretty formatting of newline inside html sourcechemfig package - Undefined control sequence setchemfig“Undefined control sequence” error when using chemfig in ConTeXt













1















I'm trying to generate a svg image of a reaction mechanism. However I keep receiving the error:



! Undefined control sequence.
pgfsys@svg@newline ->Hnewline


when running the command make4ht -u "Bromothymol_blue".tex where Bromothymol_blue is the name of the latex document. Here is the code:



documentclass{article}
thispagestyle{empty}
usepackage{chemfig}
usepackage{mol2chemfig}
usepackage{tikz}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{mhchem}
usepackage{tex4ht}
begin{document}
schemestart
chemname{tinychemfig{-[:160]-[:100](-[:40]Br)(-[:220,,,,draw=none]mcfcringle{1.3})-[:160](-[:100,,,1]OH)-[:220](-[:160](-[:100])-[:220])-[:280]-[:340](-[:40])-[:280]@{C}(-[:204]-[:274](-[:154,,,,draw=none]mcfcringle{1.3})-[:214](-[:274](-[:214])-[:334])-[:154](-[:214,,,2]HO)-[:94](-[:154]Br)-[:34](-[:94])-[:334])-[:288]-[:240](-[:0,,,,draw=none]mcfcringle{1.3})-[:300]--[:60]-[:120](-[:180])-[:72]S(=[:336]O)(=[:60]O)-[:144]O(-[:216])}}{Yellow}
begin{tikzpicture}[overlay,remember picture]
draw[red](C) circle (0.1) +(120:0.1) ..controls +(120:0.5) and +(0:0.5).. +(155:2) node[left,align=right] {Conjugation\stops\here};
end{tikzpicture}
arrow{<=>[smallce{+OH-}][smallce{H+},;ce{H2O}]}
chemname{tinychemfig{
% 15
-[:300]% 14
(
-[::60]% 16
)
-[::300]% 12
-[::300]% 11
(
-[::300]mcfright{O}{^{mcfminus}}% 17
)
-[::60]% 10
(
-[::300]Br% 18
)
-[::60]% 9
(
-[::300]% 19
)
-[::60]% 8
(
-[::60]% 13
-[::60]% -> 12
)
(
-[::120,,,,draw=none]mcfcringle{1.3}% (o)
)
-[::300]% 7
(
-[::70]% 20
-[::320]% 21
(
-[::310]S% 26
(
-[::110]mcfright{O}{^{mcfminus}}% 28
)
(
=[::50]O% 29
)
=[::350]O% 27
)
(
-[::120,,,,draw=none]mcfcringle{1.3}% (o)
)
-[::60]% 22
-[::60]% 23
-[::60]% 24
-[::60]% 25
-[::60]% -> 20
)
=[::300]% 6
-[::60]% 1
(
-[::60]% 35
)
-[::300,,,,drh]% 2
(
-[::60]Br% 34
)
-[::300]% 3
(
=[::60]O% 33
)
-[::300]% 4
(
-[::300,,,,drh]% 5
-[::300]% -> 6
)
-[::60]% 30
(
-[::300]% 31
)
-[::60]% 32
}}{Blue}
schemestop
end{document}


I tried to follow the solution from Latex to HTML conversion (basic explanation). I use TeXstudio and used the user command make4ht -u %.tex



Please note that I know the code works with pdftlatex and that is not what I am trying to do. I am trying to generate a html output with an svg using tex4ht. Also I am quite new to this so please try and explain as much as possible in your answer.
Thanks!










share|improve this question





























    1















    I'm trying to generate a svg image of a reaction mechanism. However I keep receiving the error:



    ! Undefined control sequence.
    pgfsys@svg@newline ->Hnewline


    when running the command make4ht -u "Bromothymol_blue".tex where Bromothymol_blue is the name of the latex document. Here is the code:



    documentclass{article}
    thispagestyle{empty}
    usepackage{chemfig}
    usepackage{mol2chemfig}
    usepackage{tikz}
    usepackage{amsmath}
    usepackage{amsfonts}
    usepackage{amssymb}
    usepackage{mhchem}
    usepackage{tex4ht}
    begin{document}
    schemestart
    chemname{tinychemfig{-[:160]-[:100](-[:40]Br)(-[:220,,,,draw=none]mcfcringle{1.3})-[:160](-[:100,,,1]OH)-[:220](-[:160](-[:100])-[:220])-[:280]-[:340](-[:40])-[:280]@{C}(-[:204]-[:274](-[:154,,,,draw=none]mcfcringle{1.3})-[:214](-[:274](-[:214])-[:334])-[:154](-[:214,,,2]HO)-[:94](-[:154]Br)-[:34](-[:94])-[:334])-[:288]-[:240](-[:0,,,,draw=none]mcfcringle{1.3})-[:300]--[:60]-[:120](-[:180])-[:72]S(=[:336]O)(=[:60]O)-[:144]O(-[:216])}}{Yellow}
    begin{tikzpicture}[overlay,remember picture]
    draw[red](C) circle (0.1) +(120:0.1) ..controls +(120:0.5) and +(0:0.5).. +(155:2) node[left,align=right] {Conjugation\stops\here};
    end{tikzpicture}
    arrow{<=>[smallce{+OH-}][smallce{H+},;ce{H2O}]}
    chemname{tinychemfig{
    % 15
    -[:300]% 14
    (
    -[::60]% 16
    )
    -[::300]% 12
    -[::300]% 11
    (
    -[::300]mcfright{O}{^{mcfminus}}% 17
    )
    -[::60]% 10
    (
    -[::300]Br% 18
    )
    -[::60]% 9
    (
    -[::300]% 19
    )
    -[::60]% 8
    (
    -[::60]% 13
    -[::60]% -> 12
    )
    (
    -[::120,,,,draw=none]mcfcringle{1.3}% (o)
    )
    -[::300]% 7
    (
    -[::70]% 20
    -[::320]% 21
    (
    -[::310]S% 26
    (
    -[::110]mcfright{O}{^{mcfminus}}% 28
    )
    (
    =[::50]O% 29
    )
    =[::350]O% 27
    )
    (
    -[::120,,,,draw=none]mcfcringle{1.3}% (o)
    )
    -[::60]% 22
    -[::60]% 23
    -[::60]% 24
    -[::60]% 25
    -[::60]% -> 20
    )
    =[::300]% 6
    -[::60]% 1
    (
    -[::60]% 35
    )
    -[::300,,,,drh]% 2
    (
    -[::60]Br% 34
    )
    -[::300]% 3
    (
    =[::60]O% 33
    )
    -[::300]% 4
    (
    -[::300,,,,drh]% 5
    -[::300]% -> 6
    )
    -[::60]% 30
    (
    -[::300]% 31
    )
    -[::60]% 32
    }}{Blue}
    schemestop
    end{document}


    I tried to follow the solution from Latex to HTML conversion (basic explanation). I use TeXstudio and used the user command make4ht -u %.tex



    Please note that I know the code works with pdftlatex and that is not what I am trying to do. I am trying to generate a html output with an svg using tex4ht. Also I am quite new to this so please try and explain as much as possible in your answer.
    Thanks!










    share|improve this question



























      1












      1








      1








      I'm trying to generate a svg image of a reaction mechanism. However I keep receiving the error:



      ! Undefined control sequence.
      pgfsys@svg@newline ->Hnewline


      when running the command make4ht -u "Bromothymol_blue".tex where Bromothymol_blue is the name of the latex document. Here is the code:



      documentclass{article}
      thispagestyle{empty}
      usepackage{chemfig}
      usepackage{mol2chemfig}
      usepackage{tikz}
      usepackage{amsmath}
      usepackage{amsfonts}
      usepackage{amssymb}
      usepackage{mhchem}
      usepackage{tex4ht}
      begin{document}
      schemestart
      chemname{tinychemfig{-[:160]-[:100](-[:40]Br)(-[:220,,,,draw=none]mcfcringle{1.3})-[:160](-[:100,,,1]OH)-[:220](-[:160](-[:100])-[:220])-[:280]-[:340](-[:40])-[:280]@{C}(-[:204]-[:274](-[:154,,,,draw=none]mcfcringle{1.3})-[:214](-[:274](-[:214])-[:334])-[:154](-[:214,,,2]HO)-[:94](-[:154]Br)-[:34](-[:94])-[:334])-[:288]-[:240](-[:0,,,,draw=none]mcfcringle{1.3})-[:300]--[:60]-[:120](-[:180])-[:72]S(=[:336]O)(=[:60]O)-[:144]O(-[:216])}}{Yellow}
      begin{tikzpicture}[overlay,remember picture]
      draw[red](C) circle (0.1) +(120:0.1) ..controls +(120:0.5) and +(0:0.5).. +(155:2) node[left,align=right] {Conjugation\stops\here};
      end{tikzpicture}
      arrow{<=>[smallce{+OH-}][smallce{H+},;ce{H2O}]}
      chemname{tinychemfig{
      % 15
      -[:300]% 14
      (
      -[::60]% 16
      )
      -[::300]% 12
      -[::300]% 11
      (
      -[::300]mcfright{O}{^{mcfminus}}% 17
      )
      -[::60]% 10
      (
      -[::300]Br% 18
      )
      -[::60]% 9
      (
      -[::300]% 19
      )
      -[::60]% 8
      (
      -[::60]% 13
      -[::60]% -> 12
      )
      (
      -[::120,,,,draw=none]mcfcringle{1.3}% (o)
      )
      -[::300]% 7
      (
      -[::70]% 20
      -[::320]% 21
      (
      -[::310]S% 26
      (
      -[::110]mcfright{O}{^{mcfminus}}% 28
      )
      (
      =[::50]O% 29
      )
      =[::350]O% 27
      )
      (
      -[::120,,,,draw=none]mcfcringle{1.3}% (o)
      )
      -[::60]% 22
      -[::60]% 23
      -[::60]% 24
      -[::60]% 25
      -[::60]% -> 20
      )
      =[::300]% 6
      -[::60]% 1
      (
      -[::60]% 35
      )
      -[::300,,,,drh]% 2
      (
      -[::60]Br% 34
      )
      -[::300]% 3
      (
      =[::60]O% 33
      )
      -[::300]% 4
      (
      -[::300,,,,drh]% 5
      -[::300]% -> 6
      )
      -[::60]% 30
      (
      -[::300]% 31
      )
      -[::60]% 32
      }}{Blue}
      schemestop
      end{document}


      I tried to follow the solution from Latex to HTML conversion (basic explanation). I use TeXstudio and used the user command make4ht -u %.tex



      Please note that I know the code works with pdftlatex and that is not what I am trying to do. I am trying to generate a html output with an svg using tex4ht. Also I am quite new to this so please try and explain as much as possible in your answer.
      Thanks!










      share|improve this question
















      I'm trying to generate a svg image of a reaction mechanism. However I keep receiving the error:



      ! Undefined control sequence.
      pgfsys@svg@newline ->Hnewline


      when running the command make4ht -u "Bromothymol_blue".tex where Bromothymol_blue is the name of the latex document. Here is the code:



      documentclass{article}
      thispagestyle{empty}
      usepackage{chemfig}
      usepackage{mol2chemfig}
      usepackage{tikz}
      usepackage{amsmath}
      usepackage{amsfonts}
      usepackage{amssymb}
      usepackage{mhchem}
      usepackage{tex4ht}
      begin{document}
      schemestart
      chemname{tinychemfig{-[:160]-[:100](-[:40]Br)(-[:220,,,,draw=none]mcfcringle{1.3})-[:160](-[:100,,,1]OH)-[:220](-[:160](-[:100])-[:220])-[:280]-[:340](-[:40])-[:280]@{C}(-[:204]-[:274](-[:154,,,,draw=none]mcfcringle{1.3})-[:214](-[:274](-[:214])-[:334])-[:154](-[:214,,,2]HO)-[:94](-[:154]Br)-[:34](-[:94])-[:334])-[:288]-[:240](-[:0,,,,draw=none]mcfcringle{1.3})-[:300]--[:60]-[:120](-[:180])-[:72]S(=[:336]O)(=[:60]O)-[:144]O(-[:216])}}{Yellow}
      begin{tikzpicture}[overlay,remember picture]
      draw[red](C) circle (0.1) +(120:0.1) ..controls +(120:0.5) and +(0:0.5).. +(155:2) node[left,align=right] {Conjugation\stops\here};
      end{tikzpicture}
      arrow{<=>[smallce{+OH-}][smallce{H+},;ce{H2O}]}
      chemname{tinychemfig{
      % 15
      -[:300]% 14
      (
      -[::60]% 16
      )
      -[::300]% 12
      -[::300]% 11
      (
      -[::300]mcfright{O}{^{mcfminus}}% 17
      )
      -[::60]% 10
      (
      -[::300]Br% 18
      )
      -[::60]% 9
      (
      -[::300]% 19
      )
      -[::60]% 8
      (
      -[::60]% 13
      -[::60]% -> 12
      )
      (
      -[::120,,,,draw=none]mcfcringle{1.3}% (o)
      )
      -[::300]% 7
      (
      -[::70]% 20
      -[::320]% 21
      (
      -[::310]S% 26
      (
      -[::110]mcfright{O}{^{mcfminus}}% 28
      )
      (
      =[::50]O% 29
      )
      =[::350]O% 27
      )
      (
      -[::120,,,,draw=none]mcfcringle{1.3}% (o)
      )
      -[::60]% 22
      -[::60]% 23
      -[::60]% 24
      -[::60]% 25
      -[::60]% -> 20
      )
      =[::300]% 6
      -[::60]% 1
      (
      -[::60]% 35
      )
      -[::300,,,,drh]% 2
      (
      -[::60]Br% 34
      )
      -[::300]% 3
      (
      =[::60]O% 33
      )
      -[::300]% 4
      (
      -[::300,,,,drh]% 5
      -[::300]% -> 6
      )
      -[::60]% 30
      (
      -[::300]% 31
      )
      -[::60]% 32
      }}{Blue}
      schemestop
      end{document}


      I tried to follow the solution from Latex to HTML conversion (basic explanation). I use TeXstudio and used the user command make4ht -u %.tex



      Please note that I know the code works with pdftlatex and that is not what I am trying to do. I am trying to generate a html output with an svg using tex4ht. Also I am quite new to this so please try and explain as much as possible in your answer.
      Thanks!







      tex4ht chemfig svg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 6 mins ago







      sab hoque

















      asked 11 mins ago









      sab hoquesab hoque

      1,529319




      1,529319






















          0






          active

          oldest

          votes












          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%2f482893%2ferror-when-rendering-svg%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f482893%2ferror-when-rendering-svg%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

          Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

          Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

          How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...