Error when rendering svgLatex 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

Partial fraction expansion confusion

What is required to make GPS signals available indoors?

What exactly is ineptocracy?

Car headlights in a world without electricity

How seriously should I take size and weight limits of hand luggage?

Why do I get negative height?

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

Mathematica command that allows it to read my intentions

How do conventional missiles fly?

Is this draw by repetition?

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

Is it a bad idea to plug the other end of ESD strap to wall ground?

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

What's the meaning of "Sollensaussagen"?

Getting extremely large arrows with tikzcd

What is the opposite of "eschatology"?

How can saying a song's name be a copyright violation?

Can I hook these wires up to find the connection to a dead outlet?

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

Placement of More Information/Help Icon button for Radio Buttons

Sums of two squares in arithmetic progressions

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

Machine learning testing data

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



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:



documentclassarticle
thispagestyleempty
usepackagechemfig
usepackagemol2chemfig
usepackagetikz
usepackageamsmath
usepackageamsfonts
usepackageamssymb
usepackagemhchem
usepackagetex4ht
begindocument
schemestart
chemnametinychemfig-[:160]-[:100](-[:40]Br)(-[:220,,,,draw=none]mcfcringle1.3)-[:160](-[:100,,,1]OH)-[:220](-[:160](-[:100])-[:220])-[:280]-[:340](-[:40])-[:280]@C(-[:204]-[:274](-[:154,,,,draw=none]mcfcringle1.3)-[:214](-[:274](-[:214])-[:334])-[:154](-[:214,,,2]HO)-[:94](-[:154]Br)-[:34](-[:94])-[:334])-[:288]-[:240](-[:0,,,,draw=none]mcfcringle1.3)-[:300]--[:60]-[:120](-[:180])-[:72]S(=[:336]O)(=[:60]O)-[:144]O(-[:216])Yellow
begintikzpicture[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;
endtikzpicture
arrow<=>[smallce+OH-][smallceH+,;ceH2O]
chemnametinychemfig
% 15
-[:300]% 14
(
-[::60]% 16
)
-[::300]% 12
-[::300]% 11
(
-[::300]mcfrightO^mcfminus% 17
)
-[::60]% 10
(
-[::300]Br% 18
)
-[::60]% 9
(
-[::300]% 19
)
-[::60]% 8
(
-[::60]% 13
-[::60]% -> 12
)
(
-[::120,,,,draw=none]mcfcringle1.3% (o)
)
-[::300]% 7
(
-[::70]% 20
-[::320]% 21
(
-[::310]S% 26
(
-[::110]mcfrightO^mcfminus% 28
)
(
=[::50]O% 29
)
=[::350]O% 27
)
(
-[::120,,,,draw=none]mcfcringle1.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
enddocument


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:



    documentclassarticle
    thispagestyleempty
    usepackagechemfig
    usepackagemol2chemfig
    usepackagetikz
    usepackageamsmath
    usepackageamsfonts
    usepackageamssymb
    usepackagemhchem
    usepackagetex4ht
    begindocument
    schemestart
    chemnametinychemfig-[:160]-[:100](-[:40]Br)(-[:220,,,,draw=none]mcfcringle1.3)-[:160](-[:100,,,1]OH)-[:220](-[:160](-[:100])-[:220])-[:280]-[:340](-[:40])-[:280]@C(-[:204]-[:274](-[:154,,,,draw=none]mcfcringle1.3)-[:214](-[:274](-[:214])-[:334])-[:154](-[:214,,,2]HO)-[:94](-[:154]Br)-[:34](-[:94])-[:334])-[:288]-[:240](-[:0,,,,draw=none]mcfcringle1.3)-[:300]--[:60]-[:120](-[:180])-[:72]S(=[:336]O)(=[:60]O)-[:144]O(-[:216])Yellow
    begintikzpicture[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;
    endtikzpicture
    arrow<=>[smallce+OH-][smallceH+,;ceH2O]
    chemnametinychemfig
    % 15
    -[:300]% 14
    (
    -[::60]% 16
    )
    -[::300]% 12
    -[::300]% 11
    (
    -[::300]mcfrightO^mcfminus% 17
    )
    -[::60]% 10
    (
    -[::300]Br% 18
    )
    -[::60]% 9
    (
    -[::300]% 19
    )
    -[::60]% 8
    (
    -[::60]% 13
    -[::60]% -> 12
    )
    (
    -[::120,,,,draw=none]mcfcringle1.3% (o)
    )
    -[::300]% 7
    (
    -[::70]% 20
    -[::320]% 21
    (
    -[::310]S% 26
    (
    -[::110]mcfrightO^mcfminus% 28
    )
    (
    =[::50]O% 29
    )
    =[::350]O% 27
    )
    (
    -[::120,,,,draw=none]mcfcringle1.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
    enddocument


    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:



      documentclassarticle
      thispagestyleempty
      usepackagechemfig
      usepackagemol2chemfig
      usepackagetikz
      usepackageamsmath
      usepackageamsfonts
      usepackageamssymb
      usepackagemhchem
      usepackagetex4ht
      begindocument
      schemestart
      chemnametinychemfig-[:160]-[:100](-[:40]Br)(-[:220,,,,draw=none]mcfcringle1.3)-[:160](-[:100,,,1]OH)-[:220](-[:160](-[:100])-[:220])-[:280]-[:340](-[:40])-[:280]@C(-[:204]-[:274](-[:154,,,,draw=none]mcfcringle1.3)-[:214](-[:274](-[:214])-[:334])-[:154](-[:214,,,2]HO)-[:94](-[:154]Br)-[:34](-[:94])-[:334])-[:288]-[:240](-[:0,,,,draw=none]mcfcringle1.3)-[:300]--[:60]-[:120](-[:180])-[:72]S(=[:336]O)(=[:60]O)-[:144]O(-[:216])Yellow
      begintikzpicture[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;
      endtikzpicture
      arrow<=>[smallce+OH-][smallceH+,;ceH2O]
      chemnametinychemfig
      % 15
      -[:300]% 14
      (
      -[::60]% 16
      )
      -[::300]% 12
      -[::300]% 11
      (
      -[::300]mcfrightO^mcfminus% 17
      )
      -[::60]% 10
      (
      -[::300]Br% 18
      )
      -[::60]% 9
      (
      -[::300]% 19
      )
      -[::60]% 8
      (
      -[::60]% 13
      -[::60]% -> 12
      )
      (
      -[::120,,,,draw=none]mcfcringle1.3% (o)
      )
      -[::300]% 7
      (
      -[::70]% 20
      -[::320]% 21
      (
      -[::310]S% 26
      (
      -[::110]mcfrightO^mcfminus% 28
      )
      (
      =[::50]O% 29
      )
      =[::350]O% 27
      )
      (
      -[::120,,,,draw=none]mcfcringle1.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
      enddocument


      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:



      documentclassarticle
      thispagestyleempty
      usepackagechemfig
      usepackagemol2chemfig
      usepackagetikz
      usepackageamsmath
      usepackageamsfonts
      usepackageamssymb
      usepackagemhchem
      usepackagetex4ht
      begindocument
      schemestart
      chemnametinychemfig-[:160]-[:100](-[:40]Br)(-[:220,,,,draw=none]mcfcringle1.3)-[:160](-[:100,,,1]OH)-[:220](-[:160](-[:100])-[:220])-[:280]-[:340](-[:40])-[:280]@C(-[:204]-[:274](-[:154,,,,draw=none]mcfcringle1.3)-[:214](-[:274](-[:214])-[:334])-[:154](-[:214,,,2]HO)-[:94](-[:154]Br)-[:34](-[:94])-[:334])-[:288]-[:240](-[:0,,,,draw=none]mcfcringle1.3)-[:300]--[:60]-[:120](-[:180])-[:72]S(=[:336]O)(=[:60]O)-[:144]O(-[:216])Yellow
      begintikzpicture[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;
      endtikzpicture
      arrow<=>[smallce+OH-][smallceH+,;ceH2O]
      chemnametinychemfig
      % 15
      -[:300]% 14
      (
      -[::60]% 16
      )
      -[::300]% 12
      -[::300]% 11
      (
      -[::300]mcfrightO^mcfminus% 17
      )
      -[::60]% 10
      (
      -[::300]Br% 18
      )
      -[::60]% 9
      (
      -[::300]% 19
      )
      -[::60]% 8
      (
      -[::60]% 13
      -[::60]% -> 12
      )
      (
      -[::120,,,,draw=none]mcfcringle1.3% (o)
      )
      -[::300]% 7
      (
      -[::70]% 20
      -[::320]% 21
      (
      -[::310]S% 26
      (
      -[::110]mcfrightO^mcfminus% 28
      )
      (
      =[::50]O% 29
      )
      =[::350]O% 27
      )
      (
      -[::120,,,,draw=none]mcfcringle1.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
      enddocument


      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 8 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

          How should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

          152 Atala Notae | Nexus externi | Tabula navigationis"Discovery Circumstances: Numbered Minor Planets"2000152Small-Body Database

          Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"