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

          Tender dossier with centered articlesHow can I get legal style indentation on section, subsection, subsubsec.. using titlesec?missing item with addtocontents before sectionsubsubsubsection, paragraph and subparagraph count not reset when starting a new section, subsection, etcTikZ won't support HSB color model hsb in article document classAdding a vskip1em before each section - won't compile with itHow to implement a customized hierarchical table of content using titletoc with changing number formatsSection title formatGrouped entries in index don't spill over to next columnParagraph spacing in documentclassarticle with Figure and ListingsRagged Right Index Entries

          inputenc: Unicode character … not set up for use with LaTeX The Next CEO of Stack OverflowEntering Unicode characters in LaTeXHow to solve the `Package inputenc Error: Unicode char not set up for use with LaTeX` problem?solve “Unicode char is not set up for use with LaTeX” without special handling of every new interesting UTF-8 characterPackage inputenc Error: Unicode character ² (U+B2)(inputenc) not set up for use with LaTeX. acroI2C[I²C]package inputenc error unicode char (u + 190) not set up for use with latexPackage inputenc Error: Unicode char u8:′ not set up for use with LaTeX. 3′inputenc Error: Unicode char u8: not set up for use with LaTeX with G-BriefPackage Inputenc Error: Unicode char u8: not set up for use with LaTeXPackage inputenc Error: Unicode char ́ (U+301)(inputenc) not set up for use with LaTeX. includePackage inputenc Error: Unicode char ̂ (U+302)(inputenc) not set up for use with LaTeX. … $widehatleft (OA,AA' right )$Package inputenc Error: Unicode char â„¡ (U+2121)(inputenc) not set up for use with LaTeX. printbibliography[heading=bibintoc]Package inputenc Error: Unicode char − (U+2212)(inputenc) not set up for use with LaTeXPackage inputenc Error: Unicode character α (U+3B1) not set up for use with LaTeXPackage inputenc Error: Unicode characterError: ! Package inputenc Error: Unicode char ⊘ (U+2298)(inputenc) not set up for use with LaTeX

          I couldn't open file name`.blg'How do I add “citations” at the end of the document as done here?Problem with generating Reference list (no bbl file generated?)BiBTeX: I couldn't open file name 'myBib.aux'Bibtex “I couldn't open file name 'article.tex' ”.aux I couldn't open database file file.bib.bib“I found no citation commands”, I used backend=bibtex and also configured bibtex.exeLaTeX PDF shows (author n.d.) even though the .bib file shows the yearCouldn't open .bib.auxBibliography not appearing with Texmaker editorBibtex- can't get my citations to workHow to use author-year reference style in Springer template in Latex