Error when rendering svgLatex to HTML conversion (basic explanation)Compilation taking too long when...

How to find if SQL server backup is encrypted with TDE without restoring the backup

How to show a landlord what we have in savings?

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

Why were 5.25" floppy drives cheaper than 8"?

Mathematica command that allows it to read my intentions

Can a virus destroy the BIOS of a modern computer?

Was the old ablative pronoun "med" or "mēd"?

How to prevent "they're falling in love" trope

Can compressed videos be decoded back to their uncompresed original format?

What is required to make GPS signals available indoors?

What exactly is ineptocracy?

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

How could indestructible materials be used in power generation?

How can a day be of 24 hours?

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

Is it possible to map the firing of neurons in the human brain so as to stimulate artificial memories in someone else?

Why is the sentence "Das ist eine Nase" correct?

Should I tell management that I intend to leave due to bad software development practices?

Is it "common practice in Fourier transform spectroscopy to multiply the measured interferogram by an apodizing function"? If so, why?

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

Unlock My Phone! February 2018

Did 'Cinema Songs' exist during Hiranyakshipu's time?

What are the G forces leaving Earth orbit?

My ex-girlfriend uses my Apple ID to log in to her iPad. Do I have to give her my Apple ID password to reset it?



Error when rendering svg


Latex to HTML conversion (basic explanation)Compilation taking too long when including svgError using htlatex with tikz forest package, invalid SVG generatedSpecify SVG element ids when converting pgf/tikz figures to SVGLatex SVG with variable TextInserting SVG images in LatexTex4ebook not generating SVG filesLyX makes mistakes rendering svg graphicsError while importing .svg filetcolorbox and svg package shadow error/bugIncluding .svg images error













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





























    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



























      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
















      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














      share












      share



      share








      edited 3 mins ago







      sab hoque

















      asked 9 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

          El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

          Castillo d'Acher Características Menú de navegación

          Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...